diff --git a/.github/workflows/build_and_test_library.yml b/.github/workflows/build_and_test_library.yml index f3ffcb53..42e5928f 100644 --- a/.github/workflows/build_and_test_library.yml +++ b/.github/workflows/build_and_test_library.yml @@ -43,7 +43,11 @@ jobs: - name: "Test with pytest" working-directory: ansys-grantami-serverapi-openapi - run: poetry run -- pytest + run: poetry run pytest + + - name: "Run mypy" + working-directory: ansys-grantami-serverapi-openapi + run: poetry run mypy build-library: name: "Build library" diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 7e56f50f..93666e67 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -287,6 +287,64 @@ files = [ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] +[[package]] +name = "mypy" +version = "1.8.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"}, +] + +[package.dependencies] +mypy-extensions = ">=1.0.0" +tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} +typing-extensions = ">=4.1.0" + +[package.extras] +dmypy = ["psutil (>=4.0)"] +install-types = ["pip"] +mypyc = ["setuptools (>=50)"] +reports = ["lxml"] + +[[package]] +name = "mypy-extensions" +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." +optional = false +python-versions = ">=3.5" +files = [ + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, +] + [[package]] name = "packaging" version = "23.2" @@ -373,13 +431,13 @@ yaml = ["ruamel.yaml"] [[package]] name = "pytest" -version = "7.4.4" +version = "8.0.0" description = "pytest: simple powerful testing with Python" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "pytest-7.4.4-py3-none-any.whl", hash = "sha256:b090cdf5ed60bf4c45261be03239c2c1c22df034fbffe691abe93cd80cea01d8"}, - {file = "pytest-7.4.4.tar.gz", hash = "sha256:2cf0005922c6ace4a3e2ec8b4080eb0d9753fdc93107415332f50ce9e7994280"}, + {file = "pytest-8.0.0-py3-none-any.whl", hash = "sha256:50fb9cbe836c3f20f0dfa99c565201fb75dc54c8d76373cd1bde06b06657bdb6"}, + {file = "pytest-8.0.0.tar.gz", hash = "sha256:249b1b0864530ba251b7438274c4d251c58d868edaaec8762893ad4a0d71c36c"}, ] [package.dependencies] @@ -387,7 +445,7 @@ colorama = {version = "*", markers = "sys_platform == \"win32\""} exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} iniconfig = "*" packaging = "*" -pluggy = ">=0.12,<2.0" +pluggy = ">=1.3.0,<2.0" tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} [package.extras] @@ -564,6 +622,17 @@ files = [ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] +[[package]] +name = "typing-extensions" +version = "4.9.0" +description = "Backported and Experimental Type Hints for Python 3.8+" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.9.0-py3-none-any.whl", hash = "sha256:af72aea155e91adfc61c3ae9e0e342dbc0cba726d6cba4b6c72c1f34e47291cd"}, + {file = "typing_extensions-4.9.0.tar.gz", hash = "sha256:23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783"}, +] + [[package]] name = "urllib3" version = "2.0.7" @@ -584,4 +653,4 @@ zstd = ["zstandard (>=0.18.0)"] [metadata] lock-version = "2.0" python-versions = "^3.9.0" -content-hash = "e8fcedca6b1f8ac3346909cc479a7930bca7b34719638a5c478a209cfbd13045" +content-hash = "5bac5e343bf61fd70f575650b94b9ac190511b8818d6ffde07dc225a1158481c" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index c3ad9ce3..9a109b43 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.dev183" +version = "3.0.0.dev186" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] @@ -26,7 +26,8 @@ classifiers = [ "Topic :: Scientific/Engineering :: Information Analysis", ] packages = [ - { include = "**/*.py", from = "src" } + { include = "**/*.py", from = "src" }, + { include = "**/py.typed", from = "src" }, ] [tool.poetry.dependencies] @@ -36,8 +37,9 @@ requests = "^2.26.0" python-dateutil = "^2.8.2" [tool.poetry.group.dev.dependencies] -pytest = "^7.0.0" +pytest = "^8.0.0" requests-mock = "^1.0.0" +mypy = "^1.8.0" [tool.tox] legacy_tox_ini = """ @@ -59,3 +61,18 @@ changedir = {toxinidir}/tests testpaths = [ "./tests", ] + +[tool.mypy] +strict = true +warn_return_any = true +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true +disallow_untyped_defs = true +no_implicit_optional = true +check_untyped_defs = true +show_error_codes = true +files = "src" +explicit_package_bases = true +mypy_path = "$MYPY_CONFIG_FILE_DIR/src" +namespace_packages = true 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 6347c6d9..3c34d221 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 @@ -1922,3 +1922,685 @@ from .models.jobqueue_files_body import JobqueueFilesBody from .models.json_patch_document import JsonPatchDocument from .models.system_net_http_status_code import SystemNetHttpStatusCode + +__all__ = [ + "AggregationApi", + "DataApi", + "DataExportApi", + "DatabaseApi", + "IntegrationApi", + "JobQueueApi", + "LicenseApi", + "ListItemApi", + "ListManagementApi", + "ListPermissionsApi", + "RecordsRecordHistoriesApi", + "RecordsRecordVersionsApi", + "SchemaApi", + "SchemaAttributesApi", + "SchemaConfigurationsApi", + "SchemaConstantsApi", + "SchemaDataRulesApi", + "SchemaDatabasesApi", + "SchemaDiscreteTypesDiscreteValuesApi", + "SchemaDiscreteTypesApi", + "SchemaExportersApi", + "SchemaExpressionsApi", + "SchemaHelpFilesApi", + "SchemaHomePagesApi", + "SchemaLayoutSectionsApi", + "SchemaLayoutsApi", + "SchemaParametersApi", + "SchemaProfileTablesApi", + "SchemaProfilesApi", + "SchemaRecordLinkGroupsApi", + "SchemaStandardNamesApi", + "SchemaSubsetsApi", + "SchemaTablesApi", + "SchemaUnitsApi", + "SearchApi", + "SelectionSearchesApi", + "StatusApi", + "FolderguidFilesBody", + "FolderguidFilesBody1", + "FolderguidFilesBody2", + "GrantaMISearchRecordPropertyFakeAttributeNumbers", + "GrantaServerApiAdminMiVersion", + "GrantaServerApiAggregationsAggregation", + "GrantaServerApiAggregationsAggregationCriterion", + "GrantaServerApiAggregationsAggregationDatum", + "GrantaServerApiAggregationsAggregationDatumCriterion", + "GrantaServerApiAggregationsAggregationDatumExistsCriterion", + "GrantaServerApiAggregationsAggregationsRequest", + "GrantaServerApiAggregationsAggregationsResponse", + "GrantaServerApiAggregationsAttributeAggregation", + "GrantaServerApiAggregationsAttributeAggregationCriterion", + "GrantaServerApiAggregationsAttributeAggregationExistsCriterion", + "GrantaServerApiAggregationsAttributeAggregationValueCriterion", + "GrantaServerApiAggregationsAttributeExistsAggregation", + "GrantaServerApiAggregationsAttributeValueAggregation", + "GrantaServerApiAggregationsCalendarInterval", + "GrantaServerApiAggregationsDateTimeAggregation", + "GrantaServerApiAggregationsDateTimeAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeHistogram", + "GrantaServerApiAggregationsDateTimeHistogramAggregation", + "GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeHistogramBucket", + "GrantaServerApiAggregationsDiscreteTextAggregation", + "GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion", + "GrantaServerApiAggregationsFloatFunctionalAggregation", + "GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion", + "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation", + "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation", + "GrantaServerApiAggregationsFreeTextAggregation", + "GrantaServerApiAggregationsFreeTextAggregationCriterion", + "GrantaServerApiAggregationsHistogram", + "GrantaServerApiAggregationsHistogramBucket", + "GrantaServerApiAggregationsIntegerAggregation", + "GrantaServerApiAggregationsIntegerAggregationDatumCriterion", + "GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsIntegerHistogramAggregation", + "GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsLinkAggregation", + "GrantaServerApiAggregationsLinkAggregationDatumCriterion", + "GrantaServerApiAggregationsLocalColumnAggregation", + "GrantaServerApiAggregationsLocalColumnAggregationCriterion", + "GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion", + "GrantaServerApiAggregationsLocalColumnAggregationValueCriterion", + "GrantaServerApiAggregationsLocalColumnExistsAggregation", + "GrantaServerApiAggregationsLocalColumnValueAggregation", + "GrantaServerApiAggregationsLogicalAggregation", + "GrantaServerApiAggregationsLogicalAggregationDatumCriterion", + "GrantaServerApiAggregationsPointAggregation", + "GrantaServerApiAggregationsPointAggregationDatumCriterion", + "GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsPointHistogramAggregation", + "GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeAggregation", + "GrantaServerApiAggregationsRangeAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeHistogramAggregation", + "GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsShortTextAggregation", + "GrantaServerApiAggregationsShortTextAggregationDatumCriterion", + "GrantaServerApiAggregationsTermWithCount", + "GrantaServerApiAggregationsValueWithCountOfSystemBoolean", + "GrantaServerApiAggregationsValueWithCountOfSystemGuid", + "GrantaServerApiAggregationsValueWithCountOfSystemInt32", + "GrantaServerApiAllValuesSpecifier", + "GrantaServerApiAppNameLicenseCheckoutRequest", + "GrantaServerApiAppNameLicenseCheckoutResponse", + "GrantaServerApiAppNameLicenseCheckoutResult", + "GrantaServerApiAsyncJobsCreateJobRequest", + "GrantaServerApiAsyncJobsCurrentUser", + "GrantaServerApiAsyncJobsGetJobsResponse", + "GrantaServerApiAsyncJobsJob", + "GrantaServerApiAsyncJobsJobStatus", + "GrantaServerApiAsyncJobsProcessingConfig", + "GrantaServerApiAsyncJobsResubmitJobRequest", + "GrantaServerApiAsyncJobsUpdateJobRequest", + "GrantaServerApiAttributeType", + "GrantaServerApiDataApplicableDatum", + "GrantaServerApiDataDateTimeDatum", + "GrantaServerApiDataDatum", + "GrantaServerApiDataDatumType", + "GrantaServerApiDataDiscreteDatum", + "GrantaServerApiDataExportAttributeToExport", + "GrantaServerApiDataExportDataExportRequest", + "GrantaServerApiDataExportDataExportResponse", + "GrantaServerApiDataExportDatumsApplicableDatum", + "GrantaServerApiDataExportDatumsBinaryData", + "GrantaServerApiDataExportDatumsBooleanDatum", + "GrantaServerApiDataExportDatumsDateTimeDatum", + "GrantaServerApiDataExportDatumsDatum", + "GrantaServerApiDataExportDatumsDiscreteDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum", + "GrantaServerApiDataExportDatumsDiscreteGridPoint", + "GrantaServerApiDataExportDatumsDiscreteSeries", + "GrantaServerApiDataExportDatumsDiscreteSeriesPoint", + "GrantaServerApiDataExportDatumsFileDatum", + "GrantaServerApiDataExportDatumsFloatFunctionalDatum", + "GrantaServerApiDataExportDatumsFunctionalGridDatum", + "GrantaServerApiDataExportDatumsFunctionalSeriesDatum", + "GrantaServerApiDataExportDatumsGraphDecoration", + "GrantaServerApiDataExportDatumsGridPoint", + "GrantaServerApiDataExportDatumsHyperlink", + "GrantaServerApiDataExportDatumsHyperlinkDatum", + "GrantaServerApiDataExportDatumsLinkDatum", + "GrantaServerApiDataExportDatumsLinkedRecordsDatum", + "GrantaServerApiDataExportDatumsLongTextDatum", + "GrantaServerApiDataExportDatumsNotApplicableDatum", + "GrantaServerApiDataExportDatumsNumericDatum", + "GrantaServerApiDataExportDatumsParameterValue", + "GrantaServerApiDataExportDatumsPictureDatum", + "GrantaServerApiDataExportDatumsPoint", + "GrantaServerApiDataExportDatumsPointDatum", + "GrantaServerApiDataExportDatumsRange", + "GrantaServerApiDataExportDatumsRangeDatum", + "GrantaServerApiDataExportDatumsRollupCountRollupDatum", + "GrantaServerApiDataExportDatumsRollupNumericRollupDatum", + "GrantaServerApiDataExportDatumsRollupRollupDatum", + "GrantaServerApiDataExportDatumsRollupValueRollupDatum", + "GrantaServerApiDataExportDatumsRollupValuesRollupDatum", + "GrantaServerApiDataExportDatumsSeries", + "GrantaServerApiDataExportDatumsSeriesPoint", + "GrantaServerApiDataExportDatumsShortTextDatum", + "GrantaServerApiDataExportDatumsTabularDatum", + "GrantaServerApiDataExportDatumsTabularRow", + "GrantaServerApiDataExportDatumsUnknownDatum", + "GrantaServerApiDataExportExportFailuresAttributeExportFailure", + "GrantaServerApiDataExportExportFailuresAttributeReference", + "GrantaServerApiDataExportExportFailuresDatumExportFailure", + "GrantaServerApiDataExportExportFailuresDatumReference", + "GrantaServerApiDataExportExportFailuresExportFailure", + "GrantaServerApiDataExportExportFailuresExportFailureType", + "GrantaServerApiDataExportExportFailuresLinkExportFailure", + "GrantaServerApiDataExportExportFailuresLinkReference", + "GrantaServerApiDataExportExportFailuresRecordExportFailure", + "GrantaServerApiDataExportExportFailuresRollupExportFailure", + "GrantaServerApiDataExportExportFailuresRollupReference", + "GrantaServerApiDataExportLinkAttributeToExport", + "GrantaServerApiDataExportLinkedRecordExportBehavior", + "GrantaServerApiDataExportParameterSettingDefinedAt", + "GrantaServerApiDataExportPropertiesCreatedByUserProperty", + "GrantaServerApiDataExportPropertiesCreatedDateProperty", + "GrantaServerApiDataExportPropertiesDatabaseKeyProperty", + "GrantaServerApiDataExportPropertiesFullNameProperty", + "GrantaServerApiDataExportPropertiesLastModifiedByUserProperty", + "GrantaServerApiDataExportPropertiesLastModifiedDateProperty", + "GrantaServerApiDataExportPropertiesProperty", + "GrantaServerApiDataExportPropertiesRecordColorProperty", + "GrantaServerApiDataExportPropertiesRecordGuidProperty", + "GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty", + "GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty", + "GrantaServerApiDataExportPropertiesRecordIdentityProperty", + "GrantaServerApiDataExportPropertiesRecordTypeProperty", + "GrantaServerApiDataExportPropertiesReleasedDateProperty", + "GrantaServerApiDataExportPropertiesShortNameProperty", + "GrantaServerApiDataExportPropertiesTableGuidProperty", + "GrantaServerApiDataExportPropertiesTableIdentityProperty", + "GrantaServerApiDataExportPropertiesTableNameProperty", + "GrantaServerApiDataExportPropertiesVersionNumberProperty", + "GrantaServerApiDataExportPropertiesVersionStateProperty", + "GrantaServerApiDataExportRecordWithData", + "GrantaServerApiDataExportSimpleAttributeToExport", + "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataHyperlinkDatum", + "GrantaServerApiDataHyperlinkTarget", + "GrantaServerApiDataIntegerDatum", + "GrantaServerApiDataLogicalDatum", + "GrantaServerApiDataLongTextDatum", + "GrantaServerApiDataNotApplicableDatum", + "GrantaServerApiDataRangeDatum", + "GrantaServerApiDataRichTextType", + "GrantaServerApiDataRichTextValue", + "GrantaServerApiDataShortTextDatum", + "GrantaServerApiDataSignificantFiguresInfo", + "GrantaServerApiDiscreteValue", + "GrantaServerApiDiskStatus", + "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + "GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail", + "GrantaServerApiExceptionsDataModificationReferencedByType", + "GrantaServerApiExceptionsDeletionAttributeDeletionException", + "GrantaServerApiExceptionsDeletionConstantDeletionException", + "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", + "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", + "GrantaServerApiExceptionsDeletionParameterDeletionException", + "GrantaServerApiExceptionsDeletionParameterValueDeletionException", + "GrantaServerApiExceptionsDeletionTableDeletionException", + "GrantaServerApiExceptionsErrorDetail", + "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", + "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", + "GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", + "GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", + "GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail", + "GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", + "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException", + "GrantaServerApiExcludeValuesSpecifier", + "GrantaServerApiFunctionalDatumParameterInfo", + "GrantaServerApiIndexRecordFailure", + "GrantaServerApiIndirectLinks", + "GrantaServerApiIntegrationDataExportIntegrationDataExportRequest", + "GrantaServerApiIntegrationDataExportRecordReference", + "GrantaServerApiIntegrationIntegrationSchemaStatus", + "GrantaServerApiIntegrationSchemaAttribute", + "GrantaServerApiIntegrationSchemaDiscreteType", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaLayout", + "GrantaServerApiIntegrationSchemaLinkSourceType", + "GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaSecurityGroups", + "GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier", + "GrantaServerApiLinkAttributeType", + "GrantaServerApiListsDtoCreateListItem", + "GrantaServerApiListsDtoCreateRecordList", + "GrantaServerApiListsDtoCreateRecordListItemsInfo", + "GrantaServerApiListsDtoDeleteRecordListItem", + "GrantaServerApiListsDtoDeleteRecordListItems", + "GrantaServerApiListsDtoListBooleanCriterion", + "GrantaServerApiListsDtoListCriterion", + "GrantaServerApiListsDtoListItem", + "GrantaServerApiListsDtoPagingOptions", + "GrantaServerApiListsDtoRecordListHeader", + "GrantaServerApiListsDtoRecordListHeadersInfo", + "GrantaServerApiListsDtoRecordListItemsInfo", + "GrantaServerApiListsDtoRecordListPermissionFlags", + "GrantaServerApiListsDtoRecordListSearchCriterion", + "GrantaServerApiListsDtoRecordListSearchInfo", + "GrantaServerApiListsDtoRecordListSearchRequest", + "GrantaServerApiListsDtoRecordListSearchResult", + "GrantaServerApiListsDtoRecordListSearchResultsInfo", + "GrantaServerApiListsDtoResponseOptions", + "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", + "GrantaServerApiListsDtoUpdateRecordListProperties", + "GrantaServerApiListsDtoUpdateUserPermission", + "GrantaServerApiListsDtoUpdateUserPermissionsInfo", + "GrantaServerApiListsDtoUserOrGroup", + "GrantaServerApiListsDtoUserPermission", + "GrantaServerApiListsDtoUserPermissionsInfo", + "GrantaServerApiListsDtoUserRole", + "GrantaServerApiNoValuesSpecifier", + "GrantaServerApiObjectIdentifier", + "GrantaServerApiParameterInfo", + "GrantaServerApiParameterInfoInterpolationType", + "GrantaServerApiParameterInfoParameterType", + "GrantaServerApiParameterInfoScaleType", + "GrantaServerApiRecordColor", + "GrantaServerApiRecordProperty", + "GrantaServerApiRecordType", + "GrantaServerApiRecordsRecordHistoriesCopyRecordHistory", + "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory", + "GrantaServerApiRecordsRecordHistoriesMoveRecordHistory", + "GrantaServerApiRecordsRecordHistoriesRecordHistory", + "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + "GrantaServerApiRecordsRecordVersionsRecordVersion", + "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", + "GrantaServerApiSchemaAttributesAttribute", + "GrantaServerApiSchemaAttributesAttributeAttributeInfo", + "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", + "GrantaServerApiSchemaAttributesAttributeScaleType", + "GrantaServerApiSchemaAttributesAttributeThresholdType", + "GrantaServerApiSchemaAttributesAttributeValidateResponse", + "GrantaServerApiSchemaAttributesAttributesInfo", + "GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute", + "GrantaServerApiSchemaAttributesDateTimeAttribute", + "GrantaServerApiSchemaAttributesDiscreteAttribute", + "GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesFileAttribute", + "GrantaServerApiSchemaAttributesFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesHyperlinkAttribute", + "GrantaServerApiSchemaAttributesIntegerAttribute", + "GrantaServerApiSchemaAttributesLogicalAttribute", + "GrantaServerApiSchemaAttributesLongTextAttribute", + "GrantaServerApiSchemaAttributesMathsContent", + "GrantaServerApiSchemaAttributesMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesPictureAttribute", + "GrantaServerApiSchemaAttributesPointAttribute", + "GrantaServerApiSchemaAttributesRangeAttribute", + "GrantaServerApiSchemaAttributesShortTextAttribute", + "GrantaServerApiSchemaAttributesTabularAttribute", + "GrantaServerApiSchemaAttributesTabularAttributeTarget", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute", + "GrantaServerApiSchemaAttributesValidateAttributeRequest", + "GrantaServerApiSchemaConfigurationsConfiguration", + "GrantaServerApiSchemaConfigurationsConfigurationsInfo", + "GrantaServerApiSchemaConfigurationsCreateConfiguration", + "GrantaServerApiSchemaConfigurationsUpdateConfiguration", + "GrantaServerApiSchemaConstantsConstant", + "GrantaServerApiSchemaConstantsConstantsInfo", + "GrantaServerApiSchemaConstantsCreateConstant", + "GrantaServerApiSchemaConstantsUpdateConstant", + "GrantaServerApiSchemaDataRulesCreateDataRule", + "GrantaServerApiSchemaDataRulesDataRule", + "GrantaServerApiSchemaDataRulesDataRulesInfo", + "GrantaServerApiSchemaDataRulesUpdateDataRule", + "GrantaServerApiSchemaDatabase", + "GrantaServerApiSchemaDatabaseStatus", + "GrantaServerApiSchemaDatabasesInfo", + "GrantaServerApiSchemaDiscreteTypesCreateDiscreteType", + "GrantaServerApiSchemaDiscreteTypesDiscreteType", + "GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo", + "GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType", + "GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue", + "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", + "GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo", + "GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue", + "GrantaServerApiSchemaExpressionsCreateExpression", + "GrantaServerApiSchemaExpressionsExpression", + "GrantaServerApiSchemaExpressionsExpressionsInfo", + "GrantaServerApiSchemaExpressionsUpdateExpression", + "GrantaServerApiSchemaFilesCreateFolder", + "GrantaServerApiSchemaFilesExporterRefetchInfo", + "GrantaServerApiSchemaFilesFileHeader", + "GrantaServerApiSchemaFilesFilesInfo", + "GrantaServerApiSchemaFilesFolder", + "GrantaServerApiSchemaFilesFoldersInfo", + "GrantaServerApiSchemaFilesMoveFile", + "GrantaServerApiSchemaFilesMoveFolder", + "GrantaServerApiSchemaFilesUpdateFile", + "GrantaServerApiSchemaFilesUpdateFolder", + "GrantaServerApiSchemaLayoutsCreateLayout", + "GrantaServerApiSchemaLayoutsCreateLayoutSection", + "GrantaServerApiSchemaLayoutsFullLayoutSection", + "GrantaServerApiSchemaLayoutsLayout", + "GrantaServerApiSchemaLayoutsLayoutAttributeItem", + "GrantaServerApiSchemaLayoutsLayoutItem", + "GrantaServerApiSchemaLayoutsLayoutItemLinkType", + "GrantaServerApiSchemaLayoutsLayoutItemType", + "GrantaServerApiSchemaLayoutsLayoutLinkItem", + "GrantaServerApiSchemaLayoutsLayoutSection", + "GrantaServerApiSchemaLayoutsLayoutSectionDetailType", + "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", + "GrantaServerApiSchemaLayoutsLayoutTabularColumn", + "GrantaServerApiSchemaLayoutsLayoutsInfo", + "GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem", + "GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink", + "GrantaServerApiSchemaLayoutsNewLayoutAttributeItem", + "GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem", + "GrantaServerApiSchemaLayoutsNewLayoutItem", + "GrantaServerApiSchemaLayoutsNewLayoutItemType", + "GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem", + "GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem", + "GrantaServerApiSchemaLayoutsReorderSectionsInfo", + "GrantaServerApiSchemaLayoutsUpdateLayout", + "GrantaServerApiSchemaParametersContinuousRange", + "GrantaServerApiSchemaParametersCreateDiscreteParameter", + "GrantaServerApiSchemaParametersCreateDiscreteParameterValue", + "GrantaServerApiSchemaParametersCreateNumericParameter", + "GrantaServerApiSchemaParametersCreateNumericParameterValue", + "GrantaServerApiSchemaParametersCreateParameter", + "GrantaServerApiSchemaParametersCreateParameterValue", + "GrantaServerApiSchemaParametersDiscreteParameter", + "GrantaServerApiSchemaParametersDiscreteParameterContent", + "GrantaServerApiSchemaParametersDiscreteParameterValue", + "GrantaServerApiSchemaParametersDiscreteRange", + "GrantaServerApiSchemaParametersNumericParameter", + "GrantaServerApiSchemaParametersNumericParameterContent", + "GrantaServerApiSchemaParametersNumericParameterValue", + "GrantaServerApiSchemaParametersParameter", + "GrantaServerApiSchemaParametersParameterContent", + "GrantaServerApiSchemaParametersParameterInterpolationType", + "GrantaServerApiSchemaParametersParameterScaleType", + "GrantaServerApiSchemaParametersParameterType", + "GrantaServerApiSchemaParametersParameterValue", + "GrantaServerApiSchemaParametersParameterValueType", + "GrantaServerApiSchemaParametersParametersInfo", + "GrantaServerApiSchemaParametersUpdateContinuousRange", + "GrantaServerApiSchemaParametersUpdateDiscreteParameter", + "GrantaServerApiSchemaParametersUpdateDiscreteParameterContent", + "GrantaServerApiSchemaParametersUpdateDiscreteParameterValue", + "GrantaServerApiSchemaParametersUpdateDiscreteRange", + "GrantaServerApiSchemaParametersUpdateNumericParameter", + "GrantaServerApiSchemaParametersUpdateNumericParameterContent", + "GrantaServerApiSchemaParametersUpdateNumericParameterValue", + "GrantaServerApiSchemaParametersUpdateParameter", + "GrantaServerApiSchemaParametersUpdateParameterContent", + "GrantaServerApiSchemaParametersUpdateParameterValue", + "GrantaServerApiSchemaProfileTablesCreateProfileTable", + "GrantaServerApiSchemaProfileTablesProfileTable", + "GrantaServerApiSchemaProfileTablesProfileTablesInfo", + "GrantaServerApiSchemaProfileTablesUpdateProfileTable", + "GrantaServerApiSchemaProfilesAllProfilesInfo", + "GrantaServerApiSchemaProfilesCreateProfile", + "GrantaServerApiSchemaProfilesProfile", + "GrantaServerApiSchemaProfilesUpdateAllProfilesInfo", + "GrantaServerApiSchemaProfilesUpdateDefaultProfile", + "GrantaServerApiSchemaProfilesUpdateProfile", + "GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair", + "GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair", + "GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", + "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", + "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", + "GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup", + "GrantaServerApiSchemaSlimEntitiesSlimAttribute", + "GrantaServerApiSchemaSlimEntitiesSlimConfiguration", + "GrantaServerApiSchemaSlimEntitiesSlimConstant", + "GrantaServerApiSchemaSlimEntitiesSlimDatabase", + "GrantaServerApiSchemaSlimEntitiesSlimEntity", + "GrantaServerApiSchemaSlimEntitiesSlimExpression", + "GrantaServerApiSchemaSlimEntitiesSlimFile", + "GrantaServerApiSchemaSlimEntitiesSlimLayout", + "GrantaServerApiSchemaSlimEntitiesSlimLayoutSection", + "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + "GrantaServerApiSchemaSlimEntitiesSlimObjects", + "GrantaServerApiSchemaSlimEntitiesSlimProfile", + "GrantaServerApiSchemaSlimEntitiesSlimProfileTable", + "GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup", + "GrantaServerApiSchemaSlimEntitiesSlimSubset", + "GrantaServerApiSchemaSlimEntitiesSlimTable", + "GrantaServerApiSchemaSlimEntitiesSlimUnit", + "GrantaServerApiSchemaSlimEntitiesSlimUnitSystem", + "GrantaServerApiSchemaStandardNamesCreateStandardName", + "GrantaServerApiSchemaStandardNamesStandardName", + "GrantaServerApiSchemaStandardNamesStandardNamesInfo", + "GrantaServerApiSchemaStandardNamesUpdateStandardName", + "GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset", + "GrantaServerApiSchemaSubsetsCreateSubset", + "GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset", + "GrantaServerApiSchemaSubsetsSubset", + "GrantaServerApiSchemaSubsetsSubsetsInfo", + "GrantaServerApiSchemaSubsetsUpdateSubset", + "GrantaServerApiSchemaTablesCreateTable", + "GrantaServerApiSchemaTablesTable", + "GrantaServerApiSchemaTablesTablesInfo", + "GrantaServerApiSchemaTablesUpdateTable", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsTabularColumn", + "GrantaServerApiSchemaTabularColumnsTabularColumnDtoType", + "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", + "GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn", + "GrantaServerApiSchemaUnitsCreateUnit", + "GrantaServerApiSchemaUnitsCreateUnitSystem", + "GrantaServerApiSchemaUnitsUnit", + "GrantaServerApiSchemaUnitsUnitEquivalent", + "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", + "GrantaServerApiSchemaUnitsUnitMapping", + "GrantaServerApiSchemaUnitsUnitSystem", + "GrantaServerApiSchemaUnitsUnitSystemsInfo", + "GrantaServerApiSchemaUnitsUnitUsage", + "GrantaServerApiSchemaUnitsUnitsInfo", + "GrantaServerApiSchemaUnitsUpdateUnit", + "GrantaServerApiSchemaUnitsUpdateUnitSystem", + "GrantaServerApiSchemaUpdateDatabase", + "GrantaServerApiSearchAttributeCriterion", + "GrantaServerApiSearchAttributeExistsCriterion", + "GrantaServerApiSearchAttributeMatchesCriterion", + "GrantaServerApiSearchAttributeNotApplicableCriterion", + "GrantaServerApiSearchAttributeSortCriterion", + "GrantaServerApiSearchBooleanCriterion", + "GrantaServerApiSearchBoostByGuid", + "GrantaServerApiSearchBoostByIdentity", + "GrantaServerApiSearchCriterion", + "GrantaServerApiSearchDateTimeDatumCriterion", + "GrantaServerApiSearchDatumCriterion", + "GrantaServerApiSearchDatumExistsCriterion", + "GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion", + "GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion", + "GrantaServerApiSearchDiscreteGuidDatumCriterion", + "GrantaServerApiSearchDiscreteGuidValuesDatumCriterion", + "GrantaServerApiSearchDiscreteIdentityDatumCriterion", + "GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion", + "GrantaServerApiSearchDiscreteParameterNameConstraint", + "GrantaServerApiSearchDiscreteParameterValueConstraint", + "GrantaServerApiSearchDiscreteRangeDatumCriterion", + "GrantaServerApiSearchDiscreteTextDatumCriterion", + "GrantaServerApiSearchDiscreteTextValuesDatumCriterion", + "GrantaServerApiSearchDoubleSortingValue", + "GrantaServerApiSearchFileDatumCriterion", + "GrantaServerApiSearchFloatFunctionalDatumCriterion", + "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", + "GrantaServerApiSearchFreeTextAllAttributesCriterion", + "GrantaServerApiSearchFreeTextAllCriterion", + "GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", + "GrantaServerApiSearchFreeTextCriterion", + "GrantaServerApiSearchFreeTextExcludingAttributesCriterion", + "GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", + "GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", + "GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", + "GrantaServerApiSearchHyperlinkDatumCriterion", + "GrantaServerApiSearchIndexStatus", + "GrantaServerApiSearchIntegerDatumCriterion", + "GrantaServerApiSearchLinkDatumCriterion", + "GrantaServerApiSearchLinkExistsDatumCriterion", + "GrantaServerApiSearchLinkingValueMatchBehaviour", + "GrantaServerApiSearchLocalColumnCriterion", + "GrantaServerApiSearchLocalColumnExistsCriterion", + "GrantaServerApiSearchLocalColumnMatchesCriterion", + "GrantaServerApiSearchLocalColumnNotApplicableCriterion", + "GrantaServerApiSearchLocalRowsBehaviour", + "GrantaServerApiSearchLogicalDatumCriterion", + "GrantaServerApiSearchLongSortingValue", + "GrantaServerApiSearchLongTextDatumCriterion", + "GrantaServerApiSearchMathsFunctionalDatumCriterion", + "GrantaServerApiSearchNumericParameterConstraint", + "GrantaServerApiSearchPagingOptions", + "GrantaServerApiSearchParameterConstraint", + "GrantaServerApiSearchPictureDatumCriterion", + "GrantaServerApiSearchPointDatumCriterion", + "GrantaServerApiSearchRangeDatumCriterion", + "GrantaServerApiSearchRecordAncestorCriterion", + "GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion", + "GrantaServerApiSearchRecordListMemberCriterion", + "GrantaServerApiSearchRecordPropertyCriterion", + "GrantaServerApiSearchRecordPropertySortCriterion", + "GrantaServerApiSearchRecordReferenceCriterion", + "GrantaServerApiSearchRecordSubsetCriterion", + "GrantaServerApiSearchRelevanceSortCriterion", + "GrantaServerApiSearchSearchRequest", + "GrantaServerApiSearchSearchResponse", + "GrantaServerApiSearchSearchResult", + "GrantaServerApiSearchSearchResultsRequest", + "GrantaServerApiSearchSearchableRecordProperty", + "GrantaServerApiSearchShortTextDatumCriterion", + "GrantaServerApiSearchSimpleDatumExistsCriterion", + "GrantaServerApiSearchSortCriterion", + "GrantaServerApiSearchSortDirection", + "GrantaServerApiSearchSortType", + "GrantaServerApiSearchSortingValue", + "GrantaServerApiSearchStringSortingValue", + "GrantaServerApiSearchTabularLinkingValueCriterion", + "GrantaServerApiSearchTextMatchBehaviour", + "GrantaServerApiSelectionSearchesCreateSearchRequest", + "GrantaServerApiSelectionSearchesFindSearchRequest", + "GrantaServerApiSelectionSearchesSaveSearchRequest", + "GrantaServerApiSelectionSearchesSearchDetail", + "GrantaServerApiSelectionSearchesSelectionSearch", + "GrantaServerApiSelectionSearchesUserOrGroup", + "GrantaServerApiSpecificValuesSpecifier", + "GrantaServerApiValueSpecifier", + "GrantaServerApiValueSpecifierType", + "GrantaServerApiVersionState", + "JobqueueFilesBody", + "JsonPatchDocument", + "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 95ceaf85..51b5c827 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 +from ansys.openapi.common import ApiBase # type: ignore[import-untyped] # import apis into api package from .aggregation_api import AggregationApi @@ -43,3 +43,44 @@ from .search_api import SearchApi from .selection_searches_api import SelectionSearchesApi from .status_api import StatusApi + +__all__ = [ + "ApiBase", + "AggregationApi", + "DataApi", + "DataExportApi", + "DatabaseApi", + "IntegrationApi", + "JobQueueApi", + "LicenseApi", + "ListItemApi", + "ListManagementApi", + "ListPermissionsApi", + "RecordsRecordHistoriesApi", + "RecordsRecordVersionsApi", + "SchemaApi", + "SchemaAttributesApi", + "SchemaConfigurationsApi", + "SchemaConstantsApi", + "SchemaDataRulesApi", + "SchemaDatabasesApi", + "SchemaDiscreteTypesDiscreteValuesApi", + "SchemaDiscreteTypesApi", + "SchemaExportersApi", + "SchemaExpressionsApi", + "SchemaHelpFilesApi", + "SchemaHomePagesApi", + "SchemaLayoutSectionsApi", + "SchemaLayoutsApi", + "SchemaParametersApi", + "SchemaProfileTablesApi", + "SchemaProfilesApi", + "SchemaRecordLinkGroupsApi", + "SchemaStandardNamesApi", + "SchemaSubsetsApi", + "SchemaTablesApi", + "SchemaUnitsApi", + "SearchApi", + "SelectionSearchesApi", + "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 fd9f8b01..9d07ba27 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class AggregationApi(ApiBase): +class AggregationApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -60,7 +68,7 @@ def v1alpha_databases_database_key_tables_table_guidaggregations_post( mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http_info( self, @@ -69,8 +77,8 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -101,24 +109,24 @@ def _v1alpha_databases_database_key_tables_table_guidaggregations_post_with_http "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidaggregations_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -194,7 +202,7 @@ def v1alpha_databases_database_key_tables_table_identityaggregations_post( mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_http_info( self, @@ -203,8 +211,8 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_identity", @@ -235,24 +243,24 @@ def _v1alpha_databases_database_key_tables_table_identityaggregations_post_with_ "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identityaggregations_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -321,7 +329,7 @@ def v1alpha_databases_database_keyaggregations_post( data = self._v1alpha_databases_database_keyaggregations_post_with_http_info( database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_keyaggregations_post_with_http_info( self, @@ -329,8 +337,8 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -355,22 +363,22 @@ def _v1alpha_databases_database_keyaggregations_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keyaggregations_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -433,14 +441,14 @@ def v1alpha_integration_schemas_schemaaggregations_post( data = self._v1alpha_integration_schemas_schemaaggregations_post_with_http_info( schema, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schemaaggregations_post_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiAggregationsAggregationsRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "body", @@ -463,18 +471,18 @@ def _v1alpha_integration_schemas_schemaaggregations_post_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemaaggregations_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 029a52a4..1f7d5cb7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class DataApi(ApiBase): +class DataApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -60,7 +68,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_latest_a x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -69,8 +77,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -106,9 +114,9 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -116,16 +124,16 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -192,7 +200,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_record_v x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -202,8 +210,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -245,9 +253,9 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -257,16 +265,16 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_record_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -333,7 +341,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -343,8 +351,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -386,9 +394,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -398,16 +406,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -477,7 +485,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -488,8 +496,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -537,9 +545,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -551,16 +559,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 d39d99ed..c1d5b315 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class DataExportApi(ApiBase): +class DataExportApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,7 +61,7 @@ def v1alpha_databases_database_keyexport_post( data = self._v1alpha_databases_database_keyexport_post_with_http_info( database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_keyexport_post_with_http_info( self, @@ -61,8 +69,8 @@ def _v1alpha_databases_database_keyexport_post_with_http_info( body: "Optional[GrantaServerApiDataExportDataExportRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -87,22 +95,22 @@ def _v1alpha_databases_database_keyexport_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keyexport_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -166,14 +174,14 @@ def v1alpha_integration_schemas_schemaexport_post( data = self._v1alpha_integration_schemas_schemaexport_post_with_http_info( schema, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schemaexport_post_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiIntegrationDataExportIntegrationDataExportRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "body", @@ -196,18 +204,18 @@ def _v1alpha_integration_schemas_schemaexport_post_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemaexport_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 cbd3c940..c0e77174 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class DatabaseApi(ApiBase): +class DatabaseApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_standard_namesgenerate_integration_schema_pos data = self._v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", body: "Optional[List[str]]" = None, **kwargs: Any + ) -> Any: all_params = [ "database_key", "body", @@ -71,18 +79,18 @@ def _v1alpha_databases_database_key_standard_namesgenerate_integration_schema_po "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -144,15 +152,15 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_identityg 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get_with_http_info( self, database_key: "str", table_identity: "int", layout_identity: "int", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_identity", @@ -186,9 +194,9 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity "Missing the required parameter 'layout_identity' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -196,12 +204,12 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_identity if "layout_identity" in params and layout_identity is not None: path_params["layout-identity"] = params["layout_identity"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -251,11 +259,15 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegener 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 ) - return data # type: ignore[return-value] + 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 - ): + self, + database_key: "str", + table_identity: "int", + layout_name: "str", + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_identity", @@ -289,9 +301,9 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene "Missing the required parameter 'layout_name' when calling 'v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -299,12 +311,12 @@ def _v1alpha_databases_database_key_tables_table_identity_layout_layout_namegene if "layout_name" in params and layout_name is not None: path_params["layout-name"] = params["layout_name"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -353,11 +365,11 @@ def v1alpha_databases_database_key_tables_table_identitygenerate_integration_sch data = self._v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get_with_http_info( database_key, table_identity, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", table_identity: "int", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_identity", @@ -385,20 +397,20 @@ def _v1alpha_databases_database_key_tables_table_identitygenerate_integration_sc "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -448,11 +460,15 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_identitygener 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 ) - return data # type: ignore[return-value] + 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 - ): + self, + database_key: "str", + table_name: "str", + layout_identity: "int", + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_name", @@ -486,9 +502,9 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene "Missing the required parameter 'layout_identity' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -496,12 +512,12 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_identitygene if "layout_identity" in params and layout_identity is not None: path_params["layout-identity"] = params["layout_identity"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -551,11 +567,11 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_ 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", table_name: "str", layout_name: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_name", @@ -589,9 +605,9 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate "Missing the required parameter 'layout_name' when calling 'v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -599,12 +615,12 @@ def _v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate if "layout_name" in params and layout_name is not None: path_params["layout-name"] = params["layout_name"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -653,11 +669,11 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ data = self._v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get_with_http_info( database_key, table_name, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", table_name: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_name", @@ -685,20 +701,20 @@ def _v1alpha_databases_database_key_tables_table_namegenerate_integration_schema "Missing the required parameter 'table_name' when calling 'v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -749,14 +765,14 @@ def v1alpha_databases_database_keysearch_index_status_get( database_key, include_diagnostics, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "include_diagnostics", @@ -779,20 +795,20 @@ def _v1alpha_databases_database_keysearch_index_status_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keysearch_index_status_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + 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 = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -842,11 +858,11 @@ def v1alpha_standard_namesgenerate_integration_schema_post( body, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( - self, body: "Optional[List[str]]" = None, **kwargs - ): + self, body: "Optional[List[str]]" = None, **kwargs: Any + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -863,16 +879,16 @@ def _v1alpha_standard_namesgenerate_integration_schema_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 98be727f..a3c24b93 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class IntegrationApi(ApiBase): +class IntegrationApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,9 +45,9 @@ def v1alpha_integration_schemas_get(self) -> "List[str]": data = self._v1alpha_integration_schemas_get_with_http_info( _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_integration_schemas_get_with_http_info(self, **kwargs): + def _v1alpha_integration_schemas_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -51,16 +59,16 @@ def _v1alpha_integration_schemas_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -108,13 +116,13 @@ def v1alpha_integration_schemas_post( data = self._v1alpha_integration_schemas_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_post_with_http_info( self, body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -131,16 +139,16 @@ def _v1alpha_integration_schemas_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -203,14 +211,14 @@ def v1alpha_integration_schemas_schema_attributes_get( data = self._v1alpha_integration_schemas_schema_attributes_get_with_http_info( schema, include_implicit_attributes, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "include_implicit_attributes", @@ -233,13 +241,13 @@ def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_attributes_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] if ( "include_implicit_attributes" in params and include_implicit_attributes is not None @@ -248,10 +256,10 @@ def _v1alpha_integration_schemas_schema_attributes_get_with_http_info( ("includeImplicitAttributes", params["include_implicit_attributes"]) ) - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -297,11 +305,11 @@ def v1alpha_integration_schemas_schema_delete(self, *, schema: "str") -> "None": data = self._v1alpha_integration_schemas_schema_delete_with_http_info( schema, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schema_delete_with_http_info( - self, schema: "str", **kwargs - ): + self, schema: "str", **kwargs: Any + ) -> Any: all_params = [ "schema", "_return_http_data_only", @@ -323,18 +331,18 @@ def _v1alpha_integration_schemas_schema_delete_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -381,14 +389,14 @@ def v1alpha_integration_schemas_schema_get( data = self._v1alpha_integration_schemas_schema_get_with_http_info( schema, include_implicit_attributes, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schema_get_with_http_info( self, schema: "str", include_implicit_attributes: "Optional[bool]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "include_implicit_attributes", @@ -411,13 +419,13 @@ def _v1alpha_integration_schemas_schema_get_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] if ( "include_implicit_attributes" in params and include_implicit_attributes is not None @@ -426,10 +434,10 @@ def _v1alpha_integration_schemas_schema_get_with_http_info( ("includeImplicitAttributes", params["include_implicit_attributes"]) ) - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -480,14 +488,14 @@ def v1alpha_integration_schemas_schema_put( data = self._v1alpha_integration_schemas_schema_put_with_http_info( schema, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schema_put_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "body", @@ -510,18 +518,18 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schema_put'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -583,11 +591,11 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table data = self._v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get_with_http_info( schema, database_key, table_identity, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get_with_http_info( - self, schema: "str", database_key: "str", table_identity: "int", **kwargs - ): + self, schema: "str", database_key: "str", table_identity: "int", **kwargs: Any + ) -> Any: all_params = [ "schema", "database_key", @@ -621,9 +629,9 @@ def _v1alpha_integration_schemas_schema_sources_database_database_key_table_tabl "Missing the required parameter 'table_identity' when calling 'v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] if "database_key" in params and database_key is not None: @@ -631,12 +639,12 @@ def _v1alpha_integration_schemas_schema_sources_database_database_key_table_tabl if "table_identity" in params and table_identity is not None: path_params["table-identity"] = params["table_identity"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -684,11 +692,11 @@ def v1alpha_integration_schemas_schemasearch_index_status_get( data = self._v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( schema, include_diagnostics, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, schema: "str", include_diagnostics: "Optional[bool]" = None, **kwargs: Any + ) -> Any: all_params = [ "schema", "include_diagnostics", @@ -711,20 +719,20 @@ def _v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemasearch_index_status_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + 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 = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -770,11 +778,11 @@ def v1alpha_integration_schemassearch_index_status_get( data = self._v1alpha_integration_schemassearch_index_status_get_with_http_info( include_diagnostics, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemassearch_index_status_get_with_http_info( - self, include_diagnostics: "Optional[bool]" = None, **kwargs - ): + self, include_diagnostics: "Optional[bool]" = None, **kwargs: Any + ) -> Any: all_params = [ "include_diagnostics", "_return_http_data_only", @@ -791,18 +799,18 @@ def _v1alpha_integration_schemassearch_index_status_get_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + 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 = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 e3b6cb25..876906bb 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class JobQueueApi(ApiBase): +class JobQueueApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -39,9 +47,9 @@ def v1alpha_job_queue_current_user_get( data = self._v1alpha_job_queue_current_user_get_with_http_info( _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs): + def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -53,16 +61,16 @@ def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -91,7 +99,7 @@ def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs): ) def v1alpha_job_queue_files_post( - self, *, file: "Optional[Union[IO, pathlib.Path]]" = None + 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. @@ -99,7 +107,7 @@ def v1alpha_job_queue_files_post( Parameters ---------- - file: Union[IO, pathlib.Path] + file: Union[BinaryIO, pathlib.Path] Returns ------- @@ -108,11 +116,11 @@ def v1alpha_job_queue_files_post( data = self._v1alpha_job_queue_files_post_with_http_info( file, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_files_post_with_http_info( - self, file: "Optional[Union[IO, pathlib.Path]]" = None, **kwargs - ): + self, file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, **kwargs: Any + ) -> Any: all_params = [ "file", "_return_http_data_only", @@ -129,16 +137,16 @@ def _v1alpha_job_queue_files_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + 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"] @@ -189,11 +197,11 @@ def v1alpha_job_queue_jobs_delete( data = self._v1alpha_job_queue_jobs_delete_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_delete_with_http_info( - self, body: "Optional[List[str]]" = None, **kwargs - ): + self, body: "Optional[List[str]]" = None, **kwargs: Any + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -210,16 +218,16 @@ def _v1alpha_job_queue_jobs_delete_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -300,7 +308,7 @@ def v1alpha_job_queue_jobs_get( page_number, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_get_with_http_info( self, @@ -311,8 +319,8 @@ def _v1alpha_job_queue_jobs_get_with_http_info( submitter_name_filter: "Optional[str]" = None, page_size: "Optional[int]" = None, page_number: "Optional[int]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "job_type", "status", @@ -335,11 +343,11 @@ def _v1alpha_job_queue_jobs_get_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + 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: @@ -357,10 +365,10 @@ def _v1alpha_job_queue_jobs_get_with_http_info( if "page_number" in params and page_number is not None: query_params.append(("pageNumber", params["page_number"])) - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -404,9 +412,11 @@ def v1alpha_job_queue_jobs_id_delete(self, *, id: "str") -> "None": data = self._v1alpha_job_queue_jobs_id_delete_with_http_info( id, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_delete_with_http_info(self, id: "str", **kwargs): + def _v1alpha_job_queue_jobs_id_delete_with_http_info( + self, id: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "_return_http_data_only", @@ -428,18 +438,18 @@ def _v1alpha_job_queue_jobs_id_delete_with_http_info(self, id: "str", **kwargs): "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -483,9 +493,11 @@ def v1alpha_job_queue_jobs_id_get( data = self._v1alpha_job_queue_jobs_id_get_with_http_info( id, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_job_queue_jobs_id_get_with_http_info(self, id: "str", **kwargs): + def _v1alpha_job_queue_jobs_id_get_with_http_info( + self, id: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "_return_http_data_only", @@ -507,18 +519,18 @@ def _v1alpha_job_queue_jobs_id_get_with_http_info(self, id: "str", **kwargs): "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -565,11 +577,11 @@ def v1alpha_job_queue_jobs_id_outputs_get( data = self._v1alpha_job_queue_jobs_id_outputs_get_with_http_info( id, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( - self, id: "str", **kwargs - ): + self, id: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "_return_http_data_only", @@ -591,18 +603,18 @@ def _v1alpha_job_queue_jobs_id_outputs_get_with_http_info( "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_outputs_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -650,11 +662,11 @@ def v1alpha_job_queue_jobs_id_outputsexport_get( data = self._v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( id, file_name, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, id: "str", file_name: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "file_name", @@ -682,20 +694,20 @@ def _v1alpha_job_queue_jobs_id_outputsexport_get_with_http_info( "Missing the required parameter 'file_name' when calling 'v1alpha_job_queue_jobs_id_outputsexport_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] if "file_name" in params and file_name is not None: query_params.append(("fileName", params["file_name"])) - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -746,14 +758,14 @@ def v1alpha_job_queue_jobs_id_patch( data = self._v1alpha_job_queue_jobs_id_patch_with_http_info( id, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "id", "body", @@ -776,18 +788,18 @@ def _v1alpha_job_queue_jobs_id_patch_with_http_info( "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_id_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -844,11 +856,11 @@ def v1alpha_job_queue_jobs_idmove_to_top_post(self, *, id: "str") -> "None": data = self._v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( id, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( - self, id: "str", **kwargs - ): + self, id: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "_return_http_data_only", @@ -870,18 +882,18 @@ def _v1alpha_job_queue_jobs_idmove_to_top_post_with_http_info( "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idmove_to_top_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -928,14 +940,14 @@ def v1alpha_job_queue_jobs_idresubmit_post( data = self._v1alpha_job_queue_jobs_idresubmit_post_with_http_info( id, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "id", "body", @@ -958,18 +970,18 @@ def _v1alpha_job_queue_jobs_idresubmit_post_with_http_info( "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idresubmit_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1028,11 +1040,11 @@ def v1alpha_job_queue_jobs_idretrieve_definition_get( data = self._v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( id, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( - self, id: "str", **kwargs - ): + self, id: "str", **kwargs: Any + ) -> Any: all_params = [ "id", "_return_http_data_only", @@ -1054,18 +1066,18 @@ def _v1alpha_job_queue_jobs_idretrieve_definition_get_with_http_info( "Missing the required parameter 'id' when calling 'v1alpha_job_queue_jobs_idretrieve_definition_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "id" in params and id is not None: path_params["id"] = params["id"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1112,13 +1124,13 @@ def v1alpha_job_queue_jobs_post( data = self._v1alpha_job_queue_jobs_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_job_queue_jobs_post_with_http_info( self, body: "Optional[GrantaServerApiAsyncJobsCreateJobRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -1135,16 +1147,16 @@ def _v1alpha_job_queue_jobs_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1198,9 +1210,11 @@ def v1alpha_job_queue_processing_configuration_get( data = self._v1alpha_job_queue_processing_configuration_get_with_http_info( _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_job_queue_processing_configuration_get_with_http_info(self, **kwargs): + def _v1alpha_job_queue_processing_configuration_get_with_http_info( + self, **kwargs: Any + ) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -1212,16 +1226,16 @@ def _v1alpha_job_queue_processing_configuration_get_with_http_info(self, **kwarg params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 8fc0ff63..20794e05 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class LicenseApi(ApiBase): +class LicenseApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -45,13 +53,13 @@ def v1alpha_license_server_licensesensure_checked_out_post( body, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_license_server_licensesensure_checked_out_post_with_http_info( self, body: "Optional[GrantaServerApiAppNameLicenseCheckoutRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -68,16 +76,16 @@ def _v1alpha_license_server_licensesensure_checked_out_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: 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 587aad54..951de33a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class ListItemApi(ApiBase): +class ListItemApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -47,14 +55,14 @@ def api_v1_lists_list_list_identifier_items_add_post( data = self._api_v1_lists_list_list_identifier_items_add_post_with_http_info( list_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( self, list_identifier: "str", body: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "list_identifier", "body", @@ -77,18 +85,18 @@ def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_add_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -149,11 +157,11 @@ def api_v1_lists_list_list_identifier_items_get( data = self._api_v1_lists_list_list_identifier_items_get_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_items_get_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -175,18 +183,18 @@ def _api_v1_lists_list_list_identifier_items_get_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -238,14 +246,14 @@ def api_v1_lists_list_list_identifier_items_remove_post( data = self._api_v1_lists_list_list_identifier_items_remove_post_with_http_info( list_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( self, list_identifier: "str", body: "Optional[GrantaServerApiListsDtoDeleteRecordListItems]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "list_identifier", "body", @@ -268,18 +276,18 @@ def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_items_remove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 c69c2ef5..7b8db9ba 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class ListManagementApi(ApiBase): +class ListManagementApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,9 +45,9 @@ def api_v1_lists_get( Union[GrantaServerApiListsDtoRecordListHeadersInfo, None] """ data = self._api_v1_lists_get_with_http_info(_return_http_data_only=True) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _api_v1_lists_get_with_http_info(self, **kwargs): + def _api_v1_lists_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -51,16 +59,16 @@ def _api_v1_lists_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -107,11 +115,11 @@ def api_v1_lists_list_list_identifier_copy_post( data = self._api_v1_lists_list_list_identifier_copy_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_copy_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -133,18 +141,18 @@ def _api_v1_lists_list_list_identifier_copy_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_copy_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -192,11 +200,11 @@ def api_v1_lists_list_list_identifier_delete( data = self._api_v1_lists_list_list_identifier_delete_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_delete_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -218,18 +226,18 @@ def _api_v1_lists_list_list_identifier_delete_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -273,11 +281,11 @@ def api_v1_lists_list_list_identifier_get( data = self._api_v1_lists_list_list_identifier_get_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_get_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -299,18 +307,18 @@ def _api_v1_lists_list_list_identifier_get_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -362,14 +370,14 @@ def api_v1_lists_list_list_identifier_patch( data = self._api_v1_lists_list_list_identifier_patch_with_http_info( list_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "list_identifier", "body", @@ -392,18 +400,18 @@ def _api_v1_lists_list_list_identifier_patch_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -464,11 +472,11 @@ def api_v1_lists_list_list_identifier_publish_post( data = self._api_v1_lists_list_list_identifier_publish_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_publish_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -490,18 +498,18 @@ def _api_v1_lists_list_list_identifier_publish_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_publish_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -550,11 +558,11 @@ def api_v1_lists_list_list_identifier_request_approval_post( data = self._api_v1_lists_list_list_identifier_request_approval_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -576,18 +584,18 @@ def _api_v1_lists_list_list_identifier_request_approval_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_request_approval_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -636,11 +644,11 @@ def api_v1_lists_list_list_identifier_reset_post( data = self._api_v1_lists_list_list_identifier_reset_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_reset_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -662,18 +670,18 @@ def _api_v1_lists_list_list_identifier_reset_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_reset_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -722,11 +730,11 @@ def api_v1_lists_list_list_identifier_revise_post( data = self._api_v1_lists_list_list_identifier_revise_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_revise_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -748,18 +756,18 @@ def _api_v1_lists_list_list_identifier_revise_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_revise_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -808,11 +816,11 @@ def api_v1_lists_list_list_identifier_unpublish_post( data = self._api_v1_lists_list_list_identifier_unpublish_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -834,18 +842,18 @@ def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_unpublish_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -892,11 +900,13 @@ def api_v1_lists_post( Union[GrantaServerApiListsDtoRecordListHeader, None] """ data = self._api_v1_lists_post_with_http_info(body, _return_http_data_only=True) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_post_with_http_info( - self, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, **kwargs - ): + self, + body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -913,16 +923,16 @@ def _api_v1_lists_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -982,13 +992,13 @@ def api_v1_lists_search_post( data = self._api_v1_lists_search_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_search_post_with_http_info( self, body: "Optional[GrantaServerApiListsDtoRecordListSearchRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -1005,16 +1015,16 @@ def _api_v1_lists_search_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1074,11 +1084,11 @@ def api_v1_lists_search_results_result_resource_identifier_get( data = self._api_v1_lists_search_results_result_resource_identifier_get_with_http_info( result_resource_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, result_resource_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "result_resource_identifier", "_return_http_data_only", @@ -1103,9 +1113,9 @@ def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( "Missing the required parameter 'result_resource_identifier' when calling 'api_v1_lists_search_results_result_resource_identifier_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if ( "result_resource_identifier" in params and result_resource_identifier is not None @@ -1114,12 +1124,12 @@ def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( "result_resource_identifier" ] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 40064e48..15628cda 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class ListPermissionsApi(ApiBase): +class ListPermissionsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def api_v1_lists_list_list_identifier_permissions_get( data = self._api_v1_lists_list_list_identifier_permissions_get_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( - self, list_identifier: "str", **kwargs - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -69,18 +77,18 @@ def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -132,14 +140,14 @@ def api_v1_lists_list_list_identifier_permissions_post( data = self._api_v1_lists_list_list_identifier_permissions_post_with_http_info( list_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "list_identifier", "body", @@ -162,18 +170,18 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -234,11 +242,11 @@ def api_v1_lists_list_list_identifier_permissions_subscribe_post( data = self._api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -260,18 +268,18 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_subscribe_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -320,11 +328,11 @@ def api_v1_lists_list_list_identifier_permissions_unsubscribe_post( data = self._api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_info( list_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, list_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "_return_http_data_only", @@ -346,18 +354,18 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_unsubscribe_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "list_identifier" in params and list_identifier is not None: path_params["listIdentifier"] = params["list_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -407,11 +415,11 @@ def api_v1_lists_list_list_identifier_permissions_user_user_identifier_get( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, list_identifier: "str", user_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "list_identifier", "user_identifier", @@ -439,20 +447,20 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with "Missing the required parameter 'user_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -506,15 +514,15 @@ def api_v1_lists_list_list_identifier_permissions_user_user_identifier_put( 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "list_identifier", "user_identifier", @@ -543,20 +551,20 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with "Missing the required parameter 'user_identifier' when calling 'api_v1_lists_list_list_identifier_permissions_user_user_identifier_put'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 a208ef43..d51b2c96 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class RecordsRecordHistoriesApi(ApiBase): +class RecordsRecordHistoriesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -57,7 +65,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_get( x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_record_histories_record_history_guid_get_with_http_info( self, @@ -65,8 +73,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -96,24 +104,24 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -174,7 +182,7 @@ def v1alpha_databases_database_key_record_histories_record_history_guid_latest_g x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_get_with_http_info( self, @@ -182,8 +190,8 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -213,24 +221,24 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_ "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -283,15 +291,15 @@ def v1alpha_databases_database_key_record_histories_record_history_guidcopy_post 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_post_with_http_info( self, database_key: "str", record_history_guid: "str", body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -320,20 +328,20 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidcopy_pos "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidcopy_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -400,15 +408,15 @@ def v1alpha_databases_database_key_record_histories_record_history_guidmove_post 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_record_histories_record_history_guidmove_post_with_http_info( self, database_key: "str", record_history_guid: "str", body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "record_history_guid", @@ -437,20 +445,20 @@ def _v1alpha_databases_database_key_record_histories_record_history_guidmove_pos "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -517,15 +525,15 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_post( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -554,20 +562,20 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_post_with "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -645,7 +653,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( self, @@ -654,8 +662,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -691,9 +699,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -701,16 +709,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_history_guid" in params and record_history_guid is not None: path_params["record-history-guid"] = params["record_history_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -774,7 +782,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -783,8 +791,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -820,9 +828,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -830,16 +838,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_history_guid" in params and record_history_guid is not None: path_params["record-history-guid"] = params["record_history_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -898,7 +906,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post_with_http_info( self, @@ -906,8 +914,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -942,9 +950,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -952,12 +960,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_history_guid" in params and record_history_guid is not None: path_params["record-history-guid"] = params["record_history_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1030,7 +1038,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post_with_http_info( self, @@ -1038,8 +1046,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -1074,9 +1082,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -1084,12 +1092,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_history_guid" in params and record_history_guid is not None: path_params["record-history-guid"] = params["record_history_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 6a27c620..4069c658 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class RecordsRecordVersionsApi(ApiBase): +class RecordsRecordVersionsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -55,7 +63,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_version_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -63,8 +71,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", record_version_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -104,9 +112,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -116,12 +124,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_version_guid" in params and record_version_guid is not None: path_params["record-version-guid"] = params["record_version_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -185,7 +193,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -195,8 +203,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi record_version_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -238,9 +246,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -250,16 +258,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_version_guid" in params and record_version_guid is not None: path_params["record-version-guid"] = params["record_version_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -318,7 +326,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_version_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -326,8 +334,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", record_version_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -367,9 +375,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -379,12 +387,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_version_guid" in params and record_version_guid is not None: path_params["record-version-guid"] = params["record_version_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -445,7 +453,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_version_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -453,8 +461,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", record_version_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -494,9 +502,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -506,12 +514,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_version_guid" in params and record_version_guid is not None: path_params["record-version-guid"] = params["record_version_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -572,7 +580,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_version_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -580,8 +588,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi table_guid: "str", record_history_guid: "str", record_version_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -621,9 +629,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -633,12 +641,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi if "record_version_guid" in params and record_version_guid is not None: path_params["record-version-guid"] = params["record_version_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 a06b0b76..5e52205c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaAttributesApi(ApiBase): +class SchemaAttributesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -45,11 +53,15 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_d 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete_with_http_info( - self, database_key: "str", table_guid: "str", attribute_guid: "str", **kwargs - ): + self, + database_key: "str", + table_guid: "str", + attribute_guid: "str", + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -83,9 +95,9 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -93,12 +105,12 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -164,7 +176,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_g x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get_with_http_info( self, @@ -173,8 +185,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -210,9 +222,9 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -220,16 +232,16 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -293,7 +305,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_m x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get_with_http_info( self, @@ -302,8 +314,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -339,9 +351,9 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_meta_attributes_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -349,16 +361,16 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -413,7 +425,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_p 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch_with_http_info( self, @@ -421,8 +433,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ table_guid: "str", attribute_guid: "str", body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -457,9 +469,9 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -467,12 +479,12 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -541,7 +553,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidva 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post_with_http_info( self, @@ -549,8 +561,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv table_guid: "str", attribute_guid: "str", body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -585,9 +597,9 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -595,12 +607,12 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidv if "attribute_guid" in params and attribute_guid is not None: path_params["attribute-guid"] = params["attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -671,7 +683,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_get( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_info( self, @@ -679,8 +691,8 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -710,24 +722,24 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_get_with_http_i "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -780,15 +792,15 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post( data = self._v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_info( database_key, table_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -817,20 +829,20 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_ "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_attributes_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -901,7 +913,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_get( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_http_info( self, @@ -909,8 +921,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -940,24 +952,24 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1006,15 +1018,15 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete_with_http_info( self, database_key: "str", table_guid: "str", meta_attribute_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -1048,9 +1060,9 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -1058,12 +1070,12 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri if "meta_attribute_guid" in params and meta_attribute_guid is not None: path_params["meta-attribute-guid"] = params["meta_attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1129,7 +1141,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get_with_http_info( self, @@ -1138,8 +1150,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri meta_attribute_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -1175,9 +1187,9 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -1185,16 +1197,16 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri if "meta_attribute_guid" in params and meta_attribute_guid is not None: path_params["meta-attribute-guid"] = params["meta_attribute_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1253,7 +1265,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch_with_http_info( self, @@ -1261,8 +1273,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri table_guid: "str", meta_attribute_guid: "str", body: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -1297,9 +1309,9 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -1307,12 +1319,12 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri if "meta_attribute_guid" in params and meta_attribute_guid is not None: path_params["meta-attribute-guid"] = params["meta_attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1385,7 +1397,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post_with_http_info( self, @@ -1393,8 +1405,8 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri table_guid: "str", meta_attribute_guid: "str", body: "Optional[GrantaServerApiSchemaAttributesValidateAttributeRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -1429,9 +1441,9 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri "Missing the required parameter 'meta_attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -1439,12 +1451,12 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri if "meta_attribute_guid" in params and meta_attribute_guid is not None: path_params["meta-attribute-guid"] = params["meta_attribute_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 50304e1a..7332e793 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaConfigurationsApi(ApiBase): +class SchemaConfigurationsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,15 +61,15 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati configuration_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete_with_http_info( self, database_key: "str", configuration_type: "str", configuration_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -95,9 +103,9 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: @@ -105,12 +113,12 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat if "configuration_guid" in params and configuration_guid is not None: path_params["configuration-guid"] = params["configuration_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -164,15 +172,15 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati configuration_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get_with_http_info( self, database_key: "str", configuration_type: "str", configuration_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -206,9 +214,9 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: @@ -216,12 +224,12 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat if "configuration_guid" in params and configuration_guid is not None: path_params["configuration-guid"] = params["configuration_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -281,7 +289,7 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch_with_http_info( self, @@ -289,8 +297,8 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat configuration_type: "str", configuration_guid: "str", body: "Optional[GrantaServerApiSchemaConfigurationsUpdateConfiguration]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -325,9 +333,9 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: @@ -335,12 +343,12 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat if "configuration_guid" in params and configuration_guid is not None: path_params["configuration-guid"] = params["configuration_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -411,15 +419,15 @@ def v1alpha_databases_database_key_configurations_configuration_type_configurati configuration_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get_with_http_info( self, database_key: "str", configuration_type: "str", configuration_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -453,9 +461,9 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat "Missing the required parameter 'configuration_guid' when calling 'v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: path_params["database-key"] = params["database_key"] if "configuration_type" in params and configuration_type is not None: @@ -463,12 +471,12 @@ def _v1alpha_databases_database_key_configurations_configuration_type_configurat if "configuration_guid" in params and configuration_guid is not None: path_params["configuration-guid"] = params["configuration_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -513,11 +521,11 @@ def v1alpha_databases_database_key_configurations_configuration_type_get( data = self._v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info( database_key, configuration_type, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info( - self, database_key: "str", configuration_type: "str", **kwargs - ): + self, database_key: "str", configuration_type: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -545,20 +553,20 @@ def _v1alpha_databases_database_key_configurations_configuration_type_get_with_h "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -612,15 +620,15 @@ def v1alpha_databases_database_key_configurations_configuration_type_post( data = self._v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info( database_key, configuration_type, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info( self, database_key: "str", configuration_type: "str", body: "Optional[GrantaServerApiSchemaConfigurationsCreateConfiguration]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "configuration_type", @@ -649,20 +657,20 @@ def _v1alpha_databases_database_key_configurations_configuration_type_post_with_ "Missing the required parameter 'configuration_type' when calling 'v1alpha_databases_database_key_configurations_configuration_type_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "database_key" in params and database_key is not None: 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 e2790305..440986ea 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaConstantsApi(ApiBase): +class SchemaConstantsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,11 +54,11 @@ def v1alpha_databases_database_key_constants_constant_guid_delete( data = self._v1alpha_databases_database_key_constants_constant_guid_delete_with_http_info( database_key, constant_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", constant_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "constant_guid", @@ -78,20 +86,20 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -143,11 +151,11 @@ def v1alpha_databases_database_key_constants_constant_guid_get( data = self._v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( database_key, constant_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( - self, database_key: "str", constant_guid: "str", **kwargs - ): + self, database_key: "str", constant_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "constant_guid", @@ -175,20 +183,20 @@ def _v1alpha_databases_database_key_constants_constant_guid_get_with_http_info( "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -244,15 +252,15 @@ def v1alpha_databases_database_key_constants_constant_guid_patch( data = self._v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info( database_key, constant_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "constant_guid", @@ -281,20 +289,20 @@ def _v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info "Missing the required parameter 'constant_guid' when calling 'v1alpha_databases_database_key_constants_constant_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -355,11 +363,11 @@ def v1alpha_databases_database_key_constants_get( data = self._v1alpha_databases_database_key_constants_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_constants_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -381,18 +389,18 @@ def _v1alpha_databases_database_key_constants_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_constants_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -445,14 +453,14 @@ def v1alpha_databases_database_key_constants_post( data = self._v1alpha_databases_database_key_constants_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_constants_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaConstantsCreateConstant]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -475,18 +483,18 @@ def _v1alpha_databases_database_key_constants_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_constants_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 99fbb102..88e0cad5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaDataRulesApi(ApiBase): +class SchemaDataRulesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_data_rules_data_rule_guid_delete( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", data_rule_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "data_rule_guid", @@ -76,20 +84,20 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_i "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -135,11 +143,11 @@ def v1alpha_databases_database_key_data_rules_data_rule_guid_get( data = self._v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info( database_key, data_rule_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info( - self, database_key: "str", data_rule_guid: "str", **kwargs - ): + self, database_key: "str", data_rule_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "data_rule_guid", @@ -167,20 +175,20 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -233,15 +241,15 @@ def v1alpha_databases_database_key_data_rules_data_rule_guid_patch( 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "data_rule_guid", @@ -270,20 +278,20 @@ def _v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_in "Missing the required parameter 'data_rule_guid' when calling 'v1alpha_databases_database_key_data_rules_data_rule_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -344,11 +352,11 @@ def v1alpha_databases_database_key_data_rules_get( data = self._v1alpha_databases_database_key_data_rules_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_data_rules_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -370,18 +378,18 @@ def _v1alpha_databases_database_key_data_rules_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_data_rules_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -432,14 +440,14 @@ def v1alpha_databases_database_key_data_rules_post( data = self._v1alpha_databases_database_key_data_rules_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_data_rules_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaDataRulesCreateDataRule]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -462,18 +470,18 @@ def _v1alpha_databases_database_key_data_rules_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_data_rules_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 d0f5a32a..2fea4bbf 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaDatabasesApi(ApiBase): +class SchemaDatabasesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def v1alpha_databases_database_key_get( data = self._v1alpha_databases_database_key_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -69,18 +77,18 @@ def _v1alpha_databases_database_key_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -131,14 +139,14 @@ def v1alpha_databases_database_key_patch( data = self._v1alpha_databases_database_key_patch_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -161,18 +169,18 @@ def _v1alpha_databases_database_key_patch_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -234,11 +242,11 @@ def v1alpha_databases_database_keylock_post( data = self._v1alpha_databases_database_keylock_post_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_keylock_post_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -260,18 +268,18 @@ def _v1alpha_databases_database_keylock_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keylock_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -321,11 +329,11 @@ def v1alpha_databases_database_keyunlock_post( data = self._v1alpha_databases_database_keyunlock_post_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_keyunlock_post_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -347,18 +355,18 @@ def _v1alpha_databases_database_keyunlock_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keyunlock_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -399,9 +407,9 @@ def v1alpha_databases_get(self) -> "GrantaServerApiSchemaDatabasesInfo": GrantaServerApiSchemaDatabasesInfo """ data = self._v1alpha_databases_get_with_http_info(_return_http_data_only=True) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_databases_get_with_http_info(self, **kwargs): + def _v1alpha_databases_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -413,16 +421,16 @@ def _v1alpha_databases_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 075024d0..336d2a59 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaDiscreteTypesDiscreteValuesApi(ApiBase): +class SchemaDiscreteTypesDiscreteValuesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -52,15 +60,15 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va discrete_value_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -94,9 +102,9 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -104,12 +112,12 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v if "discrete_value_guid" in params and discrete_value_guid is not None: path_params["discrete-value-guid"] = params["discrete_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -167,15 +175,15 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va discrete_value_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -209,9 +217,9 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -219,12 +227,12 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v if "discrete_value_guid" in params and discrete_value_guid is not None: path_params["discrete-value-guid"] = params["discrete_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -283,7 +291,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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, @@ -291,8 +299,8 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v discrete_type_guid: "str", discrete_value_guid: "str", body: "Optional[GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -327,9 +335,9 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_value_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -337,12 +345,12 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v if "discrete_value_guid" in params and discrete_value_guid is not None: path_params["discrete-value-guid"] = params["discrete_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -404,11 +412,11 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -436,20 +444,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -502,15 +510,15 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -539,20 +547,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -619,15 +627,15 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put_with_http_info( database_key, discrete_type_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put_with_http_info( self, database_key: "str", discrete_type_guid: "str", body: "Optional[GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -656,20 +664,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_put'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -731,11 +739,11 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -763,20 +771,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_valuesfind_unused_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 08579133..b66727c5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaDiscreteTypesApi(ApiBase): +class SchemaDiscreteTypesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -76,20 +84,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -139,11 +147,11 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_get( data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_http_info( database_key, discrete_type_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_http_info( - self, database_key: "str", discrete_type_guid: "str", **kwargs - ): + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -171,20 +179,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_get_with_h "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -237,15 +245,15 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch( 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -274,20 +282,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch_with "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -349,11 +357,11 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get( data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_with_http_info( database_key, discrete_type_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_with_http_info( - self, database_key: "str", discrete_type_guid: "str", **kwargs - ): + self, database_key: "str", discrete_type_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "discrete_type_guid", @@ -381,20 +389,20 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get_ "Missing the required parameter 'discrete_type_guid' when calling 'v1alpha_databases_database_key_discrete_types_discrete_type_guidusages_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -442,11 +450,11 @@ def v1alpha_databases_database_key_discrete_types_get( data = self._v1alpha_databases_database_key_discrete_types_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_discrete_types_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -468,18 +476,18 @@ def _v1alpha_databases_database_key_discrete_types_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_discrete_types_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -531,14 +539,14 @@ def v1alpha_databases_database_key_discrete_types_post( data = self._v1alpha_databases_database_key_discrete_types_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_discrete_types_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaDiscreteTypesCreateDiscreteType]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -561,18 +569,18 @@ def _v1alpha_databases_database_key_discrete_types_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_discrete_types_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 4d955eaf..0f37cf15 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaExportersApi(ApiBase): +class SchemaExportersApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_delete( data = self._v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -76,20 +84,20 @@ def _v1alpha_databases_database_key_exporters_folder_guid_delete_with_http_info( "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -135,11 +143,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -173,9 +181,9 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -183,12 +191,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_delete if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -234,11 +242,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get( data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -272,9 +280,9 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_wi "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -282,12 +290,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_get_wi if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -342,7 +350,7 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_with_http_info( self, @@ -350,8 +358,8 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -386,9 +394,9 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -396,12 +404,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guid_patch_ if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -464,11 +472,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_g data = self._v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -502,9 +510,9 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_ "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -512,12 +520,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidexport_ if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -568,7 +576,7 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_pos 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post_with_http_info( self, @@ -576,8 +584,8 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -612,9 +620,9 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -622,12 +630,12 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_file_guidmove_po if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -689,11 +697,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_get( data = self._v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -721,20 +729,20 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_get_with_http_in "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -768,7 +776,7 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_post( *, database_key: "str", folder_guid: "str", - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": """Create a new Exporter File. @@ -779,7 +787,7 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[IO, pathlib.Path] + file: Union[BinaryIO, pathlib.Path] description: str Returns @@ -789,16 +797,16 @@ def v1alpha_databases_database_key_exporters_folder_guid_files_post( 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 ) - return data # type: ignore[return-value] + 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[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -828,20 +836,20 @@ def _v1alpha_databases_database_key_exporters_folder_guid_files_post_with_http_i "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_files_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + 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: @@ -898,11 +906,11 @@ def v1alpha_databases_database_key_exporters_folder_guid_get( data = self._v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -930,20 +938,20 @@ def _v1alpha_databases_database_key_exporters_folder_guid_get_with_http_info( "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -996,15 +1004,15 @@ def v1alpha_databases_database_key_exporters_folder_guid_patch( data = self._v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( database_key, folder_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1033,20 +1041,20 @@ def _v1alpha_databases_database_key_exporters_folder_guid_patch_with_http_info( "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1108,11 +1116,11 @@ def v1alpha_databases_database_key_exporters_folder_guidchild_folders_get( data = self._v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1140,20 +1148,20 @@ def _v1alpha_databases_database_key_exporters_folder_guidchild_folders_get_with_ "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guidchild_folders_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1206,15 +1214,15 @@ def v1alpha_databases_database_key_exporters_folder_guidmove_post( data = self._v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_info( database_key, folder_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_info( self, database_key: "str", folder_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1243,20 +1251,20 @@ def _v1alpha_databases_database_key_exporters_folder_guidmove_post_with_http_inf "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_exporters_folder_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1317,11 +1325,11 @@ def v1alpha_databases_database_key_exporters_get( data = self._v1alpha_databases_database_key_exporters_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exporters_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1343,18 +1351,18 @@ def _v1alpha_databases_database_key_exporters_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_exporters_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1405,14 +1413,14 @@ def v1alpha_databases_database_key_exporters_post( data = self._v1alpha_databases_database_key_exporters_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -1435,18 +1443,18 @@ def _v1alpha_databases_database_key_exporters_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_exporters_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1509,11 +1517,11 @@ def v1alpha_databases_database_key_exportersre_fetch_post( database_key, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1535,18 +1543,18 @@ def _v1alpha_databases_database_key_exportersre_fetch_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_exportersre_fetch_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1595,11 +1603,11 @@ def v1alpha_databases_database_key_exportersroot_folder_get( data = self._v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1621,18 +1629,18 @@ def _v1alpha_databases_database_key_exportersroot_folder_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_exportersroot_folder_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 98d0cb50..b7e2c131 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaExpressionsApi(ApiBase): +class SchemaExpressionsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -45,11 +53,15 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete_with_http_info( - self, database_key: "str", table_guid: "str", expression_guid: "str", **kwargs - ): + self, + database_key: "str", + table_guid: "str", + expression_guid: "str", + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -83,9 +95,9 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -93,12 +105,12 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui if "expression_guid" in params and expression_guid is not None: path_params["expression-guid"] = params["expression_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -160,7 +172,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get_with_http_info( self, @@ -169,8 +181,8 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui expression_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -206,9 +218,9 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -216,16 +228,16 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui if "expression_guid" in params and expression_guid is not None: path_params["expression-guid"] = params["expression_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -280,7 +292,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch_with_http_info( self, @@ -288,8 +300,8 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui table_guid: "str", expression_guid: "str", body: "Optional[GrantaServerApiSchemaExpressionsUpdateExpression]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -324,9 +336,9 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui "Missing the required parameter 'expression_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -334,12 +346,12 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_expression_gui if "expression_guid" in params and expression_guid is not None: path_params["expression-guid"] = params["expression_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -410,7 +422,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_get( data = self._v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_info( database_key, table_guid, mode, x_ansys_vc_mode, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_info( self, @@ -418,8 +430,8 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_ table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -449,24 +461,24 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_ "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -519,15 +531,15 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post( data = self._v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_info( database_key, table_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaExpressionsCreateExpression]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -556,20 +568,20 @@ def _v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_expressions_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 7b9f00e2..8c389c3d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaHelpFilesApi(ApiBase): +class SchemaHelpFilesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_delete( data = self._v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -76,20 +84,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_in "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -135,11 +143,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_dele 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -173,9 +181,9 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -183,12 +191,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_del if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -234,11 +242,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get( data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -272,9 +280,9 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -282,12 +290,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -342,7 +350,7 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patc 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch_with_http_info( self, @@ -350,8 +358,8 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -386,9 +394,9 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -396,12 +404,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_pat if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -464,11 +472,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpor data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -502,9 +510,9 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpo "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -512,12 +520,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexpo if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -568,7 +576,7 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_ 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post_with_http_info( self, @@ -576,8 +584,8 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -612,9 +620,9 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -622,12 +630,12 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidmove if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -689,11 +697,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_get( data = self._v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -721,20 +729,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -768,7 +776,7 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_post( *, database_key: "str", folder_guid: "str", - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": """Create a new Help File. @@ -779,7 +787,7 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[IO, pathlib.Path] + file: Union[BinaryIO, pathlib.Path] description: str Returns @@ -789,16 +797,16 @@ def v1alpha_databases_database_key_help_folders_folder_guid_files_post( 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[return-value] + 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[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -828,20 +836,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_files_post_with_htt "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_files_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + 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: @@ -898,11 +906,11 @@ def v1alpha_databases_database_key_help_folders_folder_guid_get( data = self._v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -930,20 +938,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info( "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -996,15 +1004,15 @@ def v1alpha_databases_database_key_help_folders_folder_guid_patch( data = self._v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_info( database_key, folder_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1033,20 +1041,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_inf "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1108,11 +1116,11 @@ def v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get( data = self._v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1140,20 +1148,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_wi "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1206,15 +1214,15 @@ def v1alpha_databases_database_key_help_folders_folder_guidmove_post( data = self._v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info( database_key, folder_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info( self, database_key: "str", folder_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1243,20 +1251,20 @@ def _v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_ "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_help_folders_folder_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1317,11 +1325,11 @@ def v1alpha_databases_database_key_help_folders_get( data = self._v1alpha_databases_database_key_help_folders_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1343,18 +1351,18 @@ def _v1alpha_databases_database_key_help_folders_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_help_folders_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1405,14 +1413,14 @@ def v1alpha_databases_database_key_help_folders_post( data = self._v1alpha_databases_database_key_help_folders_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_folders_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -1435,18 +1443,18 @@ def _v1alpha_databases_database_key_help_folders_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_help_folders_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1507,11 +1515,11 @@ def v1alpha_databases_database_key_help_foldersroot_folder_get( data = self._v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1533,18 +1541,18 @@ def _v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_help_foldersroot_folder_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 642b7456..2845a5e7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaHomePagesApi(ApiBase): +class SchemaHomePagesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -44,11 +52,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_delete( data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -76,20 +84,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_delete_with_ht "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -135,11 +143,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -173,9 +181,9 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -183,12 +191,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -234,11 +242,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -272,9 +280,9 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -282,12 +290,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -342,7 +350,7 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid 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 ) - return data # type: ignore[return-value] + 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, @@ -350,8 +358,8 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesUpdateFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -386,9 +394,9 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -396,12 +404,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -464,11 +472,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get_with_http_info( database_key, folder_guid, file_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get_with_http_info( - self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", file_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -502,9 +510,9 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidexport_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -512,12 +520,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -568,7 +576,7 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guid 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 ) - return data # type: ignore[return-value] + 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, @@ -576,8 +584,8 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui folder_guid: "str", file_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -612,9 +620,9 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui "Missing the required parameter 'file_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -622,12 +630,12 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_file_gui if "file_guid" in params and file_guid is not None: path_params["file-guid"] = params["file_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -689,11 +697,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_get( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -721,20 +729,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_get_with "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -768,7 +776,7 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_post( *, database_key: "str", folder_guid: "str", - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, ) -> "Union[GrantaServerApiSchemaFilesFileHeader, None]": """Create a new Home Page File. @@ -779,7 +787,7 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_post( ---------- database_key: str folder_guid: str - file: Union[IO, pathlib.Path] + file: Union[BinaryIO, pathlib.Path] description: str Returns @@ -789,16 +797,16 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_files_post( 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[return-value] + 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[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, description: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -828,20 +836,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_files_post_wit "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_files_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + 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: @@ -898,11 +906,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_get( data = self._v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_info( database_key, folder_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_info( - self, database_key: "str", folder_guid: "str", **kwargs - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -930,20 +938,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_get_with_http_ "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -996,15 +1004,15 @@ def v1alpha_databases_database_key_home_page_folders_folder_guid_patch( 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1033,20 +1041,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guid_patch_with_htt "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1108,11 +1116,11 @@ def v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_ge 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", folder_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1140,20 +1148,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_g "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guidchild_folders_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1206,15 +1214,15 @@ def v1alpha_databases_database_key_home_page_folders_folder_guidmove_post( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_http_info( self, database_key: "str", folder_guid: "str", body: "Optional[GrantaServerApiSchemaFilesMoveFolder]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "folder_guid", @@ -1243,20 +1251,20 @@ def _v1alpha_databases_database_key_home_page_folders_folder_guidmove_post_with_ "Missing the required parameter 'folder_guid' when calling 'v1alpha_databases_database_key_home_page_folders_folder_guidmove_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1319,11 +1327,11 @@ def v1alpha_databases_database_key_home_page_folders_get( database_key, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1345,18 +1353,18 @@ def _v1alpha_databases_database_key_home_page_folders_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_home_page_folders_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1409,14 +1417,14 @@ def v1alpha_databases_database_key_home_page_folders_post( database_key, body, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaFilesCreateFolder]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -1439,18 +1447,18 @@ def _v1alpha_databases_database_key_home_page_folders_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_home_page_folders_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1511,11 +1519,11 @@ def v1alpha_databases_database_key_home_page_foldersroot_folder_get( data = self._v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -1537,18 +1545,18 @@ def _v1alpha_databases_database_key_home_page_foldersroot_folder_get_with_http_i "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_home_page_foldersroot_folder_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 7675d485..5c711c3f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaLayoutSectionsApi(ApiBase): +class SchemaLayoutSectionsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -63,7 +71,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get_with_http_info( self, @@ -73,8 +81,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio show_full_detail: "Optional[bool]" = None, mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -111,9 +119,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -121,18 +129,18 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + 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 = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -187,7 +195,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post_with_http_info( database_key, table_guid, layout_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post_with_http_info( self, @@ -195,8 +203,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio table_guid: "str", layout_guid: "str", body: "Optional[GrantaServerApiSchemaLayoutsCreateLayoutSection]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -231,9 +239,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -241,12 +249,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -315,7 +323,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put_with_http_info( self, @@ -323,8 +331,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio table_guid: "str", layout_guid: "str", body: "Optional[GrantaServerApiSchemaLayoutsReorderSectionsInfo]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -359,9 +367,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_put'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -369,12 +377,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -447,7 +455,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section section_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -455,8 +463,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio table_guid: "str", layout_guid: "str", section_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -496,9 +504,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -508,12 +516,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "section_guid" in params and section_guid is not None: path_params["section-guid"] = params["section_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -581,7 +589,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -592,8 +600,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio show_full_detail: "Optional[bool]" = None, mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -636,9 +644,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -648,18 +656,18 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "section_guid" in params and section_guid is not None: path_params["section-guid"] = params["section_guid"] - query_params = [] + 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 = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -721,7 +729,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section item_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -730,8 +738,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio layout_guid: "str", section_guid: "str", item_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -777,9 +785,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -791,12 +799,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "item_guid" in params and item_guid is not None: path_params["item-guid"] = params["item_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -856,7 +864,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_section body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -865,8 +873,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio layout_guid: "str", section_guid: "str", body: "Optional[GrantaServerApiSchemaLayoutsNewLayoutItem]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -907,9 +915,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio "Missing the required parameter 'section_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sections_section_guid_items_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -919,12 +927,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_sectio if "section_guid" in params and section_guid is not None: path_params["section-guid"] = params["section_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 922a6809..17bb805d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaLayoutsApi(ApiBase): +class SchemaLayoutsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,7 +61,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_get( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info( self, @@ -61,8 +69,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -92,24 +100,24 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_get_with_http_info "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -158,11 +166,11 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete( data = self._v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete_with_http_info( database_key, table_guid, layout_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete_with_http_info( - self, database_key: "str", table_guid: "str", layout_guid: "str", **kwargs - ): + self, database_key: "str", table_guid: "str", layout_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_guid", @@ -196,9 +204,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -206,12 +214,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_delete if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -276,7 +284,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get( x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_with_http_info( self, @@ -286,8 +294,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_wi show_full_detail: "Optional[bool]" = None, mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -324,9 +332,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_wi "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -334,18 +342,18 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_get_wi if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + 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 = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -400,7 +408,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_with_http_info( self, @@ -408,8 +416,8 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ table_guid: "str", layout_guid: "str", body: "Optional[GrantaServerApiSchemaLayoutsUpdateLayout]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -444,9 +452,9 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ "Missing the required parameter 'layout_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -454,12 +462,12 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_ if "layout_guid" in params and layout_guid is not None: path_params["layout-guid"] = params["layout_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -526,15 +534,15 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_post( data = self._v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_info( database_key, table_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaLayoutsCreateLayout]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -563,20 +571,20 @@ def _v1alpha_databases_database_key_tables_table_guid_layouts_post_with_http_inf "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_layouts_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 904aded8..8fde2655 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaParametersApi(ApiBase): +class SchemaParametersApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def v1alpha_databases_database_key_parameters_get( data = self._v1alpha_databases_database_key_parameters_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_parameters_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -69,18 +77,18 @@ def _v1alpha_databases_database_key_parameters_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_parameters_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -128,11 +136,11 @@ def v1alpha_databases_database_key_parameters_parameter_guid_delete( data = self._v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_info( database_key, parameter_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", parameter_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -160,20 +168,20 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_i "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -223,11 +231,11 @@ def v1alpha_databases_database_key_parameters_parameter_guid_get( data = self._v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info( database_key, parameter_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info( - self, database_key: "str", parameter_guid: "str", **kwargs - ): + self, database_key: "str", parameter_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -255,20 +263,20 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -322,15 +330,15 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa parameter_value_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete_with_http_info( self, database_key: "str", parameter_guid: "str", parameter_value_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -367,9 +375,9 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -377,12 +385,12 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p if "parameter_value_guid" in params and parameter_value_guid is not None: path_params["parameter-value-guid"] = params["parameter_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -436,15 +444,15 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa parameter_value_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -481,9 +489,9 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -491,12 +499,12 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p if "parameter_value_guid" in params and parameter_value_guid is not None: path_params["parameter-value-guid"] = params["parameter_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -555,7 +563,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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, @@ -563,8 +571,8 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p parameter_guid: "str", parameter_value_guid: "str", body: "Optional[GrantaServerApiSchemaParametersUpdateParameterValue]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -602,9 +610,9 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p "Missing the required parameter 'parameter_value_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -612,12 +620,12 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p if "parameter_value_guid" in params and parameter_value_guid is not None: path_params["parameter-value-guid"] = params["parameter_value_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -684,15 +692,15 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post_with_http_info( self, database_key: "str", parameter_guid: "str", body: "Optional[GrantaServerApiSchemaParametersCreateParameterValue]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -721,20 +729,20 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -801,15 +809,15 @@ def v1alpha_databases_database_key_parameters_parameter_guid_patch( data = self._v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_info( database_key, parameter_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -838,20 +846,20 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_in "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -913,11 +921,11 @@ def v1alpha_databases_database_key_parameters_parameter_guidusages_get( data = self._v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_http_info( database_key, parameter_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", parameter_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "parameter_guid", @@ -945,20 +953,20 @@ def _v1alpha_databases_database_key_parameters_parameter_guidusages_get_with_htt "Missing the required parameter 'parameter_guid' when calling 'v1alpha_databases_database_key_parameters_parameter_guidusages_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1009,14 +1017,14 @@ def v1alpha_databases_database_key_parameters_post( data = self._v1alpha_databases_database_key_parameters_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_parameters_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaParametersCreateParameter]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -1039,18 +1047,18 @@ def _v1alpha_databases_database_key_parameters_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_parameters_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 2187c407..65b5a449 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaProfileTablesApi(ApiBase): +class SchemaProfileTablesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def v1alpha_profiles_profile_guid_profile_tables_get( data = self._v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( profile_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( - self, profile_guid: "str", **kwargs - ): + self, profile_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "profile_guid", "_return_http_data_only", @@ -69,18 +77,18 @@ def _v1alpha_profiles_profile_guid_profile_tables_get_with_http_info( "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -132,14 +140,14 @@ def v1alpha_profiles_profile_guid_profile_tables_post( data = self._v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( profile_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "profile_guid", "body", @@ -162,18 +170,18 @@ def _v1alpha_profiles_profile_guid_profile_tables_post_with_http_info( "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -235,11 +243,11 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete( data = self._v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with_http_info( profile_guid, profile_table_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with_http_info( - self, profile_guid: "str", profile_table_guid: "str", **kwargs - ): + self, profile_guid: "str", profile_table_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "profile_guid", "profile_table_guid", @@ -267,20 +275,20 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete_with "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -325,11 +333,11 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, profile_guid: "str", profile_table_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "profile_guid", "profile_table_guid", @@ -357,20 +365,20 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get_with_ht "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -424,15 +432,15 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch( data = self._v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_http_info( profile_guid, profile_table_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_http_info( self, profile_guid: "str", profile_table_guid: "str", body: "Optional[GrantaServerApiSchemaProfileTablesUpdateProfileTable]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "profile_guid", "profile_table_guid", @@ -461,20 +469,20 @@ def _v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_ "Missing the required parameter 'profile_table_guid' when calling 'v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 d93ce30f..717f50ef 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaProfilesApi(ApiBase): +class SchemaProfilesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,9 +45,9 @@ def v1alpha_profiles_get( Union[GrantaServerApiSchemaProfilesAllProfilesInfo, None] """ data = self._v1alpha_profiles_get_with_http_info(_return_http_data_only=True) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_profiles_get_with_http_info(self, **kwargs): + def _v1alpha_profiles_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -51,16 +59,16 @@ def _v1alpha_profiles_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -109,13 +117,13 @@ def v1alpha_profiles_patch( data = self._v1alpha_profiles_patch_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_patch_with_http_info( self, body: "Optional[GrantaServerApiSchemaProfilesUpdateAllProfilesInfo]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -132,16 +140,16 @@ def _v1alpha_profiles_patch_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -202,13 +210,13 @@ def v1alpha_profiles_post( data = self._v1alpha_profiles_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_post_with_http_info( self, body: "Optional[GrantaServerApiSchemaProfilesCreateProfile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -225,16 +233,16 @@ def _v1alpha_profiles_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -292,11 +300,11 @@ def v1alpha_profiles_profile_guid_delete(self, *, profile_guid: "str") -> "None" data = self._v1alpha_profiles_profile_guid_delete_with_http_info( profile_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_delete_with_http_info( - self, profile_guid: "str", **kwargs - ): + self, profile_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "profile_guid", "_return_http_data_only", @@ -318,18 +326,18 @@ def _v1alpha_profiles_profile_guid_delete_with_http_info( "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -374,11 +382,11 @@ def v1alpha_profiles_profile_guid_get( data = self._v1alpha_profiles_profile_guid_get_with_http_info( profile_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_get_with_http_info( - self, profile_guid: "str", **kwargs - ): + self, profile_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "profile_guid", "_return_http_data_only", @@ -400,18 +408,18 @@ def _v1alpha_profiles_profile_guid_get_with_http_info( "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -463,14 +471,14 @@ def v1alpha_profiles_profile_guid_patch( data = self._v1alpha_profiles_profile_guid_patch_with_http_info( profile_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_profiles_profile_guid_patch_with_http_info( self, profile_guid: "str", body: "Optional[GrantaServerApiSchemaProfilesUpdateProfile]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "profile_guid", "body", @@ -493,18 +501,18 @@ def _v1alpha_profiles_profile_guid_patch_with_http_info( "Missing the required parameter 'profile_guid' when calling 'v1alpha_profiles_profile_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 487a8047..01bc00e4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaRecordLinkGroupsApi(ApiBase): +class SchemaRecordLinkGroupsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,7 +61,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_get( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_with_http_info( self, @@ -61,8 +69,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_wit table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -92,24 +100,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_wit "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -162,15 +170,15 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_post( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -199,20 +207,20 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_wi "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groups_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -285,7 +293,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l body, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -293,8 +301,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ table_guid: "str", record_link_group_guid: "str", body: "Optional[GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -332,9 +340,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -342,12 +350,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -421,7 +429,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l record_link_group_type, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -429,8 +437,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ table_guid: "str", record_link_group_guid: "str", record_link_group_type: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -476,9 +484,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -488,12 +496,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -558,7 +566,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_l x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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( self, @@ -568,8 +576,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ record_link_group_type: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -617,9 +625,9 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -629,16 +637,16 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_ 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -695,7 +703,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_l 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get_with_http_info( self, @@ -703,8 +711,8 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_ table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -734,24 +742,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_ "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 33127ce3..c4be718a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaStandardNamesApi(ApiBase): +class SchemaStandardNamesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def v1alpha_databases_database_key_standard_names_get( data = self._v1alpha_databases_database_key_standard_names_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_standard_names_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -69,18 +77,18 @@ def _v1alpha_databases_database_key_standard_names_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_standard_names_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -131,14 +139,14 @@ def v1alpha_databases_database_key_standard_names_post( data = self._v1alpha_databases_database_key_standard_names_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -161,18 +169,18 @@ def _v1alpha_databases_database_key_standard_names_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_standard_names_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -234,11 +242,11 @@ def v1alpha_databases_database_key_standard_names_standard_name_guid_delete( data = self._v1alpha_databases_database_key_standard_names_standard_name_guid_delete_with_http_info( database_key, standard_name_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_with_http_info( - self, database_key: "str", standard_name_guid: "str", **kwargs - ): + self, database_key: "str", standard_name_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "standard_name_guid", @@ -266,20 +274,20 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_delete_wit "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -325,11 +333,11 @@ def v1alpha_databases_database_key_standard_names_standard_name_guid_get( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", standard_name_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "standard_name_guid", @@ -357,20 +365,20 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_get_with_h "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -423,15 +431,15 @@ def v1alpha_databases_database_key_standard_names_standard_name_guid_patch( data = self._v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with_http_info( database_key, standard_name_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with_http_info( self, database_key: "str", standard_name_guid: "str", body: "Optional[GrantaServerApiSchemaStandardNamesUpdateStandardName]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "standard_name_guid", @@ -460,20 +468,20 @@ def _v1alpha_databases_database_key_standard_names_standard_name_guid_patch_with "Missing the required parameter 'standard_name_guid' when calling 'v1alpha_databases_database_key_standard_names_standard_name_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 32fc1430..a645d664 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaSubsetsApi(ApiBase): +class SchemaSubsetsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,7 +61,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_get( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info( self, @@ -61,8 +69,8 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -92,24 +100,24 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_get_with_http_info "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -162,15 +170,15 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_post( data = self._v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_info( database_key, table_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaSubsetsCreateSubset]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -199,20 +207,20 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_inf "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -275,11 +283,11 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete( data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete_with_http_info( database_key, table_guid, subset_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete_with_http_info( - self, database_key: "str", table_guid: "str", subset_guid: "str", **kwargs - ): + self, database_key: "str", table_guid: "str", subset_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_guid", @@ -313,9 +321,9 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -323,12 +331,12 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_delete if "subset_guid" in params and subset_guid is not None: path_params["subset-guid"] = params["subset_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -390,7 +398,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get( x_ansys_vc_mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_with_http_info( self, @@ -399,8 +407,8 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_wi subset_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -436,9 +444,9 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_wi "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -446,16 +454,16 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_get_wi if "subset_guid" in params and subset_guid is not None: path_params["subset-guid"] = params["subset_guid"] - query_params = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -510,7 +518,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch( 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 ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_with_http_info( self, @@ -518,8 +526,8 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ table_guid: "str", subset_guid: "str", body: "Optional[GrantaServerApiSchemaSubsetsUpdateSubset]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -554,9 +562,9 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -564,12 +572,12 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ if "subset_guid" in params and subset_guid is not None: path_params["subset-guid"] = params["subset_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -638,7 +646,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_s data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post_with_http_info( database_key, table_guid, subset_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post_with_http_info( self, @@ -646,8 +654,8 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ table_guid: "str", subset_guid: "str", body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -682,9 +690,9 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -692,12 +700,12 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_ if "subset_guid" in params and subset_guid is not None: path_params["subset-guid"] = params["subset_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -761,7 +769,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_f data = self._v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post_with_http_info( database_key, table_guid, subset_guid, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post_with_http_info( self, @@ -769,8 +777,8 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ table_guid: "str", subset_guid: "str", body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -805,9 +813,9 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -815,12 +823,12 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_ if "subset_guid" in params and subset_guid is not None: path_params["subset-guid"] = params["subset_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 9f7f7e06..de232213 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaTablesApi(ApiBase): +class SchemaTablesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -51,15 +59,15 @@ def v1alpha_databases_database_key_tables_get( data = self._v1alpha_databases_database_key_tables_get_with_http_info( database_key, mode, x_ansys_vc_mode, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_get_with_http_info( self, database_key: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "mode", @@ -83,22 +91,22 @@ def _v1alpha_databases_database_key_tables_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -149,14 +157,14 @@ def v1alpha_databases_database_key_tables_post( data = self._v1alpha_databases_database_key_tables_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -179,18 +187,18 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -252,11 +260,11 @@ def v1alpha_databases_database_key_tables_table_guid_delete( data = self._v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( database_key, table_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( - self, database_key: "str", table_guid: "str", **kwargs - ): + self, database_key: "str", table_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_guid", @@ -284,20 +292,20 @@ def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -362,7 +370,7 @@ def v1alpha_databases_database_key_tables_table_guid_get( _return_http_data_only=True, ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( self, @@ -370,8 +378,8 @@ def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( table_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -401,24 +409,24 @@ def _v1alpha_databases_database_key_tables_table_guid_get_with_http_info( "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -473,15 +481,15 @@ def v1alpha_databases_database_key_tables_table_guid_patch( database_key, table_guid, body, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( self, database_key: "str", table_guid: "str", body: "Optional[GrantaServerApiSchemaTablesUpdateTable]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -510,20 +518,20 @@ def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -585,11 +593,11 @@ def v1alpha_databases_database_key_tables_table_guidenable_version_control_post( data = self._v1alpha_databases_database_key_tables_table_guidenable_version_control_post_with_http_info( database_key, table_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post_with_http_info( - self, database_key: "str", table_guid: "str", **kwargs - ): + self, database_key: "str", table_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_guid", @@ -617,20 +625,20 @@ def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidenable_version_control_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -680,11 +688,11 @@ def v1alpha_databases_database_key_tables_table_guidrelease_post( data = self._v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info( database_key, table_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", table_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "table_guid", @@ -712,20 +720,20 @@ def _v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidrelease_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 95c10736..2032c5e5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaUnitsApi(ApiBase): +class SchemaUnitsApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,11 +51,11 @@ def v1alpha_databases_database_key_unit_systems_get( data = self._v1alpha_databases_database_key_unit_systems_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_unit_systems_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -69,18 +77,18 @@ def _v1alpha_databases_database_key_unit_systems_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_unit_systems_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -131,14 +139,14 @@ def v1alpha_databases_database_key_unit_systems_post( data = self._v1alpha_databases_database_key_unit_systems_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_unit_systems_post_with_http_info( self, database_key: "str", body: "Optional[GrantaServerApiSchemaUnitsCreateUnitSystem]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -161,18 +169,18 @@ def _v1alpha_databases_database_key_unit_systems_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_unit_systems_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -234,11 +242,11 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_delete( 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 ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_system_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_system_guid", @@ -266,20 +274,20 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_delete_with_ht "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -325,11 +333,11 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_get( data = self._v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_info( database_key, unit_system_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_info( - self, database_key: "str", unit_system_guid: "str", **kwargs - ): + self, database_key: "str", unit_system_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_system_guid", @@ -357,20 +365,20 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_get_with_http_ "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -423,15 +431,15 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_patch( 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 ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "unit_system_guid", @@ -460,20 +468,20 @@ def _v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_htt "Missing the required parameter 'unit_system_guid' when calling 'v1alpha_databases_database_key_unit_systems_unit_system_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -534,11 +542,11 @@ def v1alpha_databases_database_key_units_get( data = self._v1alpha_databases_database_key_units_get_with_http_info( database_key, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_units_get_with_http_info( - self, database_key: "str", **kwargs - ): + self, database_key: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "_return_http_data_only", @@ -560,18 +568,18 @@ def _v1alpha_databases_database_key_units_get_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_units_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -622,14 +630,14 @@ def v1alpha_databases_database_key_units_post( data = self._v1alpha_databases_database_key_units_post_with_http_info( database_key, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -652,18 +660,18 @@ def _v1alpha_databases_database_key_units_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_units_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -727,11 +735,11 @@ def v1alpha_databases_database_key_units_unit_guid_delete( database_key, unit_guid, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -759,20 +767,20 @@ def _v1alpha_databases_database_key_units_unit_guid_delete_with_http_info( "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -818,11 +826,11 @@ def v1alpha_databases_database_key_units_unit_guid_equivalent_units_get( data = self._v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_http_info( database_key, unit_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -850,20 +858,20 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_get_with_ht "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_equivalent_units_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -922,7 +930,7 @@ def v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system_ equivalent_unit_guid, _return_http_data_only=True, ) - return data # type: ignore[return-value] + 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, @@ -930,8 +938,8 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system unit_guid: "str", unit_system_guid: "str", equivalent_unit_guid: "str", - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -974,9 +982,9 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system "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'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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: @@ -986,12 +994,12 @@ def _v1alpha_databases_database_key_units_unit_guid_equivalent_units_unit_system if "equivalent_unit_guid" in params and equivalent_unit_guid is not None: path_params["equivalent-unit-guid"] = params["equivalent_unit_guid"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -1035,11 +1043,11 @@ def v1alpha_databases_database_key_units_unit_guid_get( data = self._v1alpha_databases_database_key_units_unit_guid_get_with_http_info( database_key, unit_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -1067,20 +1075,20 @@ def _v1alpha_databases_database_key_units_unit_guid_get_with_http_info( "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1135,15 +1143,15 @@ def v1alpha_databases_database_key_units_unit_guid_patch( database_key, unit_guid, body, _return_http_data_only=True ) ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( self, database_key: "str", unit_guid: "str", body: "Optional[GrantaServerApiSchemaUnitsUpdateUnit]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -1172,20 +1180,20 @@ def _v1alpha_databases_database_key_units_unit_guid_patch_with_http_info( "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guid_patch'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -1247,11 +1255,11 @@ def v1alpha_databases_database_key_units_unit_guidcompatible_units_get( data = self._v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_http_info( database_key, unit_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -1279,20 +1287,20 @@ def _v1alpha_databases_database_key_units_unit_guidcompatible_units_get_with_htt "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guidcompatible_units_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -1340,11 +1348,11 @@ def v1alpha_databases_database_key_units_unit_guidusages_get( data = self._v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( database_key, unit_guid, _return_http_data_only=True ) - return data # type: ignore[return-value] + 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 - ): + self, database_key: "str", unit_guid: "str", **kwargs: Any + ) -> Any: all_params = [ "database_key", "unit_guid", @@ -1372,20 +1380,20 @@ def _v1alpha_databases_database_key_units_unit_guidusages_get_with_http_info( "Missing the required parameter 'unit_guid' when calling 'v1alpha_databases_database_key_units_unit_guidusages_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 dd04d393..9c011883 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SchemaApi(ApiBase): +class SchemaApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,9 +45,9 @@ def v1alpha_schema_mi_version_get(self) -> "GrantaServerApiAdminMiVersion": data = self._v1alpha_schema_mi_version_get_with_http_info( _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_schema_mi_version_get_with_http_info(self, **kwargs): + def _v1alpha_schema_mi_version_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -51,16 +59,16 @@ def _v1alpha_schema_mi_version_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' 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 b6dc74f7..7eb821b5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SearchApi(ApiBase): +class SearchApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -60,7 +68,7 @@ def v1alpha_databases_database_key_tables_table_guidsearch_post( mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( self, @@ -69,8 +77,8 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_guid", @@ -101,24 +109,24 @@ def _v1alpha_databases_database_key_tables_table_guidsearch_post_with_http_info( "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidsearch_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -193,7 +201,7 @@ def v1alpha_databases_database_key_tables_table_identitysearch_post( mode, _return_http_data_only=True, ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_info( self, @@ -202,8 +210,8 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "table_identity", @@ -234,24 +242,24 @@ def _v1alpha_databases_database_key_tables_table_identitysearch_post_with_http_i "Missing the required parameter 'table_identity' when calling 'v1alpha_databases_database_key_tables_table_identitysearch_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -319,7 +327,7 @@ def v1alpha_databases_database_keysearch_post( data = self._v1alpha_databases_database_keysearch_post_with_http_info( database_key, body, x_ansys_vc_mode, mode, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_databases_database_keysearch_post_with_http_info( self, @@ -327,8 +335,8 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( body: "Optional[GrantaServerApiSearchSearchRequest]" = None, x_ansys_vc_mode: "Optional[str]" = None, mode: "Optional[str]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "database_key", "body", @@ -353,22 +361,22 @@ def _v1alpha_databases_database_keysearch_post_with_http_info( "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_keysearch_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + 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 = [] + query_params: List[Any] = [] if "mode" in params and mode is not None: query_params.append(("mode", params["mode"])) - header_params = {} + 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 = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -430,14 +438,14 @@ def v1alpha_integration_schemas_schemasearch_post( data = self._v1alpha_integration_schemas_schemasearch_post_with_http_info( schema, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_integration_schemas_schemasearch_post_with_http_info( self, schema: "str", body: "Optional[GrantaServerApiSearchSearchRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "schema", "body", @@ -460,18 +468,18 @@ def _v1alpha_integration_schemas_schemasearch_post_with_http_info( "Missing the required parameter 'schema' when calling 'v1alpha_integration_schemas_schemasearch_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "schema" in params and schema is not None: path_params["schema"] = params["schema"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -530,11 +538,11 @@ def v1alpha_searches_search_identifier_delete( data = self._v1alpha_searches_search_identifier_delete_with_http_info( search_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_searches_search_identifier_delete_with_http_info( - self, search_identifier: "str", **kwargs - ): + self, search_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -556,18 +564,18 @@ def _v1alpha_searches_search_identifier_delete_with_http_info( "Missing the required parameter 'search_identifier' when calling 'v1alpha_searches_search_identifier_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "search_identifier" in params and search_identifier is not None: path_params["searchIdentifier"] = params["search_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -614,14 +622,14 @@ def v1alpha_searches_search_identifier_results_post( data = self._v1alpha_searches_search_identifier_results_post_with_http_info( search_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_searches_search_identifier_results_post_with_http_info( self, search_identifier: "str", body: "Optional[GrantaServerApiSearchSearchResultsRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "search_identifier", "body", @@ -644,18 +652,18 @@ def _v1alpha_searches_search_identifier_results_post_with_http_info( "Missing the required parameter 'search_identifier' when calling 'v1alpha_searches_search_identifier_results_post'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "search_identifier" in params and search_identifier is not None: path_params["searchIdentifier"] = params["search_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 492d489c..c88f4339 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class SelectionSearchesApi(ApiBase): +class SelectionSearchesApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -39,9 +47,9 @@ def v1alpha_selection_searches_get( data = self._v1alpha_selection_searches_get_with_http_info( _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_selection_searches_get_with_http_info(self, **kwargs): + def _v1alpha_selection_searches_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -53,16 +61,16 @@ def _v1alpha_selection_searches_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -111,13 +119,13 @@ def v1alpha_selection_searches_post( data = self._v1alpha_selection_searches_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_selection_searches_post_with_http_info( self, body: "Optional[GrantaServerApiSelectionSearchesCreateSearchRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -134,16 +142,16 @@ def _v1alpha_selection_searches_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -205,13 +213,13 @@ def v1alpha_selection_searches_search_post( data = self._v1alpha_selection_searches_search_post_with_http_info( body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_selection_searches_search_post_with_http_info( self, body: "Optional[GrantaServerApiSelectionSearchesFindSearchRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "body", "_return_http_data_only", @@ -228,16 +236,16 @@ def _v1alpha_selection_searches_search_post_with_http_info( params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not None: @@ -297,11 +305,11 @@ def v1alpha_selection_searches_search_search_identifier_delete( data = self._v1alpha_selection_searches_search_search_identifier_delete_with_http_info( search_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( - self, search_identifier: "str", **kwargs - ): + self, search_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -323,18 +331,18 @@ def _v1alpha_selection_searches_search_search_identifier_delete_with_http_info( "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_delete'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "search_identifier" in params and search_identifier is not None: path_params["searchIdentifier"] = params["search_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None @@ -378,11 +386,11 @@ def v1alpha_selection_searches_search_search_identifier_get( data = self._v1alpha_selection_searches_search_search_identifier_get_with_http_info( search_identifier, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( - self, search_identifier: "str", **kwargs - ): + self, search_identifier: "str", **kwargs: Any + ) -> Any: all_params = [ "search_identifier", "_return_http_data_only", @@ -404,18 +412,18 @@ def _v1alpha_selection_searches_search_search_identifier_get_with_http_info( "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_get'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "search_identifier" in params and search_identifier is not None: path_params["searchIdentifier"] = params["search_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None # HTTP header 'Accept' @@ -468,14 +476,14 @@ def v1alpha_selection_searches_search_search_identifier_put( data = self._v1alpha_selection_searches_search_search_identifier_put_with_http_info( search_identifier, body, _return_http_data_only=True ) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( self, search_identifier: "str", body: "Optional[GrantaServerApiSelectionSearchesSaveSearchRequest]" = None, - **kwargs, - ): + **kwargs: Any, + ) -> Any: all_params = [ "search_identifier", "body", @@ -498,18 +506,18 @@ def _v1alpha_selection_searches_search_search_identifier_put_with_http_info( "Missing the required parameter 'search_identifier' when calling 'v1alpha_selection_searches_search_search_identifier_put'" ) - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} if "search_identifier" in params and search_identifier is not None: path_params["searchIdentifier"] = params["search_identifier"] - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = None if "body" in params and body is not 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 5d9790f0..c8dfda5f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Dict, IO, List, Optional, Union # noqa: F401 +from typing import ( + TYPE_CHECKING, + Any, + Dict, + BinaryIO, + List, + Optional, + Union, +) # noqa: F401 from . import ApiBase @@ -18,7 +26,7 @@ from ..models import * -class StatusApi(ApiBase): +class StatusApi(ApiBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -35,9 +43,9 @@ def v1alpha_status_get(self) -> "None": None """ data = self._v1alpha_status_get_with_http_info(_return_http_data_only=True) - return data # type: ignore[return-value] + return data # type: ignore[no-any-return] - def _v1alpha_status_get_with_http_info(self, **kwargs): + def _v1alpha_status_get_with_http_info(self, **kwargs: Any) -> Any: all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] params = locals() @@ -49,16 +57,16 @@ def _v1alpha_status_get_with_http_info(self, **kwargs): params[key] = val del params["kwargs"] - collection_formats = {} + collection_formats: Dict[str, Any] = {} - path_params = {} + path_params: Dict[str, Any] = {} - query_params = [] + query_params: List[Any] = [] - header_params = {} + header_params: Dict[str, Any] = {} - form_params = [] - local_var_files = {} + form_params: List[Any] = [] + local_var_files: Dict[str, Any] = {} body_params = 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 4a51474e..952aec5d 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 +from ansys.openapi.common import ModelBase # type: ignore[import-untyped] # import models into model package from .folderguid_files_body import FolderguidFilesBody @@ -1822,3 +1822,649 @@ from .jobqueue_files_body import JobqueueFilesBody from .json_patch_document import JsonPatchDocument from .system_net_http_status_code import SystemNetHttpStatusCode + +__all__ = [ + "ModelBase", + "FolderguidFilesBody", + "FolderguidFilesBody1", + "FolderguidFilesBody2", + "GrantaMISearchRecordPropertyFakeAttributeNumbers", + "GrantaServerApiAdminMiVersion", + "GrantaServerApiAggregationsAggregation", + "GrantaServerApiAggregationsAggregationCriterion", + "GrantaServerApiAggregationsAggregationDatum", + "GrantaServerApiAggregationsAggregationDatumCriterion", + "GrantaServerApiAggregationsAggregationDatumExistsCriterion", + "GrantaServerApiAggregationsAggregationsRequest", + "GrantaServerApiAggregationsAggregationsResponse", + "GrantaServerApiAggregationsAttributeAggregation", + "GrantaServerApiAggregationsAttributeAggregationCriterion", + "GrantaServerApiAggregationsAttributeAggregationExistsCriterion", + "GrantaServerApiAggregationsAttributeAggregationValueCriterion", + "GrantaServerApiAggregationsAttributeExistsAggregation", + "GrantaServerApiAggregationsAttributeValueAggregation", + "GrantaServerApiAggregationsCalendarInterval", + "GrantaServerApiAggregationsDateTimeAggregation", + "GrantaServerApiAggregationsDateTimeAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeHistogram", + "GrantaServerApiAggregationsDateTimeHistogramAggregation", + "GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsDateTimeHistogramBucket", + "GrantaServerApiAggregationsDiscreteTextAggregation", + "GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion", + "GrantaServerApiAggregationsFloatFunctionalAggregation", + "GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion", + "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation", + "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation", + "GrantaServerApiAggregationsFreeTextAggregation", + "GrantaServerApiAggregationsFreeTextAggregationCriterion", + "GrantaServerApiAggregationsHistogram", + "GrantaServerApiAggregationsHistogramBucket", + "GrantaServerApiAggregationsIntegerAggregation", + "GrantaServerApiAggregationsIntegerAggregationDatumCriterion", + "GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsIntegerHistogramAggregation", + "GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsLinkAggregation", + "GrantaServerApiAggregationsLinkAggregationDatumCriterion", + "GrantaServerApiAggregationsLocalColumnAggregation", + "GrantaServerApiAggregationsLocalColumnAggregationCriterion", + "GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion", + "GrantaServerApiAggregationsLocalColumnAggregationValueCriterion", + "GrantaServerApiAggregationsLocalColumnExistsAggregation", + "GrantaServerApiAggregationsLocalColumnValueAggregation", + "GrantaServerApiAggregationsLogicalAggregation", + "GrantaServerApiAggregationsLogicalAggregationDatumCriterion", + "GrantaServerApiAggregationsPointAggregation", + "GrantaServerApiAggregationsPointAggregationDatumCriterion", + "GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsPointHistogramAggregation", + "GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeAggregation", + "GrantaServerApiAggregationsRangeAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsRangeHistogramAggregation", + "GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion", + "GrantaServerApiAggregationsShortTextAggregation", + "GrantaServerApiAggregationsShortTextAggregationDatumCriterion", + "GrantaServerApiAggregationsTermWithCount", + "GrantaServerApiAggregationsValueWithCountOfSystemBoolean", + "GrantaServerApiAggregationsValueWithCountOfSystemGuid", + "GrantaServerApiAggregationsValueWithCountOfSystemInt32", + "GrantaServerApiAllValuesSpecifier", + "GrantaServerApiAppNameLicenseCheckoutRequest", + "GrantaServerApiAppNameLicenseCheckoutResponse", + "GrantaServerApiAppNameLicenseCheckoutResult", + "GrantaServerApiAsyncJobsCreateJobRequest", + "GrantaServerApiAsyncJobsCurrentUser", + "GrantaServerApiAsyncJobsGetJobsResponse", + "GrantaServerApiAsyncJobsJob", + "GrantaServerApiAsyncJobsJobStatus", + "GrantaServerApiAsyncJobsProcessingConfig", + "GrantaServerApiAsyncJobsResubmitJobRequest", + "GrantaServerApiAsyncJobsUpdateJobRequest", + "GrantaServerApiAttributeType", + "GrantaServerApiDataApplicableDatum", + "GrantaServerApiDataDateTimeDatum", + "GrantaServerApiDataDatum", + "GrantaServerApiDataDatumType", + "GrantaServerApiDataDiscreteDatum", + "GrantaServerApiDataExportAttributeToExport", + "GrantaServerApiDataExportDataExportRequest", + "GrantaServerApiDataExportDataExportResponse", + "GrantaServerApiDataExportDatumsApplicableDatum", + "GrantaServerApiDataExportDatumsBinaryData", + "GrantaServerApiDataExportDatumsBooleanDatum", + "GrantaServerApiDataExportDatumsDateTimeDatum", + "GrantaServerApiDataExportDatumsDatum", + "GrantaServerApiDataExportDatumsDiscreteDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum", + "GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum", + "GrantaServerApiDataExportDatumsDiscreteGridPoint", + "GrantaServerApiDataExportDatumsDiscreteSeries", + "GrantaServerApiDataExportDatumsDiscreteSeriesPoint", + "GrantaServerApiDataExportDatumsFileDatum", + "GrantaServerApiDataExportDatumsFloatFunctionalDatum", + "GrantaServerApiDataExportDatumsFunctionalGridDatum", + "GrantaServerApiDataExportDatumsFunctionalSeriesDatum", + "GrantaServerApiDataExportDatumsGraphDecoration", + "GrantaServerApiDataExportDatumsGridPoint", + "GrantaServerApiDataExportDatumsHyperlink", + "GrantaServerApiDataExportDatumsHyperlinkDatum", + "GrantaServerApiDataExportDatumsLinkDatum", + "GrantaServerApiDataExportDatumsLinkedRecordsDatum", + "GrantaServerApiDataExportDatumsLongTextDatum", + "GrantaServerApiDataExportDatumsNotApplicableDatum", + "GrantaServerApiDataExportDatumsNumericDatum", + "GrantaServerApiDataExportDatumsParameterValue", + "GrantaServerApiDataExportDatumsPictureDatum", + "GrantaServerApiDataExportDatumsPoint", + "GrantaServerApiDataExportDatumsPointDatum", + "GrantaServerApiDataExportDatumsRange", + "GrantaServerApiDataExportDatumsRangeDatum", + "GrantaServerApiDataExportDatumsRollupCountRollupDatum", + "GrantaServerApiDataExportDatumsRollupNumericRollupDatum", + "GrantaServerApiDataExportDatumsRollupRollupDatum", + "GrantaServerApiDataExportDatumsRollupValueRollupDatum", + "GrantaServerApiDataExportDatumsRollupValuesRollupDatum", + "GrantaServerApiDataExportDatumsSeries", + "GrantaServerApiDataExportDatumsSeriesPoint", + "GrantaServerApiDataExportDatumsShortTextDatum", + "GrantaServerApiDataExportDatumsTabularDatum", + "GrantaServerApiDataExportDatumsTabularRow", + "GrantaServerApiDataExportDatumsUnknownDatum", + "GrantaServerApiDataExportExportFailuresAttributeExportFailure", + "GrantaServerApiDataExportExportFailuresAttributeReference", + "GrantaServerApiDataExportExportFailuresDatumExportFailure", + "GrantaServerApiDataExportExportFailuresDatumReference", + "GrantaServerApiDataExportExportFailuresExportFailure", + "GrantaServerApiDataExportExportFailuresExportFailureType", + "GrantaServerApiDataExportExportFailuresLinkExportFailure", + "GrantaServerApiDataExportExportFailuresLinkReference", + "GrantaServerApiDataExportExportFailuresRecordExportFailure", + "GrantaServerApiDataExportExportFailuresRollupExportFailure", + "GrantaServerApiDataExportExportFailuresRollupReference", + "GrantaServerApiDataExportLinkAttributeToExport", + "GrantaServerApiDataExportLinkedRecordExportBehavior", + "GrantaServerApiDataExportParameterSettingDefinedAt", + "GrantaServerApiDataExportPropertiesCreatedByUserProperty", + "GrantaServerApiDataExportPropertiesCreatedDateProperty", + "GrantaServerApiDataExportPropertiesDatabaseKeyProperty", + "GrantaServerApiDataExportPropertiesFullNameProperty", + "GrantaServerApiDataExportPropertiesLastModifiedByUserProperty", + "GrantaServerApiDataExportPropertiesLastModifiedDateProperty", + "GrantaServerApiDataExportPropertiesProperty", + "GrantaServerApiDataExportPropertiesRecordColorProperty", + "GrantaServerApiDataExportPropertiesRecordGuidProperty", + "GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty", + "GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty", + "GrantaServerApiDataExportPropertiesRecordIdentityProperty", + "GrantaServerApiDataExportPropertiesRecordTypeProperty", + "GrantaServerApiDataExportPropertiesReleasedDateProperty", + "GrantaServerApiDataExportPropertiesShortNameProperty", + "GrantaServerApiDataExportPropertiesTableGuidProperty", + "GrantaServerApiDataExportPropertiesTableIdentityProperty", + "GrantaServerApiDataExportPropertiesTableNameProperty", + "GrantaServerApiDataExportPropertiesVersionNumberProperty", + "GrantaServerApiDataExportPropertiesVersionStateProperty", + "GrantaServerApiDataExportRecordWithData", + "GrantaServerApiDataExportSimpleAttributeToExport", + "GrantaServerApiDataExportTabularRowExportBehaviour", + "GrantaServerApiDataHyperlinkDatum", + "GrantaServerApiDataHyperlinkTarget", + "GrantaServerApiDataIntegerDatum", + "GrantaServerApiDataLogicalDatum", + "GrantaServerApiDataLongTextDatum", + "GrantaServerApiDataNotApplicableDatum", + "GrantaServerApiDataRangeDatum", + "GrantaServerApiDataRichTextType", + "GrantaServerApiDataRichTextValue", + "GrantaServerApiDataShortTextDatum", + "GrantaServerApiDataSignificantFiguresInfo", + "GrantaServerApiDiscreteValue", + "GrantaServerApiDiskStatus", + "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + "GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail", + "GrantaServerApiExceptionsDataModificationReferencedByType", + "GrantaServerApiExceptionsDeletionAttributeDeletionException", + "GrantaServerApiExceptionsDeletionConstantDeletionException", + "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", + "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", + "GrantaServerApiExceptionsDeletionParameterDeletionException", + "GrantaServerApiExceptionsDeletionParameterValueDeletionException", + "GrantaServerApiExceptionsDeletionTableDeletionException", + "GrantaServerApiExceptionsErrorDetail", + "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", + "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", + "GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", + "GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", + "GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail", + "GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException", + "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", + "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException", + "GrantaServerApiExcludeValuesSpecifier", + "GrantaServerApiFunctionalDatumParameterInfo", + "GrantaServerApiIndexRecordFailure", + "GrantaServerApiIndirectLinks", + "GrantaServerApiIntegrationDataExportIntegrationDataExportRequest", + "GrantaServerApiIntegrationDataExportRecordReference", + "GrantaServerApiIntegrationIntegrationSchemaStatus", + "GrantaServerApiIntegrationSchemaAttribute", + "GrantaServerApiIntegrationSchemaDiscreteType", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaIntegrationParameterInfo", + "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaLayout", + "GrantaServerApiIntegrationSchemaLinkSourceType", + "GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier", + "GrantaServerApiIntegrationSchemaSecurityGroups", + "GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier", + "GrantaServerApiLinkAttributeType", + "GrantaServerApiListsDtoCreateListItem", + "GrantaServerApiListsDtoCreateRecordList", + "GrantaServerApiListsDtoCreateRecordListItemsInfo", + "GrantaServerApiListsDtoDeleteRecordListItem", + "GrantaServerApiListsDtoDeleteRecordListItems", + "GrantaServerApiListsDtoListBooleanCriterion", + "GrantaServerApiListsDtoListCriterion", + "GrantaServerApiListsDtoListItem", + "GrantaServerApiListsDtoPagingOptions", + "GrantaServerApiListsDtoRecordListHeader", + "GrantaServerApiListsDtoRecordListHeadersInfo", + "GrantaServerApiListsDtoRecordListItemsInfo", + "GrantaServerApiListsDtoRecordListPermissionFlags", + "GrantaServerApiListsDtoRecordListSearchCriterion", + "GrantaServerApiListsDtoRecordListSearchInfo", + "GrantaServerApiListsDtoRecordListSearchRequest", + "GrantaServerApiListsDtoRecordListSearchResult", + "GrantaServerApiListsDtoRecordListSearchResultsInfo", + "GrantaServerApiListsDtoResponseOptions", + "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", + "GrantaServerApiListsDtoUpdateRecordListProperties", + "GrantaServerApiListsDtoUpdateUserPermission", + "GrantaServerApiListsDtoUpdateUserPermissionsInfo", + "GrantaServerApiListsDtoUserOrGroup", + "GrantaServerApiListsDtoUserPermission", + "GrantaServerApiListsDtoUserPermissionsInfo", + "GrantaServerApiListsDtoUserRole", + "GrantaServerApiNoValuesSpecifier", + "GrantaServerApiObjectIdentifier", + "GrantaServerApiParameterInfo", + "GrantaServerApiParameterInfoInterpolationType", + "GrantaServerApiParameterInfoParameterType", + "GrantaServerApiParameterInfoScaleType", + "GrantaServerApiRecordColor", + "GrantaServerApiRecordProperty", + "GrantaServerApiRecordType", + "GrantaServerApiRecordsRecordHistoriesCopyRecordHistory", + "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory", + "GrantaServerApiRecordsRecordHistoriesMoveRecordHistory", + "GrantaServerApiRecordsRecordHistoriesRecordHistory", + "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + "GrantaServerApiRecordsRecordVersionsRecordVersion", + "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", + "GrantaServerApiSchemaAttributesAttribute", + "GrantaServerApiSchemaAttributesAttributeAttributeInfo", + "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", + "GrantaServerApiSchemaAttributesAttributeScaleType", + "GrantaServerApiSchemaAttributesAttributeThresholdType", + "GrantaServerApiSchemaAttributesAttributeValidateResponse", + "GrantaServerApiSchemaAttributesAttributesInfo", + "GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute", + "GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute", + "GrantaServerApiSchemaAttributesDateTimeAttribute", + "GrantaServerApiSchemaAttributesDiscreteAttribute", + "GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesFileAttribute", + "GrantaServerApiSchemaAttributesFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesHyperlinkAttribute", + "GrantaServerApiSchemaAttributesIntegerAttribute", + "GrantaServerApiSchemaAttributesLogicalAttribute", + "GrantaServerApiSchemaAttributesLongTextAttribute", + "GrantaServerApiSchemaAttributesMathsContent", + "GrantaServerApiSchemaAttributesMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesPictureAttribute", + "GrantaServerApiSchemaAttributesPointAttribute", + "GrantaServerApiSchemaAttributesRangeAttribute", + "GrantaServerApiSchemaAttributesShortTextAttribute", + "GrantaServerApiSchemaAttributesTabularAttribute", + "GrantaServerApiSchemaAttributesTabularAttributeTarget", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute", + "GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute", + "GrantaServerApiSchemaAttributesValidateAttributeRequest", + "GrantaServerApiSchemaConfigurationsConfiguration", + "GrantaServerApiSchemaConfigurationsConfigurationsInfo", + "GrantaServerApiSchemaConfigurationsCreateConfiguration", + "GrantaServerApiSchemaConfigurationsUpdateConfiguration", + "GrantaServerApiSchemaConstantsConstant", + "GrantaServerApiSchemaConstantsConstantsInfo", + "GrantaServerApiSchemaConstantsCreateConstant", + "GrantaServerApiSchemaConstantsUpdateConstant", + "GrantaServerApiSchemaDataRulesCreateDataRule", + "GrantaServerApiSchemaDataRulesDataRule", + "GrantaServerApiSchemaDataRulesDataRulesInfo", + "GrantaServerApiSchemaDataRulesUpdateDataRule", + "GrantaServerApiSchemaDatabase", + "GrantaServerApiSchemaDatabaseStatus", + "GrantaServerApiSchemaDatabasesInfo", + "GrantaServerApiSchemaDiscreteTypesCreateDiscreteType", + "GrantaServerApiSchemaDiscreteTypesDiscreteType", + "GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo", + "GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType", + "GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue", + "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + "GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo", + "GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo", + "GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue", + "GrantaServerApiSchemaExpressionsCreateExpression", + "GrantaServerApiSchemaExpressionsExpression", + "GrantaServerApiSchemaExpressionsExpressionsInfo", + "GrantaServerApiSchemaExpressionsUpdateExpression", + "GrantaServerApiSchemaFilesCreateFolder", + "GrantaServerApiSchemaFilesExporterRefetchInfo", + "GrantaServerApiSchemaFilesFileHeader", + "GrantaServerApiSchemaFilesFilesInfo", + "GrantaServerApiSchemaFilesFolder", + "GrantaServerApiSchemaFilesFoldersInfo", + "GrantaServerApiSchemaFilesMoveFile", + "GrantaServerApiSchemaFilesMoveFolder", + "GrantaServerApiSchemaFilesUpdateFile", + "GrantaServerApiSchemaFilesUpdateFolder", + "GrantaServerApiSchemaLayoutsCreateLayout", + "GrantaServerApiSchemaLayoutsCreateLayoutSection", + "GrantaServerApiSchemaLayoutsFullLayoutSection", + "GrantaServerApiSchemaLayoutsLayout", + "GrantaServerApiSchemaLayoutsLayoutAttributeItem", + "GrantaServerApiSchemaLayoutsLayoutItem", + "GrantaServerApiSchemaLayoutsLayoutItemLinkType", + "GrantaServerApiSchemaLayoutsLayoutItemType", + "GrantaServerApiSchemaLayoutsLayoutLinkItem", + "GrantaServerApiSchemaLayoutsLayoutSection", + "GrantaServerApiSchemaLayoutsLayoutSectionDetailType", + "GrantaServerApiSchemaLayoutsLayoutSectionsInfo", + "GrantaServerApiSchemaLayoutsLayoutTabularColumn", + "GrantaServerApiSchemaLayoutsLayoutsInfo", + "GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem", + "GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink", + "GrantaServerApiSchemaLayoutsNewLayoutAttributeItem", + "GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem", + "GrantaServerApiSchemaLayoutsNewLayoutItem", + "GrantaServerApiSchemaLayoutsNewLayoutItemType", + "GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem", + "GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem", + "GrantaServerApiSchemaLayoutsReorderSectionsInfo", + "GrantaServerApiSchemaLayoutsUpdateLayout", + "GrantaServerApiSchemaParametersContinuousRange", + "GrantaServerApiSchemaParametersCreateDiscreteParameter", + "GrantaServerApiSchemaParametersCreateDiscreteParameterValue", + "GrantaServerApiSchemaParametersCreateNumericParameter", + "GrantaServerApiSchemaParametersCreateNumericParameterValue", + "GrantaServerApiSchemaParametersCreateParameter", + "GrantaServerApiSchemaParametersCreateParameterValue", + "GrantaServerApiSchemaParametersDiscreteParameter", + "GrantaServerApiSchemaParametersDiscreteParameterContent", + "GrantaServerApiSchemaParametersDiscreteParameterValue", + "GrantaServerApiSchemaParametersDiscreteRange", + "GrantaServerApiSchemaParametersNumericParameter", + "GrantaServerApiSchemaParametersNumericParameterContent", + "GrantaServerApiSchemaParametersNumericParameterValue", + "GrantaServerApiSchemaParametersParameter", + "GrantaServerApiSchemaParametersParameterContent", + "GrantaServerApiSchemaParametersParameterInterpolationType", + "GrantaServerApiSchemaParametersParameterScaleType", + "GrantaServerApiSchemaParametersParameterType", + "GrantaServerApiSchemaParametersParameterValue", + "GrantaServerApiSchemaParametersParameterValueType", + "GrantaServerApiSchemaParametersParametersInfo", + "GrantaServerApiSchemaParametersUpdateContinuousRange", + "GrantaServerApiSchemaParametersUpdateDiscreteParameter", + "GrantaServerApiSchemaParametersUpdateDiscreteParameterContent", + "GrantaServerApiSchemaParametersUpdateDiscreteParameterValue", + "GrantaServerApiSchemaParametersUpdateDiscreteRange", + "GrantaServerApiSchemaParametersUpdateNumericParameter", + "GrantaServerApiSchemaParametersUpdateNumericParameterContent", + "GrantaServerApiSchemaParametersUpdateNumericParameterValue", + "GrantaServerApiSchemaParametersUpdateParameter", + "GrantaServerApiSchemaParametersUpdateParameterContent", + "GrantaServerApiSchemaParametersUpdateParameterValue", + "GrantaServerApiSchemaProfileTablesCreateProfileTable", + "GrantaServerApiSchemaProfileTablesProfileTable", + "GrantaServerApiSchemaProfileTablesProfileTablesInfo", + "GrantaServerApiSchemaProfileTablesUpdateProfileTable", + "GrantaServerApiSchemaProfilesAllProfilesInfo", + "GrantaServerApiSchemaProfilesCreateProfile", + "GrantaServerApiSchemaProfilesProfile", + "GrantaServerApiSchemaProfilesUpdateAllProfilesInfo", + "GrantaServerApiSchemaProfilesUpdateDefaultProfile", + "GrantaServerApiSchemaProfilesUpdateProfile", + "GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair", + "GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair", + "GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", + "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType", + "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo", + "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", + "GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup", + "GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup", + "GrantaServerApiSchemaSlimEntitiesSlimAttribute", + "GrantaServerApiSchemaSlimEntitiesSlimConfiguration", + "GrantaServerApiSchemaSlimEntitiesSlimConstant", + "GrantaServerApiSchemaSlimEntitiesSlimDatabase", + "GrantaServerApiSchemaSlimEntitiesSlimEntity", + "GrantaServerApiSchemaSlimEntitiesSlimExpression", + "GrantaServerApiSchemaSlimEntitiesSlimFile", + "GrantaServerApiSchemaSlimEntitiesSlimLayout", + "GrantaServerApiSchemaSlimEntitiesSlimLayoutSection", + "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + "GrantaServerApiSchemaSlimEntitiesSlimObjects", + "GrantaServerApiSchemaSlimEntitiesSlimProfile", + "GrantaServerApiSchemaSlimEntitiesSlimProfileTable", + "GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup", + "GrantaServerApiSchemaSlimEntitiesSlimSubset", + "GrantaServerApiSchemaSlimEntitiesSlimTable", + "GrantaServerApiSchemaSlimEntitiesSlimUnit", + "GrantaServerApiSchemaSlimEntitiesSlimUnitSystem", + "GrantaServerApiSchemaStandardNamesCreateStandardName", + "GrantaServerApiSchemaStandardNamesStandardName", + "GrantaServerApiSchemaStandardNamesStandardNamesInfo", + "GrantaServerApiSchemaStandardNamesUpdateStandardName", + "GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset", + "GrantaServerApiSchemaSubsetsCreateSubset", + "GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset", + "GrantaServerApiSchemaSubsetsSubset", + "GrantaServerApiSchemaSubsetsSubsetsInfo", + "GrantaServerApiSchemaSubsetsUpdateSubset", + "GrantaServerApiSchemaTablesCreateTable", + "GrantaServerApiSchemaTablesTable", + "GrantaServerApiSchemaTablesTablesInfo", + "GrantaServerApiSchemaTablesUpdateTable", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsTabularColumn", + "GrantaServerApiSchemaTabularColumnsTabularColumnDtoType", + "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", + "GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn", + "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn", + "GrantaServerApiSchemaUnitsCreateUnit", + "GrantaServerApiSchemaUnitsCreateUnitSystem", + "GrantaServerApiSchemaUnitsUnit", + "GrantaServerApiSchemaUnitsUnitEquivalent", + "GrantaServerApiSchemaUnitsUnitEquivalentsInfo", + "GrantaServerApiSchemaUnitsUnitMapping", + "GrantaServerApiSchemaUnitsUnitSystem", + "GrantaServerApiSchemaUnitsUnitSystemsInfo", + "GrantaServerApiSchemaUnitsUnitUsage", + "GrantaServerApiSchemaUnitsUnitsInfo", + "GrantaServerApiSchemaUnitsUpdateUnit", + "GrantaServerApiSchemaUnitsUpdateUnitSystem", + "GrantaServerApiSchemaUpdateDatabase", + "GrantaServerApiSearchAttributeCriterion", + "GrantaServerApiSearchAttributeExistsCriterion", + "GrantaServerApiSearchAttributeMatchesCriterion", + "GrantaServerApiSearchAttributeNotApplicableCriterion", + "GrantaServerApiSearchAttributeSortCriterion", + "GrantaServerApiSearchBooleanCriterion", + "GrantaServerApiSearchBoostByGuid", + "GrantaServerApiSearchBoostByIdentity", + "GrantaServerApiSearchCriterion", + "GrantaServerApiSearchDateTimeDatumCriterion", + "GrantaServerApiSearchDatumCriterion", + "GrantaServerApiSearchDatumExistsCriterion", + "GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion", + "GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion", + "GrantaServerApiSearchDiscreteGuidDatumCriterion", + "GrantaServerApiSearchDiscreteGuidValuesDatumCriterion", + "GrantaServerApiSearchDiscreteIdentityDatumCriterion", + "GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion", + "GrantaServerApiSearchDiscreteParameterNameConstraint", + "GrantaServerApiSearchDiscreteParameterValueConstraint", + "GrantaServerApiSearchDiscreteRangeDatumCriterion", + "GrantaServerApiSearchDiscreteTextDatumCriterion", + "GrantaServerApiSearchDiscreteTextValuesDatumCriterion", + "GrantaServerApiSearchDoubleSortingValue", + "GrantaServerApiSearchFileDatumCriterion", + "GrantaServerApiSearchFloatFunctionalDatumCriterion", + "GrantaServerApiSearchFloatFunctionalGraphDatumCriterion", + "GrantaServerApiSearchFreeTextAllAttributesCriterion", + "GrantaServerApiSearchFreeTextAllCriterion", + "GrantaServerApiSearchFreeTextAllLocalColumnsCriterion", + "GrantaServerApiSearchFreeTextCriterion", + "GrantaServerApiSearchFreeTextExcludingAttributesCriterion", + "GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion", + "GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion", + "GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", + "GrantaServerApiSearchHyperlinkDatumCriterion", + "GrantaServerApiSearchIndexStatus", + "GrantaServerApiSearchIntegerDatumCriterion", + "GrantaServerApiSearchLinkDatumCriterion", + "GrantaServerApiSearchLinkExistsDatumCriterion", + "GrantaServerApiSearchLinkingValueMatchBehaviour", + "GrantaServerApiSearchLocalColumnCriterion", + "GrantaServerApiSearchLocalColumnExistsCriterion", + "GrantaServerApiSearchLocalColumnMatchesCriterion", + "GrantaServerApiSearchLocalColumnNotApplicableCriterion", + "GrantaServerApiSearchLocalRowsBehaviour", + "GrantaServerApiSearchLogicalDatumCriterion", + "GrantaServerApiSearchLongSortingValue", + "GrantaServerApiSearchLongTextDatumCriterion", + "GrantaServerApiSearchMathsFunctionalDatumCriterion", + "GrantaServerApiSearchNumericParameterConstraint", + "GrantaServerApiSearchPagingOptions", + "GrantaServerApiSearchParameterConstraint", + "GrantaServerApiSearchPictureDatumCriterion", + "GrantaServerApiSearchPointDatumCriterion", + "GrantaServerApiSearchRangeDatumCriterion", + "GrantaServerApiSearchRecordAncestorCriterion", + "GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion", + "GrantaServerApiSearchRecordListMemberCriterion", + "GrantaServerApiSearchRecordPropertyCriterion", + "GrantaServerApiSearchRecordPropertySortCriterion", + "GrantaServerApiSearchRecordReferenceCriterion", + "GrantaServerApiSearchRecordSubsetCriterion", + "GrantaServerApiSearchRelevanceSortCriterion", + "GrantaServerApiSearchSearchRequest", + "GrantaServerApiSearchSearchResponse", + "GrantaServerApiSearchSearchResult", + "GrantaServerApiSearchSearchResultsRequest", + "GrantaServerApiSearchSearchableRecordProperty", + "GrantaServerApiSearchShortTextDatumCriterion", + "GrantaServerApiSearchSimpleDatumExistsCriterion", + "GrantaServerApiSearchSortCriterion", + "GrantaServerApiSearchSortDirection", + "GrantaServerApiSearchSortType", + "GrantaServerApiSearchSortingValue", + "GrantaServerApiSearchStringSortingValue", + "GrantaServerApiSearchTabularLinkingValueCriterion", + "GrantaServerApiSearchTextMatchBehaviour", + "GrantaServerApiSelectionSearchesCreateSearchRequest", + "GrantaServerApiSelectionSearchesFindSearchRequest", + "GrantaServerApiSelectionSearchesSaveSearchRequest", + "GrantaServerApiSelectionSearchesSearchDetail", + "GrantaServerApiSelectionSearchesSelectionSearch", + "GrantaServerApiSelectionSearchesUserOrGroup", + "GrantaServerApiSpecificValuesSpecifier", + "GrantaServerApiValueSpecifier", + "GrantaServerApiValueSpecifierType", + "GrantaServerApiVersionState", + "JobqueueFilesBody", + "JsonPatchDocument", + "SystemNetHttpStatusCode", +] 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 386445d5..4dd002da 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 FolderguidFilesBody(ModelBase): +class FolderguidFilesBody(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,32 +46,32 @@ class FolderguidFilesBody(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "file": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "file": "file", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, *, description: "Optional[str]" = None, - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, ) -> None: """FolderguidFilesBody - a model defined in Swagger Parameters ---------- description: str, optional - file: Union[IO, pathlib.Path], optional + file: Union[BinaryIO, pathlib.Path], optional """ self._file = None self._description = None @@ -72,7 +82,7 @@ def __init__( self.description = description @property - def file(self) -> "str": + def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": """Gets the file of this FolderguidFilesBody. Returns @@ -83,18 +93,18 @@ def file(self) -> "str": return self._file @file.setter - def file(self, file: "str") -> None: + def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: """Sets the file of this FolderguidFilesBody. Parameters ---------- - file: str + file: Union[BinaryIO, pathlib.Path] The file of this FolderguidFilesBody. """ self._file = file @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this FolderguidFilesBody. Returns @@ -105,7 +115,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this FolderguidFilesBody. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(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 f662cd6a..72445a11 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 FolderguidFilesBody1(ModelBase): +class FolderguidFilesBody1(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,32 +46,32 @@ class FolderguidFilesBody1(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "file": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "file": "file", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, *, description: "Optional[str]" = None, - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, ) -> None: """FolderguidFilesBody1 - a model defined in Swagger Parameters ---------- description: str, optional - file: Union[IO, pathlib.Path], optional + file: Union[BinaryIO, pathlib.Path], optional """ self._file = None self._description = None @@ -72,7 +82,7 @@ def __init__( self.description = description @property - def file(self) -> "str": + def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": """Gets the file of this FolderguidFilesBody1. Returns @@ -83,18 +93,18 @@ def file(self) -> "str": return self._file @file.setter - def file(self, file: "str") -> None: + def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: """Sets the file of this FolderguidFilesBody1. Parameters ---------- - file: str + file: Union[BinaryIO, pathlib.Path] The file of this FolderguidFilesBody1. """ self._file = file @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this FolderguidFilesBody1. Returns @@ -105,7 +115,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this FolderguidFilesBody1. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(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 e262b71b..52f4087b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 FolderguidFilesBody2(ModelBase): +class FolderguidFilesBody2(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,32 +46,32 @@ class FolderguidFilesBody2(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "file": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "file": "file", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, *, description: "Optional[str]" = None, - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, ) -> None: """FolderguidFilesBody2 - a model defined in Swagger Parameters ---------- description: str, optional - file: Union[IO, pathlib.Path], optional + file: Union[BinaryIO, pathlib.Path], optional """ self._file = None self._description = None @@ -72,7 +82,7 @@ def __init__( self.description = description @property - def file(self) -> "str": + def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": """Gets the file of this FolderguidFilesBody2. Returns @@ -83,18 +93,18 @@ def file(self) -> "str": return self._file @file.setter - def file(self, file: "str") -> None: + def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: """Sets the file of this FolderguidFilesBody2. Parameters ---------- - file: str + file: Union[BinaryIO, pathlib.Path] The file of this FolderguidFilesBody2. """ self._file = file @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this FolderguidFilesBody2. Returns @@ -105,7 +115,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this FolderguidFilesBody2. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 aad21ba2..b036097f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAdminMiVersion(ModelBase): +class GrantaServerApiAdminMiVersion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiAdminMiVersion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "binary_compatibility_version": "str", "major_minor_version": "str", "version": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "binary_compatibility_version": "binaryCompatibilityVersion", "major_minor_version": "majorMinorVersion", "version": "version", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.major_minor_version = major_minor_version @property - def binary_compatibility_version(self) -> "str": + def binary_compatibility_version(self) -> "Optional[str]": """Gets the binary_compatibility_version of this GrantaServerApiAdminMiVersion. Returns @@ -90,7 +100,9 @@ def binary_compatibility_version(self) -> "str": return self._binary_compatibility_version @binary_compatibility_version.setter - def binary_compatibility_version(self, binary_compatibility_version: "str") -> None: + def binary_compatibility_version( + self, binary_compatibility_version: "Optional[str]" + ) -> None: """Sets the binary_compatibility_version of this GrantaServerApiAdminMiVersion. Parameters @@ -101,7 +113,7 @@ def binary_compatibility_version(self, binary_compatibility_version: "str") -> N self._binary_compatibility_version = binary_compatibility_version @property - def version(self) -> "str": + def version(self) -> "Optional[str]": """Gets the version of this GrantaServerApiAdminMiVersion. Returns @@ -112,7 +124,7 @@ def version(self) -> "str": return self._version @version.setter - def version(self, version: "str") -> None: + def version(self, version: "Optional[str]") -> None: """Sets the version of this GrantaServerApiAdminMiVersion. Parameters @@ -123,7 +135,7 @@ def version(self, version: "str") -> None: self._version = version @property - def major_minor_version(self) -> "str": + def major_minor_version(self) -> "Optional[str]": """Gets the major_minor_version of this GrantaServerApiAdminMiVersion. Returns @@ -134,7 +146,7 @@ def major_minor_version(self) -> "str": return self._major_minor_version @major_minor_version.setter - def major_minor_version(self, major_minor_version: "str") -> None: + def major_minor_version(self, major_minor_version: "Optional[str]") -> None: """Sets the major_minor_version of this GrantaServerApiAdminMiVersion. Parameters @@ -162,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 014cdb2b..bd579972 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregation(ModelBase): +class GrantaServerApiAggregationsAggregation(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,18 +48,18 @@ class GrantaServerApiAggregationsAggregation(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "attribute".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeAggregation", "text".lower(): "#/components/schemas/GrantaServerApiAggregationsFreeTextAggregation", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,19 +78,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 cba4b9a5..5fcf7009 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationCriterion(ModelBase): +class GrantaServerApiAggregationsAggregationCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,18 +48,18 @@ class GrantaServerApiAggregationsAggregationCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "attribute".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeAggregationCriterion", "text".lower(): "#/components/schemas/GrantaServerApiAggregationsFreeTextAggregationCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,19 +78,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 668cfd98..dca2f9f6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationDatum(ModelBase): +class GrantaServerApiAggregationsAggregationDatum(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiAggregationsAggregationDatum(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "integer".lower(): "#/components/schemas/GrantaServerApiAggregationsIntegerAggregation", @@ -60,7 +70,7 @@ class GrantaServerApiAggregationsAggregationDatum(ModelBase): "floatFunctionalGraph".lower(): "#/components/schemas/GrantaServerApiAggregationsFloatFunctionalAggregation", } - discriminator = "datum_type" + discriminator: Optional[str] = "datum_type" def __init__( self, @@ -79,19 +89,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b7eed831..b7060f4d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): +class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "dateTime".lower(): "#/components/schemas/GrantaServerApiAggregationsDateTimeAggregationDatumCriterion", @@ -65,7 +75,7 @@ class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): "floatFunctionalGraph".lower(): "#/components/schemas/GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -84,19 +94,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2af89a3b..fc0d008d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): +class GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsAggregationDatumExistsCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "GrantaServerApiAttributeType", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiAttributeType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.type = type @property - def type(self) -> "GrantaServerApiAttributeType": + def type(self) -> "Optional[GrantaServerApiAttributeType]": """Gets the type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. Returns @@ -78,7 +88,7 @@ def type(self) -> "GrantaServerApiAttributeType": return self._type @type.setter - def type(self, type: "GrantaServerApiAttributeType") -> None: + def type(self, type: "Optional[GrantaServerApiAttributeType]") -> None: """Sets the type of this GrantaServerApiAggregationsAggregationDatumExistsCriterion. Parameters @@ -106,7 +116,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 19ad3c0e..726a89fb 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationsRequest(ModelBase): +class GrantaServerApiAggregationsAggregationsRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiAggregationsAggregationsRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "aggregation_criteria": "list[GrantaServerApiAggregationsAggregationCriterion]", "criterion": "GrantaServerApiSearchCriterion", } - attribute_map = { + attribute_map: Dict[str, str] = { "aggregation_criteria": "aggregationCriteria", "criterion": "criterion", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "criterion": "GrantaServerApiSearchCriterion", "aggregationCriteria": "GrantaServerApiAggregationsAggregationCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( self.aggregation_criteria = aggregation_criteria @property - def criterion(self) -> "GrantaServerApiSearchCriterion": + def criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": """Gets the criterion of this GrantaServerApiAggregationsAggregationsRequest. Returns @@ -86,7 +96,7 @@ def criterion(self) -> "GrantaServerApiSearchCriterion": return self._criterion @criterion.setter - def criterion(self, criterion: "GrantaServerApiSearchCriterion") -> None: + def criterion(self, criterion: "Optional[GrantaServerApiSearchCriterion]") -> None: """Sets the criterion of this GrantaServerApiAggregationsAggregationsRequest. Parameters @@ -99,7 +109,7 @@ def criterion(self, criterion: "GrantaServerApiSearchCriterion") -> None: @property def aggregation_criteria( self, - ) -> "list[GrantaServerApiAggregationsAggregationCriterion]": + ) -> "Optional[List[GrantaServerApiAggregationsAggregationCriterion]]": """Gets the aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. The aggregations you wish to perform. @@ -113,14 +123,14 @@ def aggregation_criteria( @aggregation_criteria.setter def aggregation_criteria( self, - aggregation_criteria: "list[GrantaServerApiAggregationsAggregationCriterion]", + aggregation_criteria: "Optional[List[GrantaServerApiAggregationsAggregationCriterion]]", ) -> None: """Sets the aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. The aggregations you wish to perform. Parameters ---------- - aggregation_criteria: list[GrantaServerApiAggregationsAggregationCriterion] + aggregation_criteria: List[GrantaServerApiAggregationsAggregationCriterion] The aggregation_criteria of this GrantaServerApiAggregationsAggregationsRequest. """ self._aggregation_criteria = aggregation_criteria @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1242a089..0a60774f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsAggregationsResponse(ModelBase): +class GrantaServerApiAggregationsAggregationsResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsAggregationsResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "results": "list[GrantaServerApiAggregationsAggregation]", } - attribute_map = { + attribute_map: Dict[str, str] = { "results": "results", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "results": "GrantaServerApiAggregationsAggregation", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.results = results @property - def results(self) -> "list[GrantaServerApiAggregationsAggregation]": + def results(self) -> "Optional[List[GrantaServerApiAggregationsAggregation]]": """Gets the results of this GrantaServerApiAggregationsAggregationsResponse. Returns @@ -78,12 +88,14 @@ def results(self) -> "list[GrantaServerApiAggregationsAggregation]": return self._results @results.setter - def results(self, results: "list[GrantaServerApiAggregationsAggregation]") -> None: + def results( + self, results: "Optional[List[GrantaServerApiAggregationsAggregation]]" + ) -> None: """Sets the results of this GrantaServerApiAggregationsAggregationsResponse. Parameters ---------- - results: list[GrantaServerApiAggregationsAggregation] + results: List[GrantaServerApiAggregationsAggregation] The results of this GrantaServerApiAggregationsAggregationsResponse. """ self._results = results @@ -106,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 06985c76..e8b3f161 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,28 +53,28 @@ class GrantaServerApiAggregationsAttributeAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "count": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "count": "count", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "value".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeValueAggregation", "exists".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeExistsAggregation", } - discriminator = "attribute_aggregation_type" + discriminator: Optional[str] = "attribute_aggregation_type" def __init__( self, @@ -86,7 +96,7 @@ def __init__( super().__init__() self._attribute_identity = None self._attribute_guid = None - self._type = None + self._type: str = None # type: ignore[assignment] self._count = None if attribute_identity is not None: @@ -98,7 +108,7 @@ def __init__( self.count = count @property - def attribute_identity(self) -> "int": + def attribute_identity(self) -> "Optional[int]": """Gets the attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. The identity of the attribute that was aggregated over. @@ -110,7 +120,7 @@ def attribute_identity(self) -> "int": return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "int") -> None: + def attribute_identity(self, attribute_identity: "Optional[int]") -> None: """Sets the attribute_identity of this GrantaServerApiAggregationsAttributeAggregation. The identity of the attribute that was aggregated over. @@ -122,7 +132,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """Gets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. The GUID of the attribute that was aggregated over. @@ -134,7 +144,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> None: """Sets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. The GUID of the attribute that was aggregated over. @@ -170,7 +180,7 @@ def type(self, type: "str") -> None: self._type = type @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """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. @@ -182,7 +192,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> 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. @@ -205,19 +215,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f90d88a6..c9a7b27c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,28 +53,28 @@ class GrantaServerApiAggregationsAttributeAggregationCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "is_meta_attribute": "bool", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "is_meta_attribute": "isMetaAttribute", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "value".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeAggregationValueCriterion", "exists".lower(): "#/components/schemas/GrantaServerApiAggregationsAttributeAggregationExistsCriterion", } - discriminator = "attribute_aggregation_criterion_type" + discriminator: Optional[str] = "attribute_aggregation_criterion_type" def __init__( self, @@ -87,7 +97,7 @@ def __init__( self._identity = None self._guid = None self._is_meta_attribute = None - self._type = None + self._type: str = None # type: ignore[assignment] if identity is not None: self.identity = identity @@ -98,7 +108,7 @@ def __init__( self.type = type @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns @@ -109,7 +119,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters @@ -120,7 +130,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns @@ -131,7 +141,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters @@ -142,7 +152,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def is_meta_attribute(self) -> "bool": + def is_meta_attribute(self) -> "Optional[bool]": """Gets the is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. Returns @@ -153,7 +163,7 @@ def is_meta_attribute(self) -> "bool": return self._is_meta_attribute @is_meta_attribute.setter - def is_meta_attribute(self, is_meta_attribute: "bool") -> None: + def is_meta_attribute(self, is_meta_attribute: "Optional[bool]") -> None: """Sets the is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. Parameters @@ -199,19 +209,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c77a53a9..b677db5c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_attribute_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsAttributeAggregationExistsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_aggregation_criterion_type": "str", "guid": "str", "identity": "int", @@ -50,7 +60,7 @@ class GrantaServerApiAggregationsAttributeAggregationExistsCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_aggregation_criterion_type": "attributeAggregationCriterionType", "guid": "guid", "identity": "identity", @@ -59,11 +69,11 @@ class GrantaServerApiAggregationsAttributeAggregationExistsCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiAggregationsAggregationDatumExistsCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -89,7 +99,7 @@ def __init__( super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_aggregation_criterion_type = None + self._attribute_aggregation_criterion_type: str = None # type: ignore[assignment] self._inner_criterion = None self.attribute_aggregation_criterion_type = attribute_aggregation_criterion_type @@ -129,7 +139,7 @@ def attribute_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "GrantaServerApiAggregationsAggregationDatumExistsCriterion": + ) -> "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]": """Gets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. Returns @@ -142,7 +152,7 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "GrantaServerApiAggregationsAggregationDatumExistsCriterion", + inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationExistsCriterion. @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 914c2117..fe915bdd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_attribute_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsAttributeAggregationValueCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_aggregation_criterion_type": "str", "guid": "str", "identity": "int", @@ -50,7 +60,7 @@ class GrantaServerApiAggregationsAttributeAggregationValueCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_aggregation_criterion_type": "attributeAggregationCriterionType", "guid": "guid", "identity": "identity", @@ -59,11 +69,11 @@ class GrantaServerApiAggregationsAttributeAggregationValueCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiAggregationsAggregationDatumCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -89,7 +99,7 @@ def __init__( super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_aggregation_criterion_type = None + self._attribute_aggregation_criterion_type: str = None # type: ignore[assignment] self._inner_criterion = None self.attribute_aggregation_criterion_type = attribute_aggregation_criterion_type @@ -127,7 +137,9 @@ def attribute_aggregation_criterion_type( ) @property - def inner_criterion(self) -> "GrantaServerApiAggregationsAggregationDatumCriterion": + def inner_criterion( + self, + ) -> "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]": """Gets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. Returns @@ -139,7 +151,8 @@ def inner_criterion(self) -> "GrantaServerApiAggregationsAggregationDatumCriteri @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiAggregationsAggregationDatumCriterion" + self, + inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsAttributeAggregationValueCriterion. @@ -168,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 85e4f83a..cebc847d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_attribute_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsAttributeExistsAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_aggregation_type": "str", "attribute_guid": "str", "attribute_identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiAggregationsAttributeExistsAggregation( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_aggregation_type": "attributeAggregationType", "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", @@ -57,9 +67,9 @@ class GrantaServerApiAggregationsAttributeExistsAggregation( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( count=count, type=type, ) - self._attribute_aggregation_type = None + self._attribute_aggregation_type: str = None # type: ignore[assignment] self.attribute_aggregation_type = attribute_aggregation_type @@ -134,7 +144,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3aeb19f6..46d60b0e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_attribute_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsAttributeValueAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "aggregation_datum": "GrantaServerApiAggregationsAggregationDatum", "attribute_aggregation_type": "str", "attribute_guid": "str", @@ -50,7 +60,7 @@ class GrantaServerApiAggregationsAttributeValueAggregation( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "aggregation_datum": "aggregationDatum", "attribute_aggregation_type": "attributeAggregationType", "attribute_guid": "attributeGuid", @@ -59,11 +69,11 @@ class GrantaServerApiAggregationsAttributeValueAggregation( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "aggregationDatum": "GrantaServerApiAggregationsAggregationDatum", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +102,7 @@ def __init__( count=count, type=type, ) - self._attribute_aggregation_type = None + self._attribute_aggregation_type: str = None # type: ignore[assignment] self._aggregation_datum = None self.attribute_aggregation_type = attribute_aggregation_type @@ -126,7 +136,9 @@ def attribute_aggregation_type(self, attribute_aggregation_type: "str") -> None: self._attribute_aggregation_type = attribute_aggregation_type @property - def aggregation_datum(self) -> "GrantaServerApiAggregationsAggregationDatum": + def aggregation_datum( + self, + ) -> "Optional[GrantaServerApiAggregationsAggregationDatum]": """Gets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. Returns @@ -138,7 +150,7 @@ def aggregation_datum(self) -> "GrantaServerApiAggregationsAggregationDatum": @aggregation_datum.setter def aggregation_datum( - self, aggregation_datum: "GrantaServerApiAggregationsAggregationDatum" + self, aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsAttributeValueAggregation. @@ -167,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 99b7e9c6..66205259 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsDateTimeAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "maximum": "datetime", "minimum": "datetime", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "maximum": "maximum", "minimum": "minimum", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._minimum = None self._maximum = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if minimum is not None: self.minimum = minimum @@ -84,7 +94,7 @@ def __init__( self.datum_type = datum_type @property - def minimum(self) -> "datetime": + def minimum(self) -> "Optional[datetime]": """Gets the minimum of this GrantaServerApiAggregationsDateTimeAggregation. Returns @@ -95,7 +105,7 @@ def minimum(self) -> "datetime": return self._minimum @minimum.setter - def minimum(self, minimum: "datetime") -> None: + def minimum(self, minimum: "Optional[datetime]") -> None: """Sets the minimum of this GrantaServerApiAggregationsDateTimeAggregation. Parameters @@ -106,7 +116,7 @@ def minimum(self, minimum: "datetime") -> None: self._minimum = minimum @property - def maximum(self) -> "datetime": + def maximum(self) -> "Optional[datetime]": """Gets the maximum of this GrantaServerApiAggregationsDateTimeAggregation. Returns @@ -117,7 +127,7 @@ def maximum(self) -> "datetime": return self._maximum @maximum.setter - def maximum(self, maximum: "datetime") -> None: + def maximum(self, maximum: "Optional[datetime]") -> None: """Sets the maximum of this GrantaServerApiAggregationsDateTimeAggregation. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 014ba0db..226bebd0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiAggregationsDateTimeAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f1f6972f..2673c1ef 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationD discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "interval": "GrantaServerApiAggregationsCalendarInterval", "offset": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "interval": "interval", "offset": "offset", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "interval": "GrantaServerApiAggregationsCalendarInterval", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,7 +87,7 @@ def __init__( super().__init__() self._interval = None self._offset = None - self._type = None + self._type: str = None # type: ignore[assignment] if interval is not None: self.interval = interval @@ -86,7 +96,7 @@ def __init__( self.type = type @property - def interval(self) -> "GrantaServerApiAggregationsCalendarInterval": + def interval(self) -> "Optional[GrantaServerApiAggregationsCalendarInterval]": """Gets the interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Returns @@ -97,7 +107,9 @@ def interval(self) -> "GrantaServerApiAggregationsCalendarInterval": return self._interval @interval.setter - def interval(self, interval: "GrantaServerApiAggregationsCalendarInterval") -> None: + def interval( + self, interval: "Optional[GrantaServerApiAggregationsCalendarInterval]" + ) -> None: """Sets the interval of this GrantaServerApiAggregationsDateTimeFixedCalendarWidthHistogramAggregationDatumCriterion. Parameters @@ -108,7 +120,7 @@ def interval(self, interval: "GrantaServerApiAggregationsCalendarInterval") -> N self._interval = interval @property - def offset(self) -> "str": + def offset(self) -> "Optional[str]": """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 @@ -120,7 +132,7 @@ def offset(self) -> "str": return self._offset @offset.setter - def offset(self, offset: "str") -> None: + def offset(self, offset: "Optional[str]") -> 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 @@ -173,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6f03ffb7..377bbb8f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsDateTimeFixedWidthHistogramAggregationDatumCrit discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "interval": "str", "offset": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "interval": "interval", "offset": "offset", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._interval = None self._offset = None - self._type = None + self._type: str = None # type: ignore[assignment] if interval is not None: self.interval = interval @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def interval(self) -> "str": + def interval(self) -> "Optional[str]": """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) @@ -96,7 +106,7 @@ def interval(self) -> "str": return self._interval @interval.setter - def interval(self, interval: "str") -> None: + def interval(self, interval: "Optional[str]") -> 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) @@ -108,7 +118,7 @@ def interval(self, interval: "str") -> None: self._interval = interval @property - def offset(self) -> "str": + def offset(self) -> "Optional[str]": """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 @@ -120,7 +130,7 @@ def offset(self) -> "str": return self._offset @offset.setter - def offset(self, offset: "str") -> None: + def offset(self, offset: "Optional[str]") -> 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 @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 481d2c10..94d2aec4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsDateTimeHistogram(ModelBase): +class GrantaServerApiAggregationsDateTimeHistogram(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsDateTimeHistogram(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "buckets": "list[GrantaServerApiAggregationsDateTimeHistogramBucket]", } - attribute_map = { + attribute_map: Dict[str, str] = { "buckets": "buckets", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "buckets": "GrantaServerApiAggregationsDateTimeHistogramBucket", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.buckets = buckets @property - def buckets(self) -> "list[GrantaServerApiAggregationsDateTimeHistogramBucket]": + def buckets( + self, + ) -> "Optional[List[GrantaServerApiAggregationsDateTimeHistogramBucket]]": """Gets the buckets of this GrantaServerApiAggregationsDateTimeHistogram. Returns @@ -79,13 +91,14 @@ def buckets(self) -> "list[GrantaServerApiAggregationsDateTimeHistogramBucket]": @buckets.setter def buckets( - self, buckets: "list[GrantaServerApiAggregationsDateTimeHistogramBucket]" + self, + buckets: "Optional[List[GrantaServerApiAggregationsDateTimeHistogramBucket]]", ) -> None: """Sets the buckets of this GrantaServerApiAggregationsDateTimeHistogram. Parameters ---------- - buckets: list[GrantaServerApiAggregationsDateTimeHistogramBucket] + buckets: List[GrantaServerApiAggregationsDateTimeHistogramBucket] The buckets of this GrantaServerApiAggregationsDateTimeHistogram. """ self._buckets = buckets @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b08abcab..1808aa56 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsDateTimeHistogramAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "histogram": "GrantaServerApiAggregationsDateTimeHistogram", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "histogram": "histogram", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "histogram": "GrantaServerApiAggregationsDateTimeHistogram", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._histogram = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if histogram is not None: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "GrantaServerApiAggregationsDateTimeHistogram": + def histogram(self) -> "Optional[GrantaServerApiAggregationsDateTimeHistogram]": """Gets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. Returns @@ -91,7 +101,7 @@ def histogram(self) -> "GrantaServerApiAggregationsDateTimeHistogram": @histogram.setter def histogram( - self, histogram: "GrantaServerApiAggregationsDateTimeHistogram" + self, histogram: "Optional[GrantaServerApiAggregationsDateTimeHistogram]" ) -> None: """Sets the histogram of this GrantaServerApiAggregationsDateTimeHistogramAggregation. @@ -144,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f206c86b..d241152a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "maximum_number_of_buckets": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "maximum_number_of_buckets": "maximumNumberOfBuckets", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._maximum_number_of_buckets = None - self._type = None + self._type: str = None # type: ignore[assignment] if maximum_number_of_buckets is not None: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "int": + def maximum_number_of_buckets(self) -> "Optional[int]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. The maximum number of buckets to return. @@ -89,7 +99,9 @@ def maximum_number_of_buckets(self) -> "int": return self._maximum_number_of_buckets @maximum_number_of_buckets.setter - def maximum_number_of_buckets(self, maximum_number_of_buckets: "int") -> None: + def maximum_number_of_buckets( + self, maximum_number_of_buckets: "Optional[int]" + ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsDateTimeHistogramAggregationDatumCriterion. The maximum number of buckets to return. @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce33f532..d7f39562 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): +class GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsDateTimeHistogramBucket(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "lower": "datetime", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "lower": "lower", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.count = count @property - def lower(self) -> "datetime": + def lower(self) -> "Optional[datetime]": """Gets the lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. Returns @@ -83,7 +93,7 @@ def lower(self) -> "datetime": return self._lower @lower.setter - def lower(self, lower: "datetime") -> None: + def lower(self, lower: "Optional[datetime]") -> None: """Sets the lower of this GrantaServerApiAggregationsDateTimeHistogramBucket. Parameters @@ -94,7 +104,7 @@ def lower(self, lower: "datetime") -> None: self._lower = lower @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsDateTimeHistogramBucket. Returns @@ -105,7 +115,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsDateTimeHistogramBucket. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 93befe6b..59cd29ba 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsDiscreteTextAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "terms": "list[GrantaServerApiAggregationsTermWithCount]", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "terms": "terms", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "terms": "GrantaServerApiAggregationsTermWithCount", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._terms = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if terms is not None: self.terms = terms self.datum_type = datum_type @property - def terms(self) -> "list[GrantaServerApiAggregationsTermWithCount]": + def terms(self) -> "Optional[List[GrantaServerApiAggregationsTermWithCount]]": """Gets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. Returns @@ -90,12 +100,14 @@ def terms(self) -> "list[GrantaServerApiAggregationsTermWithCount]": return self._terms @terms.setter - def terms(self, terms: "list[GrantaServerApiAggregationsTermWithCount]") -> None: + def terms( + self, terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" + ) -> None: """Sets the terms of this GrantaServerApiAggregationsDiscreteTextAggregation. Parameters ---------- - terms: list[GrantaServerApiAggregationsTermWithCount] + terms: List[GrantaServerApiAggregationsTermWithCount] The terms of this GrantaServerApiAggregationsDiscreteTextAggregation. """ self._terms = terms @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6f80835c..4c2c3ff3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "number_of_terms": "int", "prefix": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "number_of_terms": "numberOfTerms", "prefix": "prefix", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._number_of_terms = None self._prefix = None - self._type = None + self._type: str = None # type: ignore[assignment] if number_of_terms is not None: self.number_of_terms = number_of_terms @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def number_of_terms(self) -> "int": + def number_of_terms(self) -> "Optional[int]": """Gets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. @@ -96,7 +106,7 @@ def number_of_terms(self) -> "int": return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "int") -> None: + def number_of_terms(self, number_of_terms: "Optional[int]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. @@ -108,7 +118,7 @@ def number_of_terms(self, number_of_terms: "int") -> None: self._number_of_terms = number_of_terms @property - def prefix(self) -> "str": + def prefix(self) -> "Optional[str]": """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. @@ -120,7 +130,7 @@ def prefix(self) -> "str": return self._prefix @prefix.setter - def prefix(self, prefix: "str") -> None: + def prefix(self, prefix: "Optional[str]") -> 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. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 8d9af83d..ea2b3c1f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,24 +51,24 @@ class GrantaServerApiAggregationsFloatFunctionalAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "grid_graphs": "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation", "series_graphs": "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "grid_graphs": "gridGraphs", "series_graphs": "seriesGraphs", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "seriesGraphs": "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation", "gridGraphs": "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -78,7 +88,7 @@ def __init__( super().__init__() self._series_graphs = None self._grid_graphs = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if series_graphs is not None: self.series_graphs = series_graphs @@ -89,7 +99,7 @@ def __init__( @property def series_graphs( self, - ) -> "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation": + ) -> "Optional[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation]": """Gets the series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Returns @@ -102,7 +112,7 @@ def series_graphs( @series_graphs.setter def series_graphs( self, - series_graphs: "GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation", + series_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation]", ) -> None: """Sets the series_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. @@ -116,7 +126,7 @@ def series_graphs( @property def grid_graphs( self, - ) -> "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation": + ) -> "Optional[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation]": """Gets the grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. Returns @@ -129,7 +139,7 @@ def grid_graphs( @grid_graphs.setter def grid_graphs( self, - grid_graphs: "GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation", + grid_graphs: "Optional[GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation]", ) -> None: """Sets the grid_graphs of this GrantaServerApiAggregationsFloatFunctionalAggregation. @@ -182,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 253a6f88..677d622a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "number_of_parameter_values": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "number_of_parameter_values": "numberOfParameterValues", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._number_of_parameter_values = None - self._type = None + self._type: str = None # type: ignore[assignment] if number_of_parameter_values is not None: self.number_of_parameter_values = number_of_parameter_values self.type = type @property - def number_of_parameter_values(self) -> "int": + def number_of_parameter_values(self) -> "Optional[int]": """Gets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. The maximum number of values to return in this aggregation. @@ -89,7 +99,9 @@ def number_of_parameter_values(self) -> "int": return self._number_of_parameter_values @number_of_parameter_values.setter - def number_of_parameter_values(self, number_of_parameter_values: "int") -> None: + def number_of_parameter_values( + self, number_of_parameter_values: "Optional[int]" + ) -> None: """Sets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. The maximum number of values to return in this aggregation. @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1e060d1d..c2c7caae 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): +class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "default_x_axis_parameter_guid_values": "list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]", "default_x_axis_parameter_identity_values": "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]", @@ -45,7 +55,7 @@ class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): "show_as_table_values": "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "default_x_axis_parameter_guid_values": "defaultXAxisParameterGuidValues", "default_x_axis_parameter_identity_values": "defaultXAxisParameterIdentityValues", @@ -54,13 +64,13 @@ class GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation(ModelBase): "show_as_table_values": "showAsTableValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultXAxisParameterIdentityValues": "GrantaServerApiAggregationsValueWithCountOfSystemInt32", "defaultXAxisParameterGuidValues": "GrantaServerApiAggregationsValueWithCountOfSystemGuid", "showAsTableValues": "GrantaServerApiAggregationsValueWithCountOfSystemBoolean", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -110,7 +120,7 @@ def __init__( @property def default_x_axis_parameter_identity_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]": """Gets the default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns @@ -123,13 +133,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: "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]", + default_x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]", ) -> 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: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32] The default_x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._default_x_axis_parameter_identity_values = ( @@ -139,7 +149,7 @@ def default_x_axis_parameter_identity_values( @property def default_x_axis_parameter_guid_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]": """Gets the default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns @@ -152,13 +162,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: "list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]", + default_x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]", ) -> 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: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid] The default_x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._default_x_axis_parameter_guid_values = ( @@ -168,7 +178,7 @@ def default_x_axis_parameter_guid_values( @property def show_as_table_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": """Gets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns @@ -181,19 +191,19 @@ def show_as_table_values( @show_as_table_values.setter def show_as_table_values( self, - show_as_table_values: "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]", + show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", ) -> None: """Sets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters ---------- - show_as_table_values: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. """ self._show_as_table_values = show_as_table_values @property - def minimum_number_of_points(self) -> "int": + def minimum_number_of_points(self) -> "Optional[int]": """Gets the minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns @@ -204,7 +214,9 @@ def minimum_number_of_points(self) -> "int": return self._minimum_number_of_points @minimum_number_of_points.setter - def minimum_number_of_points(self, minimum_number_of_points: "int") -> None: + def minimum_number_of_points( + self, minimum_number_of_points: "Optional[int]" + ) -> None: """Sets the minimum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters @@ -215,7 +227,7 @@ def minimum_number_of_points(self, minimum_number_of_points: "int") -> None: self._minimum_number_of_points = minimum_number_of_points @property - def maximum_number_of_points(self) -> "int": + def maximum_number_of_points(self) -> "Optional[int]": """Gets the maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Returns @@ -226,7 +238,9 @@ def maximum_number_of_points(self) -> "int": return self._maximum_number_of_points @maximum_number_of_points.setter - def maximum_number_of_points(self, maximum_number_of_points: "int") -> None: + def maximum_number_of_points( + self, maximum_number_of_points: "Optional[int]" + ) -> None: """Sets the maximum_number_of_points of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. Parameters @@ -237,7 +251,7 @@ def maximum_number_of_points(self, maximum_number_of_points: "int") -> None: self._maximum_number_of_points = maximum_number_of_points @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. The number of record where the data is a series graph @@ -249,7 +263,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsFloatFunctionalGridGraphAggregation. The number of record where the data is a series graph @@ -278,7 +292,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e893744e..97ec4c48 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase): +class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "maximum_number_of_series": "int", "minimum_number_of_series": "int", @@ -45,7 +55,7 @@ class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase "x_axis_parameter_identity_values": "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "maximum_number_of_series": "maximumNumberOfSeries", "minimum_number_of_series": "minimumNumberOfSeries", @@ -54,13 +64,13 @@ class GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation(ModelBase "x_axis_parameter_identity_values": "xAxisParameterIdentityValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "xAxisParameterIdentityValues": "GrantaServerApiAggregationsValueWithCountOfSystemInt32", "xAxisParameterGuidValues": "GrantaServerApiAggregationsValueWithCountOfSystemGuid", "showAsTableValues": "GrantaServerApiAggregationsValueWithCountOfSystemBoolean", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( @property def x_axis_parameter_identity_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]": """Gets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns @@ -119,13 +129,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: "list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]", + x_axis_parameter_identity_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemInt32]]", ) -> None: """Sets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - x_axis_parameter_identity_values: list[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + x_axis_parameter_identity_values: List[GrantaServerApiAggregationsValueWithCountOfSystemInt32] The x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._x_axis_parameter_identity_values = x_axis_parameter_identity_values @@ -133,7 +143,7 @@ def x_axis_parameter_identity_values( @property def x_axis_parameter_guid_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]": """Gets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns @@ -146,13 +156,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: "list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]", + x_axis_parameter_guid_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemGuid]]", ) -> None: """Sets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - x_axis_parameter_guid_values: list[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + x_axis_parameter_guid_values: List[GrantaServerApiAggregationsValueWithCountOfSystemGuid] The x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._x_axis_parameter_guid_values = x_axis_parameter_guid_values @@ -160,7 +170,7 @@ def x_axis_parameter_guid_values( @property def show_as_table_values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": """Gets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns @@ -173,19 +183,19 @@ def show_as_table_values( @show_as_table_values.setter def show_as_table_values( self, - show_as_table_values: "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]", + show_as_table_values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", ) -> None: """Sets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters ---------- - show_as_table_values: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + show_as_table_values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. """ self._show_as_table_values = show_as_table_values @property - def minimum_number_of_series(self) -> "int": + def minimum_number_of_series(self) -> "Optional[int]": """Gets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns @@ -196,7 +206,9 @@ def minimum_number_of_series(self) -> "int": return self._minimum_number_of_series @minimum_number_of_series.setter - def minimum_number_of_series(self, minimum_number_of_series: "int") -> None: + def minimum_number_of_series( + self, minimum_number_of_series: "Optional[int]" + ) -> None: """Sets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters @@ -207,7 +219,7 @@ def minimum_number_of_series(self, minimum_number_of_series: "int") -> None: self._minimum_number_of_series = minimum_number_of_series @property - def maximum_number_of_series(self) -> "int": + def maximum_number_of_series(self) -> "Optional[int]": """Gets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Returns @@ -218,7 +230,9 @@ def maximum_number_of_series(self) -> "int": return self._maximum_number_of_series @maximum_number_of_series.setter - def maximum_number_of_series(self, maximum_number_of_series: "int") -> None: + def maximum_number_of_series( + self, maximum_number_of_series: "Optional[int]" + ) -> None: """Sets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. Parameters @@ -229,7 +243,7 @@ def maximum_number_of_series(self, maximum_number_of_series: "int") -> None: self._maximum_number_of_series = maximum_number_of_series @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. The number of record where the data is a series graph @@ -241,7 +255,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsFloatFunctionalSeriesGraphAggregation. The number of record where the data is a series graph @@ -270,7 +284,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d54cb435..bdde154d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsFreeTextAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "terms": "list[str]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "terms": "terms", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._guid = None self._terms = None - self._type = None + self._type: str = None # type: ignore[assignment] if guid is not None: self.guid = guid @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiAggregationsFreeTextAggregation. The GUID of the input aggregation criterion. @@ -96,7 +106,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiAggregationsFreeTextAggregation. The GUID of the input aggregation criterion. @@ -108,7 +118,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def terms(self) -> "list[str]": + def terms(self) -> "Optional[List[str]]": """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. @@ -120,13 +130,13 @@ def terms(self) -> "list[str]": return self._terms @terms.setter - def terms(self, terms: "list[str]") -> None: + def terms(self, terms: "Optional[List[str]]") -> 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: List[str] The terms of this GrantaServerApiAggregationsFreeTextAggregation. """ self._terms = terms @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 952402da..1cd63837 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attributes": "GrantaServerApiValueSpecifier", "criterion_guid": "str", "local_columns": "GrantaServerApiValueSpecifier", @@ -50,7 +60,7 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attributes": "attributes", "criterion_guid": "criterionGuid", "local_columns": "localColumns", @@ -59,12 +69,12 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiValueSpecifier", "localColumns": "GrantaServerApiValueSpecifier", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -93,7 +103,7 @@ def __init__( self._prefix = None self._attributes = None self._local_columns = None - self._type = None + self._type: str = None # type: ignore[assignment] if criterion_guid is not None: self.criterion_guid = criterion_guid @@ -108,7 +118,7 @@ def __init__( self.type = type @property - def criterion_guid(self) -> "str": + def criterion_guid(self) -> "Optional[str]": """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. @@ -120,7 +130,7 @@ def criterion_guid(self) -> "str": return self._criterion_guid @criterion_guid.setter - def criterion_guid(self, criterion_guid: "str") -> None: + def criterion_guid(self, criterion_guid: "Optional[str]") -> 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. @@ -132,7 +142,7 @@ def criterion_guid(self, criterion_guid: "str") -> None: self._criterion_guid = criterion_guid @property - def number_of_terms(self) -> "int": + def number_of_terms(self) -> "Optional[int]": """Gets the number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. The number of terms that should be returned @@ -144,7 +154,7 @@ def number_of_terms(self) -> "int": return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "int") -> None: + def number_of_terms(self, number_of_terms: "Optional[int]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. The number of terms that should be returned @@ -156,7 +166,7 @@ def number_of_terms(self, number_of_terms: "int") -> None: self._number_of_terms = number_of_terms @property - def prefix(self) -> "str": + def prefix(self) -> "Optional[str]": """Gets the prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns @@ -167,7 +177,7 @@ def prefix(self) -> "str": return self._prefix @prefix.setter - def prefix(self, prefix: "str") -> None: + def prefix(self, prefix: "Optional[str]") -> None: """Sets the prefix of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters @@ -178,7 +188,7 @@ def prefix(self, prefix: "str") -> None: self._prefix = prefix @property - def attributes(self) -> "GrantaServerApiValueSpecifier": + def attributes(self) -> "Optional[GrantaServerApiValueSpecifier]": """Gets the attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns @@ -189,7 +199,7 @@ def attributes(self) -> "GrantaServerApiValueSpecifier": return self._attributes @attributes.setter - def attributes(self, attributes: "GrantaServerApiValueSpecifier") -> None: + def attributes(self, attributes: "Optional[GrantaServerApiValueSpecifier]") -> None: """Sets the attributes of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters @@ -200,7 +210,7 @@ def attributes(self, attributes: "GrantaServerApiValueSpecifier") -> None: self._attributes = attributes @property - def local_columns(self) -> "GrantaServerApiValueSpecifier": + def local_columns(self) -> "Optional[GrantaServerApiValueSpecifier]": """Gets the local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Returns @@ -211,7 +221,9 @@ def local_columns(self) -> "GrantaServerApiValueSpecifier": return self._local_columns @local_columns.setter - def local_columns(self, local_columns: "GrantaServerApiValueSpecifier") -> None: + def local_columns( + self, local_columns: "Optional[GrantaServerApiValueSpecifier]" + ) -> None: """Sets the local_columns of this GrantaServerApiAggregationsFreeTextAggregationCriterion. Parameters @@ -263,7 +275,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ceb03487..c7c212f9 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsHistogram(ModelBase): +class GrantaServerApiAggregationsHistogram(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsHistogram(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "buckets": "list[GrantaServerApiAggregationsHistogramBucket]", } - attribute_map = { + attribute_map: Dict[str, str] = { "buckets": "buckets", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "buckets": "GrantaServerApiAggregationsHistogramBucket", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.buckets = buckets @property - def buckets(self) -> "list[GrantaServerApiAggregationsHistogramBucket]": + def buckets(self) -> "Optional[List[GrantaServerApiAggregationsHistogramBucket]]": """Gets the buckets of this GrantaServerApiAggregationsHistogram. Returns @@ -79,13 +89,13 @@ def buckets(self) -> "list[GrantaServerApiAggregationsHistogramBucket]": @buckets.setter def buckets( - self, buckets: "list[GrantaServerApiAggregationsHistogramBucket]" + self, buckets: "Optional[List[GrantaServerApiAggregationsHistogramBucket]]" ) -> None: """Sets the buckets of this GrantaServerApiAggregationsHistogram. Parameters ---------- - buckets: list[GrantaServerApiAggregationsHistogramBucket] + buckets: List[GrantaServerApiAggregationsHistogramBucket] The buckets of this GrantaServerApiAggregationsHistogram. """ self._buckets = buckets @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 de4a719b..38f319a0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsHistogramBucket(ModelBase): +class GrantaServerApiAggregationsHistogramBucket(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiAggregationsHistogramBucket(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "lower": "float", "upper": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "lower": "lower", "upper": "upper", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.count = count @property - def lower(self) -> "float": + def lower(self) -> "Optional[float]": """Gets the lower of this GrantaServerApiAggregationsHistogramBucket. Returns @@ -90,7 +100,7 @@ def lower(self) -> "float": return self._lower @lower.setter - def lower(self, lower: "float") -> None: + def lower(self, lower: "Optional[float]") -> None: """Sets the lower of this GrantaServerApiAggregationsHistogramBucket. Parameters @@ -101,7 +111,7 @@ def lower(self, lower: "float") -> None: self._lower = lower @property - def upper(self) -> "float": + def upper(self) -> "Optional[float]": """Gets the upper of this GrantaServerApiAggregationsHistogramBucket. Returns @@ -112,7 +122,7 @@ def upper(self) -> "float": return self._upper @upper.setter - def upper(self, upper: "float") -> None: + def upper(self, upper: "Optional[float]") -> None: """Sets the upper of this GrantaServerApiAggregationsHistogramBucket. Parameters @@ -123,7 +133,7 @@ def upper(self, upper: "float") -> None: self._upper = upper @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsHistogramBucket. Returns @@ -134,7 +144,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsHistogramBucket. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 8ba07720..d667442f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsIntegerAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "maximum": "int", "minimum": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "maximum": "maximum", "minimum": "minimum", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._minimum = None self._maximum = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if minimum is not None: self.minimum = minimum @@ -84,7 +94,7 @@ def __init__( self.datum_type = datum_type @property - def minimum(self) -> "int": + def minimum(self) -> "Optional[int]": """Gets the minimum of this GrantaServerApiAggregationsIntegerAggregation. Returns @@ -95,7 +105,7 @@ def minimum(self) -> "int": return self._minimum @minimum.setter - def minimum(self, minimum: "int") -> None: + def minimum(self, minimum: "Optional[int]") -> None: """Sets the minimum of this GrantaServerApiAggregationsIntegerAggregation. Parameters @@ -106,7 +116,7 @@ def minimum(self, minimum: "int") -> None: self._minimum = minimum @property - def maximum(self) -> "int": + def maximum(self) -> "Optional[int]": """Gets the maximum of this GrantaServerApiAggregationsIntegerAggregation. Returns @@ -117,7 +127,7 @@ def maximum(self) -> "int": return self._maximum @maximum.setter - def maximum(self, maximum: "int") -> None: + def maximum(self, maximum: "Optional[int]") -> None: """Sets the maximum of this GrantaServerApiAggregationsIntegerAggregation. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 85205bba..f8a94379 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiAggregationsIntegerAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 98e762cc..59b7e120 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "interval": "float", "offset": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "interval": "interval", "offset": "offset", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._interval = None self._offset = None - self._type = None + self._type: str = None # type: ignore[assignment] if interval is not None: self.interval = interval @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def interval(self) -> "float": + def interval(self) -> "Optional[float]": """Gets the interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -96,7 +106,7 @@ def interval(self) -> "float": return self._interval @interval.setter - def interval(self, interval: "float") -> None: + def interval(self, interval: "Optional[float]") -> None: """Sets the interval of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -108,7 +118,7 @@ def interval(self, interval: "float") -> None: self._interval = interval @property - def offset(self) -> "float": + def offset(self) -> "Optional[float]": """Gets the offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -120,7 +130,7 @@ def offset(self) -> "float": return self._offset @offset.setter - def offset(self, offset: "float") -> None: + def offset(self, offset: "Optional[float]") -> None: """Sets the offset of this GrantaServerApiAggregationsIntegerFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 40461268..c463e5ec 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsIntegerHistogramAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "histogram": "GrantaServerApiAggregationsHistogram", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "histogram": "histogram", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "histogram": "GrantaServerApiAggregationsHistogram", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._histogram = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if histogram is not None: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "GrantaServerApiAggregationsHistogram": + def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": """Gets the histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. Returns @@ -90,7 +100,9 @@ def histogram(self) -> "GrantaServerApiAggregationsHistogram": return self._histogram @histogram.setter - def histogram(self, histogram: "GrantaServerApiAggregationsHistogram") -> None: + def histogram( + self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + ) -> None: """Sets the histogram of this GrantaServerApiAggregationsIntegerHistogramAggregation. Parameters @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5617c366..f8dc4ee4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "maximum_number_of_buckets": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "maximum_number_of_buckets": "maximumNumberOfBuckets", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._maximum_number_of_buckets = None - self._type = None + self._type: str = None # type: ignore[assignment] if maximum_number_of_buckets is not None: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "int": + def maximum_number_of_buckets(self) -> "Optional[int]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. Returns @@ -88,7 +98,9 @@ def maximum_number_of_buckets(self) -> "int": return self._maximum_number_of_buckets @maximum_number_of_buckets.setter - def maximum_number_of_buckets(self, maximum_number_of_buckets: "int") -> None: + def maximum_number_of_buckets( + self, maximum_number_of_buckets: "Optional[int]" + ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsIntegerHistogramAggregationDatumCriterion. Parameters @@ -140,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1f56b4c0..ce5ff2f9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsLinkAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "local_aggregations": "list[GrantaServerApiAggregationsLocalColumnAggregation]", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "local_aggregations": "localAggregations", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "localAggregations": "GrantaServerApiAggregationsLocalColumnAggregation", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( """ super().__init__() self._local_aggregations = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if local_aggregations is not None: self.local_aggregations = local_aggregations @@ -81,7 +91,7 @@ def __init__( @property def local_aggregations( self, - ) -> "list[GrantaServerApiAggregationsLocalColumnAggregation]": + ) -> "Optional[List[GrantaServerApiAggregationsLocalColumnAggregation]]": """Gets the local_aggregations of this GrantaServerApiAggregationsLinkAggregation. Returns @@ -94,13 +104,13 @@ def local_aggregations( @local_aggregations.setter def local_aggregations( self, - local_aggregations: "list[GrantaServerApiAggregationsLocalColumnAggregation]", + local_aggregations: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregation]]", ) -> None: """Sets the local_aggregations of this GrantaServerApiAggregationsLinkAggregation. Parameters ---------- - local_aggregations: list[GrantaServerApiAggregationsLocalColumnAggregation] + local_aggregations: List[GrantaServerApiAggregationsLocalColumnAggregation] The local_aggregations of this GrantaServerApiAggregationsLinkAggregation. """ self._local_aggregations = local_aggregations @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6c0a793e..d984facd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsLinkAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "local_aggregation_criteria": "list[GrantaServerApiAggregationsLocalColumnAggregationCriterion]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "local_aggregation_criteria": "localAggregationCriteria", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "localAggregationCriteria": "GrantaServerApiAggregationsLocalColumnAggregationCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,7 +81,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self._local_aggregation_criteria = None self.type = type @@ -105,7 +115,7 @@ def type(self, type: "str") -> None: @property def local_aggregation_criteria( self, - ) -> "list[GrantaServerApiAggregationsLocalColumnAggregationCriterion]": + ) -> "Optional[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion]]": """Gets the local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. Returns @@ -118,13 +128,13 @@ def local_aggregation_criteria( @local_aggregation_criteria.setter def local_aggregation_criteria( self, - local_aggregation_criteria: "list[GrantaServerApiAggregationsLocalColumnAggregationCriterion]", + local_aggregation_criteria: "Optional[List[GrantaServerApiAggregationsLocalColumnAggregationCriterion]]", ) -> None: """Sets the local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. Parameters ---------- - local_aggregation_criteria: list[GrantaServerApiAggregationsLocalColumnAggregationCriterion] + local_aggregation_criteria: List[GrantaServerApiAggregationsLocalColumnAggregationCriterion] The local_aggregation_criteria of this GrantaServerApiAggregationsLinkAggregationDatumCriterion. """ self._local_aggregation_criteria = local_aggregation_criteria @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f39477b4..157938b8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): +class GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,26 +48,26 @@ class GrantaServerApiAggregationsLocalColumnAggregation(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "local_column_guid": "str", "local_column_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "local_column_guid": "localColumnGuid", "local_column_identity": "localColumnIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "value".lower(): "#/components/schemas/GrantaServerApiAggregationsLocalColumnValueAggregation", "exists".lower(): "#/components/schemas/GrantaServerApiAggregationsLocalColumnExistsAggregation", } - discriminator = "local_column_aggregation_type" + discriminator: Optional[str] = "local_column_aggregation_type" def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.count = count @property - def local_column_identity(self) -> "int": + def local_column_identity(self) -> "Optional[int]": """Gets the local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. The identity of the local column that was aggregated over. @@ -98,7 +108,7 @@ def local_column_identity(self) -> "int": return self._local_column_identity @local_column_identity.setter - def local_column_identity(self, local_column_identity: "int") -> None: + def local_column_identity(self, local_column_identity: "Optional[int]") -> None: """Sets the local_column_identity of this GrantaServerApiAggregationsLocalColumnAggregation. The identity of the local column that was aggregated over. @@ -110,7 +120,7 @@ def local_column_identity(self, local_column_identity: "int") -> None: self._local_column_identity = local_column_identity @property - def local_column_guid(self) -> "str": + def local_column_guid(self) -> "Optional[str]": """Gets the local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. The GUID of the local column that was aggregated over. @@ -122,7 +132,7 @@ def local_column_guid(self) -> "str": return self._local_column_guid @local_column_guid.setter - def local_column_guid(self, local_column_guid: "str") -> None: + def local_column_guid(self, local_column_guid: "Optional[str]") -> None: """Sets the local_column_guid of this GrantaServerApiAggregationsLocalColumnAggregation. The GUID of the local column that was aggregated over. @@ -134,7 +144,7 @@ def local_column_guid(self, local_column_guid: "str") -> None: self._local_column_guid = local_column_guid @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsLocalColumnAggregation. The number of records that have a populated (applicable) value for this local column. @@ -146,7 +156,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsLocalColumnAggregation. The number of records that have a populated (applicable) value for this local column. @@ -169,19 +179,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 66a8afa5..f941f0c9 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): +class GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +48,24 @@ class GrantaServerApiAggregationsLocalColumnAggregationCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "value".lower(): "#/components/schemas/GrantaServerApiAggregationsLocalColumnAggregationValueCriterion", "exists".lower(): "#/components/schemas/GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion", } - discriminator = "local_column_aggregation_criterion_type" + discriminator: Optional[str] = "local_column_aggregation_criterion_type" def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.guid = guid @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Returns @@ -90,7 +100,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Parameters @@ -101,7 +111,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Returns @@ -112,7 +122,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiAggregationsLocalColumnAggregationCriterion. Parameters @@ -134,19 +144,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a9c12cfb..aabac998 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_local_column_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "inner_criterion": "GrantaServerApiAggregationsAggregationDatumExistsCriterion", "local_column_aggregation_criterion_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "inner_criterion": "innerCriterion", "local_column_aggregation_criterion_type": "localColumnAggregationCriterionType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiAggregationsAggregationDatumExistsCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( local_column_aggregation_criterion_type: str """ super().__init__(guid=guid, identity=identity) - self._local_column_aggregation_criterion_type = None + self._local_column_aggregation_criterion_type: str = None # type: ignore[assignment] self._inner_criterion = None self.local_column_aggregation_criterion_type = ( @@ -121,7 +131,7 @@ def local_column_aggregation_criterion_type( @property def inner_criterion( self, - ) -> "GrantaServerApiAggregationsAggregationDatumExistsCriterion": + ) -> "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]": """Gets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. Returns @@ -134,7 +144,7 @@ def inner_criterion( @inner_criterion.setter def inner_criterion( self, - inner_criterion: "GrantaServerApiAggregationsAggregationDatumExistsCriterion", + inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumExistsCriterion]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationExistsCriterion. @@ -163,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 30785358..646042c3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_local_column_aggregation_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiAggregationsLocalColumnAggregationValueCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "inner_criterion": "GrantaServerApiAggregationsAggregationDatumCriterion", "local_column_aggregation_criterion_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "inner_criterion": "innerCriterion", "local_column_aggregation_criterion_type": "localColumnAggregationCriterionType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiAggregationsAggregationDatumCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( local_column_aggregation_criterion_type: str """ super().__init__(guid=guid, identity=identity) - self._local_column_aggregation_criterion_type = None + self._local_column_aggregation_criterion_type: str = None # type: ignore[assignment] self._inner_criterion = None self.local_column_aggregation_criterion_type = ( @@ -119,7 +129,9 @@ def local_column_aggregation_criterion_type( ) @property - def inner_criterion(self) -> "GrantaServerApiAggregationsAggregationDatumCriterion": + def inner_criterion( + self, + ) -> "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]": """Gets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. Returns @@ -131,7 +143,8 @@ def inner_criterion(self) -> "GrantaServerApiAggregationsAggregationDatumCriteri @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiAggregationsAggregationDatumCriterion" + self, + inner_criterion: "Optional[GrantaServerApiAggregationsAggregationDatumCriterion]", ) -> None: """Sets the inner_criterion of this GrantaServerApiAggregationsLocalColumnAggregationValueCriterion. @@ -160,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f44bc54d..200c2039 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_local_column_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiAggregationsLocalColumnExistsAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "local_column_aggregation_type": "str", "local_column_guid": "str", "local_column_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "local_column_aggregation_type": "localColumnAggregationType", "local_column_guid": "localColumnGuid", "local_column_identity": "localColumnIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,7 @@ def __init__( local_column_guid=local_column_guid, local_column_identity=local_column_identity, ) - self._local_column_aggregation_type = None + self._local_column_aggregation_type: str = None # type: ignore[assignment] self.local_column_aggregation_type = local_column_aggregation_type @@ -131,7 +141,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d55f534f..72d7b460 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_local_column_aggregation import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiAggregationsLocalColumnValueAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "aggregation_datum": "GrantaServerApiAggregationsAggregationDatum", "count": "int", "local_column_aggregation_type": "str", @@ -49,7 +59,7 @@ class GrantaServerApiAggregationsLocalColumnValueAggregation( "local_column_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "aggregation_datum": "aggregationDatum", "count": "count", "local_column_aggregation_type": "localColumnAggregationType", @@ -57,11 +67,11 @@ class GrantaServerApiAggregationsLocalColumnValueAggregation( "local_column_identity": "localColumnIdentity", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "aggregationDatum": "GrantaServerApiAggregationsAggregationDatum", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,14 +98,16 @@ def __init__( local_column_identity=local_column_identity, ) self._aggregation_datum = None - self._local_column_aggregation_type = None + self._local_column_aggregation_type: str = None # type: ignore[assignment] if aggregation_datum is not None: self.aggregation_datum = aggregation_datum self.local_column_aggregation_type = local_column_aggregation_type @property - def aggregation_datum(self) -> "GrantaServerApiAggregationsAggregationDatum": + def aggregation_datum( + self, + ) -> "Optional[GrantaServerApiAggregationsAggregationDatum]": """Gets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. Returns @@ -107,7 +119,7 @@ def aggregation_datum(self) -> "GrantaServerApiAggregationsAggregationDatum": @aggregation_datum.setter def aggregation_datum( - self, aggregation_datum: "GrantaServerApiAggregationsAggregationDatum" + self, aggregation_datum: "Optional[GrantaServerApiAggregationsAggregationDatum]" ) -> None: """Sets the aggregation_datum of this GrantaServerApiAggregationsLocalColumnValueAggregation. @@ -164,7 +176,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ccc0de4..073d96aa 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsLogicalAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "values": "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "values": "values", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "values": "GrantaServerApiAggregationsValueWithCountOfSystemBoolean", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( """ super().__init__() self._values = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if values is not None: self.values = values @@ -81,7 +91,7 @@ def __init__( @property def values( self, - ) -> "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]": + ) -> "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]": """Gets the values of this GrantaServerApiAggregationsLogicalAggregation. Returns @@ -93,13 +103,14 @@ def values( @values.setter def values( - self, values: "list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]" + self, + values: "Optional[List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]]", ) -> None: """Sets the values of this GrantaServerApiAggregationsLogicalAggregation. Parameters ---------- - values: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + values: List[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] The values of this GrantaServerApiAggregationsLogicalAggregation. """ self._values = values @@ -146,7 +157,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 faa9bb7e..4049472f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiAggregationsLogicalAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0b41b363..d78e628e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsPointAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "maximum": "float", "minimum": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "maximum": "maximum", "minimum": "minimum", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._minimum = None self._maximum = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if minimum is not None: self.minimum = minimum @@ -84,7 +94,7 @@ def __init__( self.datum_type = datum_type @property - def minimum(self) -> "float": + def minimum(self) -> "Optional[float]": """Gets the minimum of this GrantaServerApiAggregationsPointAggregation. Returns @@ -95,7 +105,7 @@ def minimum(self) -> "float": return self._minimum @minimum.setter - def minimum(self, minimum: "float") -> None: + def minimum(self, minimum: "Optional[float]") -> None: """Sets the minimum of this GrantaServerApiAggregationsPointAggregation. Parameters @@ -106,7 +116,7 @@ def minimum(self, minimum: "float") -> None: self._minimum = minimum @property - def maximum(self) -> "float": + def maximum(self) -> "Optional[float]": """Gets the maximum of this GrantaServerApiAggregationsPointAggregation. Returns @@ -117,7 +127,7 @@ def maximum(self) -> "float": return self._maximum @maximum.setter - def maximum(self, maximum: "float") -> None: + def maximum(self, maximum: "Optional[float]") -> None: """Sets the maximum of this GrantaServerApiAggregationsPointAggregation. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4a6dd7cc..ceb2d633 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiAggregationsPointAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 16e8e283..ff0d3ed1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriteri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "interval": "float", "offset": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "interval": "interval", "offset": "offset", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._interval = None self._offset = None - self._type = None + self._type: str = None # type: ignore[assignment] if interval is not None: self.interval = interval @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def interval(self) -> "float": + def interval(self) -> "Optional[float]": """Gets the interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -96,7 +106,7 @@ def interval(self) -> "float": return self._interval @interval.setter - def interval(self, interval: "float") -> None: + def interval(self, interval: "Optional[float]") -> None: """Sets the interval of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -108,7 +118,7 @@ def interval(self, interval: "float") -> None: self._interval = interval @property - def offset(self) -> "float": + def offset(self) -> "Optional[float]": """Gets the offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -120,7 +130,7 @@ def offset(self) -> "float": return self._offset @offset.setter - def offset(self, offset: "float") -> None: + def offset(self, offset: "Optional[float]") -> None: """Sets the offset of this GrantaServerApiAggregationsPointFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ec5ca6fc..37f08de1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsPointHistogramAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "histogram": "GrantaServerApiAggregationsHistogram", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "histogram": "histogram", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "histogram": "GrantaServerApiAggregationsHistogram", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._histogram = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if histogram is not None: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "GrantaServerApiAggregationsHistogram": + def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": """Gets the histogram of this GrantaServerApiAggregationsPointHistogramAggregation. Returns @@ -90,7 +100,9 @@ def histogram(self) -> "GrantaServerApiAggregationsHistogram": return self._histogram @histogram.setter - def histogram(self, histogram: "GrantaServerApiAggregationsHistogram") -> None: + def histogram( + self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + ) -> None: """Sets the histogram of this GrantaServerApiAggregationsPointHistogramAggregation. Parameters @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 83db3a5d..8adfd32e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "maximum_number_of_buckets": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "maximum_number_of_buckets": "maximumNumberOfBuckets", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._maximum_number_of_buckets = None - self._type = None + self._type: str = None # type: ignore[assignment] if maximum_number_of_buckets is not None: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "int": + def maximum_number_of_buckets(self) -> "Optional[int]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. Returns @@ -88,7 +98,9 @@ def maximum_number_of_buckets(self) -> "int": return self._maximum_number_of_buckets @maximum_number_of_buckets.setter - def maximum_number_of_buckets(self, maximum_number_of_buckets: "int") -> None: + def maximum_number_of_buckets( + self, maximum_number_of_buckets: "Optional[int]" + ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsPointHistogramAggregationDatumCriterion. Parameters @@ -140,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d51b50a8..38973244 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsRangeAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "maximum": "float", "minimum": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "maximum": "maximum", "minimum": "minimum", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._minimum = None self._maximum = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if minimum is not None: self.minimum = minimum @@ -84,7 +94,7 @@ def __init__( self.datum_type = datum_type @property - def minimum(self) -> "float": + def minimum(self) -> "Optional[float]": """Gets the minimum of this GrantaServerApiAggregationsRangeAggregation. Returns @@ -95,7 +105,7 @@ def minimum(self) -> "float": return self._minimum @minimum.setter - def minimum(self, minimum: "float") -> None: + def minimum(self, minimum: "Optional[float]") -> None: """Sets the minimum of this GrantaServerApiAggregationsRangeAggregation. Parameters @@ -106,7 +116,7 @@ def minimum(self, minimum: "float") -> None: self._minimum = minimum @property - def maximum(self) -> "float": + def maximum(self) -> "Optional[float]": """Gets the maximum of this GrantaServerApiAggregationsRangeAggregation. Returns @@ -117,7 +127,7 @@ def maximum(self) -> "float": return self._maximum @maximum.setter - def maximum(self, maximum: "float") -> None: + def maximum(self, maximum: "Optional[float]") -> None: """Sets the maximum of this GrantaServerApiAggregationsRangeAggregation. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1b67b12c..108f0200 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiAggregationsRangeAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 31842702..25a71ed9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriteri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "interval": "float", "offset": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "interval": "interval", "offset": "offset", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._interval = None self._offset = None - self._type = None + self._type: str = None # type: ignore[assignment] if interval is not None: self.interval = interval @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def interval(self) -> "float": + def interval(self) -> "Optional[float]": """Gets the interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -96,7 +106,7 @@ def interval(self) -> "float": return self._interval @interval.setter - def interval(self, interval: "float") -> None: + def interval(self, interval: "Optional[float]") -> None: """Sets the interval of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Fixed size of the resulting histogram buckets @@ -108,7 +118,7 @@ def interval(self, interval: "float") -> None: self._interval = interval @property - def offset(self) -> "float": + def offset(self) -> "Optional[float]": """Gets the offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -120,7 +130,7 @@ def offset(self) -> "float": return self._offset @offset.setter - def offset(self, offset: "float") -> None: + def offset(self, offset: "Optional[float]") -> None: """Sets the offset of this GrantaServerApiAggregationsRangeFixedWidthHistogramAggregationDatumCriterion. Offset of the lowest bucket boundary. Defaults to 0. Must be less than the interval. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b78ef7f4..58590f63 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsRangeHistogramAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "histogram": "GrantaServerApiAggregationsHistogram", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "histogram": "histogram", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "histogram": "GrantaServerApiAggregationsHistogram", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._histogram = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if histogram is not None: self.histogram = histogram self.datum_type = datum_type @property - def histogram(self) -> "GrantaServerApiAggregationsHistogram": + def histogram(self) -> "Optional[GrantaServerApiAggregationsHistogram]": """Gets the histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. Returns @@ -90,7 +100,9 @@ def histogram(self) -> "GrantaServerApiAggregationsHistogram": return self._histogram @histogram.setter - def histogram(self, histogram: "GrantaServerApiAggregationsHistogram") -> None: + def histogram( + self, histogram: "Optional[GrantaServerApiAggregationsHistogram]" + ) -> None: """Sets the histogram of this GrantaServerApiAggregationsRangeHistogramAggregation. Parameters @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0ab31031..35d9cd8e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "maximum_number_of_buckets": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "maximum_number_of_buckets": "maximumNumberOfBuckets", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._maximum_number_of_buckets = None - self._type = None + self._type: str = None # type: ignore[assignment] if maximum_number_of_buckets is not None: self.maximum_number_of_buckets = maximum_number_of_buckets self.type = type @property - def maximum_number_of_buckets(self) -> "int": + def maximum_number_of_buckets(self) -> "Optional[int]": """Gets the maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. Returns @@ -88,7 +98,9 @@ def maximum_number_of_buckets(self) -> "int": return self._maximum_number_of_buckets @maximum_number_of_buckets.setter - def maximum_number_of_buckets(self, maximum_number_of_buckets: "int") -> None: + def maximum_number_of_buckets( + self, maximum_number_of_buckets: "Optional[int]" + ) -> None: """Sets the maximum_number_of_buckets of this GrantaServerApiAggregationsRangeHistogramAggregationDatumCriterion. Parameters @@ -140,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9c818d89..3bb160a8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsShortTextAggregation( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "datum_type": "str", "terms": "list[GrantaServerApiAggregationsTermWithCount]", } - attribute_map = { + attribute_map: Dict[str, str] = { "datum_type": "datumType", "terms": "terms", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "terms": "GrantaServerApiAggregationsTermWithCount", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,14 +82,14 @@ def __init__( """ super().__init__() self._terms = None - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] if terms is not None: self.terms = terms self.datum_type = datum_type @property - def terms(self) -> "list[GrantaServerApiAggregationsTermWithCount]": + def terms(self) -> "Optional[List[GrantaServerApiAggregationsTermWithCount]]": """Gets the terms of this GrantaServerApiAggregationsShortTextAggregation. Returns @@ -90,12 +100,14 @@ def terms(self) -> "list[GrantaServerApiAggregationsTermWithCount]": return self._terms @terms.setter - def terms(self, terms: "list[GrantaServerApiAggregationsTermWithCount]") -> None: + def terms( + self, terms: "Optional[List[GrantaServerApiAggregationsTermWithCount]]" + ) -> None: """Sets the terms of this GrantaServerApiAggregationsShortTextAggregation. Parameters ---------- - terms: list[GrantaServerApiAggregationsTermWithCount] + terms: List[GrantaServerApiAggregationsTermWithCount] The terms of this GrantaServerApiAggregationsShortTextAggregation. """ self._terms = terms @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 833916e2..8c70ec97 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_aggregations_aggregation_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiAggregationsShortTextAggregationDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "number_of_terms": "int", "prefix": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "number_of_terms": "numberOfTerms", "prefix": "prefix", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._number_of_terms = None self._prefix = None - self._type = None + self._type: str = None # type: ignore[assignment] if number_of_terms is not None: self.number_of_terms = number_of_terms @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def number_of_terms(self) -> "int": + def number_of_terms(self) -> "Optional[int]": """Gets the number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. @@ -96,7 +106,7 @@ def number_of_terms(self) -> "int": return self._number_of_terms @number_of_terms.setter - def number_of_terms(self, number_of_terms: "int") -> None: + def number_of_terms(self, number_of_terms: "Optional[int]") -> None: """Sets the number_of_terms of this GrantaServerApiAggregationsShortTextAggregationDatumCriterion. The maximum number of terms to return in this aggregation. @@ -108,7 +118,7 @@ def number_of_terms(self, number_of_terms: "int") -> None: self._number_of_terms = number_of_terms @property - def prefix(self) -> "str": + def prefix(self) -> "Optional[str]": """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. @@ -120,7 +130,7 @@ def prefix(self) -> "str": return self._prefix @prefix.setter - def prefix(self, prefix: "str") -> None: + def prefix(self, prefix: "Optional[str]") -> 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. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 82c3dc60..0b6ab489 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsTermWithCount(ModelBase): +class GrantaServerApiAggregationsTermWithCount(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsTermWithCount(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "term": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "term": "term", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.count = count @property - def term(self) -> "str": + def term(self) -> "Optional[str]": """Gets the term of this GrantaServerApiAggregationsTermWithCount. Returns @@ -83,7 +93,7 @@ def term(self) -> "str": return self._term @term.setter - def term(self, term: "str") -> None: + def term(self, term: "Optional[str]") -> None: """Sets the term of this GrantaServerApiAggregationsTermWithCount. Parameters @@ -94,7 +104,7 @@ def term(self, term: "str") -> None: self._term = term @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsTermWithCount. Returns @@ -105,7 +115,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsTermWithCount. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 803e8aef..e16fe974 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): +class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "value": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.count = count @property - def value(self) -> "bool": + def value(self) -> "Optional[bool]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Returns @@ -83,7 +93,7 @@ def value(self) -> "bool": return self._value @value.setter - def value(self, value: "bool") -> None: + def value(self, value: "Optional[bool]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Parameters @@ -94,7 +104,7 @@ def value(self, value: "bool") -> None: self._value = value @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Returns @@ -105,7 +115,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4272ef30..3599eb36 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): +class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.count = count @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Returns @@ -83,7 +93,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Parameters @@ -94,7 +104,7 @@ def value(self, value: "str") -> None: self._value = value @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Returns @@ -105,7 +115,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3fea22b5..1544b4b3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): +class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "count": "int", "value": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "count": "count", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.count = count @property - def value(self) -> "int": + def value(self) -> "Optional[int]": """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Returns @@ -83,7 +93,7 @@ def value(self) -> "int": return self._value @value.setter - def value(self, value: "int") -> None: + def value(self, value: "Optional[int]") -> None: """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Parameters @@ -94,7 +104,7 @@ def value(self, value: "int") -> None: self._value = value @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Returns @@ -105,7 +115,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6f11eb1a..c3466738 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_value_specifier import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,17 +49,17 @@ class GrantaServerApiAllValuesSpecifier(GrantaServerApiValueSpecifier): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "filter_on": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "filter_on": "filterOn", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( filter_on: str """ super().__init__() - self._filter_on = None + self._filter_on: str = None # type: ignore[assignment] self.filter_on = filter_on @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 21b0b9f2..3411f04f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): +class GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiAppNameLicenseCheckoutRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "app_names": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "app_names": "appNames", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( self.app_names = app_names @property - def app_names(self) -> "list[str]": + def app_names(self) -> "Optional[List[str]]": """Gets the app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. Returns @@ -76,12 +86,12 @@ def app_names(self) -> "list[str]": return self._app_names @app_names.setter - def app_names(self, app_names: "list[str]") -> None: + def app_names(self, app_names: "Optional[List[str]]") -> None: """Sets the app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. Parameters ---------- - app_names: list[str] + app_names: List[str] The app_names of this GrantaServerApiAppNameLicenseCheckoutRequest. """ self._app_names = app_names @@ -104,7 +114,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 96d33a27..069c9b11 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): +class GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAppNameLicenseCheckoutResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "results": "list[GrantaServerApiAppNameLicenseCheckoutResult]", } - attribute_map = { + attribute_map: Dict[str, str] = { "results": "results", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "results": "GrantaServerApiAppNameLicenseCheckoutResult", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.results = results @property - def results(self) -> "list[GrantaServerApiAppNameLicenseCheckoutResult]": + def results(self) -> "Optional[List[GrantaServerApiAppNameLicenseCheckoutResult]]": """Gets the results of this GrantaServerApiAppNameLicenseCheckoutResponse. Returns @@ -79,13 +89,13 @@ def results(self) -> "list[GrantaServerApiAppNameLicenseCheckoutResult]": @results.setter def results( - self, results: "list[GrantaServerApiAppNameLicenseCheckoutResult]" + self, results: "Optional[List[GrantaServerApiAppNameLicenseCheckoutResult]]" ) -> None: """Sets the results of this GrantaServerApiAppNameLicenseCheckoutResponse. Parameters ---------- - results: list[GrantaServerApiAppNameLicenseCheckoutResult] + results: List[GrantaServerApiAppNameLicenseCheckoutResult] The results of this GrantaServerApiAppNameLicenseCheckoutResponse. """ self._results = results @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 abddad21..27796db5 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): +class GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiAppNameLicenseCheckoutResult(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "app_name": "str", "license_state_ok": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "app_name": "appName", "license_state_ok": "licenseStateOk", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.license_state_ok = license_state_ok @property - def app_name(self) -> "str": + def app_name(self) -> "Optional[str]": """Gets the app_name of this GrantaServerApiAppNameLicenseCheckoutResult. Returns @@ -83,7 +93,7 @@ def app_name(self) -> "str": return self._app_name @app_name.setter - def app_name(self, app_name: "str") -> None: + def app_name(self, app_name: "Optional[str]") -> None: """Sets the app_name of this GrantaServerApiAppNameLicenseCheckoutResult. Parameters @@ -94,7 +104,7 @@ def app_name(self, app_name: "str") -> None: self._app_name = app_name @property - def license_state_ok(self) -> "bool": + def license_state_ok(self) -> "Optional[bool]": """Gets the license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. Returns @@ -105,7 +115,7 @@ def license_state_ok(self) -> "bool": return self._license_state_ok @license_state_ok.setter - def license_state_ok(self, license_state_ok: "bool") -> None: + def license_state_ok(self, license_state_ok: "Optional[bool]") -> None: """Sets the license_state_ok of this GrantaServerApiAppNameLicenseCheckoutResult. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c9f13f7b..47f83f87 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): +class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "culture": "str", "description": "str", "input_file_ids": "list[str]", @@ -47,7 +57,7 @@ class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): "version": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "culture": "culture", "description": "description", "input_file_ids": "inputFileIds", @@ -58,9 +68,9 @@ class GrantaServerApiAsyncJobsCreateJobRequest(ModelBase): "version": "version", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -114,7 +124,7 @@ def __init__( self.parameters = parameters @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -125,7 +135,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -136,7 +146,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -147,7 +157,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -158,7 +168,7 @@ def description(self, description: "str") -> None: self._description = description @property - def culture(self) -> "str": + def culture(self) -> "Optional[str]": """Gets the culture of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -169,7 +179,7 @@ def culture(self) -> "str": return self._culture @culture.setter - def culture(self, culture: "str") -> None: + def culture(self, culture: "Optional[str]") -> None: """Sets the culture of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -180,7 +190,7 @@ def culture(self, culture: "str") -> None: self._culture = culture @property - def type(self) -> "str": + def type(self) -> "Optional[str]": """Gets the type of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -191,7 +201,7 @@ def type(self) -> "str": return self._type @type.setter - def type(self, type: "str") -> None: + def type(self, type: "Optional[str]") -> None: """Sets the type of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -202,7 +212,7 @@ def type(self, type: "str") -> None: self._type = type @property - def version(self) -> "int": + def version(self) -> "Optional[int]": """Gets the version of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -213,7 +223,7 @@ def version(self) -> "int": return self._version @version.setter - def version(self, version: "int") -> None: + def version(self, version: "Optional[int]") -> None: """Sets the version of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -224,7 +234,7 @@ def version(self, version: "int") -> None: self._version = version @property - def scheduled_execution_date(self) -> "datetime": + def scheduled_execution_date(self) -> "Optional[datetime]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -235,7 +245,9 @@ def scheduled_execution_date(self) -> "datetime": return self._scheduled_execution_date @scheduled_execution_date.setter - def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None: + def scheduled_execution_date( + self, scheduled_execution_date: "Optional[datetime]" + ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -246,7 +258,7 @@ def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None self._scheduled_execution_date = scheduled_execution_date @property - def input_file_ids(self) -> "list[str]": + def input_file_ids(self) -> "Optional[List[str]]": """Gets the input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. Names of temporary input files that were uploaded prior to creating this job. @@ -258,19 +270,19 @@ def input_file_ids(self) -> "list[str]": return self._input_file_ids @input_file_ids.setter - def input_file_ids(self, input_file_ids: "list[str]") -> None: + def input_file_ids(self, input_file_ids: "Optional[List[str]]") -> 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: List[str] The input_file_ids of this GrantaServerApiAsyncJobsCreateJobRequest. """ self._input_file_ids = input_file_ids @property - def parameters(self) -> "str": + def parameters(self) -> "Optional[str]": """Gets the parameters of this GrantaServerApiAsyncJobsCreateJobRequest. Returns @@ -281,7 +293,7 @@ def parameters(self) -> "str": return self._parameters @parameters.setter - def parameters(self, parameters: "str") -> None: + def parameters(self, parameters: "Optional[str]") -> None: """Sets the parameters of this GrantaServerApiAsyncJobsCreateJobRequest. Parameters @@ -309,7 +321,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6149e4b3..6e48cb21 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsCurrentUser(ModelBase): +class GrantaServerApiAsyncJobsCurrentUser(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiAsyncJobsCurrentUser(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "has_write_access": "bool", "is_admin": "bool", "username": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "has_write_access": "hasWriteAccess", "is_admin": "isAdmin", "username": "username", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.has_write_access = has_write_access @property - def is_admin(self) -> "bool": + def is_admin(self) -> "Optional[bool]": """Gets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. Returns @@ -90,7 +100,7 @@ def is_admin(self) -> "bool": return self._is_admin @is_admin.setter - def is_admin(self, is_admin: "bool") -> None: + def is_admin(self, is_admin: "Optional[bool]") -> None: """Sets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. Parameters @@ -101,7 +111,7 @@ def is_admin(self, is_admin: "bool") -> None: self._is_admin = is_admin @property - def username(self) -> "str": + def username(self) -> "Optional[str]": """Gets the username of this GrantaServerApiAsyncJobsCurrentUser. Returns @@ -112,7 +122,7 @@ def username(self) -> "str": return self._username @username.setter - def username(self, username: "str") -> None: + def username(self, username: "Optional[str]") -> None: """Sets the username of this GrantaServerApiAsyncJobsCurrentUser. Parameters @@ -123,7 +133,7 @@ def username(self, username: "str") -> None: self._username = username @property - def has_write_access(self) -> "bool": + def has_write_access(self) -> "Optional[bool]": """Gets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. Returns @@ -134,7 +144,7 @@ def has_write_access(self) -> "bool": return self._has_write_access @has_write_access.setter - def has_write_access(self, has_write_access: "bool") -> None: + def has_write_access(self, has_write_access: "Optional[bool]") -> None: """Sets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 86a17dcd..13e79081 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): +class GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiAsyncJobsGetJobsResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "results": "list[GrantaServerApiAsyncJobsJob]", "total_result_count": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "results": "results", "total_result_count": "totalResultCount", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "results": "GrantaServerApiAsyncJobsJob", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,7 @@ def __init__( self.results = results @property - def total_result_count(self) -> "int": + def total_result_count(self) -> "Optional[int]": """Gets the total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. Returns @@ -85,7 +95,7 @@ def total_result_count(self) -> "int": return self._total_result_count @total_result_count.setter - def total_result_count(self, total_result_count: "int") -> None: + def total_result_count(self, total_result_count: "Optional[int]") -> None: """Sets the total_result_count of this GrantaServerApiAsyncJobsGetJobsResponse. Parameters @@ -96,7 +106,7 @@ def total_result_count(self, total_result_count: "int") -> None: self._total_result_count = total_result_count @property - def results(self) -> "list[GrantaServerApiAsyncJobsJob]": + def results(self) -> "Optional[List[GrantaServerApiAsyncJobsJob]]": """Gets the results of this GrantaServerApiAsyncJobsGetJobsResponse. Returns @@ -107,12 +117,12 @@ def results(self) -> "list[GrantaServerApiAsyncJobsJob]": return self._results @results.setter - def results(self, results: "list[GrantaServerApiAsyncJobsJob]") -> None: + def results(self, results: "Optional[List[GrantaServerApiAsyncJobsJob]]") -> None: """Sets the results of this GrantaServerApiAsyncJobsGetJobsResponse. Parameters ---------- - results: list[GrantaServerApiAsyncJobsJob] + results: List[GrantaServerApiAsyncJobsJob] The results of this GrantaServerApiAsyncJobsGetJobsResponse. """ self._results = results @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9b4320e9..05153d81 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsJob(ModelBase): +class GrantaServerApiAsyncJobsJob(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiAsyncJobsJob(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "completion_date": "datetime", "description": "str", "execution_date": "datetime", @@ -54,7 +64,7 @@ class GrantaServerApiAsyncJobsJob(ModelBase): "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "completion_date": "completionDate", "description": "description", "execution_date": "executionDate", @@ -72,11 +82,11 @@ class GrantaServerApiAsyncJobsJob(ModelBase): "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "status": "GrantaServerApiAsyncJobsJobStatus", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -165,7 +175,7 @@ def __init__( self.job_specific_outputs = job_specific_outputs @property - def id(self) -> "str": + def id(self) -> "Optional[str]": """Gets the id of this GrantaServerApiAsyncJobsJob. Returns @@ -176,7 +186,7 @@ def id(self) -> "str": return self._id @id.setter - def id(self, id: "str") -> None: + def id(self, id: "Optional[str]") -> None: """Sets the id of this GrantaServerApiAsyncJobsJob. Parameters @@ -187,7 +197,7 @@ def id(self, id: "str") -> None: self._id = id @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiAsyncJobsJob. Returns @@ -198,7 +208,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiAsyncJobsJob. Parameters @@ -209,7 +219,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiAsyncJobsJob. Returns @@ -220,7 +230,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiAsyncJobsJob. Parameters @@ -231,7 +241,7 @@ def description(self, description: "str") -> None: self._description = description @property - def type(self) -> "str": + def type(self) -> "Optional[str]": """Gets the type of this GrantaServerApiAsyncJobsJob. Returns @@ -242,7 +252,7 @@ def type(self) -> "str": return self._type @type.setter - def type(self, type: "str") -> None: + def type(self, type: "Optional[str]") -> None: """Sets the type of this GrantaServerApiAsyncJobsJob. Parameters @@ -253,7 +263,7 @@ def type(self, type: "str") -> None: self._type = type @property - def submitter_name(self) -> "str": + def submitter_name(self) -> "Optional[str]": """Gets the submitter_name of this GrantaServerApiAsyncJobsJob. Returns @@ -264,7 +274,7 @@ def submitter_name(self) -> "str": return self._submitter_name @submitter_name.setter - def submitter_name(self, submitter_name: "str") -> None: + def submitter_name(self, submitter_name: "Optional[str]") -> None: """Sets the submitter_name of this GrantaServerApiAsyncJobsJob. Parameters @@ -275,7 +285,7 @@ def submitter_name(self, submitter_name: "str") -> None: self._submitter_name = submitter_name @property - def submitter_roles(self) -> "list[str]": + def submitter_roles(self) -> "Optional[List[str]]": """Gets the submitter_roles of this GrantaServerApiAsyncJobsJob. Returns @@ -286,18 +296,18 @@ def submitter_roles(self) -> "list[str]": return self._submitter_roles @submitter_roles.setter - def submitter_roles(self, submitter_roles: "list[str]") -> None: + def submitter_roles(self, submitter_roles: "Optional[List[str]]") -> None: """Sets the submitter_roles of this GrantaServerApiAsyncJobsJob. Parameters ---------- - submitter_roles: list[str] + submitter_roles: List[str] The submitter_roles of this GrantaServerApiAsyncJobsJob. """ self._submitter_roles = submitter_roles @property - def submission_date(self) -> "datetime": + def submission_date(self) -> "Optional[datetime]": """Gets the submission_date of this GrantaServerApiAsyncJobsJob. Returns @@ -308,7 +318,7 @@ def submission_date(self) -> "datetime": return self._submission_date @submission_date.setter - def submission_date(self, submission_date: "datetime") -> None: + def submission_date(self, submission_date: "Optional[datetime]") -> None: """Sets the submission_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -319,7 +329,7 @@ def submission_date(self, submission_date: "datetime") -> None: self._submission_date = submission_date @property - def scheduled_execution_date(self) -> "datetime": + def scheduled_execution_date(self) -> "Optional[datetime]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsJob. Returns @@ -330,7 +340,9 @@ def scheduled_execution_date(self) -> "datetime": return self._scheduled_execution_date @scheduled_execution_date.setter - def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None: + def scheduled_execution_date( + self, scheduled_execution_date: "Optional[datetime]" + ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -341,7 +353,7 @@ def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None self._scheduled_execution_date = scheduled_execution_date @property - def execution_date(self) -> "datetime": + def execution_date(self) -> "Optional[datetime]": """Gets the execution_date of this GrantaServerApiAsyncJobsJob. Returns @@ -352,7 +364,7 @@ def execution_date(self) -> "datetime": return self._execution_date @execution_date.setter - def execution_date(self, execution_date: "datetime") -> None: + def execution_date(self, execution_date: "Optional[datetime]") -> None: """Sets the execution_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -363,7 +375,7 @@ def execution_date(self, execution_date: "datetime") -> None: self._execution_date = execution_date @property - def completion_date(self) -> "datetime": + def completion_date(self) -> "Optional[datetime]": """Gets the completion_date of this GrantaServerApiAsyncJobsJob. Returns @@ -374,7 +386,7 @@ def completion_date(self) -> "datetime": return self._completion_date @completion_date.setter - def completion_date(self, completion_date: "datetime") -> None: + def completion_date(self, completion_date: "Optional[datetime]") -> None: """Sets the completion_date of this GrantaServerApiAsyncJobsJob. Parameters @@ -385,7 +397,7 @@ def completion_date(self, completion_date: "datetime") -> None: self._completion_date = completion_date @property - def status(self) -> "GrantaServerApiAsyncJobsJobStatus": + def status(self) -> "Optional[GrantaServerApiAsyncJobsJobStatus]": """Gets the status of this GrantaServerApiAsyncJobsJob. Returns @@ -396,7 +408,7 @@ def status(self) -> "GrantaServerApiAsyncJobsJobStatus": return self._status @status.setter - def status(self, status: "GrantaServerApiAsyncJobsJobStatus") -> None: + def status(self, status: "Optional[GrantaServerApiAsyncJobsJobStatus]") -> None: """Sets the status of this GrantaServerApiAsyncJobsJob. Parameters @@ -407,7 +419,7 @@ def status(self, status: "GrantaServerApiAsyncJobsJobStatus") -> None: self._status = status @property - def input_file_ids(self) -> "list[str]": + def input_file_ids(self) -> "Optional[List[str]]": """Gets the input_file_ids of this GrantaServerApiAsyncJobsJob. Returns @@ -418,18 +430,18 @@ def input_file_ids(self) -> "list[str]": return self._input_file_ids @input_file_ids.setter - def input_file_ids(self, input_file_ids: "list[str]") -> None: + def input_file_ids(self, input_file_ids: "Optional[List[str]]") -> None: """Sets the input_file_ids of this GrantaServerApiAsyncJobsJob. Parameters ---------- - input_file_ids: list[str] + input_file_ids: List[str] The input_file_ids of this GrantaServerApiAsyncJobsJob. """ self._input_file_ids = input_file_ids @property - def output_file_names(self) -> "list[str]": + def output_file_names(self) -> "Optional[List[str]]": """Gets the output_file_names of this GrantaServerApiAsyncJobsJob. Returns @@ -440,18 +452,18 @@ def output_file_names(self) -> "list[str]": return self._output_file_names @output_file_names.setter - def output_file_names(self, output_file_names: "list[str]") -> None: + def output_file_names(self, output_file_names: "Optional[List[str]]") -> None: """Sets the output_file_names of this GrantaServerApiAsyncJobsJob. Parameters ---------- - output_file_names: list[str] + output_file_names: List[str] The output_file_names of this GrantaServerApiAsyncJobsJob. """ self._output_file_names = output_file_names @property - def position(self) -> "int": + def position(self) -> "Optional[int]": """Gets the position of this GrantaServerApiAsyncJobsJob. Returns @@ -462,7 +474,7 @@ def position(self) -> "int": return self._position @position.setter - def position(self, position: "int") -> None: + def position(self, position: "Optional[int]") -> None: """Sets the position of this GrantaServerApiAsyncJobsJob. Parameters @@ -473,7 +485,7 @@ def position(self, position: "int") -> None: self._position = position @property - def job_specific_outputs(self) -> "dict(str, object)": + def job_specific_outputs(self) -> "Optional[Dict[str, object]]": """Gets the job_specific_outputs of this GrantaServerApiAsyncJobsJob. Returns @@ -484,12 +496,14 @@ def job_specific_outputs(self) -> "dict(str, object)": return self._job_specific_outputs @job_specific_outputs.setter - def job_specific_outputs(self, job_specific_outputs: "dict(str, object)") -> None: + def job_specific_outputs( + self, job_specific_outputs: "Optional[Dict[str, object]]" + ) -> None: """Sets the job_specific_outputs of this GrantaServerApiAsyncJobsJob. Parameters ---------- - job_specific_outputs: dict(str, object) + job_specific_outputs: Dict[str, object] The job_specific_outputs of this GrantaServerApiAsyncJobsJob. """ self._job_specific_outputs = job_specific_outputs @@ -512,7 +526,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 598fc82a..bce63578 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsProcessingConfig(ModelBase): +class GrantaServerApiAsyncJobsProcessingConfig(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiAsyncJobsProcessingConfig(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "concurrency": "int", "polling_interval_in_milliseconds": "int", "purge_interval_in_milliseconds": "int", "purge_job_age_in_milliseconds": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "concurrency": "concurrency", "polling_interval_in_milliseconds": "pollingIntervalInMilliseconds", "purge_interval_in_milliseconds": "purgeIntervalInMilliseconds", "purge_job_age_in_milliseconds": "purgeJobAgeInMilliseconds", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.concurrency = concurrency @property - def purge_job_age_in_milliseconds(self) -> "int": + def purge_job_age_in_milliseconds(self) -> "Optional[int]": """Gets the purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns @@ -98,7 +108,7 @@ def purge_job_age_in_milliseconds(self) -> "int": @purge_job_age_in_milliseconds.setter def purge_job_age_in_milliseconds( - self, purge_job_age_in_milliseconds: "int" + self, purge_job_age_in_milliseconds: "Optional[int]" ) -> None: """Sets the purge_job_age_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. @@ -110,7 +120,7 @@ def purge_job_age_in_milliseconds( self._purge_job_age_in_milliseconds = purge_job_age_in_milliseconds @property - def purge_interval_in_milliseconds(self) -> "int": + def purge_interval_in_milliseconds(self) -> "Optional[int]": """Gets the purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns @@ -122,7 +132,7 @@ def purge_interval_in_milliseconds(self) -> "int": @purge_interval_in_milliseconds.setter def purge_interval_in_milliseconds( - self, purge_interval_in_milliseconds: "int" + self, purge_interval_in_milliseconds: "Optional[int]" ) -> None: """Sets the purge_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. @@ -134,7 +144,7 @@ def purge_interval_in_milliseconds( self._purge_interval_in_milliseconds = purge_interval_in_milliseconds @property - def polling_interval_in_milliseconds(self) -> "int": + def polling_interval_in_milliseconds(self) -> "Optional[int]": """Gets the polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. Returns @@ -146,7 +156,7 @@ def polling_interval_in_milliseconds(self) -> "int": @polling_interval_in_milliseconds.setter def polling_interval_in_milliseconds( - self, polling_interval_in_milliseconds: "int" + self, polling_interval_in_milliseconds: "Optional[int]" ) -> None: """Sets the polling_interval_in_milliseconds of this GrantaServerApiAsyncJobsProcessingConfig. @@ -158,7 +168,7 @@ def polling_interval_in_milliseconds( self._polling_interval_in_milliseconds = polling_interval_in_milliseconds @property - def concurrency(self) -> "int": + def concurrency(self) -> "Optional[int]": """Gets the concurrency of this GrantaServerApiAsyncJobsProcessingConfig. Returns @@ -169,7 +179,7 @@ def concurrency(self) -> "int": return self._concurrency @concurrency.setter - def concurrency(self, concurrency: "int") -> None: + def concurrency(self, concurrency: "Optional[int]") -> None: """Sets the concurrency of this GrantaServerApiAsyncJobsProcessingConfig. Parameters @@ -197,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 29427c7e..3a811227 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): +class GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiAsyncJobsResubmitJobRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "name": "str", "scheduled_execution_date": "datetime", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "name": "name", "scheduled_execution_date": "scheduledExecutionDate", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.scheduled_execution_date = scheduled_execution_date @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns @@ -90,7 +100,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters @@ -101,7 +111,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns @@ -112,7 +122,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters @@ -123,7 +133,7 @@ def description(self, description: "str") -> None: self._description = description @property - def scheduled_execution_date(self) -> "datetime": + def scheduled_execution_date(self) -> "Optional[datetime]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. Returns @@ -134,7 +144,9 @@ def scheduled_execution_date(self) -> "datetime": return self._scheduled_execution_date @scheduled_execution_date.setter - def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None: + def scheduled_execution_date( + self, scheduled_execution_date: "Optional[datetime]" + ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsResubmitJobRequest. Parameters @@ -162,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3021e468..747ed499 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): +class GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiAsyncJobsUpdateJobRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "name": "str", "scheduled_execution_date": "datetime", "status": "GrantaServerApiAsyncJobsJobStatus", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "name": "name", "scheduled_execution_date": "scheduledExecutionDate", "status": "status", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "status": "GrantaServerApiAsyncJobsJobStatus", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,7 +98,7 @@ def __init__( self.status = status @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns @@ -99,7 +109,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters @@ -110,7 +120,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns @@ -121,7 +131,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters @@ -132,7 +142,7 @@ def description(self, description: "str") -> None: self._description = description @property - def scheduled_execution_date(self) -> "datetime": + def scheduled_execution_date(self) -> "Optional[datetime]": """Gets the scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns @@ -143,7 +153,9 @@ def scheduled_execution_date(self) -> "datetime": return self._scheduled_execution_date @scheduled_execution_date.setter - def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None: + def scheduled_execution_date( + self, scheduled_execution_date: "Optional[datetime]" + ) -> None: """Sets the scheduled_execution_date of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters @@ -154,7 +166,7 @@ def scheduled_execution_date(self, scheduled_execution_date: "datetime") -> None self._scheduled_execution_date = scheduled_execution_date @property - def status(self) -> "GrantaServerApiAsyncJobsJobStatus": + def status(self) -> "Optional[GrantaServerApiAsyncJobsJobStatus]": """Gets the status of this GrantaServerApiAsyncJobsUpdateJobRequest. Returns @@ -165,7 +177,7 @@ def status(self) -> "GrantaServerApiAsyncJobsJobStatus": return self._status @status.setter - def status(self, status: "GrantaServerApiAsyncJobsJobStatus") -> None: + def status(self, status: "Optional[GrantaServerApiAsyncJobsJobStatus]") -> None: """Sets the status of this GrantaServerApiAsyncJobsUpdateJobRequest. Parameters @@ -193,7 +205,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d0509a02..0b04748b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,15 +51,15 @@ class GrantaServerApiDataApplicableDatum(GrantaServerApiDataDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "integer".lower(): "#/components/schemas/GrantaServerApiDataIntegerDatum", @@ -62,7 +72,7 @@ class GrantaServerApiDataApplicableDatum(GrantaServerApiDataDatum): "range".lower(): "#/components/schemas/GrantaServerApiDataRangeDatum", } - discriminator = "datum_type" + discriminator: Optional[str] = "datum_type" def __init__( self, @@ -76,7 +86,7 @@ def __init__( not_applicable: str """ super().__init__() - self._not_applicable = None + self._not_applicable: str = None # type: ignore[assignment] self.not_applicable = not_applicable @@ -116,19 +126,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e214eb24..880b3ee9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiDataDateTimeDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "date_time": "datetime", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "date_time": "dateTime", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,8 +81,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._date_time = None + self._datum_type: str = None # type: ignore[assignment] + self._date_time: datetime = None # type: ignore[assignment] self.datum_type = datum_type self.date_time = date_time @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d12b7044..70438424 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataDatum(ModelBase): +class GrantaServerApiDataDatum(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,18 +48,18 @@ class GrantaServerApiDataDatum(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "applicable".lower(): "#/components/schemas/GrantaServerApiDataApplicableDatum", "notApplicable".lower(): "#/components/schemas/GrantaServerApiDataNotApplicableDatum", } - discriminator = "not_applicable" + discriminator: Optional[str] = "not_applicable" def __init__( self, @@ -68,19 +78,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f786ab3e..3025114b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,23 +49,23 @@ class GrantaServerApiDataDiscreteDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_values": "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_values": "discreteValues", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteValues": "GrantaServerApiSchemaDiscreteValuesDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._discrete_values = None + self._datum_type: str = None # type: ignore[assignment] + self._discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] = None # type: ignore[assignment] self.datum_type = datum_type self.discrete_values = discrete_values @@ -106,7 +116,7 @@ def datum_type(self, datum_type: "str") -> None: @property def discrete_values( self, - ) -> "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": + ) -> "List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": """Gets the discrete_values of this GrantaServerApiDataDiscreteDatum. Returns @@ -118,13 +128,13 @@ def discrete_values( @discrete_values.setter def discrete_values( - self, discrete_values: "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]" + self, discrete_values: "List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]" ) -> None: """Sets the discrete_values of this GrantaServerApiDataDiscreteDatum. Parameters ---------- - discrete_values: list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] The discrete_values of this GrantaServerApiDataDiscreteDatum. """ if discrete_values is None: @@ -149,7 +159,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 80940f6b..f7d09645 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportAttributeToExport(ModelBase): +class GrantaServerApiDataExportAttributeToExport(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +48,24 @@ class GrantaServerApiDataExportAttributeToExport(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "link".lower(): "#/components/schemas/GrantaServerApiDataExportLinkAttributeToExport", "simple".lower(): "#/components/schemas/GrantaServerApiDataExportSimpleAttributeToExport", } - discriminator = "attribute_type" + discriminator: Optional[str] = "attribute_type" def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.guid = guid @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiDataExportAttributeToExport. Returns @@ -90,7 +100,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiDataExportAttributeToExport. Parameters @@ -101,7 +111,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiDataExportAttributeToExport. Returns @@ -112,7 +122,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiDataExportAttributeToExport. Parameters @@ -134,19 +144,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2230a425..57b1f24f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDataExportRequest(ModelBase): +class GrantaServerApiDataExportDataExportRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiDataExportDataExportRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attributes": "list[GrantaServerApiDataExportAttributeToExport]", "record_history_identities": "list[int]", "record_properties": "list[GrantaServerApiRecordProperty]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attributes": "attributes", "record_history_identities": "recordHistoryIdentities", "record_properties": "recordProperties", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiDataExportAttributeToExport", "recordProperties": "GrantaServerApiRecordProperty", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,9 @@ def __init__( self.record_history_identities = record_history_identities @property - def attributes(self) -> "list[GrantaServerApiDataExportAttributeToExport]": + def attributes( + self, + ) -> "Optional[List[GrantaServerApiDataExportAttributeToExport]]": """Gets the attributes of this GrantaServerApiDataExportDataExportRequest. Returns @@ -94,19 +106,19 @@ def attributes(self) -> "list[GrantaServerApiDataExportAttributeToExport]": @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiDataExportAttributeToExport]" + self, attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" ) -> None: """Sets the attributes of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - attributes: list[GrantaServerApiDataExportAttributeToExport] + attributes: List[GrantaServerApiDataExportAttributeToExport] The attributes of this GrantaServerApiDataExportDataExportRequest. """ self._attributes = attributes @property - def record_properties(self) -> "list[GrantaServerApiRecordProperty]": + def record_properties(self) -> "Optional[List[GrantaServerApiRecordProperty]]": """Gets the record_properties of this GrantaServerApiDataExportDataExportRequest. Returns @@ -118,19 +130,19 @@ def record_properties(self) -> "list[GrantaServerApiRecordProperty]": @record_properties.setter def record_properties( - self, record_properties: "list[GrantaServerApiRecordProperty]" + self, record_properties: "Optional[List[GrantaServerApiRecordProperty]]" ) -> None: """Sets the record_properties of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - record_properties: list[GrantaServerApiRecordProperty] + record_properties: List[GrantaServerApiRecordProperty] The record_properties of this GrantaServerApiDataExportDataExportRequest. """ self._record_properties = record_properties @property - def record_history_identities(self) -> "list[int]": + def record_history_identities(self) -> "Optional[List[int]]": """Gets the record_history_identities of this GrantaServerApiDataExportDataExportRequest. Returns @@ -141,12 +153,14 @@ def record_history_identities(self) -> "list[int]": return self._record_history_identities @record_history_identities.setter - def record_history_identities(self, record_history_identities: "list[int]") -> None: + def record_history_identities( + self, record_history_identities: "Optional[List[int]]" + ) -> None: """Sets the record_history_identities of this GrantaServerApiDataExportDataExportRequest. Parameters ---------- - record_history_identities: list[int] + record_history_identities: List[int] The record_history_identities of this GrantaServerApiDataExportDataExportRequest. """ self._record_history_identities = record_history_identities @@ -169,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 8eb182a8..7f1a8b41 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDataExportResponse(ModelBase): +class GrantaServerApiDataExportDataExportResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiDataExportDataExportResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failures": "list[GrantaServerApiDataExportExportFailuresExportFailure]", "results": "list[GrantaServerApiDataExportRecordWithData]", } - attribute_map = { + attribute_map: Dict[str, str] = { "failures": "failures", "results": "results", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "results": "GrantaServerApiDataExportRecordWithData", "failures": "GrantaServerApiDataExportExportFailuresExportFailure", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -66,14 +76,14 @@ def __init__( failures: List[GrantaServerApiDataExportExportFailuresExportFailure] results: List[GrantaServerApiDataExportRecordWithData] """ - self._results = None - self._failures = None + self._results: List[GrantaServerApiDataExportRecordWithData] = None # type: ignore[assignment] + self._failures: List[GrantaServerApiDataExportExportFailuresExportFailure] = None # type: ignore[assignment] self.results = results self.failures = failures @property - def results(self) -> "list[GrantaServerApiDataExportRecordWithData]": + def results(self) -> "List[GrantaServerApiDataExportRecordWithData]": """Gets the results of this GrantaServerApiDataExportDataExportResponse. Returns @@ -84,12 +94,12 @@ def results(self) -> "list[GrantaServerApiDataExportRecordWithData]": return self._results @results.setter - def results(self, results: "list[GrantaServerApiDataExportRecordWithData]") -> None: + def results(self, results: "List[GrantaServerApiDataExportRecordWithData]") -> None: """Sets the results of this GrantaServerApiDataExportDataExportResponse. Parameters ---------- - results: list[GrantaServerApiDataExportRecordWithData] + results: List[GrantaServerApiDataExportRecordWithData] The results of this GrantaServerApiDataExportDataExportResponse. """ if results is None: @@ -97,7 +107,7 @@ def results(self, results: "list[GrantaServerApiDataExportRecordWithData]") -> N self._results = results @property - def failures(self) -> "list[GrantaServerApiDataExportExportFailuresExportFailure]": + def failures(self) -> "List[GrantaServerApiDataExportExportFailuresExportFailure]": """Gets the failures of this GrantaServerApiDataExportDataExportResponse. List the records that were requested, but that we failed to export any data for. @@ -110,14 +120,14 @@ def failures(self) -> "list[GrantaServerApiDataExportExportFailuresExportFailure @failures.setter def failures( - self, failures: "list[GrantaServerApiDataExportExportFailuresExportFailure]" + self, failures: "List[GrantaServerApiDataExportExportFailuresExportFailure]" ) -> None: """Sets the failures of this GrantaServerApiDataExportDataExportResponse. List the records that were requested, but that we failed to export any data for. Parameters ---------- - failures: list[GrantaServerApiDataExportExportFailuresExportFailure] + failures: List[GrantaServerApiDataExportExportFailuresExportFailure] The failures of this GrantaServerApiDataExportDataExportResponse. """ if failures is None: @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2c912f9d..3f5c611f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,21 +53,21 @@ class GrantaServerApiDataExportDatumsApplicableDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "meta_datums": "list[GrantaServerApiDataExportDatumsDatum]", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "meta_datums": "metaDatums", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "logical".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsBooleanDatum", @@ -76,7 +86,7 @@ class GrantaServerApiDataExportDatumsApplicableDatum( "shortText".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsShortTextDatum", } - discriminator = "datum_type" + discriminator: Optional[str] = "datum_type" def __init__( self, @@ -100,7 +110,7 @@ def __init__( attribute_identity=attribute_identity, meta_datums=meta_datums, ) - self._not_applicable = None + self._not_applicable: str = None # type: ignore[assignment] self.not_applicable = not_applicable @@ -140,19 +150,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ae8d301..121be149 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsBinaryData(ModelBase): +class GrantaServerApiDataExportDatumsBinaryData(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsBinaryData(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "content_type": "str", "data": "str", "description": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "content_type": "contentType", "data": "data", "description": "description", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.data = data @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiDataExportDatumsBinaryData. Returns @@ -97,7 +107,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiDataExportDatumsBinaryData. Parameters @@ -108,7 +118,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiDataExportDatumsBinaryData. Returns @@ -119,7 +129,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiDataExportDatumsBinaryData. Parameters @@ -130,7 +140,7 @@ def description(self, description: "str") -> None: self._description = description @property - def content_type(self) -> "str": + def content_type(self) -> "Optional[str]": """Gets the content_type of this GrantaServerApiDataExportDatumsBinaryData. Returns @@ -141,7 +151,7 @@ def content_type(self) -> "str": return self._content_type @content_type.setter - def content_type(self, content_type: "str") -> None: + def content_type(self, content_type: "Optional[str]") -> None: """Sets the content_type of this GrantaServerApiDataExportDatumsBinaryData. Parameters @@ -152,7 +162,7 @@ def content_type(self, content_type: "str") -> None: self._content_type = content_type @property - def data(self) -> "str": + def data(self) -> "Optional[str]": """Gets the data of this GrantaServerApiDataExportDatumsBinaryData. Returns @@ -163,7 +173,7 @@ def data(self) -> "str": return self._data @data.setter - def data(self, data: "str") -> None: + def data(self, data: "Optional[str]") -> None: """Sets the data of this GrantaServerApiDataExportDatumsBinaryData. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 07fcf985..a2d8a1c0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsBooleanDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsBooleanDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsBooleanDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -122,7 +132,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "bool": + def datum_value(self) -> "Optional[bool]": """Gets the datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. Returns @@ -133,7 +143,7 @@ def datum_value(self) -> "bool": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "bool") -> None: + def datum_value(self, datum_value: "Optional[bool]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsBooleanDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6b0e6b8b..acb60af5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsDateTimeDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsDateTimeDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsDateTimeDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -122,7 +132,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "datetime": + def datum_value(self) -> "Optional[datetime]": """Gets the datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. Returns @@ -133,7 +143,7 @@ def datum_value(self) -> "datetime": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "datetime") -> None: + def datum_value(self, datum_value: "Optional[datetime]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsDateTimeDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3251a360..f5a5292f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsDatum(ModelBase): +class GrantaServerApiDataExportDatumsDatum(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,19 +48,19 @@ class GrantaServerApiDataExportDatumsDatum(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "meta_datums": "list[GrantaServerApiDataExportDatumsDatum]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "meta_datums": "metaDatums", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "metaDatums": "GrantaServerApiDataExportDatumsDatum", } @@ -60,7 +70,7 @@ class GrantaServerApiDataExportDatumsDatum(ModelBase): "unknown".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsUnknownDatum", } - discriminator = "not_applicable" + discriminator: Optional[str] = "not_applicable" def __init__( self, @@ -89,7 +99,7 @@ def __init__( self.meta_datums = meta_datums @property - def attribute_identity(self) -> "int": + def attribute_identity(self) -> "Optional[int]": """Gets the attribute_identity of this GrantaServerApiDataExportDatumsDatum. Returns @@ -100,7 +110,7 @@ def attribute_identity(self) -> "int": return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "int") -> None: + def attribute_identity(self, attribute_identity: "Optional[int]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportDatumsDatum. Parameters @@ -111,7 +121,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """Gets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. Returns @@ -122,7 +132,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. Parameters @@ -133,7 +143,7 @@ def attribute_guid(self, attribute_guid: "str") -> None: self._attribute_guid = attribute_guid @property - def meta_datums(self) -> "list[GrantaServerApiDataExportDatumsDatum]": + def meta_datums(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": """Gets the meta_datums of this GrantaServerApiDataExportDatumsDatum. Returns @@ -145,13 +155,13 @@ def meta_datums(self) -> "list[GrantaServerApiDataExportDatumsDatum]": @meta_datums.setter def meta_datums( - self, meta_datums: "list[GrantaServerApiDataExportDatumsDatum]" + self, meta_datums: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" ) -> None: """Sets the meta_datums of this GrantaServerApiDataExportDatumsDatum. Parameters ---------- - meta_datums: list[GrantaServerApiDataExportDatumsDatum] + meta_datums: List[GrantaServerApiDataExportDatumsDatum] The meta_datums of this GrantaServerApiDataExportDatumsDatum. """ self._meta_datums = meta_datums @@ -168,19 +178,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 73437d55..6ca4aae6 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsDiscreteDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsDiscreteDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,11 +69,11 @@ class GrantaServerApiDataExportDatumsDiscreteDatum( "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +102,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -124,7 +134,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "list[GrantaServerApiDiscreteValue]": + def datum_value(self) -> "Optional[List[GrantaServerApiDiscreteValue]]": """Gets the datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. Returns @@ -135,12 +145,14 @@ def datum_value(self) -> "list[GrantaServerApiDiscreteValue]": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "list[GrantaServerApiDiscreteValue]") -> None: + def datum_value( + self, datum_value: "Optional[List[GrantaServerApiDiscreteValue]]" + ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. Parameters ---------- - datum_value: list[GrantaServerApiDiscreteValue] + datum_value: List[GrantaServerApiDiscreteValue] The datum_value of this GrantaServerApiDataExportDatumsDiscreteDatum. """ self._datum_value = datum_value @@ -163,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b8fa80ad..3e54e729 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,7 +53,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -53,7 +63,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -63,7 +73,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "xAxisParameter": "GrantaServerApiFunctionalDatumParameterInfo", "parameters": "GrantaServerApiFunctionalDatumParameterInfo", } @@ -73,7 +83,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalDatum( "series".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum", } - discriminator = "graph_type" + discriminator: Optional[str] = "graph_type" def __init__( self, @@ -104,7 +114,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._x_axis_parameter = None self._parameters = None @@ -139,7 +149,9 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def x_axis_parameter(self) -> "GrantaServerApiFunctionalDatumParameterInfo": + def x_axis_parameter( + self, + ) -> "Optional[GrantaServerApiFunctionalDatumParameterInfo]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Returns @@ -151,7 +163,7 @@ def x_axis_parameter(self) -> "GrantaServerApiFunctionalDatumParameterInfo": @x_axis_parameter.setter def x_axis_parameter( - self, x_axis_parameter: "GrantaServerApiFunctionalDatumParameterInfo" + self, x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. @@ -163,7 +175,9 @@ def x_axis_parameter( self._x_axis_parameter = x_axis_parameter @property - def parameters(self) -> "list[GrantaServerApiFunctionalDatumParameterInfo]": + def parameters( + self, + ) -> "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]": """Gets the parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Returns @@ -175,13 +189,13 @@ def parameters(self) -> "list[GrantaServerApiFunctionalDatumParameterInfo]": @parameters.setter def parameters( - self, parameters: "list[GrantaServerApiFunctionalDatumParameterInfo]" + self, parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" ) -> None: """Sets the parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. Parameters ---------- - parameters: list[GrantaServerApiFunctionalDatumParameterInfo] + parameters: List[GrantaServerApiFunctionalDatumParameterInfo] The parameters of this GrantaServerApiDataExportDatumsDiscreteFunctionalDatum. """ self._parameters = parameters @@ -198,19 +212,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9b571d9d..6d836d47 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_discrete_functional_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -53,7 +63,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -65,11 +75,11 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "values": "GrantaServerApiDataExportDatumsDiscreteGridPoint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( parameters=parameters, x_axis_parameter=x_axis_parameter, ) - self._graph_type = None + self._graph_type: str = None # type: ignore[assignment] self._values = None self.graph_type = graph_type @@ -139,7 +149,9 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def values(self) -> "list[GrantaServerApiDataExportDatumsDiscreteGridPoint]": + def values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteGridPoint]]": """Gets the values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. Returns @@ -151,13 +163,13 @@ def values(self) -> "list[GrantaServerApiDataExportDatumsDiscreteGridPoint]": @values.setter def values( - self, values: "list[GrantaServerApiDataExportDatumsDiscreteGridPoint]" + self, values: "Optional[List[GrantaServerApiDataExportDatumsDiscreteGridPoint]]" ) -> None: """Sets the values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. Parameters ---------- - values: list[GrantaServerApiDataExportDatumsDiscreteGridPoint] + values: List[GrantaServerApiDataExportDatumsDiscreteGridPoint] The values of this GrantaServerApiDataExportDatumsDiscreteFunctionalGridDatum. """ self._values = values @@ -180,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f85092bd..716d71f5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_discrete_functional_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -53,7 +63,7 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -65,11 +75,11 @@ class GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "series": "GrantaServerApiDataExportDatumsDiscreteSeries", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( parameters=parameters, x_axis_parameter=x_axis_parameter, ) - self._graph_type = None + self._graph_type: str = None # type: ignore[assignment] self._series = None self.graph_type = graph_type @@ -139,7 +149,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def series(self) -> "list[GrantaServerApiDataExportDatumsDiscreteSeries]": + def series(self) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeries]]": """Gets the series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. Returns @@ -151,13 +161,13 @@ def series(self) -> "list[GrantaServerApiDataExportDatumsDiscreteSeries]": @series.setter def series( - self, series: "list[GrantaServerApiDataExportDatumsDiscreteSeries]" + self, series: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeries]]" ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. Parameters ---------- - series: list[GrantaServerApiDataExportDatumsDiscreteSeries] + series: List[GrantaServerApiDataExportDatumsDiscreteSeries] The series of this GrantaServerApiDataExportDatumsDiscreteFunctionalSeriesDatum. """ self._series = series @@ -180,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 772c3758..f28caf5e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): +class GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiDataExportDatumsDiscreteGridPoint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_values": "list[GrantaServerApiDataExportDatumsParameterValue]", "value": "GrantaServerApiDiscreteValue", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_values": "parameterValues", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiDataExportDatumsParameterValue", "value": "GrantaServerApiDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,9 @@ def __init__( self.value = value @property - def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValue]": + def parameter_values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Returns @@ -87,19 +99,20 @@ def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValu @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiDataExportDatumsParameterValue]" + self, + parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Parameters ---------- - parameter_values: list[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteGridPoint. """ self._parameter_values = parameter_values @property - def value(self) -> "GrantaServerApiDiscreteValue": + def value(self) -> "Optional[GrantaServerApiDiscreteValue]": """Gets the value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Returns @@ -110,7 +123,7 @@ def value(self) -> "GrantaServerApiDiscreteValue": return self._value @value.setter - def value(self, value: "GrantaServerApiDiscreteValue") -> None: + def value(self, value: "Optional[GrantaServerApiDiscreteValue]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsDiscreteGridPoint. Parameters @@ -138,7 +151,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a9c66b32..c4715e81 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): +class GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiDataExportDatumsDiscreteSeries(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_values": "list[GrantaServerApiDataExportDatumsParameterValue]", "points": "list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_values": "parameterValues", "points": "points", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiDataExportDatumsParameterValue", "points": "GrantaServerApiDataExportDatumsDiscreteSeriesPoint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,9 @@ def __init__( self.points = points @property - def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValue]": + def parameter_values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. Returns @@ -87,19 +99,22 @@ def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValu @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiDataExportDatumsParameterValue]" + self, + parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. Parameters ---------- - parameter_values: list[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] The parameter_values of this GrantaServerApiDataExportDatumsDiscreteSeries. """ self._parameter_values = parameter_values @property - def points(self) -> "list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]": + def points( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]]": """Gets the points of this GrantaServerApiDataExportDatumsDiscreteSeries. Returns @@ -111,13 +126,14 @@ def points(self) -> "list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]": @points.setter def points( - self, points: "list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]" + self, + points: "Optional[List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint]]", ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsDiscreteSeries. Parameters ---------- - points: list[GrantaServerApiDataExportDatumsDiscreteSeriesPoint] + points: List[GrantaServerApiDataExportDatumsDiscreteSeriesPoint] The points of this GrantaServerApiDataExportDatumsDiscreteSeries. """ self._points = points @@ -140,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7cb5c73d..ea949833 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): +class GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsDiscreteSeriesPoint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "x": "float", "x_name": "str", "y": "GrantaServerApiDiscreteValue", } - attribute_map = { + attribute_map: Dict[str, str] = { "x": "x", "x_name": "xName", "y": "y", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "y": "GrantaServerApiDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,7 @@ def __init__( self.y = y @property - def x(self) -> "float": + def x(self) -> "Optional[float]": """Gets the x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns @@ -92,7 +102,7 @@ def x(self) -> "float": return self._x @x.setter - def x(self, x: "float") -> None: + def x(self, x: "Optional[float]") -> None: """Sets the x of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters @@ -103,7 +113,7 @@ def x(self, x: "float") -> None: self._x = x @property - def x_name(self) -> "str": + def x_name(self) -> "Optional[str]": """Gets the x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns @@ -114,7 +124,7 @@ def x_name(self) -> "str": return self._x_name @x_name.setter - def x_name(self, x_name: "str") -> None: + def x_name(self, x_name: "Optional[str]") -> None: """Sets the x_name of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters @@ -125,7 +135,7 @@ def x_name(self, x_name: "str") -> None: self._x_name = x_name @property - def y(self) -> "GrantaServerApiDiscreteValue": + def y(self) -> "Optional[GrantaServerApiDiscreteValue]": """Gets the y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Returns @@ -136,7 +146,7 @@ def y(self) -> "GrantaServerApiDiscreteValue": return self._y @y.setter - def y(self, y: "GrantaServerApiDiscreteValue") -> None: + def y(self, y: "Optional[GrantaServerApiDiscreteValue]") -> None: """Sets the y of this GrantaServerApiDataExportDatumsDiscreteSeriesPoint. Parameters @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d7d1fcf3..d657630d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsFileDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsFileDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,11 +69,11 @@ class GrantaServerApiDataExportDatumsFileDatum( "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDataExportDatumsBinaryData", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +102,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -124,7 +134,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "GrantaServerApiDataExportDatumsBinaryData": + def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsBinaryData]": """Gets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. Returns @@ -136,7 +146,7 @@ def datum_value(self) -> "GrantaServerApiDataExportDatumsBinaryData": @datum_value.setter def datum_value( - self, datum_value: "GrantaServerApiDataExportDatumsBinaryData" + self, datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsFileDatum. @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1c71529e..25f7608d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,7 +53,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -55,7 +65,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -67,7 +77,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "xAxisParameter": "GrantaServerApiFunctionalDatumParameterInfo", "parameters": "GrantaServerApiFunctionalDatumParameterInfo", } @@ -77,7 +87,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum( "series".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsFunctionalSeriesDatum", } - discriminator = "graph_type" + discriminator: Optional[str] = "graph_type" def __init__( self, @@ -112,7 +122,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._unit_symbol = None self._x_axis_parameter = None self._parameters = None @@ -153,7 +163,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns @@ -164,7 +174,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters @@ -175,7 +185,9 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def x_axis_parameter(self) -> "GrantaServerApiFunctionalDatumParameterInfo": + def x_axis_parameter( + self, + ) -> "Optional[GrantaServerApiFunctionalDatumParameterInfo]": """Gets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns @@ -187,7 +199,7 @@ def x_axis_parameter(self) -> "GrantaServerApiFunctionalDatumParameterInfo": @x_axis_parameter.setter def x_axis_parameter( - self, x_axis_parameter: "GrantaServerApiFunctionalDatumParameterInfo" + self, x_axis_parameter: "Optional[GrantaServerApiFunctionalDatumParameterInfo]" ) -> None: """Sets the x_axis_parameter of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. @@ -199,7 +211,9 @@ def x_axis_parameter( self._x_axis_parameter = x_axis_parameter @property - def parameters(self) -> "list[GrantaServerApiFunctionalDatumParameterInfo]": + def parameters( + self, + ) -> "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]": """Gets the parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns @@ -211,19 +225,19 @@ def parameters(self) -> "list[GrantaServerApiFunctionalDatumParameterInfo]": @parameters.setter def parameters( - self, parameters: "list[GrantaServerApiFunctionalDatumParameterInfo]" + self, parameters: "Optional[List[GrantaServerApiFunctionalDatumParameterInfo]]" ) -> None: """Sets the parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters ---------- - parameters: list[GrantaServerApiFunctionalDatumParameterInfo] + parameters: List[GrantaServerApiFunctionalDatumParameterInfo] The parameters of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. """ self._parameters = parameters @property - def is_estimated(self) -> "bool": + def is_estimated(self) -> "Optional[bool]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Returns @@ -234,7 +248,7 @@ def is_estimated(self) -> "bool": return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "bool") -> None: + def is_estimated(self, is_estimated: "Optional[bool]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsFloatFunctionalDatum. Parameters @@ -256,19 +270,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9646e460..2551edba 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_float_functional_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -55,7 +65,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -69,11 +79,11 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "points": "GrantaServerApiDataExportDatumsGridPoint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,7 +127,7 @@ def __init__( unit_symbol=unit_symbol, x_axis_parameter=x_axis_parameter, ) - self._graph_type = None + self._graph_type: str = None # type: ignore[assignment] self._points = None self.graph_type = graph_type @@ -149,7 +159,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def points(self) -> "list[GrantaServerApiDataExportDatumsGridPoint]": + def points(self) -> "Optional[List[GrantaServerApiDataExportDatumsGridPoint]]": """Gets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. Returns @@ -160,12 +170,14 @@ def points(self) -> "list[GrantaServerApiDataExportDatumsGridPoint]": return self._points @points.setter - def points(self, points: "list[GrantaServerApiDataExportDatumsGridPoint]") -> None: + def points( + self, points: "Optional[List[GrantaServerApiDataExportDatumsGridPoint]]" + ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. Parameters ---------- - points: list[GrantaServerApiDataExportDatumsGridPoint] + points: List[GrantaServerApiDataExportDatumsGridPoint] The points of this GrantaServerApiDataExportDatumsFunctionalGridDatum. """ self._points = points @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 de8fb192..92be22fd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_float_functional_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -58,7 +68,7 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum( "x_axis_parameter": "GrantaServerApiFunctionalDatumParameterInfo", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -75,11 +85,11 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum( "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "series": "GrantaServerApiDataExportDatumsSeries", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -129,7 +139,7 @@ def __init__( unit_symbol=unit_symbol, x_axis_parameter=x_axis_parameter, ) - self._graph_type = None + self._graph_type: str = None # type: ignore[assignment] self._series = None self._is_logarithmic = None self._is_range = None @@ -170,7 +180,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def series(self) -> "list[GrantaServerApiDataExportDatumsSeries]": + def series(self) -> "Optional[List[GrantaServerApiDataExportDatumsSeries]]": """Gets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns @@ -181,18 +191,20 @@ def series(self) -> "list[GrantaServerApiDataExportDatumsSeries]": return self._series @series.setter - def series(self, series: "list[GrantaServerApiDataExportDatumsSeries]") -> None: + def series( + self, series: "Optional[List[GrantaServerApiDataExportDatumsSeries]]" + ) -> None: """Sets the series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters ---------- - series: list[GrantaServerApiDataExportDatumsSeries] + series: List[GrantaServerApiDataExportDatumsSeries] The series of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. """ self._series = series @property - def is_logarithmic(self) -> "bool": + def is_logarithmic(self) -> "Optional[bool]": """Gets the is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns @@ -203,7 +215,7 @@ def is_logarithmic(self) -> "bool": return self._is_logarithmic @is_logarithmic.setter - def is_logarithmic(self, is_logarithmic: "bool") -> None: + def is_logarithmic(self, is_logarithmic: "Optional[bool]") -> None: """Sets the is_logarithmic of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters @@ -214,7 +226,7 @@ def is_logarithmic(self, is_logarithmic: "bool") -> None: self._is_logarithmic = is_logarithmic @property - def is_range(self) -> "bool": + def is_range(self) -> "Optional[bool]": """Gets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns @@ -225,7 +237,7 @@ def is_range(self) -> "bool": return self._is_range @is_range.setter - def is_range(self, is_range: "bool") -> None: + def is_range(self, is_range: "Optional[bool]") -> None: """Sets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters @@ -236,7 +248,7 @@ def is_range(self, is_range: "bool") -> None: self._is_range = is_range @property - def show_as_table(self) -> "bool": + def show_as_table(self) -> "Optional[bool]": """Gets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Returns @@ -247,7 +259,7 @@ def show_as_table(self) -> "bool": return self._show_as_table @show_as_table.setter - def show_as_table(self, show_as_table: "bool") -> None: + def show_as_table(self, show_as_table: "Optional[bool]") -> None: """Sets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. Parameters @@ -275,7 +287,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ac4e426..11af1110 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsGridPoint(ModelBase): +class GrantaServerApiDataExportDatumsGridPoint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsGridPoint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "high": "float", "low": "float", "parameter_values": "list[GrantaServerApiDataExportDatumsParameterValue]", } - attribute_map = { + attribute_map: Dict[str, str] = { "high": "high", "low": "low", "parameter_values": "parameterValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,9 @@ def __init__( self.high = high @property - def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValue]": + def parameter_values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsGridPoint. Returns @@ -93,19 +105,20 @@ def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValu @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiDataExportDatumsParameterValue]" + self, + parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsGridPoint. Parameters ---------- - parameter_values: list[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] The parameter_values of this GrantaServerApiDataExportDatumsGridPoint. """ self._parameter_values = parameter_values @property - def low(self) -> "float": + def low(self) -> "Optional[float]": """Gets the low of this GrantaServerApiDataExportDatumsGridPoint. Returns @@ -116,7 +129,7 @@ def low(self) -> "float": return self._low @low.setter - def low(self, low: "float") -> None: + def low(self, low: "Optional[float]") -> None: """Sets the low of this GrantaServerApiDataExportDatumsGridPoint. Parameters @@ -127,7 +140,7 @@ def low(self, low: "float") -> None: self._low = low @property - def high(self) -> "float": + def high(self) -> "Optional[float]": """Gets the high of this GrantaServerApiDataExportDatumsGridPoint. Returns @@ -138,7 +151,7 @@ def high(self) -> "float": return self._high @high.setter - def high(self, high: "float") -> None: + def high(self, high: "Optional[float]") -> None: """Sets the high of this GrantaServerApiDataExportDatumsGridPoint. Parameters @@ -166,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b942085d..884e7ebe 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsHyperlink(ModelBase): +class GrantaServerApiDataExportDatumsHyperlink(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiDataExportDatumsHyperlink(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "address": "str", "description": "str", "formatted_address": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "address": "address", "description": "description", "formatted_address": "formattedAddress", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.description = description @property - def address(self) -> "str": + def address(self) -> "Optional[str]": """Gets the address of this GrantaServerApiDataExportDatumsHyperlink. Returns @@ -90,7 +100,7 @@ def address(self) -> "str": return self._address @address.setter - def address(self, address: "str") -> None: + def address(self, address: "Optional[str]") -> None: """Sets the address of this GrantaServerApiDataExportDatumsHyperlink. Parameters @@ -101,7 +111,7 @@ def address(self, address: "str") -> None: self._address = address @property - def formatted_address(self) -> "str": + def formatted_address(self) -> "Optional[str]": """Gets the formatted_address of this GrantaServerApiDataExportDatumsHyperlink. Returns @@ -112,7 +122,7 @@ def formatted_address(self) -> "str": return self._formatted_address @formatted_address.setter - def formatted_address(self, formatted_address: "str") -> None: + def formatted_address(self, formatted_address: "Optional[str]") -> None: """Sets the formatted_address of this GrantaServerApiDataExportDatumsHyperlink. Parameters @@ -123,7 +133,7 @@ def formatted_address(self, formatted_address: "str") -> None: self._formatted_address = formatted_address @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiDataExportDatumsHyperlink. Returns @@ -134,7 +144,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiDataExportDatumsHyperlink. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e75dd23e..c703e7b0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsHyperlinkDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsHyperlinkDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,11 +69,11 @@ class GrantaServerApiDataExportDatumsHyperlinkDatum( "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDataExportDatumsHyperlink", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +102,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -124,7 +134,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "GrantaServerApiDataExportDatumsHyperlink": + def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsHyperlink]": """Gets the datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. Returns @@ -136,7 +146,7 @@ def datum_value(self) -> "GrantaServerApiDataExportDatumsHyperlink": @datum_value.setter def datum_value( - self, datum_value: "GrantaServerApiDataExportDatumsHyperlink" + self, datum_value: "Optional[GrantaServerApiDataExportDatumsHyperlink]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsHyperlinkDatum. @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f40879dc..0dd33296 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -43,7 +53,7 @@ class GrantaServerApiDataExportDatumsLinkDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -51,7 +61,7 @@ class GrantaServerApiDataExportDatumsLinkDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,14 +69,14 @@ class GrantaServerApiDataExportDatumsLinkDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "linkGroup".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsLinkedRecordsDatum", "tabular".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsTabularDatum", } - discriminator = "link_datum_type" + discriminator: Optional[str] = "link_datum_type" def __init__( self, @@ -93,7 +103,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self.datum_type = datum_type @@ -133,19 +143,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 74e4c573..4df71757 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_link_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -58,7 +68,7 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum( "target_database_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -75,13 +85,13 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum( "target_database_guid": "targetDatabaseGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkAttributeType": "GrantaServerApiLinkAttributeType", "linkedRecords": "GrantaServerApiDataExportRecordWithData", "rolledUpData": "GrantaServerApiDataExportDatumsRollupRollupDatum", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -135,7 +145,7 @@ def __init__( 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 = None + self._link_datum_type: str = None # type: ignore[assignment] if link_group_name is not None: self.link_group_name = link_group_name @@ -158,7 +168,7 @@ def __init__( self.link_datum_type = link_datum_type @property - def link_group_name(self) -> "str": + def link_group_name(self) -> "Optional[str]": """Gets the link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -169,7 +179,7 @@ def link_group_name(self) -> "str": return self._link_group_name @link_group_name.setter - def link_group_name(self, link_group_name: "str") -> None: + def link_group_name(self, link_group_name: "Optional[str]") -> None: """Sets the link_group_name of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters @@ -180,7 +190,7 @@ def link_group_name(self, link_group_name: "str") -> None: self._link_group_name = link_group_name @property - def link_attribute_type(self) -> "GrantaServerApiLinkAttributeType": + def link_attribute_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": """Gets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -192,7 +202,7 @@ def link_attribute_type(self) -> "GrantaServerApiLinkAttributeType": @link_attribute_type.setter def link_attribute_type( - self, link_attribute_type: "GrantaServerApiLinkAttributeType" + self, link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" ) -> None: """Sets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. @@ -204,7 +214,7 @@ def link_attribute_type( self._link_attribute_type = link_attribute_type @property - def export_in_reversed_direction(self) -> "bool": + def export_in_reversed_direction(self) -> "Optional[bool]": """Gets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -216,7 +226,7 @@ def export_in_reversed_direction(self) -> "bool": @export_in_reversed_direction.setter def export_in_reversed_direction( - self, export_in_reversed_direction: "bool" + self, export_in_reversed_direction: "Optional[bool]" ) -> None: """Sets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. @@ -228,7 +238,7 @@ def export_in_reversed_direction( self._export_in_reversed_direction = export_in_reversed_direction @property - def target_database_guid(self) -> "str": + def target_database_guid(self) -> "Optional[str]": """Gets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -239,7 +249,7 @@ def target_database_guid(self) -> "str": return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "str") -> None: + def target_database_guid(self, target_database_guid: "Optional[str]") -> None: """Sets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters @@ -250,7 +260,9 @@ def target_database_guid(self, target_database_guid: "str") -> None: self._target_database_guid = target_database_guid @property - def linked_records(self) -> "list[GrantaServerApiDataExportRecordWithData]": + def linked_records( + self, + ) -> "Optional[List[GrantaServerApiDataExportRecordWithData]]": """Gets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -262,19 +274,19 @@ def linked_records(self) -> "list[GrantaServerApiDataExportRecordWithData]": @linked_records.setter def linked_records( - self, linked_records: "list[GrantaServerApiDataExportRecordWithData]" + self, linked_records: "Optional[List[GrantaServerApiDataExportRecordWithData]]" ) -> None: """Sets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - linked_records: list[GrantaServerApiDataExportRecordWithData] + linked_records: List[GrantaServerApiDataExportRecordWithData] The linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._linked_records = linked_records @property - def link_group_names_by_database_key(self) -> "dict(str, str)": + def link_group_names_by_database_key(self) -> "Optional[Dict[str, str]]": """Gets the link_group_names_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -286,19 +298,19 @@ def link_group_names_by_database_key(self) -> "dict(str, str)": @link_group_names_by_database_key.setter def link_group_names_by_database_key( - self, link_group_names_by_database_key: "dict(str, str)" + self, link_group_names_by_database_key: "Optional[Dict[str, str]]" ) -> 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: Dict[str, str] 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) -> "dict(str, int)": + def link_group_identities_by_database_key(self) -> "Optional[Dict[str, int]]": """Gets the link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -310,13 +322,13 @@ def link_group_identities_by_database_key(self) -> "dict(str, int)": @link_group_identities_by_database_key.setter def link_group_identities_by_database_key( - self, link_group_identities_by_database_key: "dict(str, int)" + self, link_group_identities_by_database_key: "Optional[Dict[str, int]]" ) -> 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: Dict[str, int] The link_group_identities_by_database_key of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._link_group_identities_by_database_key = ( @@ -326,7 +338,7 @@ def link_group_identities_by_database_key( @property def rolled_up_data( self, - ) -> "list[GrantaServerApiDataExportDatumsRollupRollupDatum]": + ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": """Gets the rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Returns @@ -338,13 +350,14 @@ def rolled_up_data( @rolled_up_data.setter def rolled_up_data( - self, rolled_up_data: "list[GrantaServerApiDataExportDatumsRollupRollupDatum]" + self, + rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", ) -> None: """Sets the rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. Parameters ---------- - rolled_up_data: list[GrantaServerApiDataExportDatumsRollupRollupDatum] + rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum] The rolled_up_data of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. """ self._rolled_up_data = rolled_up_data @@ -391,7 +404,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 62fef6d6..4e62f075 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsLongTextDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsLongTextDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsLongTextDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -122,7 +132,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "str": + def datum_value(self) -> "Optional[str]": """Gets the datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. Returns @@ -133,7 +143,7 @@ def datum_value(self) -> "str": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "str") -> None: + def datum_value(self, datum_value: "Optional[str]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsLongTextDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6550d050..3820e545 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsNotApplicableDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "GrantaServerApiAttributeType", @@ -49,7 +59,7 @@ class GrantaServerApiDataExportDatumsNotApplicableDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -57,11 +67,11 @@ class GrantaServerApiDataExportDatumsNotApplicableDatum( "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumType": "GrantaServerApiAttributeType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,14 +98,14 @@ def __init__( meta_datums=meta_datums, ) self._datum_type = None - self._not_applicable = None + self._not_applicable: str = None # type: ignore[assignment] if datum_type is not None: self.datum_type = datum_type self.not_applicable = not_applicable @property - def datum_type(self) -> "GrantaServerApiAttributeType": + def datum_type(self) -> "Optional[GrantaServerApiAttributeType]": """Gets the datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. Returns @@ -106,7 +116,7 @@ def datum_type(self) -> "GrantaServerApiAttributeType": return self._datum_type @datum_type.setter - def datum_type(self, datum_type: "GrantaServerApiAttributeType") -> None: + def datum_type(self, datum_type: "Optional[GrantaServerApiAttributeType]") -> None: """Sets the datum_type of this GrantaServerApiDataExportDatumsNotApplicableDatum. Parameters @@ -158,7 +168,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 57e2b6b9..f7198fea 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsNumericDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsNumericDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsNumericDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -122,7 +132,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "int": + def datum_value(self) -> "Optional[int]": """Gets the datum_value of this GrantaServerApiDataExportDatumsNumericDatum. Returns @@ -133,7 +143,7 @@ def datum_value(self) -> "int": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "int") -> None: + def datum_value(self, datum_value: "Optional[int]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsNumericDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2248016d..1ee50600 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsParameterValue(ModelBase): +class GrantaServerApiDataExportDatumsParameterValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsParameterValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiParameterInfo", "value": "float", "value_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "value": "value", "value_name": "valueName", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiParameterInfo", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,7 @@ def __init__( self.value = value @property - def parameter(self) -> "GrantaServerApiParameterInfo": + def parameter(self) -> "Optional[GrantaServerApiParameterInfo]": """Gets the parameter of this GrantaServerApiDataExportDatumsParameterValue. Returns @@ -92,7 +102,7 @@ def parameter(self) -> "GrantaServerApiParameterInfo": return self._parameter @parameter.setter - def parameter(self, parameter: "GrantaServerApiParameterInfo") -> None: + def parameter(self, parameter: "Optional[GrantaServerApiParameterInfo]") -> None: """Sets the parameter of this GrantaServerApiDataExportDatumsParameterValue. Parameters @@ -103,7 +113,7 @@ def parameter(self, parameter: "GrantaServerApiParameterInfo") -> None: self._parameter = parameter @property - def value_name(self) -> "str": + def value_name(self) -> "Optional[str]": """Gets the value_name of this GrantaServerApiDataExportDatumsParameterValue. Returns @@ -114,7 +124,7 @@ def value_name(self) -> "str": return self._value_name @value_name.setter - def value_name(self, value_name: "str") -> None: + def value_name(self, value_name: "Optional[str]") -> None: """Sets the value_name of this GrantaServerApiDataExportDatumsParameterValue. Parameters @@ -125,7 +135,7 @@ def value_name(self, value_name: "str") -> None: self._value_name = value_name @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiDataExportDatumsParameterValue. Returns @@ -136,7 +146,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsParameterValue. Parameters @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b84d2ddf..73c2de4b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsPictureDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsPictureDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,11 +69,11 @@ class GrantaServerApiDataExportDatumsPictureDatum( "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDataExportDatumsBinaryData", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +102,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -124,7 +134,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "GrantaServerApiDataExportDatumsBinaryData": + def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsBinaryData]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. Returns @@ -136,7 +146,7 @@ def datum_value(self) -> "GrantaServerApiDataExportDatumsBinaryData": @datum_value.setter def datum_value( - self, datum_value: "GrantaServerApiDataExportDatumsBinaryData" + self, datum_value: "Optional[GrantaServerApiDataExportDatumsBinaryData]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPictureDatum. @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 205c34b7..44f1308c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsPoint(ModelBase): +class GrantaServerApiDataExportDatumsPoint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiDataExportDatumsPoint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_values": "list[GrantaServerApiDataExportDatumsParameterValue]", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_values": "parameterValues", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,7 @@ def __init__( self.parameter_values = parameter_values @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiDataExportDatumsPoint. Returns @@ -85,7 +95,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsPoint. Parameters @@ -96,7 +106,9 @@ def value(self, value: "float") -> None: self._value = value @property - def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValue]": + def parameter_values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsPoint. Returns @@ -108,13 +120,14 @@ def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValu @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiDataExportDatumsParameterValue]" + self, + parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsPoint. Parameters ---------- - parameter_values: list[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] The parameter_values of this GrantaServerApiDataExportDatumsPoint. """ self._parameter_values = parameter_values @@ -137,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6432974e..2090017e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsPointDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -52,7 +62,7 @@ class GrantaServerApiDataExportDatumsPointDatum( "unit": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -63,11 +73,11 @@ class GrantaServerApiDataExportDatumsPointDatum( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDataExportDatumsPoint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self._is_estimated = None self._unit = None @@ -138,7 +148,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "list[GrantaServerApiDataExportDatumsPoint]": + def datum_value(self) -> "Optional[List[GrantaServerApiDataExportDatumsPoint]]": """Gets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. Returns @@ -150,19 +160,19 @@ def datum_value(self) -> "list[GrantaServerApiDataExportDatumsPoint]": @datum_value.setter def datum_value( - self, datum_value: "list[GrantaServerApiDataExportDatumsPoint]" + self, datum_value: "Optional[List[GrantaServerApiDataExportDatumsPoint]]" ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsPointDatum. Parameters ---------- - datum_value: list[GrantaServerApiDataExportDatumsPoint] + datum_value: List[GrantaServerApiDataExportDatumsPoint] The datum_value of this GrantaServerApiDataExportDatumsPointDatum. """ self._datum_value = datum_value @property - def is_estimated(self) -> "bool": + def is_estimated(self) -> "Optional[bool]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. Returns @@ -173,7 +183,7 @@ def is_estimated(self) -> "bool": return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "bool") -> None: + def is_estimated(self, is_estimated: "Optional[bool]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. Parameters @@ -184,7 +194,7 @@ def is_estimated(self, is_estimated: "bool") -> None: self._is_estimated = is_estimated @property - def unit(self) -> "str": + def unit(self) -> "Optional[str]": """Gets the unit of this GrantaServerApiDataExportDatumsPointDatum. Returns @@ -195,7 +205,7 @@ def unit(self) -> "str": return self._unit @unit.setter - def unit(self, unit: "str") -> None: + def unit(self, unit: "Optional[str]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsPointDatum. Parameters @@ -223,7 +233,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f93b4b82..b590fcea 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsRange(ModelBase): +class GrantaServerApiDataExportDatumsRange(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsRange(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "high_value": "float", "high_value_is_inclusive": "bool", "low_value": "float", "low_value_is_inclusive": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "high_value": "highValue", "high_value_is_inclusive": "highValueIsInclusive", "low_value": "lowValue", "low_value_is_inclusive": "lowValueIsInclusive", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.low_value_is_inclusive = low_value_is_inclusive @property - def high_value(self) -> "float": + def high_value(self) -> "Optional[float]": """Gets the high_value of this GrantaServerApiDataExportDatumsRange. Returns @@ -97,7 +107,7 @@ def high_value(self) -> "float": return self._high_value @high_value.setter - def high_value(self, high_value: "float") -> None: + def high_value(self, high_value: "Optional[float]") -> None: """Sets the high_value of this GrantaServerApiDataExportDatumsRange. Parameters @@ -108,7 +118,7 @@ def high_value(self, high_value: "float") -> None: self._high_value = high_value @property - def low_value(self) -> "float": + def low_value(self) -> "Optional[float]": """Gets the low_value of this GrantaServerApiDataExportDatumsRange. Returns @@ -119,7 +129,7 @@ def low_value(self) -> "float": return self._low_value @low_value.setter - def low_value(self, low_value: "float") -> None: + def low_value(self, low_value: "Optional[float]") -> None: """Sets the low_value of this GrantaServerApiDataExportDatumsRange. Parameters @@ -130,7 +140,7 @@ def low_value(self, low_value: "float") -> None: self._low_value = low_value @property - def high_value_is_inclusive(self) -> "bool": + def high_value_is_inclusive(self) -> "Optional[bool]": """Gets the high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Returns @@ -141,7 +151,9 @@ def high_value_is_inclusive(self) -> "bool": return self._high_value_is_inclusive @high_value_is_inclusive.setter - def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: + def high_value_is_inclusive( + self, high_value_is_inclusive: "Optional[bool]" + ) -> None: """Sets the high_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters @@ -152,7 +164,7 @@ def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: self._high_value_is_inclusive = high_value_is_inclusive @property - def low_value_is_inclusive(self) -> "bool": + def low_value_is_inclusive(self) -> "Optional[bool]": """Gets the low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Returns @@ -163,7 +175,7 @@ def low_value_is_inclusive(self) -> "bool": return self._low_value_is_inclusive @low_value_is_inclusive.setter - def low_value_is_inclusive(self, low_value_is_inclusive: "bool") -> None: + def low_value_is_inclusive(self, low_value_is_inclusive: "Optional[bool]") -> None: """Sets the low_value_is_inclusive of this GrantaServerApiDataExportDatumsRange. Parameters @@ -191,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5c3603d3..0f959a74 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsRangeDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -52,7 +62,7 @@ class GrantaServerApiDataExportDatumsRangeDatum( "unit": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -63,11 +73,11 @@ class GrantaServerApiDataExportDatumsRangeDatum( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "datumValue": "GrantaServerApiDataExportDatumsRange", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self._is_estimated = None self._unit = None @@ -138,7 +148,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "GrantaServerApiDataExportDatumsRange": + def datum_value(self) -> "Optional[GrantaServerApiDataExportDatumsRange]": """Gets the datum_value of this GrantaServerApiDataExportDatumsRangeDatum. Returns @@ -149,7 +159,9 @@ def datum_value(self) -> "GrantaServerApiDataExportDatumsRange": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "GrantaServerApiDataExportDatumsRange") -> None: + def datum_value( + self, datum_value: "Optional[GrantaServerApiDataExportDatumsRange]" + ) -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsRangeDatum. Parameters @@ -160,7 +172,7 @@ def datum_value(self, datum_value: "GrantaServerApiDataExportDatumsRange") -> No self._datum_value = datum_value @property - def is_estimated(self) -> "bool": + def is_estimated(self) -> "Optional[bool]": """Gets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. Returns @@ -171,7 +183,7 @@ def is_estimated(self) -> "bool": return self._is_estimated @is_estimated.setter - def is_estimated(self, is_estimated: "bool") -> None: + def is_estimated(self, is_estimated: "Optional[bool]") -> None: """Sets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. Parameters @@ -182,7 +194,7 @@ def is_estimated(self, is_estimated: "bool") -> None: self._is_estimated = is_estimated @property - def unit(self) -> "str": + def unit(self) -> "Optional[str]": """Gets the unit of this GrantaServerApiDataExportDatumsRangeDatum. Returns @@ -193,7 +205,7 @@ def unit(self) -> "str": return self._unit @unit.setter - def unit(self, unit: "str") -> None: + def unit(self, unit: "Optional[str]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRangeDatum. Parameters @@ -221,7 +233,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c0f6bca0..6a1c4e71 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_rollup_rollup_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsRollupCountRollupDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "count": "int", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsRollupCountRollupDatum( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "count": "count", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsRollupCountRollupDatum( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,14 +101,14 @@ def __init__( roll_up_type=roll_up_type, ) self._count = None - self._type = None + self._type: str = None # type: ignore[assignment] if count is not None: self.count = count self.type = type @property - def count(self) -> "int": + def count(self) -> "Optional[int]": """Gets the count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. Returns @@ -109,7 +119,7 @@ def count(self) -> "int": return self._count @count.setter - def count(self, count: "int") -> None: + def count(self, count: "Optional[int]") -> None: """Sets the count of this GrantaServerApiDataExportDatumsRollupCountRollupDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 97732c26..c394e5b3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_rollup_rollup_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsRollupNumericRollupDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "database_key": "str", @@ -51,7 +61,7 @@ class GrantaServerApiDataExportDatumsRollupNumericRollupDatum( "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "database_key": "databaseKey", @@ -61,9 +71,9 @@ class GrantaServerApiDataExportDatumsRollupNumericRollupDatum( "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( ) self._value = None self._unit = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value @@ -105,7 +115,7 @@ def __init__( self.type = type @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Returns @@ -116,7 +126,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Parameters @@ -127,7 +137,7 @@ def value(self, value: "float") -> None: self._value = value @property - def unit(self) -> "str": + def unit(self) -> "Optional[str]": """Gets the unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Returns @@ -138,7 +148,7 @@ def unit(self) -> "str": return self._unit @unit.setter - def unit(self, unit: "str") -> None: + def unit(self, unit: "Optional[str]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRollupNumericRollupDatum. Parameters @@ -190,7 +200,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3b0fc819..3ce1724d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): +class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,21 +48,21 @@ class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "database_key": "str", "roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "database_key": "databaseKey", "roll_up_type": "rollUpType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } @@ -63,7 +73,7 @@ class GrantaServerApiDataExportDatumsRollupRollupDatum(ModelBase): "countRollup".lower(): "#/components/schemas/GrantaServerApiDataExportDatumsRollupCountRollupDatum", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -97,7 +107,7 @@ def __init__( self.roll_up_type = roll_up_type @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. The database key of the rolled up data @@ -109,7 +119,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiDataExportDatumsRollupRollupDatum. The database key of the rolled up data @@ -121,7 +131,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def attribute_identity(self) -> "int": + def attribute_identity(self) -> "Optional[int]": """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 @@ -133,7 +143,7 @@ def attribute_identity(self) -> "int": return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "int") -> None: + def attribute_identity(self, attribute_identity: "Optional[int]") -> 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 @@ -145,7 +155,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """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 @@ -157,7 +167,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> 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 @@ -171,7 +181,7 @@ def attribute_guid(self, attribute_guid: "str") -> None: @property def roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. Returns @@ -183,7 +193,8 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( - self, roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" + self, + roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the roll_up_type of this GrantaServerApiDataExportDatumsRollupRollupDatum. @@ -206,19 +217,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0189f813..980ee74a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_rollup_rollup_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsRollupValueRollupDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "database_key": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsRollupValueRollupDatum( "value": "object", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "database_key": "databaseKey", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsRollupValueRollupDatum( "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,14 +101,14 @@ def __init__( roll_up_type=roll_up_type, ) self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "object": + def value(self) -> "Optional[object]": """Gets the value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. Returns @@ -109,7 +119,7 @@ def value(self) -> "object": return self._value @value.setter - def value(self, value: "object") -> None: + def value(self, value: "Optional[object]") -> None: """Sets the value of this GrantaServerApiDataExportDatumsRollupValueRollupDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 cfdc4463..18e7d621 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_rollup_rollup_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsRollupValuesRollupDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "database_key": "str", @@ -51,7 +61,7 @@ class GrantaServerApiDataExportDatumsRollupValuesRollupDatum( "values": "list[object]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "database_key": "databaseKey", @@ -61,9 +71,9 @@ class GrantaServerApiDataExportDatumsRollupValuesRollupDatum( "values": "values", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( ) self._values = None self._unit = None - self._type = None + self._type: str = None # type: ignore[assignment] if values is not None: self.values = values @@ -105,7 +115,7 @@ def __init__( self.type = type @property - def values(self) -> "list[object]": + def values(self) -> "Optional[List[object]]": """Gets the values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Returns @@ -116,18 +126,18 @@ def values(self) -> "list[object]": return self._values @values.setter - def values(self, values: "list[object]") -> None: + def values(self, values: "Optional[List[object]]") -> None: """Sets the values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Parameters ---------- - values: list[object] + values: List[object] The values of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. """ self._values = values @property - def unit(self) -> "str": + def unit(self) -> "Optional[str]": """Gets the unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Returns @@ -138,7 +148,7 @@ def unit(self) -> "str": return self._unit @unit.setter - def unit(self, unit: "str") -> None: + def unit(self, unit: "Optional[str]") -> None: """Sets the unit of this GrantaServerApiDataExportDatumsRollupValuesRollupDatum. Parameters @@ -190,7 +200,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 27ae7d0e..cc7471f9 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsSeries(ModelBase): +class GrantaServerApiDataExportDatumsSeries(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiDataExportDatumsSeries(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "graph_decoration": "GrantaServerApiDataExportDatumsGraphDecoration", "parameter_values": "list[GrantaServerApiDataExportDatumsParameterValue]", "points": "list[GrantaServerApiDataExportDatumsSeriesPoint]", } - attribute_map = { + attribute_map: Dict[str, str] = { "graph_decoration": "graphDecoration", "parameter_values": "parameterValues", "points": "points", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiDataExportDatumsParameterValue", "points": "GrantaServerApiDataExportDatumsSeriesPoint", "graphDecoration": "GrantaServerApiDataExportDatumsGraphDecoration", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,7 +93,9 @@ def __init__( self.graph_decoration = graph_decoration @property - def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValue]": + def parameter_values( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]": """Gets the parameter_values of this GrantaServerApiDataExportDatumsSeries. Returns @@ -95,19 +107,20 @@ def parameter_values(self) -> "list[GrantaServerApiDataExportDatumsParameterValu @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiDataExportDatumsParameterValue]" + self, + parameter_values: "Optional[List[GrantaServerApiDataExportDatumsParameterValue]]", ) -> None: """Sets the parameter_values of this GrantaServerApiDataExportDatumsSeries. Parameters ---------- - parameter_values: list[GrantaServerApiDataExportDatumsParameterValue] + parameter_values: List[GrantaServerApiDataExportDatumsParameterValue] The parameter_values of this GrantaServerApiDataExportDatumsSeries. """ self._parameter_values = parameter_values @property - def points(self) -> "list[GrantaServerApiDataExportDatumsSeriesPoint]": + def points(self) -> "Optional[List[GrantaServerApiDataExportDatumsSeriesPoint]]": """Gets the points of this GrantaServerApiDataExportDatumsSeries. Returns @@ -119,19 +132,21 @@ def points(self) -> "list[GrantaServerApiDataExportDatumsSeriesPoint]": @points.setter def points( - self, points: "list[GrantaServerApiDataExportDatumsSeriesPoint]" + self, points: "Optional[List[GrantaServerApiDataExportDatumsSeriesPoint]]" ) -> None: """Sets the points of this GrantaServerApiDataExportDatumsSeries. Parameters ---------- - points: list[GrantaServerApiDataExportDatumsSeriesPoint] + points: List[GrantaServerApiDataExportDatumsSeriesPoint] The points of this GrantaServerApiDataExportDatumsSeries. """ self._points = points @property - def graph_decoration(self) -> "GrantaServerApiDataExportDatumsGraphDecoration": + def graph_decoration( + self, + ) -> "Optional[GrantaServerApiDataExportDatumsGraphDecoration]": """Gets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. Returns @@ -143,7 +158,8 @@ def graph_decoration(self) -> "GrantaServerApiDataExportDatumsGraphDecoration": @graph_decoration.setter def graph_decoration( - self, graph_decoration: "GrantaServerApiDataExportDatumsGraphDecoration" + self, + graph_decoration: "Optional[GrantaServerApiDataExportDatumsGraphDecoration]", ) -> None: """Sets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. @@ -172,7 +188,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ac7523a7..1e72bac3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): +class GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportDatumsSeriesPoint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "x": "float", "x_name": "str", "y_high": "float", "y_low": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "x": "x", "x_name": "xName", "y_high": "yHigh", "y_low": "yLow", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.y_high = y_high @property - def x(self) -> "float": + def x(self) -> "Optional[float]": """Gets the x of this GrantaServerApiDataExportDatumsSeriesPoint. Returns @@ -97,7 +107,7 @@ def x(self) -> "float": return self._x @x.setter - def x(self, x: "float") -> None: + def x(self, x: "Optional[float]") -> None: """Sets the x of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters @@ -108,7 +118,7 @@ def x(self, x: "float") -> None: self._x = x @property - def x_name(self) -> "str": + def x_name(self) -> "Optional[str]": """Gets the x_name of this GrantaServerApiDataExportDatumsSeriesPoint. Returns @@ -119,7 +129,7 @@ def x_name(self) -> "str": return self._x_name @x_name.setter - def x_name(self, x_name: "str") -> None: + def x_name(self, x_name: "Optional[str]") -> None: """Sets the x_name of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters @@ -130,7 +140,7 @@ def x_name(self, x_name: "str") -> None: self._x_name = x_name @property - def y_low(self) -> "float": + def y_low(self) -> "Optional[float]": """Gets the y_low of this GrantaServerApiDataExportDatumsSeriesPoint. Returns @@ -141,7 +151,7 @@ def y_low(self) -> "float": return self._y_low @y_low.setter - def y_low(self, y_low: "float") -> None: + def y_low(self, y_low: "Optional[float]") -> None: """Sets the y_low of this GrantaServerApiDataExportDatumsSeriesPoint. Parameters @@ -152,7 +162,7 @@ def y_low(self, y_low: "float") -> None: self._y_low = y_low @property - def y_high(self) -> "float": + def y_high(self) -> "Optional[float]": """Gets the y_high of this GrantaServerApiDataExportDatumsSeriesPoint. Returns @@ -163,7 +173,7 @@ def y_high(self) -> "float": return self._y_high @y_high.setter - def y_high(self, y_high: "float") -> None: + def y_high(self, y_high: "Optional[float]") -> None: """Sets the y_high of this GrantaServerApiDataExportDatumsSeriesPoint. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5c1e8d19..1fb1eaca 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_applicable_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsShortTextDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "datum_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiDataExportDatumsShortTextDatum( "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "datum_type": "datumType", @@ -59,9 +69,9 @@ class GrantaServerApiDataExportDatumsShortTextDatum( "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( meta_datums=meta_datums, not_applicable=not_applicable, ) - self._datum_type = None + self._datum_type: str = None # type: ignore[assignment] self._datum_value = None self.datum_type = datum_type @@ -122,7 +132,7 @@ def datum_type(self, datum_type: "str") -> None: self._datum_type = datum_type @property - def datum_value(self) -> "str": + def datum_value(self) -> "Optional[str]": """Gets the datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. Returns @@ -133,7 +143,7 @@ def datum_value(self) -> "str": return self._datum_value @datum_value.setter - def datum_value(self, datum_value: "str") -> None: + def datum_value(self, datum_value: "Optional[str]") -> None: """Sets the datum_value of this GrantaServerApiDataExportDatumsShortTextDatum. Parameters @@ -161,7 +171,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4416c366..d0bf68e8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_link_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportDatumsTabularDatum( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "attribute_name": "str", @@ -53,7 +63,7 @@ class GrantaServerApiDataExportDatumsTabularDatum( "tabular_rows": "list[GrantaServerApiDataExportDatumsTabularRow]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "attribute_name": "attributeName", @@ -65,12 +75,12 @@ class GrantaServerApiDataExportDatumsTabularDatum( "tabular_rows": "tabularRows", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "tabularRows": "GrantaServerApiDataExportDatumsTabularRow", "summaryRow": "GrantaServerApiDataExportDatumsRollupRollupDatum", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -109,7 +119,7 @@ def __init__( self._attribute_name = None self._tabular_rows = None self._summary_row = None - self._link_datum_type = None + self._link_datum_type: str = None # type: ignore[assignment] if attribute_name is not None: self.attribute_name = attribute_name @@ -120,7 +130,7 @@ def __init__( self.link_datum_type = link_datum_type @property - def attribute_name(self) -> "str": + def attribute_name(self) -> "Optional[str]": """Gets the attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. Returns @@ -131,7 +141,7 @@ def attribute_name(self) -> "str": return self._attribute_name @attribute_name.setter - def attribute_name(self, attribute_name: "str") -> None: + def attribute_name(self, attribute_name: "Optional[str]") -> None: """Sets the attribute_name of this GrantaServerApiDataExportDatumsTabularDatum. Parameters @@ -142,7 +152,9 @@ def attribute_name(self, attribute_name: "str") -> None: self._attribute_name = attribute_name @property - def tabular_rows(self) -> "list[GrantaServerApiDataExportDatumsTabularRow]": + def tabular_rows( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsTabularRow]]": """Gets the tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. Returns @@ -154,19 +166,21 @@ def tabular_rows(self) -> "list[GrantaServerApiDataExportDatumsTabularRow]": @tabular_rows.setter def tabular_rows( - self, tabular_rows: "list[GrantaServerApiDataExportDatumsTabularRow]" + self, tabular_rows: "Optional[List[GrantaServerApiDataExportDatumsTabularRow]]" ) -> None: """Sets the tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. Parameters ---------- - tabular_rows: list[GrantaServerApiDataExportDatumsTabularRow] + tabular_rows: List[GrantaServerApiDataExportDatumsTabularRow] The tabular_rows of this GrantaServerApiDataExportDatumsTabularDatum. """ self._tabular_rows = tabular_rows @property - def summary_row(self) -> "list[GrantaServerApiDataExportDatumsRollupRollupDatum]": + def summary_row( + self, + ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": """Gets the summary_row of this GrantaServerApiDataExportDatumsTabularDatum. Returns @@ -178,13 +192,14 @@ def summary_row(self) -> "list[GrantaServerApiDataExportDatumsRollupRollupDatum] @summary_row.setter def summary_row( - self, summary_row: "list[GrantaServerApiDataExportDatumsRollupRollupDatum]" + self, + summary_row: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", ) -> None: """Sets the summary_row of this GrantaServerApiDataExportDatumsTabularDatum. Parameters ---------- - summary_row: list[GrantaServerApiDataExportDatumsRollupRollupDatum] + summary_row: List[GrantaServerApiDataExportDatumsRollupRollupDatum] The summary_row of this GrantaServerApiDataExportDatumsTabularDatum. """ self._summary_row = summary_row @@ -231,7 +246,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d6692924..cb38f088 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportDatumsTabularRow(ModelBase): +class GrantaServerApiDataExportDatumsTabularRow(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiDataExportDatumsTabularRow(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "linked_data": "list[GrantaServerApiDataExportRecordWithData]", "linked_records": "list[GrantaServerApiIntegrationDataExportRecordReference]", "linking_value": "str", @@ -46,7 +56,7 @@ class GrantaServerApiDataExportDatumsTabularRow(ModelBase): "row_number": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "linked_data": "linkedData", "linked_records": "linkedRecords", "linking_value": "linkingValue", @@ -56,14 +66,14 @@ class GrantaServerApiDataExportDatumsTabularRow(ModelBase): "row_number": "rowNumber", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "localData": "GrantaServerApiDataExportDatumsDatum", "linkedRecords": "GrantaServerApiIntegrationDataExportRecordReference", "linkedData": "GrantaServerApiDataExportRecordWithData", "rolledUpData": "GrantaServerApiDataExportDatumsRollupRollupDatum", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( self.rolled_up_data = rolled_up_data @property - def row_guid(self) -> "str": + def row_guid(self) -> "Optional[str]": """Gets the row_guid of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -123,7 +133,7 @@ def row_guid(self) -> "str": return self._row_guid @row_guid.setter - def row_guid(self, row_guid: "str") -> None: + def row_guid(self, row_guid: "Optional[str]") -> None: """Sets the row_guid of this GrantaServerApiDataExportDatumsTabularRow. Parameters @@ -134,7 +144,7 @@ def row_guid(self, row_guid: "str") -> None: self._row_guid = row_guid @property - def linking_value(self) -> "str": + def linking_value(self) -> "Optional[str]": """Gets the linking_value of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -145,7 +155,7 @@ def linking_value(self) -> "str": return self._linking_value @linking_value.setter - def linking_value(self, linking_value: "str") -> None: + def linking_value(self, linking_value: "Optional[str]") -> None: """Sets the linking_value of this GrantaServerApiDataExportDatumsTabularRow. Parameters @@ -156,7 +166,7 @@ def linking_value(self, linking_value: "str") -> None: self._linking_value = linking_value @property - def row_number(self) -> "int": + def row_number(self) -> "Optional[int]": """Gets the row_number of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -167,7 +177,7 @@ def row_number(self) -> "int": return self._row_number @row_number.setter - def row_number(self, row_number: "int") -> None: + def row_number(self, row_number: "Optional[int]") -> None: """Sets the row_number of this GrantaServerApiDataExportDatumsTabularRow. Parameters @@ -178,7 +188,7 @@ def row_number(self, row_number: "int") -> None: self._row_number = row_number @property - def local_data(self) -> "list[GrantaServerApiDataExportDatumsDatum]": + def local_data(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": """Gets the local_data of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -190,13 +200,13 @@ def local_data(self) -> "list[GrantaServerApiDataExportDatumsDatum]": @local_data.setter def local_data( - self, local_data: "list[GrantaServerApiDataExportDatumsDatum]" + self, local_data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" ) -> None: """Sets the local_data of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - local_data: list[GrantaServerApiDataExportDatumsDatum] + local_data: List[GrantaServerApiDataExportDatumsDatum] The local_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._local_data = local_data @@ -204,7 +214,7 @@ def local_data( @property def linked_records( self, - ) -> "list[GrantaServerApiIntegrationDataExportRecordReference]": + ) -> "Optional[List[GrantaServerApiIntegrationDataExportRecordReference]]": """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) @@ -218,20 +228,20 @@ def linked_records( @linked_records.setter def linked_records( self, - linked_records: "list[GrantaServerApiIntegrationDataExportRecordReference]", + linked_records: "Optional[List[GrantaServerApiIntegrationDataExportRecordReference]]", ) -> 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: List[GrantaServerApiIntegrationDataExportRecordReference] The linked_records of this GrantaServerApiDataExportDatumsTabularRow. """ self._linked_records = linked_records @property - def linked_data(self) -> "list[GrantaServerApiDataExportRecordWithData]": + def linked_data(self) -> "Optional[List[GrantaServerApiDataExportRecordWithData]]": """Gets the linked_data of this GrantaServerApiDataExportDatumsTabularRow. Data for the linked records, if the request included linked data to export @@ -244,14 +254,14 @@ def linked_data(self) -> "list[GrantaServerApiDataExportRecordWithData]": @linked_data.setter def linked_data( - self, linked_data: "list[GrantaServerApiDataExportRecordWithData]" + self, linked_data: "Optional[List[GrantaServerApiDataExportRecordWithData]]" ) -> 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: List[GrantaServerApiDataExportRecordWithData] The linked_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._linked_data = linked_data @@ -259,7 +269,7 @@ def linked_data( @property def rolled_up_data( self, - ) -> "list[GrantaServerApiDataExportDatumsRollupRollupDatum]": + ) -> "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]": """Gets the rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. Returns @@ -271,13 +281,14 @@ def rolled_up_data( @rolled_up_data.setter def rolled_up_data( - self, rolled_up_data: "list[GrantaServerApiDataExportDatumsRollupRollupDatum]" + self, + rolled_up_data: "Optional[List[GrantaServerApiDataExportDatumsRollupRollupDatum]]", ) -> None: """Sets the rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. Parameters ---------- - rolled_up_data: list[GrantaServerApiDataExportDatumsRollupRollupDatum] + rolled_up_data: List[GrantaServerApiDataExportDatumsRollupRollupDatum] The rolled_up_data of this GrantaServerApiDataExportDatumsTabularRow. """ self._rolled_up_data = rolled_up_data @@ -300,7 +311,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3c371ae2..a9c444dd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_datums_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,23 +49,23 @@ class GrantaServerApiDataExportDatumsUnknownDatum(GrantaServerApiDataExportDatum discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "attribute_identity": "int", "meta_datums": "list[GrantaServerApiDataExportDatumsDatum]", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", "meta_datums": "metaDatums", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( attribute_identity=attribute_identity, meta_datums=meta_datums, ) - self._not_applicable = None + self._not_applicable: str = None # type: ignore[assignment] self.not_applicable = not_applicable @@ -125,7 +135,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 04956fb8..869ad639 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_export_failures_export_failure import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiDataExportExportFailuresAttributeExportFailure( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failed_attributes": "list[GrantaServerApiDataExportExportFailuresAttributeReference]", "failure_details": "str", "failure_reason": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failed_attributes": "failedAttributes", "failure_details": "failureDetails", "failure_reason": "failureReason", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "failedAttributes": "GrantaServerApiDataExportExportFailuresAttributeReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,8 +89,8 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_attributes = None - self._type = None + self._failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.failed_attributes = failed_attributes self.type = type @@ -88,7 +98,7 @@ def __init__( @property def failed_attributes( self, - ) -> "list[GrantaServerApiDataExportExportFailuresAttributeReference]": + ) -> "List[GrantaServerApiDataExportExportFailuresAttributeReference]": """Gets the failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. Returns @@ -101,13 +111,13 @@ def failed_attributes( @failed_attributes.setter def failed_attributes( self, - failed_attributes: "list[GrantaServerApiDataExportExportFailuresAttributeReference]", + failed_attributes: "List[GrantaServerApiDataExportExportFailuresAttributeReference]", ) -> None: """Sets the failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. Parameters ---------- - failed_attributes: list[GrantaServerApiDataExportExportFailuresAttributeReference] + failed_attributes: List[GrantaServerApiDataExportExportFailuresAttributeReference] The failed_attributes of this GrantaServerApiDataExportExportFailuresAttributeExportFailure. """ if failed_attributes is None: @@ -158,7 +168,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ed1ee7e1..cb0aa145 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportExportFailuresAttributeReference(ModelBase): +class GrantaServerApiDataExportExportFailuresAttributeReference(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiDataExportExportFailuresAttributeReference(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_key": "str", "attribute_guid": "str", "attribute_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_key": "databaseKey", "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( attribute_guid: str, optional attribute_identity: int, optional """ - self._database_key = None + self._database_key: str = None # type: ignore[assignment] self._attribute_identity = None self._attribute_guid = None @@ -102,7 +112,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def attribute_identity(self) -> "int": + def attribute_identity(self) -> "Optional[int]": """Gets the attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. Returns @@ -113,7 +123,7 @@ def attribute_identity(self) -> "int": return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "int") -> None: + def attribute_identity(self, attribute_identity: "Optional[int]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresAttributeReference. Parameters @@ -124,7 +134,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. Returns @@ -135,7 +145,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresAttributeReference. Parameters @@ -163,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5d8c8e1f..bc1d3782 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_export_failures_export_failure import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiDataExportExportFailuresDatumExportFailure( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failed_datum": "GrantaServerApiDataExportExportFailuresDatumReference", "failure_details": "str", "failure_reason": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failed_datum": "failedDatum", "failure_details": "failureDetails", "failure_reason": "failureReason", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "failedDatum": "GrantaServerApiDataExportExportFailuresDatumReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,8 +89,8 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_datum = None - self._type = None + self._failed_datum: GrantaServerApiDataExportExportFailuresDatumReference = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.failed_datum = failed_datum self.type = type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 511ae174..ca021b47 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportExportFailuresDatumReference(ModelBase): +class GrantaServerApiDataExportExportFailuresDatumReference(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataExportExportFailuresDatumReference(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_identity": "int", "database_key": "str", "record_history_identity": "int", "attribute_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_identity": "attributeIdentity", "database_key": "databaseKey", "record_history_identity": "recordHistoryIdentity", "attribute_guid": "attributeGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,9 +81,9 @@ def __init__( record_history_identity: int attribute_guid: str, optional """ - self._database_key = None - self._record_history_identity = None - self._attribute_identity = None + 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 = database_key @@ -159,7 +169,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. Returns @@ -170,7 +180,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresDatumReference. Parameters @@ -198,7 +208,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1ebb2836..0df89d4c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): +class GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,17 +48,17 @@ class GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failure_details": "str", "failure_reason": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failure_details": "failureDetails", "failure_reason": "failureReason", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "record".lower(): "#/components/schemas/GrantaServerApiDataExportExportFailuresRecordExportFailure", @@ -58,7 +68,7 @@ class GrantaServerApiDataExportExportFailuresExportFailure(ModelBase): "rollup".lower(): "#/components/schemas/GrantaServerApiDataExportExportFailuresRollupExportFailure", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -73,8 +83,8 @@ def __init__( failure_details: str failure_reason: str """ - self._failure_details = None - self._failure_reason = None + self._failure_details: str = None # type: ignore[assignment] + self._failure_reason: str = None # type: ignore[assignment] self.failure_details = failure_details self.failure_reason = failure_reason @@ -139,19 +149,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 edbcb7e9..38c0f8bc 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_export_failures_export_failure import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiDataExportExportFailuresLinkExportFailure( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failed_link": "GrantaServerApiDataExportExportFailuresLinkReference", "failure_details": "str", "failure_reason": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failed_link": "failedLink", "failure_details": "failureDetails", "failure_reason": "failureReason", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "failedLink": "GrantaServerApiDataExportExportFailuresLinkReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,8 +89,8 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_link = None - self._type = None + self._failed_link: GrantaServerApiDataExportExportFailuresLinkReference = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.failed_link = failed_link self.type = type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 51c37448..14302ec8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportExportFailuresLinkReference(ModelBase): +class GrantaServerApiDataExportExportFailuresLinkReference(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiDataExportExportFailuresLinkReference(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_type": "GrantaServerApiLinkAttributeType", "link_guid": "str", "link_identity": "int", "target_database_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_type": "linkType", "link_guid": "linkGuid", "link_identity": "linkIdentity", "target_database_guid": "targetDatabaseGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkType": "GrantaServerApiLinkAttributeType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,7 +86,7 @@ def __init__( self._target_database_guid = None self._link_identity = None self._link_guid = None - self._link_type = None + self._link_type: GrantaServerApiLinkAttributeType = None # type: ignore[assignment] if target_database_guid is not None: self.target_database_guid = target_database_guid @@ -87,7 +97,7 @@ def __init__( self.link_type = link_type @property - def target_database_guid(self) -> "str": + def target_database_guid(self) -> "Optional[str]": """Gets the target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Returns @@ -98,7 +108,7 @@ def target_database_guid(self) -> "str": return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "str") -> None: + def target_database_guid(self, target_database_guid: "Optional[str]") -> None: """Sets the target_database_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters @@ -109,7 +119,7 @@ def target_database_guid(self, target_database_guid: "str") -> None: self._target_database_guid = target_database_guid @property - def link_identity(self) -> "int": + def link_identity(self) -> "Optional[int]": """Gets the link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. Returns @@ -120,7 +130,7 @@ def link_identity(self) -> "int": return self._link_identity @link_identity.setter - def link_identity(self, link_identity: "int") -> None: + def link_identity(self, link_identity: "Optional[int]") -> None: """Sets the link_identity of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters @@ -131,7 +141,7 @@ def link_identity(self, link_identity: "int") -> None: self._link_identity = link_identity @property - def link_guid(self) -> "str": + def link_guid(self) -> "Optional[str]": """Gets the link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Returns @@ -142,7 +152,7 @@ def link_guid(self) -> "str": return self._link_guid @link_guid.setter - def link_guid(self, link_guid: "str") -> None: + def link_guid(self, link_guid: "Optional[str]") -> None: """Sets the link_guid of this GrantaServerApiDataExportExportFailuresLinkReference. Parameters @@ -194,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3adefb2d..5a6e93f9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_export_failures_export_failure import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiDataExportExportFailuresRecordExportFailure( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failed_records": "list[GrantaServerApiIntegrationDataExportRecordReference]", "failure_details": "str", "failure_reason": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failed_records": "failedRecords", "failure_details": "failureDetails", "failure_reason": "failureReason", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "failedRecords": "GrantaServerApiIntegrationDataExportRecordReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,8 +89,8 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_records = None - self._type = None + self._failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.failed_records = failed_records self.type = type @@ -88,7 +98,7 @@ def __init__( @property def failed_records( self, - ) -> "list[GrantaServerApiIntegrationDataExportRecordReference]": + ) -> "List[GrantaServerApiIntegrationDataExportRecordReference]": """Gets the failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. Returns @@ -101,13 +111,13 @@ def failed_records( @failed_records.setter def failed_records( self, - failed_records: "list[GrantaServerApiIntegrationDataExportRecordReference]", + failed_records: "List[GrantaServerApiIntegrationDataExportRecordReference]", ) -> None: """Sets the failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. Parameters ---------- - failed_records: list[GrantaServerApiIntegrationDataExportRecordReference] + failed_records: List[GrantaServerApiIntegrationDataExportRecordReference] The failed_records of this GrantaServerApiDataExportExportFailuresRecordExportFailure. """ if failed_records is None: @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5b259d9e..2416bfc8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_export_failures_export_failure import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiDataExportExportFailuresRollupExportFailure( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "failed_rollup": "GrantaServerApiDataExportExportFailuresRollupReference", "failure_details": "str", "failure_reason": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "failed_rollup": "failedRollup", "failure_details": "failureDetails", "failure_reason": "failureReason", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "failedRollup": "GrantaServerApiDataExportExportFailuresRollupReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,8 +89,8 @@ def __init__( type: str """ super().__init__(failure_details=failure_details, failure_reason=failure_reason) - self._failed_rollup = None - self._type = None + self._failed_rollup: GrantaServerApiDataExportExportFailuresRollupReference = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.failed_rollup = failed_rollup self.type = type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 80106b1d..b4da943f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportExportFailuresRollupReference(ModelBase): +class GrantaServerApiDataExportExportFailuresRollupReference(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiDataExportExportFailuresRollupReference(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_key": "str", "rollup_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "attribute_guid": "str", "attribute_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_key": "databaseKey", "rollup_type": "rollupType", "attribute_guid": "attributeGuid", "attribute_identity": "attributeIdentity", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollupType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,10 +83,10 @@ def __init__( attribute_guid: str, optional attribute_identity: int, optional """ - self._database_key = None + self._database_key: str = None # type: ignore[assignment] self._attribute_identity = None self._attribute_guid = None - self._rollup_type = None + self._rollup_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType = None # type: ignore[assignment] self.database_key = database_key if attribute_identity is not None: @@ -110,7 +120,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def attribute_identity(self) -> "int": + def attribute_identity(self) -> "Optional[int]": """Gets the attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. Returns @@ -121,7 +131,7 @@ def attribute_identity(self) -> "int": return self._attribute_identity @attribute_identity.setter - def attribute_identity(self, attribute_identity: "int") -> None: + def attribute_identity(self, attribute_identity: "Optional[int]") -> None: """Sets the attribute_identity of this GrantaServerApiDataExportExportFailuresRollupReference. Parameters @@ -132,7 +142,7 @@ def attribute_identity(self, attribute_identity: "int") -> None: self._attribute_identity = attribute_identity @property - def attribute_guid(self) -> "str": + def attribute_guid(self) -> "Optional[str]": """Gets the attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. Returns @@ -143,7 +153,7 @@ def attribute_guid(self) -> "str": return self._attribute_guid @attribute_guid.setter - def attribute_guid(self, attribute_guid: "str") -> None: + def attribute_guid(self, attribute_guid: "Optional[str]") -> None: """Sets the attribute_guid of this GrantaServerApiDataExportExportFailuresRollupReference. Parameters @@ -199,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 619628c3..ce7883a2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_attribute_to_export import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportLinkAttributeToExport( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_type": "str", "attributes": "list[GrantaServerApiDataExportAttributeToExport]", "export_in_reversed_direction": "bool", @@ -57,7 +67,7 @@ class GrantaServerApiDataExportLinkAttributeToExport( "target_table_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_type": "attributeType", "attributes": "attributes", "export_in_reversed_direction": "exportInReversedDirection", @@ -73,7 +83,7 @@ class GrantaServerApiDataExportLinkAttributeToExport( "target_table_guid": "targetTableGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "localData": "GrantaServerApiDataExportSimpleAttributeToExport", "linkAttributeType": "GrantaServerApiLinkAttributeType", "recordProperties": "GrantaServerApiRecordProperty", @@ -82,7 +92,7 @@ class GrantaServerApiDataExportLinkAttributeToExport( "indirectLinksBehavior": "GrantaServerApiIndirectLinks", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -124,7 +134,7 @@ def __init__( self._target_table_guid = None self._target_database_guid = None self._target_attribute_guid = None - self._attribute_type = None + self._attribute_type: str = None # type: ignore[assignment] self._link_attribute_type = None self._export_in_reversed_direction = None self._record_properties = None @@ -155,7 +165,9 @@ def __init__( self.indirect_links_behavior = indirect_links_behavior @property - def local_data(self) -> "list[GrantaServerApiDataExportSimpleAttributeToExport]": + def local_data( + self, + ) -> "Optional[List[GrantaServerApiDataExportSimpleAttributeToExport]]": """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. @@ -168,20 +180,21 @@ def local_data(self) -> "list[GrantaServerApiDataExportSimpleAttributeToExport]" @local_data.setter def local_data( - self, local_data: "list[GrantaServerApiDataExportSimpleAttributeToExport]" + self, + local_data: "Optional[List[GrantaServerApiDataExportSimpleAttributeToExport]]", ) -> 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: List[GrantaServerApiDataExportSimpleAttributeToExport] The local_data of this GrantaServerApiDataExportLinkAttributeToExport. """ self._local_data = local_data @property - def target_table_guid(self) -> "str": + def target_table_guid(self) -> "Optional[str]": """Gets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. Table containing the linked records @@ -193,7 +206,7 @@ def target_table_guid(self) -> "str": return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "str") -> None: + def target_table_guid(self, target_table_guid: "Optional[str]") -> None: """Sets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. Table containing the linked records @@ -205,7 +218,7 @@ def target_table_guid(self, target_table_guid: "str") -> None: self._target_table_guid = target_table_guid @property - def target_database_guid(self) -> "str": + def target_database_guid(self) -> "Optional[str]": """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. @@ -217,7 +230,7 @@ def target_database_guid(self) -> "str": return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "str") -> None: + def target_database_guid(self, target_database_guid: "Optional[str]") -> 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. @@ -229,7 +242,7 @@ def target_database_guid(self, target_database_guid: "str") -> None: self._target_database_guid = target_database_guid @property - def target_attribute_guid(self) -> "str": + def target_attribute_guid(self) -> "Optional[str]": """Gets the target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. For tabular searching: this is the identifier of the short-text linking attribute. Otherwise null. @@ -241,7 +254,7 @@ def target_attribute_guid(self) -> "str": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "str") -> None: + def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: """Sets the target_attribute_guid of this GrantaServerApiDataExportLinkAttributeToExport. For tabular searching: this is the identifier of the short-text linking attribute. Otherwise null. @@ -277,7 +290,7 @@ def attribute_type(self, attribute_type: "str") -> None: self._attribute_type = attribute_type @property - def link_attribute_type(self) -> "GrantaServerApiLinkAttributeType": + def link_attribute_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": """Gets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -289,7 +302,7 @@ def link_attribute_type(self) -> "GrantaServerApiLinkAttributeType": @link_attribute_type.setter def link_attribute_type( - self, link_attribute_type: "GrantaServerApiLinkAttributeType" + self, link_attribute_type: "Optional[GrantaServerApiLinkAttributeType]" ) -> None: """Sets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. @@ -301,7 +314,7 @@ def link_attribute_type( self._link_attribute_type = link_attribute_type @property - def export_in_reversed_direction(self) -> "bool": + def export_in_reversed_direction(self) -> "Optional[bool]": """Gets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -313,7 +326,7 @@ def export_in_reversed_direction(self) -> "bool": @export_in_reversed_direction.setter def export_in_reversed_direction( - self, export_in_reversed_direction: "bool" + self, export_in_reversed_direction: "Optional[bool]" ) -> None: """Sets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. @@ -325,7 +338,7 @@ def export_in_reversed_direction( self._export_in_reversed_direction = export_in_reversed_direction @property - def record_properties(self) -> "list[GrantaServerApiRecordProperty]": + def record_properties(self) -> "Optional[List[GrantaServerApiRecordProperty]]": """Gets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. @@ -338,20 +351,22 @@ def record_properties(self) -> "list[GrantaServerApiRecordProperty]": @record_properties.setter def record_properties( - self, record_properties: "list[GrantaServerApiRecordProperty]" + self, record_properties: "Optional[List[GrantaServerApiRecordProperty]]" ) -> None: """Sets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. The properties to export on any linked records. Parameters ---------- - record_properties: list[GrantaServerApiRecordProperty] + record_properties: List[GrantaServerApiRecordProperty] The record_properties of this GrantaServerApiDataExportLinkAttributeToExport. """ self._record_properties = record_properties @property - def attributes(self) -> "list[GrantaServerApiDataExportAttributeToExport]": + def attributes( + self, + ) -> "Optional[List[GrantaServerApiDataExportAttributeToExport]]": """Gets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. The attributes to export on any linked records. @@ -364,14 +379,14 @@ def attributes(self) -> "list[GrantaServerApiDataExportAttributeToExport]": @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiDataExportAttributeToExport]" + self, attributes: "Optional[List[GrantaServerApiDataExportAttributeToExport]]" ) -> None: """Sets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. The attributes to export on any linked records. Parameters ---------- - attributes: list[GrantaServerApiDataExportAttributeToExport] + attributes: List[GrantaServerApiDataExportAttributeToExport] The attributes of this GrantaServerApiDataExportLinkAttributeToExport. """ self._attributes = attributes @@ -379,7 +394,7 @@ def attributes( @property def linked_records_export_behavior( self, - ) -> "GrantaServerApiDataExportLinkedRecordExportBehavior": + ) -> "Optional[GrantaServerApiDataExportLinkedRecordExportBehavior]": """Gets the linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -392,7 +407,7 @@ def linked_records_export_behavior( @linked_records_export_behavior.setter def linked_records_export_behavior( self, - linked_records_export_behavior: "GrantaServerApiDataExportLinkedRecordExportBehavior", + linked_records_export_behavior: "Optional[GrantaServerApiDataExportLinkedRecordExportBehavior]", ) -> None: """Sets the linked_records_export_behavior of this GrantaServerApiDataExportLinkAttributeToExport. @@ -404,7 +419,7 @@ def linked_records_export_behavior( self._linked_records_export_behavior = linked_records_export_behavior @property - def indirect_links_behavior(self) -> "GrantaServerApiIndirectLinks": + def indirect_links_behavior(self) -> "Optional[GrantaServerApiIndirectLinks]": """Gets the indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. Returns @@ -416,7 +431,7 @@ def indirect_links_behavior(self) -> "GrantaServerApiIndirectLinks": @indirect_links_behavior.setter def indirect_links_behavior( - self, indirect_links_behavior: "GrantaServerApiIndirectLinks" + self, indirect_links_behavior: "Optional[GrantaServerApiIndirectLinks]" ) -> None: """Sets the indirect_links_behavior of this GrantaServerApiDataExportLinkAttributeToExport. @@ -445,7 +460,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 49a57820..a510077d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): +class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiDataExportLinkedRecordExportBehavior(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "linked_records_criterion": "GrantaServerApiSearchCriterion", "summary_roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "tabular_row_behavior": "GrantaServerApiDataExportTabularRowExportBehaviour", } - attribute_map = { + attribute_map: Dict[str, str] = { "linked_records_criterion": "linkedRecordsCriterion", "summary_roll_up_type": "summaryRollUpType", "tabular_row_behavior": "tabularRowBehavior", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "tabularRowBehavior": "GrantaServerApiDataExportTabularRowExportBehaviour", "summaryRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "linkedRecordsCriterion": "GrantaServerApiSearchCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -85,7 +95,7 @@ def __init__( @property def tabular_row_behavior( self, - ) -> "GrantaServerApiDataExportTabularRowExportBehaviour": + ) -> "Optional[GrantaServerApiDataExportTabularRowExportBehaviour]": """Gets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns @@ -97,7 +107,8 @@ def tabular_row_behavior( @tabular_row_behavior.setter def tabular_row_behavior( - self, tabular_row_behavior: "GrantaServerApiDataExportTabularRowExportBehaviour" + self, + tabular_row_behavior: "Optional[GrantaServerApiDataExportTabularRowExportBehaviour]", ) -> None: """Sets the tabular_row_behavior of this GrantaServerApiDataExportLinkedRecordExportBehavior. @@ -111,7 +122,7 @@ def tabular_row_behavior( @property def summary_roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns @@ -124,7 +135,7 @@ def summary_roll_up_type( @summary_roll_up_type.setter def summary_roll_up_type( self, - summary_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", + summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the summary_roll_up_type of this GrantaServerApiDataExportLinkedRecordExportBehavior. @@ -136,7 +147,7 @@ def summary_roll_up_type( self._summary_roll_up_type = summary_roll_up_type @property - def linked_records_criterion(self) -> "GrantaServerApiSearchCriterion": + def linked_records_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": """Gets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. Returns @@ -148,7 +159,7 @@ def linked_records_criterion(self) -> "GrantaServerApiSearchCriterion": @linked_records_criterion.setter def linked_records_criterion( - self, linked_records_criterion: "GrantaServerApiSearchCriterion" + self, linked_records_criterion: "Optional[GrantaServerApiSearchCriterion]" ) -> None: """Sets the linked_records_criterion of this GrantaServerApiDataExportLinkedRecordExportBehavior. @@ -177,7 +188,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce719a0a..15ec2d5f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesCreatedByUserProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "created_by_user": "str", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "created_by_user": "createdByUser", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._created_by_user = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def created_by_user(self) -> "str": + def created_by_user(self) -> "Optional[str]": """Gets the created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. Returns @@ -112,7 +122,7 @@ def created_by_user(self) -> "str": return self._created_by_user @created_by_user.setter - def created_by_user(self, created_by_user: "str") -> None: + def created_by_user(self, created_by_user: "Optional[str]") -> None: """Sets the created_by_user of this GrantaServerApiDataExportPropertiesCreatedByUserProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6f5fa8f6..a50260e2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesCreatedDateProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "created_date": "datetime", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "created_date": "createdDate", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._created_date = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def created_date(self) -> "datetime": + def created_date(self) -> "Optional[datetime]": """Gets the created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. Returns @@ -112,7 +122,7 @@ def created_date(self) -> "datetime": return self._created_date @created_date.setter - def created_date(self, created_date: "datetime") -> None: + def created_date(self, created_date: "Optional[datetime]") -> None: """Sets the created_date of this GrantaServerApiDataExportPropertiesCreatedDateProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5060b926..2de0be5b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesDatabaseKeyProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_key": "str", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_key": "databaseKey", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._database_key = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. Returns @@ -112,7 +122,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiDataExportPropertiesDatabaseKeyProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 62ddcf96..d372c56c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesFullNameProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "full_name": "str", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "full_name": "fullName", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._full_name = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def full_name(self) -> "str": + def full_name(self) -> "Optional[str]": """Gets the full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. Returns @@ -112,7 +122,7 @@ def full_name(self) -> "str": return self._full_name @full_name.setter - def full_name(self, full_name: "str") -> None: + def full_name(self, full_name: "Optional[str]") -> None: """Sets the full_name of this GrantaServerApiDataExportPropertiesFullNameProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ded33bdb..1275ae7d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesLastModifiedByUserProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "last_modified_by_user": "str", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "last_modified_by_user": "lastModifiedByUser", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._last_modified_by_user = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def last_modified_by_user(self) -> "str": + def last_modified_by_user(self) -> "Optional[str]": """Gets the last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. Returns @@ -112,7 +122,7 @@ def last_modified_by_user(self) -> "str": return self._last_modified_by_user @last_modified_by_user.setter - def last_modified_by_user(self, last_modified_by_user: "str") -> None: + def last_modified_by_user(self, last_modified_by_user: "Optional[str]") -> None: """Sets the last_modified_by_user of this GrantaServerApiDataExportPropertiesLastModifiedByUserProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 fa81807a..a652d94e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesLastModifiedDateProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "last_modified_date": "datetime", "property_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "last_modified_date": "lastModifiedDate", "property_name": "propertyName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( property_name: str """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._last_modified_date = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def last_modified_date(self) -> "datetime": + def last_modified_date(self) -> "Optional[datetime]": """Gets the last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. Returns @@ -112,7 +122,7 @@ def last_modified_date(self) -> "datetime": return self._last_modified_date @last_modified_date.setter - def last_modified_date(self, last_modified_date: "datetime") -> None: + def last_modified_date(self, last_modified_date: "Optional[datetime]") -> None: """Sets the last_modified_date of this GrantaServerApiDataExportPropertiesLastModifiedDateProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4afd58a1..88ef1916 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportPropertiesProperty(ModelBase): +class GrantaServerApiDataExportPropertiesProperty(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiDataExportPropertiesProperty(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "createdByUser".lower(): "#/components/schemas/GrantaServerApiDataExportPropertiesCreatedByUserProperty", @@ -66,7 +76,7 @@ class GrantaServerApiDataExportPropertiesProperty(ModelBase): "versionState".lower(): "#/components/schemas/GrantaServerApiDataExportPropertiesVersionStateProperty", } - discriminator = "property_name" + discriminator: Optional[str] = "property_name" def __init__( self, @@ -85,19 +95,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e7d3a494..2f46978f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiDataExportPropertiesRecordColorProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_color": "GrantaServerApiRecordColor", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_color": "recordColor", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordColor": "GrantaServerApiRecordColor", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,7 +81,7 @@ def __init__( record_color: GrantaServerApiRecordColor, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_color = None self.property_name = property_name @@ -103,7 +113,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_color(self) -> "GrantaServerApiRecordColor": + def record_color(self) -> "Optional[GrantaServerApiRecordColor]": """Gets the record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. Returns @@ -114,7 +124,9 @@ def record_color(self) -> "GrantaServerApiRecordColor": return self._record_color @record_color.setter - def record_color(self, record_color: "GrantaServerApiRecordColor") -> None: + def record_color( + self, record_color: "Optional[GrantaServerApiRecordColor]" + ) -> None: """Sets the record_color of this GrantaServerApiDataExportPropertiesRecordColorProperty. Parameters @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7e06a49c..78736509 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesRecordGuidProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_guid": "recordGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( record_guid: str, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_guid = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_guid(self) -> "str": + def record_guid(self) -> "Optional[str]": """Gets the record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. Returns @@ -112,7 +122,7 @@ def record_guid(self) -> "str": return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "str") -> None: + def record_guid(self, record_guid: "Optional[str]") -> None: """Sets the record_guid of this GrantaServerApiDataExportPropertiesRecordGuidProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 124f18b3..f9e8cd54 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_history_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_history_guid": "recordHistoryGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( record_history_guid: str, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_history_guid = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_history_guid(self) -> "str": + def record_history_guid(self) -> "Optional[str]": """Gets the record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. Returns @@ -112,7 +122,7 @@ def record_history_guid(self) -> "str": return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "str") -> None: + def record_history_guid(self, record_history_guid: "Optional[str]") -> None: """Sets the record_history_guid of this GrantaServerApiDataExportPropertiesRecordHistoryGuidProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2e116111..4b3bd3e7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_history_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_history_identity": "recordHistoryIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( record_history_identity: int, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_history_identity = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. Returns @@ -112,7 +122,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiDataExportPropertiesRecordHistoryIdentityProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c8acbbfb..cd203192 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesRecordIdentityProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_identity": "recordIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( record_identity: int, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_identity = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_identity(self) -> "int": + def record_identity(self) -> "Optional[int]": """Gets the record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. Returns @@ -112,7 +122,7 @@ def record_identity(self) -> "int": return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "int") -> None: + def record_identity(self, record_identity: "Optional[int]") -> None: """Sets the record_identity of this GrantaServerApiDataExportPropertiesRecordIdentityProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ba17e058..2b63bcc4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiDataExportPropertiesRecordTypeProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "record_type": "GrantaServerApiRecordType", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "record_type": "recordType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordType": "GrantaServerApiRecordType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,7 +81,7 @@ def __init__( record_type: GrantaServerApiRecordType, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._record_type = None self.property_name = property_name @@ -103,7 +113,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def record_type(self) -> "GrantaServerApiRecordType": + def record_type(self) -> "Optional[GrantaServerApiRecordType]": """Gets the record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. Returns @@ -114,7 +124,7 @@ def record_type(self) -> "GrantaServerApiRecordType": return self._record_type @record_type.setter - def record_type(self, record_type: "GrantaServerApiRecordType") -> None: + def record_type(self, record_type: "Optional[GrantaServerApiRecordType]") -> None: """Sets the record_type of this GrantaServerApiDataExportPropertiesRecordTypeProperty. Parameters @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 899b9f05..3d194e1e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesReleasedDateProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "released_date": "datetime", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "released_date": "releasedDate", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( released_date: datetime, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._released_date = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def released_date(self) -> "datetime": + def released_date(self) -> "Optional[datetime]": """Gets the released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. Returns @@ -112,7 +122,7 @@ def released_date(self) -> "datetime": return self._released_date @released_date.setter - def released_date(self, released_date: "datetime") -> None: + def released_date(self, released_date: "Optional[datetime]") -> None: """Sets the released_date of this GrantaServerApiDataExportPropertiesReleasedDateProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 752bfcd8..bddbfb45 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesShortNameProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "short_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "short_name": "shortName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( short_name: str, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._short_name = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def short_name(self) -> "str": + def short_name(self) -> "Optional[str]": """Gets the short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. Returns @@ -112,7 +122,7 @@ def short_name(self) -> "str": return self._short_name @short_name.setter - def short_name(self, short_name: "str") -> None: + def short_name(self, short_name: "Optional[str]") -> None: """Sets the short_name of this GrantaServerApiDataExportPropertiesShortNameProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6024b2e4..cc27ad12 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesTableGuidProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "table_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "table_guid": "tableGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( table_guid: str, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._table_guid = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def table_guid(self) -> "str": + def table_guid(self) -> "Optional[str]": """Gets the table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. Returns @@ -112,7 +122,7 @@ def table_guid(self) -> "str": return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "str") -> None: + def table_guid(self, table_guid: "Optional[str]") -> None: """Sets the table_guid of this GrantaServerApiDataExportPropertiesTableGuidProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5e50d745..664408b0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesTableIdentityProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "table_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "table_identity": "tableIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( table_identity: int, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._table_identity = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def table_identity(self) -> "int": + def table_identity(self) -> "Optional[int]": """Gets the table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. Returns @@ -112,7 +122,7 @@ def table_identity(self) -> "int": return self._table_identity @table_identity.setter - def table_identity(self, table_identity: "int") -> None: + def table_identity(self, table_identity: "Optional[int]") -> None: """Sets the table_identity of this GrantaServerApiDataExportPropertiesTableIdentityProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 05ef4d66..47682906 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesTableNameProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "table_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "table_name": "tableName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( table_name: str, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._table_name = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def table_name(self) -> "str": + def table_name(self) -> "Optional[str]": """Gets the table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. Returns @@ -112,7 +122,7 @@ def table_name(self) -> "str": return self._table_name @table_name.setter - def table_name(self, table_name: "str") -> None: + def table_name(self, table_name: "Optional[str]") -> None: """Sets the table_name of this GrantaServerApiDataExportPropertiesTableNameProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 cd3b680f..b61d507d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiDataExportPropertiesVersionNumberProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "version_number": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "version_number": "versionNumber", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( version_number: int, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._version_number = None self.property_name = property_name @@ -101,7 +111,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def version_number(self) -> "int": + def version_number(self) -> "Optional[int]": """Gets the version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. Returns @@ -112,7 +122,7 @@ def version_number(self) -> "int": return self._version_number @version_number.setter - def version_number(self, version_number: "int") -> None: + def version_number(self, version_number: "Optional[int]") -> None: """Sets the version_number of this GrantaServerApiDataExportPropertiesVersionNumberProperty. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 95d12364..aaa7ef5a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_properties_property import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiDataExportPropertiesVersionStateProperty( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "property_name": "str", "version_state": "GrantaServerApiVersionState", } - attribute_map = { + attribute_map: Dict[str, str] = { "property_name": "propertyName", "version_state": "versionState", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "versionState": "GrantaServerApiVersionState", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,7 +81,7 @@ def __init__( version_state: GrantaServerApiVersionState, optional """ super().__init__() - self._property_name = None + self._property_name: str = None # type: ignore[assignment] self._version_state = None self.property_name = property_name @@ -103,7 +113,7 @@ def property_name(self, property_name: "str") -> None: self._property_name = property_name @property - def version_state(self) -> "GrantaServerApiVersionState": + def version_state(self) -> "Optional[GrantaServerApiVersionState]": """Gets the version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. Returns @@ -114,7 +124,9 @@ def version_state(self) -> "GrantaServerApiVersionState": return self._version_state @version_state.setter - def version_state(self, version_state: "GrantaServerApiVersionState") -> None: + def version_state( + self, version_state: "Optional[GrantaServerApiVersionState]" + ) -> None: """Sets the version_state of this GrantaServerApiDataExportPropertiesVersionStateProperty. Parameters @@ -142,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5b4dcc09..71cde507 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataExportRecordWithData(ModelBase): +class GrantaServerApiDataExportRecordWithData(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,26 +46,26 @@ class GrantaServerApiDataExportRecordWithData(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "data": "list[GrantaServerApiDataExportDatumsDatum]", "database_key": "str", "properties": "list[GrantaServerApiDataExportPropertiesProperty]", "record_history_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "data": "data", "database_key": "databaseKey", "properties": "properties", "record_history_identity": "recordHistoryIdentity", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "data": "GrantaServerApiDataExportDatumsDatum", "properties": "GrantaServerApiDataExportPropertiesProperty", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -89,7 +99,7 @@ def __init__( self.properties = properties @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiDataExportRecordWithData. Returns @@ -100,7 +110,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiDataExportRecordWithData. Parameters @@ -111,7 +121,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiDataExportRecordWithData. Returns @@ -122,7 +132,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiDataExportRecordWithData. Parameters @@ -133,7 +143,7 @@ def record_history_identity(self, record_history_identity: "int") -> None: self._record_history_identity = record_history_identity @property - def data(self) -> "list[GrantaServerApiDataExportDatumsDatum]": + def data(self) -> "Optional[List[GrantaServerApiDataExportDatumsDatum]]": """Gets the data of this GrantaServerApiDataExportRecordWithData. Returns @@ -144,18 +154,22 @@ def data(self) -> "list[GrantaServerApiDataExportDatumsDatum]": return self._data @data.setter - def data(self, data: "list[GrantaServerApiDataExportDatumsDatum]") -> None: + def data( + self, data: "Optional[List[GrantaServerApiDataExportDatumsDatum]]" + ) -> None: """Sets the data of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - data: list[GrantaServerApiDataExportDatumsDatum] + data: List[GrantaServerApiDataExportDatumsDatum] The data of this GrantaServerApiDataExportRecordWithData. """ self._data = data @property - def properties(self) -> "list[GrantaServerApiDataExportPropertiesProperty]": + def properties( + self, + ) -> "Optional[List[GrantaServerApiDataExportPropertiesProperty]]": """Gets the properties of this GrantaServerApiDataExportRecordWithData. Returns @@ -167,13 +181,13 @@ def properties(self) -> "list[GrantaServerApiDataExportPropertiesProperty]": @properties.setter def properties( - self, properties: "list[GrantaServerApiDataExportPropertiesProperty]" + self, properties: "Optional[List[GrantaServerApiDataExportPropertiesProperty]]" ) -> None: """Sets the properties of this GrantaServerApiDataExportRecordWithData. Parameters ---------- - properties: list[GrantaServerApiDataExportPropertiesProperty] + properties: List[GrantaServerApiDataExportPropertiesProperty] The properties of this GrantaServerApiDataExportRecordWithData. """ self._properties = properties @@ -196,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7794cb1d..d1bf178b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_export_attribute_to_export import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiDataExportSimpleAttributeToExport( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_type": "str", "guid": "str", "identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiDataExportSimpleAttributeToExport( "summary_roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_type": "attributeType", "guid": "guid", "identity": "identity", @@ -57,12 +67,12 @@ class GrantaServerApiDataExportSimpleAttributeToExport( "summary_roll_up_type": "summaryRollUpType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "summaryRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( super().__init__(guid=guid, identity=identity) self._roll_up_type = None self._summary_roll_up_type = None - self._attribute_type = None + self._attribute_type: str = None # type: ignore[assignment] if roll_up_type is not None: self.roll_up_type = roll_up_type @@ -97,7 +107,7 @@ def __init__( @property def roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns @@ -109,7 +119,8 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( - self, roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" + self, + roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. @@ -123,7 +134,7 @@ def roll_up_type( @property def summary_roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. Returns @@ -136,7 +147,7 @@ def summary_roll_up_type( @summary_roll_up_type.setter def summary_roll_up_type( self, - summary_roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", + summary_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the summary_roll_up_type of this GrantaServerApiDataExportSimpleAttributeToExport. @@ -189,7 +200,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ae8d6eda..4931adf8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiDataHyperlinkDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "address": "str", "description": "str", "target": "GrantaServerApiDataHyperlinkTarget", @@ -47,7 +57,7 @@ class GrantaServerApiDataHyperlinkDatum(GrantaServerApiDataApplicableDatum): "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "address": "address", "description": "description", "target": "target", @@ -55,11 +65,11 @@ class GrantaServerApiDataHyperlinkDatum(GrantaServerApiDataApplicableDatum): "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "target": "GrantaServerApiDataHyperlinkTarget", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,10 +91,10 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._address = None - self._description = None - self._target = None + 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 = datum_type self.address = address @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ca1013c8..03cb2e0f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiDataIntegerDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "value": "int", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "value": "value", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,8 +81,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._value = None + self._datum_type: str = None # type: ignore[assignment] + self._value: int = None # type: ignore[assignment] self.datum_type = datum_type self.value = value @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 456d4fce..42a5fb74 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiDataLogicalDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "value": "bool", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "value": "value", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,8 +81,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._value = None + self._datum_type: str = None # type: ignore[assignment] + self._value: bool = None # type: ignore[assignment] self.datum_type = datum_type self.value = value @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 fa08d954..deb08cc2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,23 +49,23 @@ class GrantaServerApiDataLongTextDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "rich_text_value": "GrantaServerApiDataRichTextValue", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "rich_text_value": "richTextValue", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "richTextValue": "GrantaServerApiDataRichTextValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._rich_text_value = None + self._datum_type: str = None # type: ignore[assignment] + self._rich_text_value: GrantaServerApiDataRichTextValue = None # type: ignore[assignment] self.datum_type = datum_type self.rich_text_value = rich_text_value @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 47acb1cc..fea78113 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,17 +49,17 @@ class GrantaServerApiDataNotApplicableDatum(GrantaServerApiDataDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( not_applicable: str """ super().__init__() - self._not_applicable = None + self._not_applicable: str = None # type: ignore[assignment] self.not_applicable = not_applicable @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c8cd3a54..67e3c10e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiDataRangeDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "estimated": "bool", "high_value": "float", "high_value_is_inclusive": "bool", @@ -52,7 +62,7 @@ class GrantaServerApiDataRangeDatum(GrantaServerApiDataApplicableDatum): "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "estimated": "estimated", "high_value": "highValue", "high_value_is_inclusive": "highValueIsInclusive", @@ -65,13 +75,13 @@ class GrantaServerApiDataRangeDatum(GrantaServerApiDataApplicableDatum): "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "lowValueSignificantFiguresInfo": "GrantaServerApiDataSignificantFiguresInfo", "highValueSignificantFiguresInfo": "GrantaServerApiDataSignificantFiguresInfo", "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -103,14 +113,14 @@ def __init__( unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._low_value = None - self._high_value = None - self._low_value_is_inclusive = None - self._high_value_is_inclusive = None + 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 = None + self._estimated: bool = None # type: ignore[assignment] self._unit = None self.datum_type = datum_type @@ -255,7 +265,7 @@ def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: @property def low_value_significant_figures_info( self, - ) -> "GrantaServerApiDataSignificantFiguresInfo": + ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": """Gets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Returns @@ -268,7 +278,7 @@ def low_value_significant_figures_info( @low_value_significant_figures_info.setter def low_value_significant_figures_info( self, - low_value_significant_figures_info: "GrantaServerApiDataSignificantFiguresInfo", + low_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", ) -> None: """Sets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. @@ -282,7 +292,7 @@ def low_value_significant_figures_info( @property def high_value_significant_figures_info( self, - ) -> "GrantaServerApiDataSignificantFiguresInfo": + ) -> "Optional[GrantaServerApiDataSignificantFiguresInfo]": """Gets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. Returns @@ -295,7 +305,7 @@ def high_value_significant_figures_info( @high_value_significant_figures_info.setter def high_value_significant_figures_info( self, - high_value_significant_figures_info: "GrantaServerApiDataSignificantFiguresInfo", + high_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]", ) -> None: """Sets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. @@ -331,7 +341,7 @@ def estimated(self, estimated: "bool") -> None: self._estimated = estimated @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiDataRangeDatum. Returns @@ -342,7 +352,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiDataRangeDatum. Parameters @@ -370,7 +380,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 69d0fb06..e384201d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataRichTextValue(ModelBase): +class GrantaServerApiDataRichTextValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiDataRichTextValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "text": "str", "type": "GrantaServerApiDataRichTextType", } - attribute_map = { + attribute_map: Dict[str, str] = { "text": "text", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiDataRichTextType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,8 +75,8 @@ def __init__( text: str type: GrantaServerApiDataRichTextType """ - self._text = None - self._type = None + self._text: str = None # type: ignore[assignment] + self._type: GrantaServerApiDataRichTextType = None # type: ignore[assignment] self.text = text self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 449a65c8..31b61708 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiDataShortTextDatum(GrantaServerApiDataApplicableDatum): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "value": "str", "datum_type": "str", "not_applicable": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "value": "value", "datum_type": "datumType", "not_applicable": "notApplicable", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,8 +81,8 @@ def __init__( not_applicable: str """ super().__init__(not_applicable=not_applicable) - self._datum_type = None - self._value = None + self._datum_type: str = None # type: ignore[assignment] + self._value: str = None # type: ignore[assignment] self.datum_type = datum_type self.value = value @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 32b726ea..298180f4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDataSignificantFiguresInfo(ModelBase): +class GrantaServerApiDataSignificantFiguresInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiDataSignificantFiguresInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "entered_value": "float", "significant_figures": "int", "entered_unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "entered_value": "enteredValue", "significant_figures": "significantFigures", "entered_unit": "enteredUnit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "enteredUnit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,8 +79,8 @@ def __init__( significant_figures: int entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._significant_figures = None - self._entered_value = None + self._significant_figures: int = None # type: ignore[assignment] + self._entered_value: float = None # type: ignore[assignment] self._entered_unit = None self.significant_figures = significant_figures @@ -129,7 +139,7 @@ def entered_value(self, entered_value: "float") -> None: self._entered_value = entered_value @property - def entered_unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def entered_unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. Returns @@ -141,7 +151,7 @@ def entered_unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": @entered_unit.setter def entered_unit( - self, entered_unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit" + self, entered_unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" ) -> None: """Sets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 153d8b7e..eab4f344 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiDiscreteValue(ModelBase): +class GrantaServerApiDiscreteValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiDiscreteValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "order": "int", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "order": "order", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.order = order @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiDiscreteValue. Returns @@ -83,7 +93,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiDiscreteValue. Parameters @@ -94,7 +104,7 @@ def value(self, value: "str") -> None: self._value = value @property - def order(self) -> "int": + def order(self) -> "Optional[int]": """Gets the order of this GrantaServerApiDiscreteValue. Returns @@ -105,7 +115,7 @@ def order(self) -> "int": return self._order @order.setter - def order(self, order: "int") -> None: + def order(self, order: "Optional[int]") -> None: """Sets the order of this GrantaServerApiDiscreteValue. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 617442e4..38e296f7 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(ModelBase): +class GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,21 +48,21 @@ class GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(Model discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "inUse".lower(): "#/components/schemas/GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail", } - discriminator = "reason" + discriminator: Optional[str] = "reason" def __init__( self, @@ -65,7 +75,7 @@ def __init__( ---------- message: str """ - self._message = None + self._message: str = None # type: ignore[assignment] self.message = message @@ -105,19 +115,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 41ea3d77..8d8b0b80 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_exceptions_data_modification_data_modification_error_detail import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,26 +51,26 @@ class GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "reason": "str", "referenced_by": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "referenced_by_type": "GrantaServerApiExceptionsDataModificationReferencedByType", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "reason": "reason", "referenced_by": "referencedBy", "referenced_by_type": "referencedByType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "referencedByType": "GrantaServerApiExceptionsDataModificationReferencedByType", "referencedBy": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( super().__init__(message=message) self._referenced_by_type = None self._referenced_by = None - self._reason = None + self._reason: str = None # type: ignore[assignment] if referenced_by_type is not None: self.referenced_by_type = referenced_by_type @@ -93,7 +103,7 @@ def __init__( @property def referenced_by_type( self, - ) -> "GrantaServerApiExceptionsDataModificationReferencedByType": + ) -> "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]": """Gets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Returns @@ -106,7 +116,7 @@ def referenced_by_type( @referenced_by_type.setter def referenced_by_type( self, - referenced_by_type: "GrantaServerApiExceptionsDataModificationReferencedByType", + referenced_by_type: "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]", ) -> None: """Sets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. @@ -118,7 +128,9 @@ def referenced_by_type( self._referenced_by_type = referenced_by_type @property - def referenced_by(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def referenced_by( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": """Gets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Returns @@ -130,13 +142,14 @@ def referenced_by(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntit @referenced_by.setter def referenced_by( - self, referenced_by: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, + referenced_by: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", ) -> None: """Sets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. Parameters ---------- - referenced_by: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + referenced_by: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. """ self._referenced_by = referenced_by @@ -183,7 +196,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 baecb63d..96ea492e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b0c8f721..fcd76c19 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 614ef20f..0dd6f047 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 89a9fe73..540fe190 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase) discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 265799d3..d164aadc 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c3dbadfd..4e9d8c07 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d1bcbc31..c56e9872 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters @@ -128,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns @@ -141,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] The errors of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._errors = errors @@ -170,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e8616ccf..7f100191 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsErrorDetail(ModelBase): +class GrantaServerApiExceptionsErrorDetail(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiExceptionsErrorDetail(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "reason": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "reason": "reason", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( message: str reason: str """ - self._message = None - self._reason = None + self._message: str = None # type: ignore[assignment] + self._reason: str = None # type: ignore[assignment] self.message = message self.reason = reason @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 83935649..d65e09cb 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase): +class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters @@ -126,7 +136,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: self._code = code @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": + def errors(self) -> "Optional[List[GrantaServerApiExceptionsErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns @@ -137,12 +147,14 @@ def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": return self._errors @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: + def errors( + self, errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" + ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] + errors: List[GrantaServerApiExceptionsErrorDetail] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._errors = errors @@ -165,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 83eca034..734bbc83 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase): +class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,24 +46,24 @@ class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns @@ -93,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters @@ -104,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns @@ -115,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters @@ -126,7 +136,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: self._code = code @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": + def errors(self) -> "Optional[List[GrantaServerApiExceptionsErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns @@ -137,12 +147,14 @@ def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": return self._errors @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: + def errors( + self, errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" + ) -> None: """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] + errors: List[GrantaServerApiExceptionsErrorDetail] The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._errors = errors @@ -165,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_create_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py index 54ec1646..672075b7 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_create_record_version_control_exception.py @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +46,24 @@ class GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Returns @@ -95,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Parameters @@ -106,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Returns @@ -117,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Parameters @@ -130,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Returns @@ -143,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. Parameters ---------- - errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] The errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. """ self._errors = errors @@ -172,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 52941d27..e4fe2ec4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_exceptions_version_control_version_control_error_detail import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "reason": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "reason": "reason", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( reason: str """ super().__init__(message=message) - self._reason = None + self._reason: str = None # type: ignore[assignment] self.reason = reason @@ -115,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2c65c2fe..832e6e0d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_exceptions_version_control_version_control_error_detail import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "reason": "str", "version_state": "GrantaServerApiVersionState", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "reason": "reason", "version_state": "versionState", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "versionState": "GrantaServerApiVersionState", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,14 +86,14 @@ def __init__( """ super().__init__(message=message) self._version_state = None - self._reason = None + self._reason: str = None # type: ignore[assignment] if version_state is not None: self.version_state = version_state self.reason = reason @property - def version_state(self) -> "GrantaServerApiVersionState": + def version_state(self) -> "Optional[GrantaServerApiVersionState]": """Gets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. Returns @@ -94,7 +104,9 @@ def version_state(self) -> "GrantaServerApiVersionState": return self._version_state @version_state.setter - def version_state(self, version_state: "GrantaServerApiVersionState") -> None: + def version_state( + self, version_state: "Optional[GrantaServerApiVersionState]" + ) -> None: """Sets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. Parameters @@ -146,7 +158,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 718a968d..eed40be7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_exceptions_version_control_version_control_error_detail import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "newer_version": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", "reason": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "newer_version": "newerVersion", "reason": "reason", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "newerVersion": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,14 +86,16 @@ def __init__( """ super().__init__(message=message) self._newer_version = None - self._reason = None + self._reason: str = None # type: ignore[assignment] if newer_version is not None: self.newer_version = newer_version self.reason = reason @property - def newer_version(self) -> "GrantaServerApiRecordsRecordVersionsSlimRecordVersion": + def newer_version( + self, + ) -> "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": """Gets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. Returns @@ -95,7 +107,8 @@ def newer_version(self) -> "GrantaServerApiRecordsRecordVersionsSlimRecordVersio @newer_version.setter def newer_version( - self, newer_version: "GrantaServerApiRecordsRecordVersionsSlimRecordVersion" + self, + newer_version: "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", ) -> None: """Sets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. @@ -148,7 +161,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ac1d9e1d..2338b65a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_exceptions_version_control_version_control_error_detail import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", "reason": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", "reason": "reason", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( reason: str """ super().__init__(message=message) - self._reason = None + self._reason: str = None # type: ignore[assignment] self.reason = reason @@ -115,7 +125,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d5dd5686..694c9f2d 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +46,24 @@ class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlExceptio discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns @@ -95,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters @@ -106,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns @@ -117,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters @@ -130,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Returns @@ -143,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. Parameters ---------- - errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] The errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. """ self._errors = errors @@ -172,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 92e9fe8e..f3f0144f 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +46,24 @@ class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns @@ -95,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters @@ -106,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns @@ -117,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters @@ -130,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Returns @@ -143,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. Parameters ---------- - errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] The errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. """ self._errors = errors @@ -172,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d57ec1d5..1b3b460d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase): +class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "message": "message", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "invalidVersionState".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", @@ -55,7 +65,7 @@ class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase "notVersioned".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail", } - discriminator = "reason" + discriminator: Optional[str] = "reason" def __init__( self, @@ -68,7 +78,7 @@ def __init__( ---------- message: str """ - self._message = None + self._message: str = None # type: ignore[assignment] self.message = message @@ -108,19 +118,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0471b45d..c4ab0df0 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException( - ModelBase -): +class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,24 +46,24 @@ class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlExcepti discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", "message": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "code": "code", "errors": "errors", "message": "message", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "code": "SystemNetHttpStatusCode", "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,7 +92,7 @@ def __init__( self.errors = errors @property - def message(self) -> "str": + def message(self) -> "Optional[str]": """Gets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns @@ -95,7 +103,7 @@ def message(self) -> "str": return self._message @message.setter - def message(self, message: "str") -> None: + def message(self, message: "Optional[str]") -> None: """Sets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters @@ -106,7 +114,7 @@ def message(self, message: "str") -> None: self._message = message @property - def code(self) -> "SystemNetHttpStatusCode": + def code(self) -> "Optional[SystemNetHttpStatusCode]": """Gets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns @@ -117,7 +125,7 @@ def code(self) -> "SystemNetHttpStatusCode": return self._code @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: + def code(self, code: "Optional[SystemNetHttpStatusCode]") -> None: """Sets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters @@ -130,7 +138,7 @@ def code(self, code: "SystemNetHttpStatusCode") -> None: @property def errors( self, - ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + ) -> "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]": """Gets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Returns @@ -143,13 +151,13 @@ def errors( @errors.setter def errors( self, - errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]", ) -> None: """Sets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. Parameters ---------- - errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] The errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. """ self._errors = errors @@ -172,7 +180,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce3c8efd..0a636c71 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_value_specifier import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiExcludeValuesSpecifier(GrantaServerApiValueSpecifier): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "excluded_guids": "list[str]", "excluded_identities": "list[int]", "filter_on": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "excluded_guids": "excludedGuids", "excluded_identities": "excludedIdentities", "filter_on": "filterOn", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._excluded_identities = None self._excluded_guids = None - self._filter_on = None + self._filter_on: str = None # type: ignore[assignment] if excluded_identities is not None: self.excluded_identities = excluded_identities @@ -82,7 +92,7 @@ def __init__( self.filter_on = filter_on @property - def excluded_identities(self) -> "list[int]": + def excluded_identities(self) -> "Optional[List[int]]": """Gets the excluded_identities of this GrantaServerApiExcludeValuesSpecifier. Returns @@ -93,18 +103,18 @@ def excluded_identities(self) -> "list[int]": return self._excluded_identities @excluded_identities.setter - def excluded_identities(self, excluded_identities: "list[int]") -> None: + def excluded_identities(self, excluded_identities: "Optional[List[int]]") -> None: """Sets the excluded_identities of this GrantaServerApiExcludeValuesSpecifier. Parameters ---------- - excluded_identities: list[int] + excluded_identities: List[int] The excluded_identities of this GrantaServerApiExcludeValuesSpecifier. """ self._excluded_identities = excluded_identities @property - def excluded_guids(self) -> "list[str]": + def excluded_guids(self) -> "Optional[List[str]]": """Gets the excluded_guids of this GrantaServerApiExcludeValuesSpecifier. Returns @@ -115,12 +125,12 @@ def excluded_guids(self) -> "list[str]": return self._excluded_guids @excluded_guids.setter - def excluded_guids(self, excluded_guids: "list[str]") -> None: + def excluded_guids(self, excluded_guids: "Optional[List[str]]") -> None: """Sets the excluded_guids of this GrantaServerApiExcludeValuesSpecifier. Parameters ---------- - excluded_guids: list[str] + excluded_guids: List[str] The excluded_guids of this GrantaServerApiExcludeValuesSpecifier. """ self._excluded_guids = excluded_guids @@ -167,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 adaa2ead..77920387 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiFunctionalDatumParameterInfo(ModelBase): +class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "GrantaServerApiDataExportDatumsParameterValue", "default_value_defined_at": "GrantaServerApiDataExportParameterSettingDefinedAt", "identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): "unit_symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "default_value_defined_at": "defaultValueDefinedAt", "identity": "identity", @@ -62,7 +72,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): "unit_symbol": "unitSymbol", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "scaleTypeDefinedAt": "GrantaServerApiDataExportParameterSettingDefinedAt", "interpolationMethodDefinedAt": "GrantaServerApiDataExportParameterSettingDefinedAt", "defaultValueDefinedAt": "GrantaServerApiDataExportParameterSettingDefinedAt", @@ -72,7 +82,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): "defaultValue": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -138,7 +148,7 @@ def __init__( @property def scale_type_defined_at( self, - ) -> "GrantaServerApiDataExportParameterSettingDefinedAt": + ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": """Gets the scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -151,7 +161,7 @@ def scale_type_defined_at( @scale_type_defined_at.setter def scale_type_defined_at( self, - scale_type_defined_at: "GrantaServerApiDataExportParameterSettingDefinedAt", + scale_type_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", ) -> None: """Sets the scale_type_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. @@ -165,7 +175,7 @@ def scale_type_defined_at( @property def interpolation_method_defined_at( self, - ) -> "GrantaServerApiDataExportParameterSettingDefinedAt": + ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": """Gets the interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -178,7 +188,7 @@ def interpolation_method_defined_at( @interpolation_method_defined_at.setter def interpolation_method_defined_at( self, - interpolation_method_defined_at: "GrantaServerApiDataExportParameterSettingDefinedAt", + interpolation_method_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", ) -> None: """Sets the interpolation_method_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. @@ -192,7 +202,7 @@ def interpolation_method_defined_at( @property def default_value_defined_at( self, - ) -> "GrantaServerApiDataExportParameterSettingDefinedAt": + ) -> "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]": """Gets the default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -205,7 +215,7 @@ def default_value_defined_at( @default_value_defined_at.setter def default_value_defined_at( self, - default_value_defined_at: "GrantaServerApiDataExportParameterSettingDefinedAt", + default_value_defined_at: "Optional[GrantaServerApiDataExportParameterSettingDefinedAt]", ) -> None: """Sets the default_value_defined_at of this GrantaServerApiFunctionalDatumParameterInfo. @@ -217,7 +227,7 @@ def default_value_defined_at( self._default_value_defined_at = default_value_defined_at @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -228,7 +238,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiFunctionalDatumParameterInfo. Parameters @@ -239,7 +249,7 @@ def name(self, name: "str") -> None: self._name = name @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -250,7 +260,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiFunctionalDatumParameterInfo. Parameters @@ -261,7 +271,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -272,7 +282,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiFunctionalDatumParameterInfo. Parameters @@ -283,7 +293,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": + def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": """Gets the scale_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -294,7 +304,9 @@ def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> None: + def scale_type( + self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + ) -> None: """Sets the scale_type of this GrantaServerApiFunctionalDatumParameterInfo. Parameters @@ -305,7 +317,9 @@ def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> Non self._scale_type = scale_type @property - def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": + def interpolation_type( + self, + ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": """Gets the interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -317,7 +331,8 @@ def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": @interpolation_type.setter def interpolation_type( - self, interpolation_type: "GrantaServerApiParameterInfoInterpolationType" + self, + interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", ) -> None: """Sets the interpolation_type of this GrantaServerApiFunctionalDatumParameterInfo. @@ -329,7 +344,7 @@ def interpolation_type( self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": + def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": """Gets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -341,7 +356,7 @@ def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": @parameter_type.setter def parameter_type( - self, parameter_type: "GrantaServerApiParameterInfoParameterType" + self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" ) -> None: """Sets the parameter_type of this GrantaServerApiFunctionalDatumParameterInfo. @@ -353,7 +368,9 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": + def default_value( + self, + ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": """Gets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. Returns @@ -365,7 +382,7 @@ def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": @default_value.setter def default_value( - self, default_value: "GrantaServerApiDataExportDatumsParameterValue" + self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" ) -> None: """Sets the default_value of this GrantaServerApiFunctionalDatumParameterInfo. @@ -394,7 +411,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1d50c6c6..94d45e9e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIndexRecordFailure(ModelBase): +class GrantaServerApiIndexRecordFailure(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiIndexRecordFailure(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "error": "str", "record_history_identity": "int", "record_name": "str", "record_was_oversized": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "error": "error", "record_history_identity": "recordHistoryIdentity", "record_name": "recordName", "record_was_oversized": "recordWasOversized", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.record_was_oversized = record_was_oversized @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiIndexRecordFailure. Returns @@ -97,7 +107,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiIndexRecordFailure. Parameters @@ -108,7 +118,7 @@ def record_history_identity(self, record_history_identity: "int") -> None: self._record_history_identity = record_history_identity @property - def record_name(self) -> "str": + def record_name(self) -> "Optional[str]": """Gets the record_name of this GrantaServerApiIndexRecordFailure. Returns @@ -119,7 +129,7 @@ def record_name(self) -> "str": return self._record_name @record_name.setter - def record_name(self, record_name: "str") -> None: + def record_name(self, record_name: "Optional[str]") -> None: """Sets the record_name of this GrantaServerApiIndexRecordFailure. Parameters @@ -130,7 +140,7 @@ def record_name(self, record_name: "str") -> None: self._record_name = record_name @property - def error(self) -> "str": + def error(self) -> "Optional[str]": """Gets the error of this GrantaServerApiIndexRecordFailure. This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. @@ -142,7 +152,7 @@ def error(self) -> "str": return self._error @error.setter - def error(self, error: "str") -> None: + def error(self, error: "Optional[str]") -> None: """Sets the error of this GrantaServerApiIndexRecordFailure. This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. @@ -154,7 +164,7 @@ def error(self, error: "str") -> None: self._error = error @property - def record_was_oversized(self) -> "bool": + def record_was_oversized(self) -> "Optional[bool]": """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 @@ -166,7 +176,7 @@ def record_was_oversized(self) -> "bool": return self._record_was_oversized @record_was_oversized.setter - def record_was_oversized(self, record_was_oversized: "bool") -> None: + def record_was_oversized(self, record_was_oversized: "Optional[bool]") -> 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 @@ -195,7 +205,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 03548bbc..79483f29 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationDataExportIntegrationDataExportRequest(ModelBase): +class GrantaServerApiIntegrationDataExportIntegrationDataExportRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiIntegrationDataExportIntegrationDataExportRequest(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_identities": "list[int]", "record_references": "list[GrantaServerApiIntegrationDataExportRecordReference]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_identities": "attributeIdentities", "record_references": "recordReferences", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordReferences": "GrantaServerApiIntegrationDataExportRecordReference", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,8 +75,8 @@ def __init__( attribute_identities: List[int] record_references: List[GrantaServerApiIntegrationDataExportRecordReference] """ - self._record_references = None - self._attribute_identities = None + self._record_references: List[GrantaServerApiIntegrationDataExportRecordReference] = None # type: ignore[assignment] + self._attribute_identities: List[int] = None # type: ignore[assignment] self.record_references = record_references self.attribute_identities = attribute_identities @@ -74,7 +84,7 @@ def __init__( @property def record_references( self, - ) -> "list[GrantaServerApiIntegrationDataExportRecordReference]": + ) -> "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 @@ -88,14 +98,14 @@ def record_references( @record_references.setter def record_references( self, - record_references: "list[GrantaServerApiIntegrationDataExportRecordReference]", + 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 Parameters ---------- - record_references: list[GrantaServerApiIntegrationDataExportRecordReference] + record_references: List[GrantaServerApiIntegrationDataExportRecordReference] The record_references of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ if record_references is None: @@ -105,7 +115,7 @@ def record_references( self._record_references = record_references @property - def attribute_identities(self) -> "list[int]": + def attribute_identities(self) -> "List[int]": """Gets the attribute_identities of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. A list of attribute to export. These are the attribute identities from the integration schema. @@ -117,13 +127,13 @@ def attribute_identities(self) -> "list[int]": return self._attribute_identities @attribute_identities.setter - def attribute_identities(self, attribute_identities: "list[int]") -> None: + def attribute_identities(self, attribute_identities: "List[int]") -> None: """Sets the attribute_identities of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. A list of attribute to export. These are the attribute identities from the integration schema. Parameters ---------- - attribute_identities: list[int] + attribute_identities: List[int] The attribute_identities of this GrantaServerApiIntegrationDataExportIntegrationDataExportRequest. """ if attribute_identities is None: @@ -150,7 +160,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d12dcff4..ad5d353e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationDataExportRecordReference(ModelBase): +class GrantaServerApiIntegrationDataExportRecordReference(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiIntegrationDataExportRecordReference(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_key": "str", "record_history_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_key": "databaseKey", "record_history_identity": "recordHistoryIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.database_key = database_key @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. Returns @@ -83,7 +93,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiIntegrationDataExportRecordReference. Parameters @@ -94,7 +104,7 @@ def record_history_identity(self, record_history_identity: "int") -> None: self._record_history_identity = record_history_identity @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiIntegrationDataExportRecordReference. Returns @@ -105,7 +115,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiIntegrationDataExportRecordReference. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 fa1fe0c9..251bd4e4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): +class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "disk_status": "GrantaServerApiDiskStatus", "disk_threshold": "str", "errored_databases": "dict(str, str)", @@ -53,7 +63,7 @@ class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): "search_index_up_to_date": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "disk_status": "diskStatus", "disk_threshold": "diskThreshold", "errored_databases": "erroredDatabases", @@ -70,13 +80,13 @@ class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): "search_index_up_to_date": "searchIndexUpToDate", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "loadedDatabaseIndexStatuses": "GrantaServerApiSearchIndexStatus", "diskStatus": "GrantaServerApiDiskStatus", "recordsThatFailedToIndex": "GrantaServerApiIndexRecordFailure", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -160,7 +170,7 @@ def __init__( self.records_that_failed_to_index = records_that_failed_to_index @property - def loaded_databases(self) -> "list[str]": + def loaded_databases(self) -> "Optional[List[str]]": """Gets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Loaded databases have been successfully indexed into the integration schema. @@ -172,19 +182,19 @@ def loaded_databases(self) -> "list[str]": return self._loaded_databases @loaded_databases.setter - def loaded_databases(self, loaded_databases: "list[str]") -> None: + def loaded_databases(self, loaded_databases: "Optional[List[str]]") -> 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: List[str] The loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._loaded_databases = loaded_databases @property - def loading_databases(self) -> "list[str]": + def loading_databases(self) -> "Optional[List[str]]": """Gets the loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases which are in the process of loading. @@ -196,19 +206,19 @@ def loading_databases(self) -> "list[str]": return self._loading_databases @loading_databases.setter - def loading_databases(self, loading_databases: "list[str]") -> None: + def loading_databases(self, loading_databases: "Optional[List[str]]") -> None: """Sets the loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases which are in the process of loading. Parameters ---------- - loading_databases: list[str] + loading_databases: List[str] The loading_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._loading_databases = loading_databases @property - def not_loaded_databases(self) -> "list[str]": + def not_loaded_databases(self) -> "Optional[List[str]]": """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. @@ -220,19 +230,19 @@ def not_loaded_databases(self) -> "list[str]": return self._not_loaded_databases @not_loaded_databases.setter - def not_loaded_databases(self, not_loaded_databases: "list[str]") -> None: + def not_loaded_databases(self, not_loaded_databases: "Optional[List[str]]") -> 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: List[str] The not_loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._not_loaded_databases = not_loaded_databases @property - def errored_databases(self) -> "dict(str, str)": + def errored_databases(self) -> "Optional[Dict[str, str]]": """Gets the errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. Databases that encountered an error while loading. These databases will not be available for searches. @@ -244,13 +254,13 @@ def errored_databases(self) -> "dict(str, str)": return self._errored_databases @errored_databases.setter - def errored_databases(self, errored_databases: "dict(str, str)") -> None: + def errored_databases(self, errored_databases: "Optional[Dict[str, str]]") -> 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: Dict[str, str] The errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._errored_databases = errored_databases @@ -258,7 +268,7 @@ def errored_databases(self, errored_databases: "dict(str, str)") -> None: @property def loaded_database_index_statuses( self, - ) -> "dict(str, GrantaServerApiSearchIndexStatus)": + ) -> "Optional[Dict[str, GrantaServerApiSearchIndexStatus]]": """Gets the loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. Index information about all loaded databases, including the out of sync status. @@ -272,20 +282,20 @@ def loaded_database_index_statuses( @loaded_database_index_statuses.setter def loaded_database_index_statuses( self, - loaded_database_index_statuses: "dict(str, GrantaServerApiSearchIndexStatus)", + loaded_database_index_statuses: "Optional[Dict[str, GrantaServerApiSearchIndexStatus]]", ) -> 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: Dict[str, GrantaServerApiSearchIndexStatus] 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) -> "bool": + def search_index_up_to_date(self) -> "Optional[bool]": """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 @@ -297,7 +307,9 @@ def search_index_up_to_date(self) -> "bool": 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: "bool") -> None: + def search_index_up_to_date( + self, search_index_up_to_date: "Optional[bool]" + ) -> 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 @@ -309,7 +321,7 @@ def search_index_up_to_date(self, search_index_up_to_date: "bool") -> None: self._search_index_up_to_date = search_index_up_to_date @property - def search_index_out_of_date_duration(self) -> "str": + def search_index_out_of_date_duration(self) -> "Optional[str]": """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. @@ -322,7 +334,7 @@ def search_index_out_of_date_duration(self) -> "str": @search_index_out_of_date_duration.setter def search_index_out_of_date_duration( - self, search_index_out_of_date_duration: "str" + self, search_index_out_of_date_duration: "Optional[str]" ) -> 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. @@ -335,7 +347,7 @@ def search_index_out_of_date_duration( self._search_index_out_of_date_duration = search_index_out_of_date_duration @property - def search_index_in_sync(self) -> "bool": + def search_index_in_sync(self) -> "Optional[bool]": """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) @@ -347,7 +359,7 @@ def search_index_in_sync(self) -> "bool": return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync(self, search_index_in_sync: "bool") -> None: + def search_index_in_sync(self, search_index_in_sync: "Optional[bool]") -> 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) @@ -359,7 +371,7 @@ def search_index_in_sync(self, search_index_in_sync: "bool") -> None: self._search_index_in_sync = search_index_in_sync @property - def search_index_location(self) -> "str": + def search_index_location(self) -> "Optional[str]": """Gets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. The location of the index. @@ -371,7 +383,7 @@ def search_index_location(self) -> "str": return self._search_index_location @search_index_location.setter - def search_index_location(self, search_index_location: "str") -> None: + def search_index_location(self, search_index_location: "Optional[str]") -> None: """Sets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. The location of the index. @@ -383,7 +395,7 @@ def search_index_location(self, search_index_location: "str") -> None: self._search_index_location = search_index_location @property - def search_index_is_read_only(self) -> "bool": + def search_index_is_read_only(self) -> "Optional[bool]": """Gets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index is read only. @@ -395,7 +407,9 @@ def search_index_is_read_only(self) -> "bool": 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: "bool") -> None: + def search_index_is_read_only( + self, search_index_is_read_only: "Optional[bool]" + ) -> None: """Sets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index is read only. @@ -407,7 +421,7 @@ def search_index_is_read_only(self, search_index_is_read_only: "bool") -> None: self._search_index_is_read_only = search_index_is_read_only @property - def disk_status(self) -> "GrantaServerApiDiskStatus": + def disk_status(self) -> "Optional[GrantaServerApiDiskStatus]": """Gets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. Returns @@ -418,7 +432,7 @@ def disk_status(self) -> "GrantaServerApiDiskStatus": return self._disk_status @disk_status.setter - def disk_status(self, disk_status: "GrantaServerApiDiskStatus") -> None: + def disk_status(self, disk_status: "Optional[GrantaServerApiDiskStatus]") -> None: """Sets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. Parameters @@ -429,7 +443,7 @@ def disk_status(self, disk_status: "GrantaServerApiDiskStatus") -> None: self._disk_status = disk_status @property - def disk_threshold(self) -> "str": + def disk_threshold(self) -> "Optional[str]": """Gets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. The 'flood stage' threshold from Elasticsearch. @@ -441,7 +455,7 @@ def disk_threshold(self) -> "str": return self._disk_threshold @disk_threshold.setter - def disk_threshold(self, disk_threshold: "str") -> None: + def disk_threshold(self, disk_threshold: "Optional[str]") -> None: """Sets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. The 'flood stage' threshold from Elasticsearch. @@ -453,7 +467,7 @@ def disk_threshold(self, disk_threshold: "str") -> None: self._disk_threshold = disk_threshold @property - def search_index_unavailable(self) -> "bool": + def search_index_unavailable(self) -> "Optional[bool]": """Gets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index could not be contacted. @@ -465,7 +479,9 @@ def search_index_unavailable(self) -> "bool": return self._search_index_unavailable @search_index_unavailable.setter - def search_index_unavailable(self, search_index_unavailable: "bool") -> None: + def search_index_unavailable( + self, search_index_unavailable: "Optional[bool]" + ) -> None: """Sets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. True if the index could not be contacted. @@ -477,7 +493,9 @@ def search_index_unavailable(self, search_index_unavailable: "bool") -> None: self._search_index_unavailable = search_index_unavailable @property - def records_that_failed_to_index(self) -> "list[GrantaServerApiIndexRecordFailure]": + def records_that_failed_to_index( + self, + ) -> "Optional[List[GrantaServerApiIndexRecordFailure]]": """Gets the records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. Details of any records that failed to index. @@ -490,14 +508,15 @@ def records_that_failed_to_index(self) -> "list[GrantaServerApiIndexRecordFailur @records_that_failed_to_index.setter def records_that_failed_to_index( - self, records_that_failed_to_index: "list[GrantaServerApiIndexRecordFailure]" + self, + records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]", ) -> 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: List[GrantaServerApiIndexRecordFailure] The records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. """ self._records_that_failed_to_index = records_that_failed_to_index @@ -520,7 +539,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b49bf205..fd15a24d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaAttribute(ModelBase): +class GrantaServerApiIntegrationSchemaAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiIntegrationSchemaAttribute(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "GrantaServerApiAttributeType", "discrete_type_guid": "str", "discrete_type_identity": "int", @@ -52,7 +62,7 @@ class GrantaServerApiIntegrationSchemaAttribute(ModelBase): "x_axis_parameter": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "discrete_type_guid": "discreteTypeGuid", "discrete_type_identity": "discreteTypeIdentity", @@ -68,14 +78,14 @@ class GrantaServerApiIntegrationSchemaAttribute(ModelBase): "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiAttributeType", "parameters": "GrantaServerApiIntegrationSchemaIntegrationParameterInfo", "targetDatabase": "GrantaServerApiObjectIdentifier", "targetTable": "GrantaServerApiObjectIdentifier", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -115,7 +125,7 @@ def __init__( self._name = None self._identity = None self._guid = None - self._type = None + self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] self._unit_symbol = None self._is_unitted = None self._discrete_type_identity = None @@ -153,7 +163,7 @@ def __init__( self.x_axis_parameter = x_axis_parameter @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -164,7 +174,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaAttribute. Parameters @@ -175,7 +185,7 @@ def name(self, name: "str") -> None: self._name = name @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -186,7 +196,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaAttribute. Parameters @@ -197,7 +207,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """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. @@ -209,7 +219,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> 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. @@ -245,7 +255,7 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: self._type = type @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. If isUnitted is true, then this must have a non empty value @@ -257,7 +267,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaAttribute. If isUnitted is true, then this must have a non empty value @@ -269,7 +279,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def is_unitted(self) -> "bool": + def is_unitted(self) -> "Optional[bool]": """Gets the is_unitted of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -280,7 +290,7 @@ def is_unitted(self) -> "bool": return self._is_unitted @is_unitted.setter - def is_unitted(self, is_unitted: "bool") -> None: + def is_unitted(self, is_unitted: "Optional[bool]") -> None: """Sets the is_unitted of this GrantaServerApiIntegrationSchemaAttribute. Parameters @@ -291,7 +301,7 @@ def is_unitted(self, is_unitted: "bool") -> None: self._is_unitted = is_unitted @property - def discrete_type_identity(self) -> "int": + def discrete_type_identity(self) -> "Optional[int]": """Gets the discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -302,7 +312,7 @@ def discrete_type_identity(self) -> "int": return self._discrete_type_identity @discrete_type_identity.setter - def discrete_type_identity(self, discrete_type_identity: "int") -> None: + def discrete_type_identity(self, discrete_type_identity: "Optional[int]") -> None: """Sets the discrete_type_identity of this GrantaServerApiIntegrationSchemaAttribute. Parameters @@ -313,7 +323,7 @@ def discrete_type_identity(self, discrete_type_identity: "int") -> None: self._discrete_type_identity = discrete_type_identity @property - def discrete_type_guid(self) -> "str": + def discrete_type_guid(self) -> "Optional[str]": """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) @@ -325,7 +335,7 @@ def discrete_type_guid(self) -> "str": return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid(self, discrete_type_guid: "str") -> None: + def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> 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) @@ -339,7 +349,7 @@ def discrete_type_guid(self, discrete_type_guid: "str") -> None: @property def parameters( self, - ) -> "list[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]]": """Gets the parameters of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define a list of parameters. @@ -353,20 +363,20 @@ def parameters( @parameters.setter def parameters( self, - parameters: "list[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]", + parameters: "Optional[List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo]]", ) -> None: """Sets the parameters of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must define a list of parameters. Parameters ---------- - parameters: list[GrantaServerApiIntegrationSchemaIntegrationParameterInfo] + parameters: List[GrantaServerApiIntegrationSchemaIntegrationParameterInfo] The parameters of this GrantaServerApiIntegrationSchemaAttribute. """ self._parameters = parameters @property - def target_database(self) -> "GrantaServerApiObjectIdentifier": + def target_database(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the target_database of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -378,7 +388,7 @@ def target_database(self) -> "GrantaServerApiObjectIdentifier": @target_database.setter def target_database( - self, target_database: "GrantaServerApiObjectIdentifier" + self, target_database: "Optional[GrantaServerApiObjectIdentifier]" ) -> None: """Sets the target_database of this GrantaServerApiIntegrationSchemaAttribute. @@ -390,7 +400,7 @@ def target_database( self._target_database = target_database @property - def target_table(self) -> "GrantaServerApiObjectIdentifier": + def target_table(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the target_table of this GrantaServerApiIntegrationSchemaAttribute. Returns @@ -401,7 +411,9 @@ def target_table(self) -> "GrantaServerApiObjectIdentifier": return self._target_table @target_table.setter - def target_table(self, target_table: "GrantaServerApiObjectIdentifier") -> None: + def target_table( + self, target_table: "Optional[GrantaServerApiObjectIdentifier]" + ) -> None: """Sets the target_table of this GrantaServerApiIntegrationSchemaAttribute. Parameters @@ -412,7 +424,7 @@ def target_table(self, target_table: "GrantaServerApiObjectIdentifier") -> None: self._target_table = target_table @property - def graph_type(self) -> "str": + def graph_type(self) -> "Optional[str]": """Gets the graph_type of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must be either a Series or a Grid type graph. @@ -424,7 +436,7 @@ def graph_type(self) -> "str": return self._graph_type @graph_type.setter - def graph_type(self, graph_type: "str") -> None: + def graph_type(self, graph_type: "Optional[str]") -> None: """Sets the graph_type of this GrantaServerApiIntegrationSchemaAttribute. A float functional attribute must be either a Series or a Grid type graph. @@ -436,7 +448,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def x_axis_parameter(self) -> "str": + def x_axis_parameter(self) -> "Optional[str]": """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 @@ -448,7 +460,7 @@ def x_axis_parameter(self) -> "str": return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter(self, x_axis_parameter: "str") -> None: + def x_axis_parameter(self, x_axis_parameter: "Optional[str]") -> 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 @@ -477,7 +489,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 93fde7f0..4c510a47 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): +class GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiIntegrationSchemaDiscreteType(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "name": "str", "values": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "name": "name", "values": "values", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.values = values @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiIntegrationSchemaDiscreteType. Returns @@ -97,7 +107,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters @@ -108,7 +118,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiIntegrationSchemaDiscreteType. Returns @@ -119,7 +129,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters @@ -130,7 +140,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaDiscreteType. Returns @@ -141,7 +151,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters @@ -152,7 +162,7 @@ def name(self, name: "str") -> None: self._name = name @property - def values(self) -> "list[str]": + def values(self) -> "Optional[List[str]]": """Gets the values of this GrantaServerApiIntegrationSchemaDiscreteType. Returns @@ -163,12 +173,12 @@ def values(self) -> "list[str]": return self._values @values.setter - def values(self, values: "list[str]") -> None: + def values(self, values: "Optional[List[str]]") -> None: """Sets the values of this GrantaServerApiIntegrationSchemaDiscreteType. Parameters ---------- - values: list[str] + values: List[str] The values of this GrantaServerApiIntegrationSchemaDiscreteType. """ self._values = values @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ef1813f6..4bf3bea1 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase) discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "GrantaServerApiAttributeType", "discrete_type_guid": "str", "graph_type": "str", @@ -50,7 +60,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase) "x_axis_parameter": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "discrete_type_guid": "discreteTypeGuid", "graph_type": "graphType", @@ -64,14 +74,14 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute(ModelBase) "x_axis_parameter": "xAxisParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiAttributeType", "parameters": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo", "targetDatabase": "GrantaServerApiObjectIdentifier", "targetTable": "GrantaServerApiObjectIdentifier", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( """ self._name = None self._guid = None - self._type = None + self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] self._unit_symbol = None self._is_unitted = None self._discrete_type_guid = None @@ -139,7 +149,7 @@ def __init__( self.x_axis_parameter = x_axis_parameter @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns @@ -150,7 +160,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters @@ -161,7 +171,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns @@ -172,7 +182,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters @@ -207,7 +217,7 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: self._type = type @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. If isUnitted is true, then this must have a non empty value @@ -219,7 +229,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. If isUnitted is true, then this must have a non empty value @@ -231,7 +241,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def is_unitted(self) -> "bool": + def is_unitted(self) -> "Optional[bool]": """Gets the is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns @@ -242,7 +252,7 @@ def is_unitted(self) -> "bool": return self._is_unitted @is_unitted.setter - def is_unitted(self, is_unitted: "bool") -> None: + def is_unitted(self, is_unitted: "Optional[bool]") -> None: """Sets the is_unitted of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters @@ -253,7 +263,7 @@ def is_unitted(self, is_unitted: "bool") -> None: self._is_unitted = is_unitted @property - def discrete_type_guid(self) -> "str": + def discrete_type_guid(self) -> "Optional[str]": """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) @@ -265,7 +275,7 @@ def discrete_type_guid(self) -> "str": return self._discrete_type_guid @discrete_type_guid.setter - def discrete_type_guid(self, discrete_type_guid: "str") -> None: + def discrete_type_guid(self, discrete_type_guid: "Optional[str]") -> 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) @@ -279,7 +289,7 @@ def discrete_type_guid(self, discrete_type_guid: "str") -> None: @property def parameters( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]]": """Gets the parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define a list of parameters. @@ -293,20 +303,20 @@ def parameters( @parameters.setter def parameters( self, - parameters: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]", + parameters: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo]]", ) -> None: """Sets the parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must define a list of parameters. Parameters ---------- - parameters: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo] + parameters: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo] The parameters of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. """ self._parameters = parameters @property - def target_database(self) -> "GrantaServerApiObjectIdentifier": + def target_database(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns @@ -318,7 +328,7 @@ def target_database(self) -> "GrantaServerApiObjectIdentifier": @target_database.setter def target_database( - self, target_database: "GrantaServerApiObjectIdentifier" + self, target_database: "Optional[GrantaServerApiObjectIdentifier]" ) -> None: """Sets the target_database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. @@ -330,7 +340,7 @@ def target_database( self._target_database = target_database @property - def target_table(self) -> "GrantaServerApiObjectIdentifier": + def target_table(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Returns @@ -341,7 +351,9 @@ def target_table(self) -> "GrantaServerApiObjectIdentifier": return self._target_table @target_table.setter - def target_table(self, target_table: "GrantaServerApiObjectIdentifier") -> None: + def target_table( + self, target_table: "Optional[GrantaServerApiObjectIdentifier]" + ) -> None: """Sets the target_table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. Parameters @@ -352,7 +364,7 @@ def target_table(self, target_table: "GrantaServerApiObjectIdentifier") -> None: self._target_table = target_table @property - def graph_type(self) -> "str": + def graph_type(self) -> "Optional[str]": """Gets the graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must be either a Series or a Grid type graph. @@ -364,7 +376,7 @@ def graph_type(self) -> "str": return self._graph_type @graph_type.setter - def graph_type(self, graph_type: "str") -> None: + def graph_type(self, graph_type: "Optional[str]") -> None: """Sets the graph_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute. A float functional attribute must be either a Series or a Grid type graph. @@ -376,7 +388,7 @@ def graph_type(self, graph_type: "str") -> None: self._graph_type = graph_type @property - def x_axis_parameter(self) -> "str": + def x_axis_parameter(self) -> "Optional[str]": """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 @@ -388,7 +400,7 @@ def x_axis_parameter(self) -> "str": return self._x_axis_parameter @x_axis_parameter.setter - def x_axis_parameter(self, x_axis_parameter: "str") -> None: + def x_axis_parameter(self, x_axis_parameter: "Optional[str]") -> 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 @@ -417,7 +429,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b7c47814..5fd0408a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBase): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType(ModelBa discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "values": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "values": "values", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.values = values @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns @@ -90,7 +100,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters @@ -101,7 +111,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns @@ -112,7 +122,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters @@ -123,7 +133,7 @@ def name(self, name: "str") -> None: self._name = name @property - def values(self) -> "list[str]": + def values(self) -> "Optional[List[str]]": """Gets the values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Returns @@ -134,12 +144,12 @@ def values(self) -> "list[str]": return self._values @values.setter - def values(self, values: "list[str]") -> None: + def values(self, values: "Optional[List[str]]") -> None: """Sets the values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. Parameters ---------- - values: list[str] + values: List[str] The values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType. """ self._values = values @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 cb01ee07..54ed6dfc 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo( - ModelBase -): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +46,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameter discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "GrantaServerApiDataExportDatumsParameterValue", "guid": "str", "interpolation_type": "GrantaServerApiParameterInfoInterpolationType", @@ -48,7 +56,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameter "unit_symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "guid": "guid", "interpolation_type": "interpolationType", @@ -58,14 +66,14 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameter "unit_symbol": "unitSymbol", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "scaleType": "GrantaServerApiParameterInfoScaleType", "interpolationType": "GrantaServerApiParameterInfoInterpolationType", "parameterType": "GrantaServerApiParameterInfoParameterType", "defaultValue": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -114,7 +122,7 @@ def __init__( self.default_value = default_value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -125,7 +133,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters @@ -136,7 +144,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -147,7 +155,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters @@ -158,7 +166,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -169,7 +177,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters @@ -180,7 +188,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": + def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": """Gets the scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -191,7 +199,9 @@ def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> None: + def scale_type( + self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + ) -> None: """Sets the scale_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Parameters @@ -202,7 +212,9 @@ def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> Non self._scale_type = scale_type @property - def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": + def interpolation_type( + self, + ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": """Gets the interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -214,7 +226,8 @@ def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": @interpolation_type.setter def interpolation_type( - self, interpolation_type: "GrantaServerApiParameterInfoInterpolationType" + self, + interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -226,7 +239,7 @@ def interpolation_type( self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": + def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -238,7 +251,7 @@ def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": @parameter_type.setter def parameter_type( - self, parameter_type: "GrantaServerApiParameterInfoParameterType" + self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -250,7 +263,9 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": + def default_value( + self, + ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": """Gets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. Returns @@ -262,7 +277,7 @@ def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": @default_value.setter def default_value( - self, default_value: "GrantaServerApiDataExportDatumsParameterValue" + self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationParameterInfo. @@ -291,7 +306,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4b52ae95..13fa1e49 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +46,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfG discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "access_control_category_values": "dict(str, list[str])", "attributes": "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]", "discrete_types": "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]", @@ -50,7 +58,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfG "version": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "access_control_category_values": "accessControlCategoryValues", "attributes": "attributes", "discrete_types": "discreteTypes", @@ -62,7 +70,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfG "version": "version", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute", "layouts": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout", "discreteTypes": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType", @@ -70,7 +78,7 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfG "securityGroups": "GrantaServerApiIntegrationSchemaSecurityGroups", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -129,7 +137,7 @@ def __init__( self.security_groups = security_groups @property - def key(self) -> "str": + def key(self) -> "Optional[str]": """Gets the key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -140,7 +148,7 @@ def key(self) -> "str": return self._key @key.setter - def key(self, key: "str") -> None: + def key(self, key: "Optional[str]") -> None: """Sets the key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -151,7 +159,7 @@ def key(self, key: "str") -> None: self._key = key @property - def version(self) -> "int": + def version(self) -> "Optional[int]": """Gets the version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -162,7 +170,7 @@ def version(self) -> "int": return self._version @version.setter - def version(self, version: "int") -> None: + def version(self, version: "Optional[int]") -> None: """Sets the version of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -175,7 +183,7 @@ def version(self, version: "int") -> None: @property def attributes( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]]": """Gets the attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -188,13 +196,13 @@ def attributes( @attributes.setter def attributes( self, - attributes: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]", + attributes: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute]]", ) -> None: """Sets the attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - attributes: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute] + attributes: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyAttribute] The attributes of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._attributes = attributes @@ -202,7 +210,7 @@ def attributes( @property def layouts( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]]": """Gets the layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -215,19 +223,19 @@ def layouts( @layouts.setter def layouts( self, - layouts: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]", + layouts: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout]]", ) -> None: """Sets the layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - layouts: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout] + layouts: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout] The layouts of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._layouts = layouts @property - def unit_system(self) -> "str": + def unit_system(self) -> "Optional[str]": """Gets the unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -238,7 +246,7 @@ def unit_system(self) -> "str": return self._unit_system @unit_system.setter - def unit_system(self, unit_system: "str") -> None: + def unit_system(self, unit_system: "Optional[str]") -> None: """Sets the unit_system of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -251,7 +259,7 @@ def unit_system(self, unit_system: "str") -> None: @property def discrete_types( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]]": """Gets the discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -264,13 +272,13 @@ def discrete_types( @discrete_types.setter def discrete_types( self, - discrete_types: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]", + discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType]]", ) -> None: """Sets the discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - discrete_types: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType] + discrete_types: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyDiscreteType] The discrete_types of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._discrete_types = discrete_types @@ -278,7 +286,7 @@ def discrete_types( @property def sources( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]]": """Gets the sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -291,19 +299,19 @@ def sources( @sources.setter def sources( self, - sources: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]", + sources: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier]]", ) -> None: """Sets the sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - sources: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier] + sources: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier] The sources of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._sources = sources @property - def access_control_category_values(self) -> "dict(str, list[str])": + def access_control_category_values(self) -> "Optional[Dict[str, List[str]]]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -315,19 +323,21 @@ def access_control_category_values(self) -> "dict(str, list[str])": @access_control_category_values.setter def access_control_category_values( - self, access_control_category_values: "dict(str, list[str])" + self, access_control_category_values: "Optional[Dict[str, List[str]]]" ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - access_control_category_values: dict(str, list[str]) + access_control_category_values: Dict[str, List[str]] The access_control_category_values of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._access_control_category_values = access_control_category_values @property - def security_groups(self) -> "GrantaServerApiIntegrationSchemaSecurityGroups": + def security_groups( + self, + ) -> "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]": """Gets the security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -339,7 +349,8 @@ def security_groups(self) -> "GrantaServerApiIntegrationSchemaSecurityGroups": @security_groups.setter def security_groups( - self, security_groups: "GrantaServerApiIntegrationSchemaSecurityGroups" + self, + security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]", ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -368,7 +379,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 00eede37..752069d1 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guids": "list[str]", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guids": "attributeGuids", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.attribute_guids = attribute_guids @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Returns @@ -83,7 +93,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Parameters @@ -94,7 +104,7 @@ def name(self, name: "str") -> None: self._name = name @property - def attribute_guids(self) -> "list[str]": + def attribute_guids(self) -> "Optional[List[str]]": """Gets the attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Returns @@ -105,12 +115,12 @@ def attribute_guids(self) -> "list[str]": return self._attribute_guids @attribute_guids.setter - def attribute_guids(self, attribute_guids: "list[str]") -> None: + def attribute_guids(self, attribute_guids: "Optional[List[str]]") -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. Parameters ---------- - attribute_guids: list[str] + attribute_guids: List[str] The attribute_guids of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyLayout. """ self._attribute_guids = attribute_guids @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 2ca822bd..34bf9643 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,27 +46,27 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServe discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_source_type": "GrantaServerApiIntegrationSchemaLinkSourceType", "parameter_mappings": "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]", "source": "GrantaServerApiObjectIdentifier", "target_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_source_type": "linkSourceType", "parameter_mappings": "parameterMappings", "source": "source", "target_guid": "targetGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "source": "GrantaServerApiObjectIdentifier", "parameterMappings": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", "linkSourceType": "GrantaServerApiIntegrationSchemaLinkSourceType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +100,7 @@ def __init__( self.link_source_type = link_source_type @property - def source(self) -> "GrantaServerApiObjectIdentifier": + def source(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Returns @@ -103,7 +111,7 @@ def source(self) -> "GrantaServerApiObjectIdentifier": return self._source @source.setter - def source(self, source: "GrantaServerApiObjectIdentifier") -> None: + def source(self, source: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the source of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Parameters @@ -114,7 +122,7 @@ def source(self, source: "GrantaServerApiObjectIdentifier") -> None: self._source = source @property - def target_guid(self) -> "str": + def target_guid(self) -> "Optional[str]": """Gets the target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute @@ -126,7 +134,7 @@ def target_guid(self) -> "str": return self._target_guid @target_guid.setter - def target_guid(self, target_guid: "str") -> None: + def target_guid(self, target_guid: "Optional[str]") -> None: """Sets the target_guid of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute @@ -140,7 +148,7 @@ def target_guid(self, target_guid: "str") -> None: @property def parameter_mappings( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]": """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. @@ -154,20 +162,22 @@ def parameter_mappings( @parameter_mappings.setter def parameter_mappings( self, - parameter_mappings: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]", + parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]", ) -> 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: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] The parameter_mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. """ self._parameter_mappings = parameter_mappings @property - def link_source_type(self) -> "GrantaServerApiIntegrationSchemaLinkSourceType": + def link_source_type( + self, + ) -> "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]": """Gets the link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. Returns @@ -179,7 +189,8 @@ def link_source_type(self) -> "GrantaServerApiIntegrationSchemaLinkSourceType": @link_source_type.setter def link_source_type( - self, link_source_type: "GrantaServerApiIntegrationSchemaLinkSourceType" + self, + link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]", ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier. @@ -208,7 +219,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6a3e6a54..b0d9b03a 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,27 +46,27 @@ class GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServer discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database": "GrantaServerApiObjectIdentifier", "database_key": "str", "mappings": "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]", "table": "GrantaServerApiObjectIdentifier", } - attribute_map = { + attribute_map: Dict[str, str] = { "database": "database", "database_key": "databaseKey", "mappings": "mappings", "table": "table", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "database": "GrantaServerApiObjectIdentifier", "table": "GrantaServerApiObjectIdentifier", "mappings": "GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +100,7 @@ def __init__( self.mappings = mappings @property - def database(self) -> "GrantaServerApiObjectIdentifier": + def database(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns @@ -103,7 +111,7 @@ def database(self) -> "GrantaServerApiObjectIdentifier": return self._database @database.setter - def database(self, database: "GrantaServerApiObjectIdentifier") -> None: + def database(self, database: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the database of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters @@ -114,7 +122,7 @@ def database(self, database: "GrantaServerApiObjectIdentifier") -> None: self._database = database @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns @@ -125,7 +133,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters @@ -136,7 +144,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def table(self) -> "GrantaServerApiObjectIdentifier": + def table(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Returns @@ -147,7 +155,7 @@ def table(self) -> "GrantaServerApiObjectIdentifier": return self._table @table.setter - def table(self, table: "GrantaServerApiObjectIdentifier") -> None: + def table(self, table: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the table of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Parameters @@ -160,7 +168,7 @@ def table(self, table: "GrantaServerApiObjectIdentifier") -> None: @property def mappings( self, - ) -> "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]": + ) -> "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]": """Gets the mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. @@ -174,14 +182,14 @@ def mappings( @mappings.setter def mappings( self, - mappings: "list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]", + mappings: "Optional[List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier]]", ) -> None: """Sets the mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Parameters ---------- - mappings: list[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] + mappings: List[GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlyMappingOfGrantaServerApiObjectIdentifier] The mappings of this GrantaServerApiIntegrationSchemaGuidOnlySchemaGuidOnlySourceOfGrantaServerApiObjectIdentifier. """ self._mappings = mappings @@ -204,7 +212,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 79891e32..9dac5353 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): +class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "GrantaServerApiDataExportDatumsParameterValue", "guid": "str", "identity": "int", @@ -47,7 +57,7 @@ class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): "unit_symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "guid": "guid", "identity": "identity", @@ -58,14 +68,14 @@ class GrantaServerApiIntegrationSchemaIntegrationParameterInfo(ModelBase): "unit_symbol": "unitSymbol", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "scaleType": "GrantaServerApiParameterInfoScaleType", "interpolationType": "GrantaServerApiParameterInfoInterpolationType", "parameterType": "GrantaServerApiParameterInfoParameterType", "defaultValue": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -119,7 +129,7 @@ def __init__( self.default_value = default_value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -130,7 +140,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters @@ -141,7 +151,7 @@ def name(self, name: "str") -> None: self._name = name @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -152,7 +162,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters @@ -163,7 +173,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -174,7 +184,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters @@ -185,7 +195,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -196,7 +206,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters @@ -207,7 +217,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": + def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": """Gets the scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -218,7 +228,9 @@ def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> None: + def scale_type( + self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + ) -> None: """Sets the scale_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Parameters @@ -229,7 +241,9 @@ def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> Non self._scale_type = scale_type @property - def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": + def interpolation_type( + self, + ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": """Gets the interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -241,7 +255,8 @@ def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": @interpolation_type.setter def interpolation_type( - self, interpolation_type: "GrantaServerApiParameterInfoInterpolationType" + self, + interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", ) -> None: """Sets the interpolation_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -253,7 +268,7 @@ def interpolation_type( self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": + def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": """Gets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -265,7 +280,7 @@ def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": @parameter_type.setter def parameter_type( - self, parameter_type: "GrantaServerApiParameterInfoParameterType" + self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" ) -> None: """Sets the parameter_type of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -277,7 +292,9 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": + def default_value( + self, + ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": """Gets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. Returns @@ -289,7 +306,7 @@ def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": @default_value.setter def default_value( - self, default_value: "GrantaServerApiDataExportDatumsParameterValue" + self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" ) -> None: """Sets the default_value of this GrantaServerApiIntegrationSchemaIntegrationParameterInfo. @@ -318,7 +335,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 14224c6e..8a8e9df9 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +46,7 @@ class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectId discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "access_control_category_values": "dict(str, list[str])", "attributes": "list[GrantaServerApiIntegrationSchemaAttribute]", "discrete_types": "list[GrantaServerApiIntegrationSchemaDiscreteType]", @@ -50,7 +58,7 @@ class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectId "version": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "access_control_category_values": "accessControlCategoryValues", "attributes": "attributes", "discrete_types": "discreteTypes", @@ -62,7 +70,7 @@ class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectId "version": "version", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiIntegrationSchemaAttribute", "layouts": "GrantaServerApiIntegrationSchemaLayout", "discreteTypes": "GrantaServerApiIntegrationSchemaDiscreteType", @@ -70,7 +78,7 @@ class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectId "securityGroups": "GrantaServerApiIntegrationSchemaSecurityGroups", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -129,7 +137,7 @@ def __init__( self.security_groups = security_groups @property - def key(self) -> "str": + def key(self) -> "Optional[str]": """Gets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -140,7 +148,7 @@ def key(self) -> "str": return self._key @key.setter - def key(self, key: "str") -> None: + def key(self, key: "Optional[str]") -> None: """Sets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -151,7 +159,7 @@ def key(self, key: "str") -> None: self._key = key @property - def version(self) -> "int": + def version(self) -> "Optional[int]": """Gets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -162,7 +170,7 @@ def version(self) -> "int": return self._version @version.setter - def version(self, version: "int") -> None: + def version(self, version: "Optional[int]") -> None: """Sets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -173,7 +181,7 @@ def version(self, version: "int") -> None: self._version = version @property - def attributes(self) -> "list[GrantaServerApiIntegrationSchemaAttribute]": + def attributes(self) -> "Optional[List[GrantaServerApiIntegrationSchemaAttribute]]": """Gets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -185,19 +193,19 @@ def attributes(self) -> "list[GrantaServerApiIntegrationSchemaAttribute]": @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiIntegrationSchemaAttribute]" + self, attributes: "Optional[List[GrantaServerApiIntegrationSchemaAttribute]]" ) -> None: """Sets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - attributes: list[GrantaServerApiIntegrationSchemaAttribute] + attributes: List[GrantaServerApiIntegrationSchemaAttribute] The attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._attributes = attributes @property - def layouts(self) -> "list[GrantaServerApiIntegrationSchemaLayout]": + def layouts(self) -> "Optional[List[GrantaServerApiIntegrationSchemaLayout]]": """Gets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -208,18 +216,20 @@ def layouts(self) -> "list[GrantaServerApiIntegrationSchemaLayout]": return self._layouts @layouts.setter - def layouts(self, layouts: "list[GrantaServerApiIntegrationSchemaLayout]") -> None: + def layouts( + self, layouts: "Optional[List[GrantaServerApiIntegrationSchemaLayout]]" + ) -> None: """Sets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - layouts: list[GrantaServerApiIntegrationSchemaLayout] + layouts: List[GrantaServerApiIntegrationSchemaLayout] The layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._layouts = layouts @property - def unit_system(self) -> "str": + def unit_system(self) -> "Optional[str]": """Gets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -230,7 +240,7 @@ def unit_system(self) -> "str": return self._unit_system @unit_system.setter - def unit_system(self, unit_system: "str") -> None: + def unit_system(self, unit_system: "Optional[str]") -> None: """Sets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters @@ -241,7 +251,9 @@ def unit_system(self, unit_system: "str") -> None: self._unit_system = unit_system @property - def discrete_types(self) -> "list[GrantaServerApiIntegrationSchemaDiscreteType]": + def discrete_types( + self, + ) -> "Optional[List[GrantaServerApiIntegrationSchemaDiscreteType]]": """Gets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -253,13 +265,14 @@ def discrete_types(self) -> "list[GrantaServerApiIntegrationSchemaDiscreteType]" @discrete_types.setter def discrete_types( - self, discrete_types: "list[GrantaServerApiIntegrationSchemaDiscreteType]" + self, + discrete_types: "Optional[List[GrantaServerApiIntegrationSchemaDiscreteType]]", ) -> None: """Sets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - discrete_types: list[GrantaServerApiIntegrationSchemaDiscreteType] + discrete_types: List[GrantaServerApiIntegrationSchemaDiscreteType] The discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._discrete_types = discrete_types @@ -267,9 +280,7 @@ def discrete_types( @property def sources( self, - ) -> ( - "list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]" - ): + ) -> "Optional[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]]": """Gets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -282,19 +293,19 @@ def sources( @sources.setter def sources( self, - sources: "list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]", + sources: "Optional[List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]]", ) -> None: """Sets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - sources: list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] + sources: List[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] The sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._sources = sources @property - def access_control_category_values(self) -> "dict(str, list[str])": + def access_control_category_values(self) -> "Optional[Dict[str, List[str]]]": """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -306,19 +317,21 @@ def access_control_category_values(self) -> "dict(str, list[str])": @access_control_category_values.setter def access_control_category_values( - self, access_control_category_values: "dict(str, list[str])" + self, access_control_category_values: "Optional[Dict[str, List[str]]]" ) -> None: """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Parameters ---------- - access_control_category_values: dict(str, list[str]) + access_control_category_values: Dict[str, List[str]] The access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. """ self._access_control_category_values = access_control_category_values @property - def security_groups(self) -> "GrantaServerApiIntegrationSchemaSecurityGroups": + def security_groups( + self, + ) -> "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]": """Gets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. Returns @@ -330,7 +343,8 @@ def security_groups(self) -> "GrantaServerApiIntegrationSchemaSecurityGroups": @security_groups.setter def security_groups( - self, security_groups: "GrantaServerApiIntegrationSchemaSecurityGroups" + self, + security_groups: "Optional[GrantaServerApiIntegrationSchemaSecurityGroups]", ) -> None: """Sets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. @@ -359,7 +373,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1cbfbd04..2cc604bf 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaLayout(ModelBase): +class GrantaServerApiIntegrationSchemaLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiIntegrationSchemaLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guids": "list[str]", "attribute_identities": "list[int]", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guids": "attributeGuids", "attribute_identities": "attributeIdentities", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.attribute_guids = attribute_guids @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiIntegrationSchemaLayout. Returns @@ -90,7 +100,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiIntegrationSchemaLayout. Parameters @@ -101,7 +111,7 @@ def name(self, name: "str") -> None: self._name = name @property - def attribute_identities(self) -> "list[int]": + def attribute_identities(self) -> "Optional[List[int]]": """Gets the attribute_identities of this GrantaServerApiIntegrationSchemaLayout. Returns @@ -112,18 +122,18 @@ def attribute_identities(self) -> "list[int]": return self._attribute_identities @attribute_identities.setter - def attribute_identities(self, attribute_identities: "list[int]") -> None: + def attribute_identities(self, attribute_identities: "Optional[List[int]]") -> None: """Sets the attribute_identities of this GrantaServerApiIntegrationSchemaLayout. Parameters ---------- - attribute_identities: list[int] + attribute_identities: List[int] The attribute_identities of this GrantaServerApiIntegrationSchemaLayout. """ self._attribute_identities = attribute_identities @property - def attribute_guids(self) -> "list[str]": + def attribute_guids(self) -> "Optional[List[str]]": """Gets the attribute_guids of this GrantaServerApiIntegrationSchemaLayout. Returns @@ -134,12 +144,12 @@ def attribute_guids(self) -> "list[str]": return self._attribute_guids @attribute_guids.setter - def attribute_guids(self, attribute_guids: "list[str]") -> None: + def attribute_guids(self, attribute_guids: "Optional[List[str]]") -> None: """Sets the attribute_guids of this GrantaServerApiIntegrationSchemaLayout. Parameters ---------- - attribute_guids: list[str] + attribute_guids: List[str] The attribute_guids of this GrantaServerApiIntegrationSchemaLayout. """ self._attribute_guids = attribute_guids @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f33006d2..dbe4aa76 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +46,7 @@ class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_source_type": "GrantaServerApiIntegrationSchemaLinkSourceType", "parameter_mappings": "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]", "source": "GrantaServerApiObjectIdentifier", @@ -46,7 +54,7 @@ class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( "target_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_source_type": "linkSourceType", "parameter_mappings": "parameterMappings", "source": "source", @@ -54,13 +62,13 @@ class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier( "target_identity": "targetIdentity", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "source": "GrantaServerApiObjectIdentifier", "parameterMappings": "GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier", "linkSourceType": "GrantaServerApiIntegrationSchemaLinkSourceType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -99,7 +107,7 @@ def __init__( self.link_source_type = link_source_type @property - def source(self) -> "GrantaServerApiObjectIdentifier": + def source(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Returns @@ -110,7 +118,7 @@ def source(self) -> "GrantaServerApiObjectIdentifier": return self._source @source.setter - def source(self, source: "GrantaServerApiObjectIdentifier") -> None: + def source(self, source: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Parameters @@ -121,7 +129,7 @@ def source(self, source: "GrantaServerApiObjectIdentifier") -> None: self._source = source @property - def target_identity(self) -> "int": + def target_identity(self) -> "Optional[int]": """Gets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The identity of the integration schema attribute @@ -133,7 +141,7 @@ def target_identity(self) -> "int": return self._target_identity @target_identity.setter - def target_identity(self, target_identity: "int") -> None: + def target_identity(self, target_identity: "Optional[int]") -> None: """Sets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The identity of the integration schema attribute @@ -145,7 +153,7 @@ def target_identity(self, target_identity: "int") -> None: self._target_identity = target_identity @property - def target_guid(self) -> "str": + def target_guid(self) -> "Optional[str]": """Gets the target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute @@ -157,7 +165,7 @@ def target_guid(self) -> "str": return self._target_guid @target_guid.setter - def target_guid(self, target_guid: "str") -> None: + def target_guid(self, target_guid: "Optional[str]") -> None: """Sets the target_guid of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. The guid of the integration schema attribute @@ -171,9 +179,7 @@ def target_guid(self, target_guid: "str") -> None: @property def parameter_mappings( self, - ) -> ( - "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]" - ): + ) -> "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]": """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. @@ -187,20 +193,22 @@ def parameter_mappings( @parameter_mappings.setter def parameter_mappings( self, - parameter_mappings: "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]", + parameter_mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]", ) -> 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: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] The parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. """ self._parameter_mappings = parameter_mappings @property - def link_source_type(self) -> "GrantaServerApiIntegrationSchemaLinkSourceType": + def link_source_type( + self, + ) -> "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]": """Gets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. Returns @@ -212,7 +220,8 @@ def link_source_type(self) -> "GrantaServerApiIntegrationSchemaLinkSourceType": @link_source_type.setter def link_source_type( - self, link_source_type: "GrantaServerApiIntegrationSchemaLinkSourceType" + self, + link_source_type: "Optional[GrantaServerApiIntegrationSchemaLinkSourceType]", ) -> None: """Sets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. @@ -241,7 +250,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 29b2e194..dd19ff8d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): +class GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiIntegrationSchemaSecurityGroups(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "admin_group": "str", "read_group": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "admin_group": "adminGroup", "read_group": "readGroup", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.admin_group = admin_group @property - def read_group(self) -> "str": + def read_group(self) -> "Optional[str]": """Gets the read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this groups can read data from the integration schema. @@ -84,7 +94,7 @@ def read_group(self) -> "str": return self._read_group @read_group.setter - def read_group(self, read_group: "str") -> None: + def read_group(self, read_group: "Optional[str]") -> None: """Sets the read_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this groups can read data from the integration schema. @@ -96,7 +106,7 @@ def read_group(self, read_group: "str") -> None: self._read_group = read_group @property - def admin_group(self) -> "str": + def admin_group(self) -> "Optional[str]": """Gets the admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this group can perform administrative tasks such as adding or deleting the schema. @@ -108,7 +118,7 @@ def admin_group(self) -> "str": return self._admin_group @admin_group.setter - def admin_group(self, admin_group: "str") -> None: + def admin_group(self, admin_group: "Optional[str]") -> None: """Sets the admin_group of this GrantaServerApiIntegrationSchemaSecurityGroups. Members of this group can perform administrative tasks such as adding or deleting the schema. @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f17fa3a2..306de492 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier( - ModelBase -): +class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,27 +46,27 @@ class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database": "GrantaServerApiObjectIdentifier", "database_key": "str", "mappings": "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]", "table": "GrantaServerApiObjectIdentifier", } - attribute_map = { + attribute_map: Dict[str, str] = { "database": "database", "database_key": "databaseKey", "mappings": "mappings", "table": "table", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "database": "GrantaServerApiObjectIdentifier", "table": "GrantaServerApiObjectIdentifier", "mappings": "GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,7 +100,7 @@ def __init__( self.mappings = mappings @property - def database(self) -> "GrantaServerApiObjectIdentifier": + def database(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns @@ -103,7 +111,7 @@ def database(self) -> "GrantaServerApiObjectIdentifier": return self._database @database.setter - def database(self, database: "GrantaServerApiObjectIdentifier") -> None: + def database(self, database: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters @@ -114,7 +122,7 @@ def database(self, database: "GrantaServerApiObjectIdentifier") -> None: self._database = database @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns @@ -125,7 +133,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters @@ -136,7 +144,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def table(self) -> "GrantaServerApiObjectIdentifier": + def table(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Returns @@ -147,7 +155,7 @@ def table(self) -> "GrantaServerApiObjectIdentifier": return self._table @table.setter - def table(self, table: "GrantaServerApiObjectIdentifier") -> None: + def table(self, table: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Parameters @@ -160,9 +168,7 @@ def table(self, table: "GrantaServerApiObjectIdentifier") -> None: @property def mappings( self, - ) -> ( - "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]" - ): + ) -> "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]": """Gets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. @@ -176,14 +182,14 @@ def mappings( @mappings.setter def mappings( self, - mappings: "list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]", + mappings: "Optional[List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]]", ) -> None: """Sets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. Mappings for items from this table to the integration schema attributes. Parameters ---------- - mappings: list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + mappings: List[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] The mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. """ self._mappings = mappings @@ -206,7 +212,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 55bea214..f5f54c86 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoCreateListItem(ModelBase): +class GrantaServerApiListsDtoCreateListItem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiListsDtoCreateListItem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "record_history_guid": "str", "record_version": "int", "table_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "record_history_guid": "recordHistoryGuid", "record_version": "recordVersion", "table_guid": "tableGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,8 +81,8 @@ def __init__( record_version: int, optional table_guid: str, optional """ - self._database_guid = None - self._record_history_guid = None + 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 @@ -134,7 +144,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def record_version(self) -> "int": + def record_version(self) -> "Optional[int]": """Gets the record_version of this GrantaServerApiListsDtoCreateListItem. Returns @@ -145,7 +155,7 @@ def record_version(self) -> "int": return self._record_version @record_version.setter - def record_version(self, record_version: "int") -> None: + def record_version(self, record_version: "Optional[int]") -> None: """Sets the record_version of this GrantaServerApiListsDtoCreateListItem. Parameters @@ -156,7 +166,7 @@ def record_version(self, record_version: "int") -> None: self._record_version = record_version @property - def table_guid(self) -> "str": + def table_guid(self) -> "Optional[str]": """Gets the table_guid of this GrantaServerApiListsDtoCreateListItem. Returns @@ -167,7 +177,7 @@ def table_guid(self) -> "str": return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "str") -> None: + def table_guid(self, table_guid: "Optional[str]") -> None: """Sets the table_guid of this GrantaServerApiListsDtoCreateListItem. Parameters @@ -195,7 +205,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6c2b9ce9..43beccd3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoCreateRecordList(ModelBase): +class GrantaServerApiListsDtoCreateRecordList(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiListsDtoCreateRecordList(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "awaiting_approval": "bool", "description": "str", @@ -47,7 +57,7 @@ class GrantaServerApiListsDtoCreateRecordList(ModelBase): "published": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "awaiting_approval": "awaitingApproval", "description": "description", @@ -58,11 +68,11 @@ class GrantaServerApiListsDtoCreateRecordList(ModelBase): "published": "published", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "items": "GrantaServerApiListsDtoCreateRecordListItemsInfo", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( """ self._items = None self._identifier = None - self._name = None + self._name: str = None # type: ignore[assignment] self._description = None self._notes = None self._published = None @@ -115,7 +125,7 @@ def __init__( self.internal_use = internal_use @property - def items(self) -> "GrantaServerApiListsDtoCreateRecordListItemsInfo": + def items(self) -> "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]": """Gets the items of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -126,7 +136,9 @@ def items(self) -> "GrantaServerApiListsDtoCreateRecordListItemsInfo": return self._items @items.setter - def items(self, items: "GrantaServerApiListsDtoCreateRecordListItemsInfo") -> None: + def items( + self, items: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" + ) -> None: """Sets the items of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -137,7 +149,7 @@ def items(self, items: "GrantaServerApiListsDtoCreateRecordListItemsInfo") -> No self._items = items @property - def identifier(self) -> "str": + def identifier(self) -> "Optional[str]": """Gets the identifier of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -148,7 +160,7 @@ def identifier(self) -> "str": return self._identifier @identifier.setter - def identifier(self, identifier: "str") -> None: + def identifier(self, identifier: "Optional[str]") -> None: """Sets the identifier of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -183,7 +195,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -194,7 +206,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -205,7 +217,7 @@ def description(self, description: "str") -> None: self._description = description @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -216,7 +228,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -227,7 +239,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def published(self) -> "bool": + def published(self) -> "Optional[bool]": """Gets the published of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -238,7 +250,7 @@ def published(self) -> "bool": return self._published @published.setter - def published(self, published: "bool") -> None: + def published(self, published: "Optional[bool]") -> None: """Sets the published of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -249,7 +261,7 @@ def published(self, published: "bool") -> None: self._published = published @property - def awaiting_approval(self) -> "bool": + def awaiting_approval(self) -> "Optional[bool]": """Gets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -260,7 +272,7 @@ def awaiting_approval(self) -> "bool": return self._awaiting_approval @awaiting_approval.setter - def awaiting_approval(self, awaiting_approval: "bool") -> None: + def awaiting_approval(self, awaiting_approval: "Optional[bool]") -> None: """Sets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -271,7 +283,7 @@ def awaiting_approval(self, awaiting_approval: "bool") -> None: self._awaiting_approval = awaiting_approval @property - def internal_use(self) -> "bool": + def internal_use(self) -> "Optional[bool]": """Gets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Returns @@ -282,7 +294,7 @@ def internal_use(self) -> "bool": return self._internal_use @internal_use.setter - def internal_use(self, internal_use: "bool") -> None: + def internal_use(self, internal_use: "Optional[bool]") -> None: """Sets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Parameters @@ -310,7 +322,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5b1455d1..b84c91ce 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): +class GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "items": "list[GrantaServerApiListsDtoCreateListItem]", } - attribute_map = { + attribute_map: Dict[str, str] = { "items": "items", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "items": "GrantaServerApiListsDtoCreateListItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- items: List[GrantaServerApiListsDtoCreateListItem] """ - self._items = None + self._items: List[GrantaServerApiListsDtoCreateListItem] = None # type: ignore[assignment] self.items = items @property - def items(self) -> "list[GrantaServerApiListsDtoCreateListItem]": + def items(self) -> "List[GrantaServerApiListsDtoCreateListItem]": """Gets the items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. Returns @@ -77,12 +87,12 @@ def items(self) -> "list[GrantaServerApiListsDtoCreateListItem]": return self._items @items.setter - def items(self, items: "list[GrantaServerApiListsDtoCreateListItem]") -> None: + def items(self, items: "List[GrantaServerApiListsDtoCreateListItem]") -> None: """Sets the items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. Parameters ---------- - items: list[GrantaServerApiListsDtoCreateListItem] + items: List[GrantaServerApiListsDtoCreateListItem] The items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. """ if items is None: @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c6f0271b..87f26c6a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): +class GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "record_history_guid": "str", "record_version": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "record_history_guid": "recordHistoryGuid", "record_version": "recordVersion", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,8 +77,8 @@ def __init__( record_history_guid: str record_version: int, optional """ - self._database_guid = None - self._record_history_guid = None + self._database_guid: str = None # type: ignore[assignment] + self._record_history_guid: str = None # type: ignore[assignment] self._record_version = None self.database_guid = database_guid @@ -127,7 +137,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def record_version(self) -> "int": + def record_version(self) -> "Optional[int]": """Gets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. Returns @@ -138,7 +148,7 @@ def record_version(self) -> "int": return self._record_version @record_version.setter - def record_version(self, record_version: "int") -> None: + def record_version(self, record_version: "Optional[int]") -> None: """Sets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. Parameters @@ -166,7 +176,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 dc44de7a..54161056 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): +class GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "items": "list[GrantaServerApiListsDtoDeleteRecordListItem]", } - attribute_map = { + attribute_map: Dict[str, str] = { "items": "items", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "items": "GrantaServerApiListsDtoDeleteRecordListItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- items: List[GrantaServerApiListsDtoDeleteRecordListItem] """ - self._items = None + self._items: List[GrantaServerApiListsDtoDeleteRecordListItem] = None # type: ignore[assignment] self.items = items @property - def items(self) -> "list[GrantaServerApiListsDtoDeleteRecordListItem]": + def items(self) -> "List[GrantaServerApiListsDtoDeleteRecordListItem]": """Gets the items of this GrantaServerApiListsDtoDeleteRecordListItems. Returns @@ -77,12 +87,12 @@ def items(self) -> "list[GrantaServerApiListsDtoDeleteRecordListItem]": return self._items @items.setter - def items(self, items: "list[GrantaServerApiListsDtoDeleteRecordListItem]") -> None: + def items(self, items: "List[GrantaServerApiListsDtoDeleteRecordListItem]") -> None: """Sets the items of this GrantaServerApiListsDtoDeleteRecordListItems. Parameters ---------- - items: list[GrantaServerApiListsDtoDeleteRecordListItem] + items: List[GrantaServerApiListsDtoDeleteRecordListItem] The items of this GrantaServerApiListsDtoDeleteRecordListItems. """ if items is None: @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e6667eda..d1396357 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_lists_dto_list_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,24 +49,24 @@ class GrantaServerApiListsDtoListBooleanCriterion(GrantaServerApiListsDtoListCri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "match_all": "list[GrantaServerApiListsDtoListCriterion]", "match_any": "list[GrantaServerApiListsDtoListCriterion]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "match_all": "matchAll", "match_any": "matchAny", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "matchAny": "GrantaServerApiListsDtoListCriterion", "matchAll": "GrantaServerApiListsDtoListCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,7 +86,7 @@ def __init__( super().__init__() self._match_any = None self._match_all = None - self._type = None + self._type: str = None # type: ignore[assignment] if match_any is not None: self.match_any = match_any @@ -85,7 +95,7 @@ def __init__( self.type = type @property - def match_any(self) -> "list[GrantaServerApiListsDtoListCriterion]": + def match_any(self) -> "Optional[List[GrantaServerApiListsDtoListCriterion]]": """Gets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. Returns @@ -97,19 +107,19 @@ def match_any(self) -> "list[GrantaServerApiListsDtoListCriterion]": @match_any.setter def match_any( - self, match_any: "list[GrantaServerApiListsDtoListCriterion]" + self, match_any: "Optional[List[GrantaServerApiListsDtoListCriterion]]" ) -> None: """Sets the match_any of this GrantaServerApiListsDtoListBooleanCriterion. Parameters ---------- - match_any: list[GrantaServerApiListsDtoListCriterion] + match_any: List[GrantaServerApiListsDtoListCriterion] The match_any of this GrantaServerApiListsDtoListBooleanCriterion. """ self._match_any = match_any @property - def match_all(self) -> "list[GrantaServerApiListsDtoListCriterion]": + def match_all(self) -> "Optional[List[GrantaServerApiListsDtoListCriterion]]": """Gets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. Returns @@ -121,13 +131,13 @@ def match_all(self) -> "list[GrantaServerApiListsDtoListCriterion]": @match_all.setter def match_all( - self, match_all: "list[GrantaServerApiListsDtoListCriterion]" + self, match_all: "Optional[List[GrantaServerApiListsDtoListCriterion]]" ) -> None: """Sets the match_all of this GrantaServerApiListsDtoListBooleanCriterion. Parameters ---------- - match_all: list[GrantaServerApiListsDtoListCriterion] + match_all: List[GrantaServerApiListsDtoListCriterion] The match_all of this GrantaServerApiListsDtoListBooleanCriterion. """ self._match_all = match_all @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 eda0631d..7a7bed10 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoListCriterion(ModelBase): +class GrantaServerApiListsDtoListCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,18 +48,18 @@ class GrantaServerApiListsDtoListCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "listBoolean".lower(): "#/components/schemas/GrantaServerApiListsDtoListBooleanCriterion", "recordList".lower(): "#/components/schemas/GrantaServerApiListsDtoRecordListSearchCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,19 +78,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce8a5e21..1c2ea4e7 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoListItem(ModelBase): +class GrantaServerApiListsDtoListItem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiListsDtoListItem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "record_history_guid": "str", "table_guid": "str", @@ -44,7 +54,7 @@ class GrantaServerApiListsDtoListItem(ModelBase): "record_version": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "record_history_guid": "recordHistoryGuid", "table_guid": "tableGuid", @@ -52,9 +62,9 @@ class GrantaServerApiListsDtoListItem(ModelBase): "record_version": "recordVersion", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,11 +85,11 @@ def __init__( record_guid: str, optional record_version: int, optional """ - self._database_guid = None - self._record_history_guid = None + 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 = None + self._table_guid: str = None # type: ignore[assignment] self.database_guid = database_guid self.record_history_guid = record_history_guid @@ -140,7 +150,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def record_guid(self) -> "str": + def record_guid(self) -> "Optional[str]": """Gets the record_guid of this GrantaServerApiListsDtoListItem. Returns @@ -151,7 +161,7 @@ def record_guid(self) -> "str": return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "str") -> None: + def record_guid(self, record_guid: "Optional[str]") -> None: """Sets the record_guid of this GrantaServerApiListsDtoListItem. Parameters @@ -162,7 +172,7 @@ def record_guid(self, record_guid: "str") -> None: self._record_guid = record_guid @property - def record_version(self) -> "int": + def record_version(self) -> "Optional[int]": """Gets the record_version of this GrantaServerApiListsDtoListItem. Returns @@ -173,7 +183,7 @@ def record_version(self) -> "int": return self._record_version @record_version.setter - def record_version(self, record_version: "int") -> None: + def record_version(self, record_version: "Optional[int]") -> None: """Sets the record_version of this GrantaServerApiListsDtoListItem. Parameters @@ -225,7 +235,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 bea66054..b821ce6b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoPagingOptions(ModelBase): +class GrantaServerApiListsDtoPagingOptions(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoPagingOptions(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "page_size": "int", "start_index": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "page_size": "pageSize", "start_index": "startIndex", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.page_size = page_size @property - def start_index(self) -> "int": + def start_index(self) -> "Optional[int]": """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. @@ -84,7 +94,7 @@ def start_index(self) -> "int": return self._start_index @start_index.setter - def start_index(self, start_index: "int") -> None: + def start_index(self, start_index: "Optional[int]") -> 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. @@ -96,7 +106,7 @@ def start_index(self, start_index: "int") -> None: self._start_index = start_index @property - def page_size(self) -> "int": + def page_size(self) -> "Optional[int]": """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. @@ -108,7 +118,7 @@ def page_size(self) -> "int": return self._page_size @page_size.setter - def page_size(self, page_size: "int") -> None: + def page_size(self, page_size: "Optional[int]") -> 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. @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1584f42a..dfdd2b84 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListHeader(ModelBase): +class GrantaServerApiListsDtoRecordListHeader(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "awaiting_approval": "bool", "created_timestamp": "datetime", "created_user": "GrantaServerApiListsDtoUserOrGroup", @@ -55,7 +65,7 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "published_user": "GrantaServerApiListsDtoUserOrGroup", } - attribute_map = { + attribute_map: Dict[str, str] = { "awaiting_approval": "awaitingApproval", "created_timestamp": "createdTimestamp", "created_user": "createdUser", @@ -74,13 +84,13 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "published_user": "publishedUser", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "createdUser": "GrantaServerApiListsDtoUserOrGroup", "lastModifiedUser": "GrantaServerApiListsDtoUserOrGroup", "publishedUser": "GrantaServerApiListsDtoUserOrGroup", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -123,22 +133,22 @@ def __init__( published_timestamp: datetime, optional published_user: GrantaServerApiListsDtoUserOrGroup, optional """ - self._identifier = None - self._metadata = None + 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 = None - self._created_user = None - self._last_modified_timestamp = None - self._last_modified_user = 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 = None - self._name = None + self._is_revision: bool = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self._description = None self._notes = None - self._published = None - self._awaiting_approval = None - self._internal_use = None + self._published: bool = None # type: ignore[assignment] + self._awaiting_approval: bool = None # type: ignore[assignment] + self._internal_use: bool = None # type: ignore[assignment] self.identifier = identifier self.metadata = metadata @@ -187,7 +197,7 @@ def identifier(self, identifier: "str") -> None: self._identifier = identifier @property - def metadata(self) -> "dict(str, dict(str, object))": + def metadata(self) -> "Dict[str, Dict[str, object]]": """Gets the metadata of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -198,12 +208,12 @@ def metadata(self) -> "dict(str, dict(str, object))": return self._metadata @metadata.setter - def metadata(self, metadata: "dict(str, dict(str, object))") -> None: + def metadata(self, metadata: "Dict[str, Dict[str, object]]") -> None: """Sets the metadata of this GrantaServerApiListsDtoRecordListHeader. Parameters ---------- - metadata: dict(str, dict(str, object)) + metadata: Dict[str, Dict[str, object]] The metadata of this GrantaServerApiListsDtoRecordListHeader. """ if metadata is None: @@ -211,7 +221,7 @@ def metadata(self, metadata: "dict(str, dict(str, object))") -> None: self._metadata = metadata @property - def parent_record_list_identifier(self) -> "str": + def parent_record_list_identifier(self) -> "Optional[str]": """Gets the parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -223,7 +233,7 @@ def parent_record_list_identifier(self) -> "str": @parent_record_list_identifier.setter def parent_record_list_identifier( - self, parent_record_list_identifier: "str" + self, parent_record_list_identifier: "Optional[str]" ) -> None: """Sets the parent_record_list_identifier of this GrantaServerApiListsDtoRecordListHeader. @@ -339,7 +349,7 @@ def last_modified_user( self._last_modified_user = last_modified_user @property - def published_timestamp(self) -> "datetime": + def published_timestamp(self) -> "Optional[datetime]": """Gets the published_timestamp of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -350,7 +360,7 @@ def published_timestamp(self) -> "datetime": return self._published_timestamp @published_timestamp.setter - def published_timestamp(self, published_timestamp: "datetime") -> None: + def published_timestamp(self, published_timestamp: "Optional[datetime]") -> None: """Sets the published_timestamp of this GrantaServerApiListsDtoRecordListHeader. Parameters @@ -361,7 +371,7 @@ def published_timestamp(self, published_timestamp: "datetime") -> None: self._published_timestamp = published_timestamp @property - def published_user(self) -> "GrantaServerApiListsDtoUserOrGroup": + def published_user(self) -> "Optional[GrantaServerApiListsDtoUserOrGroup]": """Gets the published_user of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -373,7 +383,7 @@ def published_user(self) -> "GrantaServerApiListsDtoUserOrGroup": @published_user.setter def published_user( - self, published_user: "GrantaServerApiListsDtoUserOrGroup" + self, published_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" ) -> None: """Sets the published_user of this GrantaServerApiListsDtoRecordListHeader. @@ -433,7 +443,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -444,7 +454,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiListsDtoRecordListHeader. Parameters @@ -455,7 +465,7 @@ def description(self, description: "str") -> None: self._description = description @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiListsDtoRecordListHeader. Returns @@ -466,7 +476,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiListsDtoRecordListHeader. Parameters @@ -568,7 +578,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 8f441cd3..c0f273a6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): +class GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "lists": "list[GrantaServerApiListsDtoRecordListHeader]", } - attribute_map = { + attribute_map: Dict[str, str] = { "lists": "lists", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "lists": "GrantaServerApiListsDtoRecordListHeader", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- lists: List[GrantaServerApiListsDtoRecordListHeader] """ - self._lists = None + self._lists: List[GrantaServerApiListsDtoRecordListHeader] = None # type: ignore[assignment] self.lists = lists @property - def lists(self) -> "list[GrantaServerApiListsDtoRecordListHeader]": + def lists(self) -> "List[GrantaServerApiListsDtoRecordListHeader]": """Gets the lists of this GrantaServerApiListsDtoRecordListHeadersInfo. Returns @@ -77,12 +87,12 @@ def lists(self) -> "list[GrantaServerApiListsDtoRecordListHeader]": return self._lists @lists.setter - def lists(self, lists: "list[GrantaServerApiListsDtoRecordListHeader]") -> None: + def lists(self, lists: "List[GrantaServerApiListsDtoRecordListHeader]") -> None: """Sets the lists of this GrantaServerApiListsDtoRecordListHeadersInfo. Parameters ---------- - lists: list[GrantaServerApiListsDtoRecordListHeader] + lists: List[GrantaServerApiListsDtoRecordListHeader] The lists of this GrantaServerApiListsDtoRecordListHeadersInfo. """ if lists is None: @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3e1f3f3a..9567ea9c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): +class GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "items": "list[GrantaServerApiListsDtoListItem]", } - attribute_map = { + attribute_map: Dict[str, str] = { "items": "items", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "items": "GrantaServerApiListsDtoListItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- items: List[GrantaServerApiListsDtoListItem] """ - self._items = None + self._items: List[GrantaServerApiListsDtoListItem] = None # type: ignore[assignment] self.items = items @property - def items(self) -> "list[GrantaServerApiListsDtoListItem]": + def items(self) -> "List[GrantaServerApiListsDtoListItem]": """Gets the items of this GrantaServerApiListsDtoRecordListItemsInfo. Returns @@ -77,12 +87,12 @@ def items(self) -> "list[GrantaServerApiListsDtoListItem]": return self._items @items.setter - def items(self, items: "list[GrantaServerApiListsDtoListItem]") -> None: + def items(self, items: "List[GrantaServerApiListsDtoListItem]") -> None: """Sets the items of this GrantaServerApiListsDtoRecordListItemsInfo. Parameters ---------- - items: list[GrantaServerApiListsDtoListItem] + items: List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListItemsInfo. """ if items is None: @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b9c1f4a0..22a74850 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): +class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "is_administrator": "bool", "is_curator": "bool", "is_owner": "bool", @@ -44,7 +54,7 @@ class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): "is_subscribed": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "is_administrator": "isAdministrator", "is_curator": "isCurator", "is_owner": "isOwner", @@ -52,9 +62,9 @@ class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): "is_subscribed": "isSubscribed", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,11 +85,11 @@ def __init__( is_publisher: bool is_subscribed: bool """ - self._is_owner = None - self._is_subscribed = None - self._is_curator = None - self._is_administrator = None - self._is_publisher = None + 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 = is_owner self.is_subscribed = is_subscribed @@ -235,7 +245,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 442a82fb..61039afc 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_lists_dto_list_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiListsDtoRecordListSearchCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "contains_records": "list[str]", "contains_records_in_databases": "list[str]", "contains_records_in_integration_schemas": "list[str]", @@ -56,7 +66,7 @@ class GrantaServerApiListsDtoRecordListSearchCriterion( "user_role": "GrantaServerApiListsDtoUserRole", } - attribute_map = { + attribute_map: Dict[str, str] = { "contains_records": "containsRecords", "contains_records_in_databases": "containsRecordsInDatabases", "contains_records_in_integration_schemas": "containsRecordsInIntegrationSchemas", @@ -71,11 +81,11 @@ class GrantaServerApiListsDtoRecordListSearchCriterion( "user_role": "userRole", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "userRole": "GrantaServerApiListsDtoUserRole", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -122,7 +132,7 @@ def __init__( self._contains_records_in_tables = None self._contains_records = None self._user_can_add_or_remove_items = None - self._type = None + self._type: str = None # type: ignore[assignment] if name_contains is not None: self.name_contains = name_contains @@ -151,7 +161,7 @@ def __init__( self.type = type @property - def name_contains(self) -> "str": + def name_contains(self) -> "Optional[str]": """Gets the name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns @@ -162,7 +172,7 @@ def name_contains(self) -> "str": return self._name_contains @name_contains.setter - def name_contains(self, name_contains: "str") -> None: + def name_contains(self, name_contains: "Optional[str]") -> None: """Sets the name_contains of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -173,7 +183,7 @@ def name_contains(self, name_contains: "str") -> None: self._name_contains = name_contains @property - def user_role(self) -> "GrantaServerApiListsDtoUserRole": + def user_role(self) -> "Optional[GrantaServerApiListsDtoUserRole]": """Gets the user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns @@ -184,7 +194,7 @@ def user_role(self) -> "GrantaServerApiListsDtoUserRole": return self._user_role @user_role.setter - def user_role(self, user_role: "GrantaServerApiListsDtoUserRole") -> None: + def user_role(self, user_role: "Optional[GrantaServerApiListsDtoUserRole]") -> None: """Sets the user_role of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -195,7 +205,7 @@ def user_role(self, user_role: "GrantaServerApiListsDtoUserRole") -> None: self._user_role = user_role @property - def is_published(self) -> "bool": + def is_published(self) -> "Optional[bool]": """Gets the is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns @@ -206,7 +216,7 @@ def is_published(self) -> "bool": return self._is_published @is_published.setter - def is_published(self, is_published: "bool") -> None: + def is_published(self, is_published: "Optional[bool]") -> None: """Sets the is_published of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -217,7 +227,7 @@ def is_published(self, is_published: "bool") -> None: self._is_published = is_published @property - def is_awaiting_approval(self) -> "bool": + def is_awaiting_approval(self) -> "Optional[bool]": """Gets the is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns @@ -228,7 +238,7 @@ def is_awaiting_approval(self) -> "bool": return self._is_awaiting_approval @is_awaiting_approval.setter - def is_awaiting_approval(self, is_awaiting_approval: "bool") -> None: + def is_awaiting_approval(self, is_awaiting_approval: "Optional[bool]") -> None: """Sets the is_awaiting_approval of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -239,7 +249,7 @@ def is_awaiting_approval(self, is_awaiting_approval: "bool") -> None: self._is_awaiting_approval = is_awaiting_approval @property - def is_internal_use(self) -> "bool": + def is_internal_use(self) -> "Optional[bool]": """Gets the is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. Returns @@ -250,7 +260,7 @@ def is_internal_use(self) -> "bool": return self._is_internal_use @is_internal_use.setter - def is_internal_use(self, is_internal_use: "bool") -> None: + def is_internal_use(self, is_internal_use: "Optional[bool]") -> None: """Sets the is_internal_use of this GrantaServerApiListsDtoRecordListSearchCriterion. Parameters @@ -261,7 +271,7 @@ def is_internal_use(self, is_internal_use: "bool") -> None: self._is_internal_use = is_internal_use @property - def is_revision(self) -> "bool": + def is_revision(self) -> "Optional[bool]": """Gets the is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. Restrict to record lists that are (non discarded) revisions. @@ -273,7 +283,7 @@ def is_revision(self) -> "bool": return self._is_revision @is_revision.setter - def is_revision(self, is_revision: "bool") -> None: + def is_revision(self, is_revision: "Optional[bool]") -> None: """Sets the is_revision of this GrantaServerApiListsDtoRecordListSearchCriterion. Restrict to record lists that are (non discarded) revisions. @@ -285,7 +295,7 @@ def is_revision(self, is_revision: "bool") -> None: self._is_revision = is_revision @property - def contains_records_in_databases(self) -> "list[str]": + def contains_records_in_databases(self) -> "Optional[List[str]]": """Gets the contains_records_in_databases of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of of the specified databases @@ -298,20 +308,20 @@ def contains_records_in_databases(self) -> "list[str]": @contains_records_in_databases.setter def contains_records_in_databases( - self, contains_records_in_databases: "list[str]" + self, contains_records_in_databases: "Optional[List[str]]" ) -> 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: List[str] 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) -> "list[str]": + def contains_records_in_integration_schemas(self) -> "Optional[List[str]]": """Gets the contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified integration schemas @@ -324,14 +334,14 @@ def contains_records_in_integration_schemas(self) -> "list[str]": @contains_records_in_integration_schemas.setter def contains_records_in_integration_schemas( - self, contains_records_in_integration_schemas: "list[str]" + self, contains_records_in_integration_schemas: "Optional[List[str]]" ) -> 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: List[str] The contains_records_in_integration_schemas of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records_in_integration_schemas = ( @@ -339,7 +349,7 @@ def contains_records_in_integration_schemas( ) @property - def contains_records_in_tables(self) -> "list[str]": + def contains_records_in_tables(self) -> "Optional[List[str]]": """Gets the contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing records in any of the specified tables @@ -352,20 +362,20 @@ def contains_records_in_tables(self) -> "list[str]": @contains_records_in_tables.setter def contains_records_in_tables( - self, contains_records_in_tables: "list[str]" + self, contains_records_in_tables: "Optional[List[str]]" ) -> 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: List[str] The contains_records_in_tables of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records_in_tables = contains_records_in_tables @property - def contains_records(self) -> "list[str]": + def contains_records(self) -> "Optional[List[str]]": """Gets the contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists containing any of the given records @@ -377,19 +387,19 @@ def contains_records(self) -> "list[str]": return self._contains_records @contains_records.setter - def contains_records(self, contains_records: "list[str]") -> None: + def contains_records(self, contains_records: "Optional[List[str]]") -> 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: List[str] The contains_records of this GrantaServerApiListsDtoRecordListSearchCriterion. """ self._contains_records = contains_records @property - def user_can_add_or_remove_items(self) -> "bool": + def user_can_add_or_remove_items(self) -> "Optional[bool]": """Gets the user_can_add_or_remove_items of this GrantaServerApiListsDtoRecordListSearchCriterion. Limits results to lists where the current user can add or remove items. @@ -402,7 +412,7 @@ def user_can_add_or_remove_items(self) -> "bool": @user_can_add_or_remove_items.setter def user_can_add_or_remove_items( - self, user_can_add_or_remove_items: "bool" + self, user_can_add_or_remove_items: "Optional[bool]" ) -> 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. @@ -456,7 +466,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3524489e..a5948f4a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): +class GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "search_result_identifier": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "search_result_identifier": "searchResultIdentifier", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- search_result_identifier: str """ - self._search_result_identifier = None + self._search_result_identifier: str = None # type: ignore[assignment] self.search_result_identifier = search_result_identifier @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c85cc5d2..f0803715 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): +class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "search_criterion": "GrantaServerApiListsDtoListCriterion", "paging_options": "GrantaServerApiListsDtoPagingOptions", "response_options": "GrantaServerApiListsDtoResponseOptions", } - attribute_map = { + attribute_map: Dict[str, str] = { "search_criterion": "searchCriterion", "paging_options": "pagingOptions", "response_options": "responseOptions", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "searchCriterion": "GrantaServerApiListsDtoListCriterion", "pagingOptions": "GrantaServerApiListsDtoPagingOptions", "responseOptions": "GrantaServerApiListsDtoResponseOptions", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,7 +81,7 @@ def __init__( paging_options: GrantaServerApiListsDtoPagingOptions, optional response_options: GrantaServerApiListsDtoResponseOptions, optional """ - self._search_criterion = None + self._search_criterion: GrantaServerApiListsDtoListCriterion = None # type: ignore[assignment] self._paging_options = None self._response_options = None @@ -108,7 +118,7 @@ def search_criterion( self._search_criterion = search_criterion @property - def paging_options(self) -> "GrantaServerApiListsDtoPagingOptions": + def paging_options(self) -> "Optional[GrantaServerApiListsDtoPagingOptions]": """Gets the paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns @@ -120,7 +130,7 @@ def paging_options(self) -> "GrantaServerApiListsDtoPagingOptions": @paging_options.setter def paging_options( - self, paging_options: "GrantaServerApiListsDtoPagingOptions" + self, paging_options: "Optional[GrantaServerApiListsDtoPagingOptions]" ) -> None: """Sets the paging_options of this GrantaServerApiListsDtoRecordListSearchRequest. @@ -132,7 +142,7 @@ def paging_options( self._paging_options = paging_options @property - def response_options(self) -> "GrantaServerApiListsDtoResponseOptions": + def response_options(self) -> "Optional[GrantaServerApiListsDtoResponseOptions]": """Gets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. Returns @@ -144,7 +154,7 @@ def response_options(self) -> "GrantaServerApiListsDtoResponseOptions": @response_options.setter def response_options( - self, response_options: "GrantaServerApiListsDtoResponseOptions" + self, response_options: "Optional[GrantaServerApiListsDtoResponseOptions]" ) -> None: """Sets the response_options of this GrantaServerApiListsDtoRecordListSearchRequest. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ad4877ab..eb266697 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListSearchResult(ModelBase): +class GrantaServerApiListsDtoRecordListSearchResult(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiListsDtoRecordListSearchResult(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "header": "GrantaServerApiListsDtoRecordListHeader", "items": "list[GrantaServerApiListsDtoListItem]", } - attribute_map = { + attribute_map: Dict[str, str] = { "header": "header", "items": "items", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "header": "GrantaServerApiListsDtoRecordListHeader", "items": "GrantaServerApiListsDtoListItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -66,8 +76,8 @@ def __init__( header: GrantaServerApiListsDtoRecordListHeader items: List[GrantaServerApiListsDtoListItem] """ - self._header = None - self._items = None + self._header: GrantaServerApiListsDtoRecordListHeader = None # type: ignore[assignment] + self._items: List[GrantaServerApiListsDtoListItem] = None # type: ignore[assignment] self.header = header self.items = items @@ -97,7 +107,7 @@ def header(self, header: "GrantaServerApiListsDtoRecordListHeader") -> None: self._header = header @property - def items(self) -> "list[GrantaServerApiListsDtoListItem]": + def items(self) -> "List[GrantaServerApiListsDtoListItem]": """Gets the items of this GrantaServerApiListsDtoRecordListSearchResult. Returns @@ -108,12 +118,12 @@ def items(self) -> "list[GrantaServerApiListsDtoListItem]": return self._items @items.setter - def items(self, items: "list[GrantaServerApiListsDtoListItem]") -> None: + def items(self, items: "List[GrantaServerApiListsDtoListItem]") -> None: """Sets the items of this GrantaServerApiListsDtoRecordListSearchResult. Parameters ---------- - items: list[GrantaServerApiListsDtoListItem] + items: List[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListSearchResult. """ if items is None: @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3df31c9e..9f49dcef 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): +class GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "search_results": "list[GrantaServerApiListsDtoRecordListSearchResult]", } - attribute_map = { + attribute_map: Dict[str, str] = { "search_results": "searchResults", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "searchResults": "GrantaServerApiListsDtoRecordListSearchResult", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- search_results: List[GrantaServerApiListsDtoRecordListSearchResult] """ - self._search_results = None + self._search_results: List[GrantaServerApiListsDtoRecordListSearchResult] = None # type: ignore[assignment] self.search_results = search_results @property - def search_results(self) -> "list[GrantaServerApiListsDtoRecordListSearchResult]": + def search_results(self) -> "List[GrantaServerApiListsDtoRecordListSearchResult]": """Gets the search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. Returns @@ -78,13 +88,13 @@ def search_results(self) -> "list[GrantaServerApiListsDtoRecordListSearchResult] @search_results.setter def search_results( - self, search_results: "list[GrantaServerApiListsDtoRecordListSearchResult]" + self, search_results: "List[GrantaServerApiListsDtoRecordListSearchResult]" ) -> None: """Sets the search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. Parameters ---------- - search_results: list[GrantaServerApiListsDtoRecordListSearchResult] + search_results: List[GrantaServerApiListsDtoRecordListSearchResult] The search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. """ if search_results is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b9710bf9..9c0de457 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoResponseOptions(ModelBase): +class GrantaServerApiListsDtoResponseOptions(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiListsDtoResponseOptions(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "include_record_list_items": "bool", "include_user_actions": "bool", "include_user_permissions": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "include_record_list_items": "includeRecordListItems", "include_user_actions": "includeUserActions", "include_user_permissions": "includeUserPermissions", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.include_record_list_items = include_record_list_items @property - def include_user_actions(self) -> "bool": + def include_user_actions(self) -> "Optional[bool]": """Gets the include_user_actions of this GrantaServerApiListsDtoResponseOptions. Returns @@ -90,7 +100,7 @@ def include_user_actions(self) -> "bool": return self._include_user_actions @include_user_actions.setter - def include_user_actions(self, include_user_actions: "bool") -> None: + def include_user_actions(self, include_user_actions: "Optional[bool]") -> None: """Sets the include_user_actions of this GrantaServerApiListsDtoResponseOptions. Parameters @@ -101,7 +111,7 @@ def include_user_actions(self, include_user_actions: "bool") -> None: self._include_user_actions = include_user_actions @property - def include_user_permissions(self) -> "bool": + def include_user_permissions(self) -> "Optional[bool]": """Gets the include_user_permissions of this GrantaServerApiListsDtoResponseOptions. Returns @@ -112,7 +122,9 @@ def include_user_permissions(self) -> "bool": return self._include_user_permissions @include_user_permissions.setter - def include_user_permissions(self, include_user_permissions: "bool") -> None: + def include_user_permissions( + self, include_user_permissions: "Optional[bool]" + ) -> None: """Sets the include_user_permissions of this GrantaServerApiListsDtoResponseOptions. Parameters @@ -123,7 +135,7 @@ def include_user_permissions(self, include_user_permissions: "bool") -> None: self._include_user_permissions = include_user_permissions @property - def include_record_list_items(self) -> "bool": + def include_record_list_items(self) -> "Optional[bool]": """Gets the include_record_list_items of this GrantaServerApiListsDtoResponseOptions. Returns @@ -134,7 +146,9 @@ def include_record_list_items(self) -> "bool": return self._include_record_list_items @include_record_list_items.setter - def include_record_list_items(self, include_record_list_items: "bool") -> None: + def include_record_list_items( + self, include_record_list_items: "Optional[bool]" + ) -> None: """Sets the include_record_list_items of this GrantaServerApiListsDtoResponseOptions. Parameters @@ -162,7 +176,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ead0ff1c..117991c4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): +class GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "is_administrator": "bool", "is_curator": "bool", "is_publisher": "bool", "is_subscribed": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "is_administrator": "isAdministrator", "is_curator": "isCurator", "is_publisher": "isPublisher", "is_subscribed": "isSubscribed", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,10 +81,10 @@ def __init__( is_publisher: bool is_subscribed: bool """ - self._is_subscribed = None - self._is_curator = None - self._is_administrator = None - self._is_publisher = None + 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 = is_subscribed self.is_curator = is_curator @@ -203,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 637a7bd0..28d338b6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): +class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "awaiting_approval": "bool", "description": "str", "internal_use": "bool", @@ -45,7 +55,7 @@ class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): "published": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "awaiting_approval": "awaitingApproval", "description": "description", "internal_use": "internalUse", @@ -54,9 +64,9 @@ class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): "published": "published", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( self.internal_use = internal_use @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -111,7 +121,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -122,7 +132,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -133,7 +143,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -144,7 +154,7 @@ def description(self, description: "str") -> None: self._description = description @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -155,7 +165,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -166,7 +176,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def published(self) -> "bool": + def published(self) -> "Optional[bool]": """Gets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -177,7 +187,7 @@ def published(self) -> "bool": return self._published @published.setter - def published(self, published: "bool") -> None: + def published(self, published: "Optional[bool]") -> None: """Sets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -188,7 +198,7 @@ def published(self, published: "bool") -> None: self._published = published @property - def awaiting_approval(self) -> "bool": + def awaiting_approval(self) -> "Optional[bool]": """Gets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -199,7 +209,7 @@ def awaiting_approval(self) -> "bool": return self._awaiting_approval @awaiting_approval.setter - def awaiting_approval(self, awaiting_approval: "bool") -> None: + def awaiting_approval(self, awaiting_approval: "Optional[bool]") -> None: """Sets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -210,7 +220,7 @@ def awaiting_approval(self, awaiting_approval: "bool") -> None: self._awaiting_approval = awaiting_approval @property - def internal_use(self) -> "bool": + def internal_use(self) -> "Optional[bool]": """Gets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns @@ -221,7 +231,7 @@ def internal_use(self) -> "bool": return self._internal_use @internal_use.setter - def internal_use(self, internal_use: "bool") -> None: + def internal_use(self, internal_use: "Optional[bool]") -> None: """Sets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters @@ -249,7 +259,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce8edfd0..dfb71d31 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUpdateUserPermission(ModelBase): +class GrantaServerApiListsDtoUpdateUserPermission(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiListsDtoUpdateUserPermission(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "flags": "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", "user_or_group_identifier": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "flags": "flags", "user_or_group_identifier": "userOrGroupIdentifier", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "flags": "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,8 +75,8 @@ def __init__( flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags user_or_group_identifier: str """ - self._user_or_group_identifier = None - self._flags = None + self._user_or_group_identifier: str = None # type: ignore[assignment] + self._flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags = None # type: ignore[assignment] self.user_or_group_identifier = user_or_group_identifier self.flags = flags @@ -143,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 94cdbf40..eac822ad 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): +class GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "user_permissions": "list[GrantaServerApiListsDtoUpdateUserPermission]", } - attribute_map = { + attribute_map: Dict[str, str] = { "user_permissions": "userPermissions", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "userPermissions": "GrantaServerApiListsDtoUpdateUserPermission", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] """ - self._user_permissions = None + self._user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] = None # type: ignore[assignment] self.user_permissions = user_permissions @property - def user_permissions(self) -> "list[GrantaServerApiListsDtoUpdateUserPermission]": + def user_permissions(self) -> "List[GrantaServerApiListsDtoUpdateUserPermission]": """Gets the user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. Returns @@ -78,13 +88,13 @@ def user_permissions(self) -> "list[GrantaServerApiListsDtoUpdateUserPermission] @user_permissions.setter def user_permissions( - self, user_permissions: "list[GrantaServerApiListsDtoUpdateUserPermission]" + self, user_permissions: "List[GrantaServerApiListsDtoUpdateUserPermission]" ) -> None: """Sets the user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. Parameters ---------- - user_permissions: list[GrantaServerApiListsDtoUpdateUserPermission] + user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] The user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. """ if user_permissions is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5846369c..23fdd2da 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUserOrGroup(ModelBase): +class GrantaServerApiListsDtoUserOrGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiListsDtoUserOrGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_name": "str", "identifier": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_name": "displayName", "identifier": "identifier", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,9 +77,9 @@ def __init__( identifier: str name: str """ - self._identifier = None - self._display_name = None - self._name = None + self._identifier: str = None # type: ignore[assignment] + self._display_name: str = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self.identifier = identifier self.display_name = display_name @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 8afecff4..e21ad79a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUserPermission(ModelBase): +class GrantaServerApiListsDtoUserPermission(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiListsDtoUserPermission(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "flags": "GrantaServerApiListsDtoRecordListPermissionFlags", "user_or_group_identifier": "str", "user_or_group_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "flags": "flags", "user_or_group_identifier": "userOrGroupIdentifier", "user_or_group_name": "userOrGroupName", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "flags": "GrantaServerApiListsDtoRecordListPermissionFlags", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,9 +79,9 @@ def __init__( user_or_group_identifier: str user_or_group_name: str """ - self._user_or_group_name = None - self._user_or_group_identifier = None - self._flags = None + 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 = user_or_group_name self.user_or_group_identifier = user_or_group_identifier @@ -175,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 237d8619..173b30cf 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): +class GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "user_permissions": "list[GrantaServerApiListsDtoUserPermission]", } - attribute_map = { + attribute_map: Dict[str, str] = { "user_permissions": "userPermissions", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "userPermissions": "GrantaServerApiListsDtoUserPermission", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- user_permissions: List[GrantaServerApiListsDtoUserPermission] """ - self._user_permissions = None + self._user_permissions: List[GrantaServerApiListsDtoUserPermission] = None # type: ignore[assignment] self.user_permissions = user_permissions @property - def user_permissions(self) -> "list[GrantaServerApiListsDtoUserPermission]": + def user_permissions(self) -> "List[GrantaServerApiListsDtoUserPermission]": """Gets the user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. Returns @@ -78,13 +88,13 @@ def user_permissions(self) -> "list[GrantaServerApiListsDtoUserPermission]": @user_permissions.setter def user_permissions( - self, user_permissions: "list[GrantaServerApiListsDtoUserPermission]" + self, user_permissions: "List[GrantaServerApiListsDtoUserPermission]" ) -> None: """Sets the user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. Parameters ---------- - user_permissions: list[GrantaServerApiListsDtoUserPermission] + user_permissions: List[GrantaServerApiListsDtoUserPermission] The user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. """ if user_permissions is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1eb9fe0c..b64c2d65 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_value_specifier import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,17 +49,17 @@ class GrantaServerApiNoValuesSpecifier(GrantaServerApiValueSpecifier): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "filter_on": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "filter_on": "filterOn", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( filter_on: str """ super().__init__() - self._filter_on = None + self._filter_on: str = None # type: ignore[assignment] self.filter_on = filter_on @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9deb0252..f6db4245 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiObjectIdentifier(ModelBase): +class GrantaServerApiObjectIdentifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiObjectIdentifier(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """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. @@ -91,7 +101,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> 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. @@ -103,7 +113,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """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 @@ -115,7 +125,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> 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 @@ -127,7 +137,7 @@ def name(self, name: "str") -> None: self._name = name @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """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). @@ -139,7 +149,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> 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). @@ -168,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a36f3cf2..25c7fd87 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiParameterInfo(ModelBase): +class GrantaServerApiParameterInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiParameterInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "GrantaServerApiDataExportDatumsParameterValue", "identity": "int", "interpolation_type": "GrantaServerApiParameterInfoInterpolationType", @@ -46,7 +56,7 @@ class GrantaServerApiParameterInfo(ModelBase): "unit_symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "identity": "identity", "interpolation_type": "interpolationType", @@ -56,14 +66,14 @@ class GrantaServerApiParameterInfo(ModelBase): "unit_symbol": "unitSymbol", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "scaleType": "GrantaServerApiParameterInfoScaleType", "interpolationType": "GrantaServerApiParameterInfoInterpolationType", "parameterType": "GrantaServerApiParameterInfoParameterType", "defaultValue": "GrantaServerApiDataExportDatumsParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( self.default_value = default_value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiParameterInfo. Returns @@ -123,7 +133,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiParameterInfo. Parameters @@ -134,7 +144,7 @@ def name(self, name: "str") -> None: self._name = name @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiParameterInfo. Returns @@ -145,7 +155,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiParameterInfo. Parameters @@ -156,7 +166,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def unit_symbol(self) -> "str": + def unit_symbol(self) -> "Optional[str]": """Gets the unit_symbol of this GrantaServerApiParameterInfo. Returns @@ -167,7 +177,7 @@ def unit_symbol(self) -> "str": return self._unit_symbol @unit_symbol.setter - def unit_symbol(self, unit_symbol: "str") -> None: + def unit_symbol(self, unit_symbol: "Optional[str]") -> None: """Sets the unit_symbol of this GrantaServerApiParameterInfo. Parameters @@ -178,7 +188,7 @@ def unit_symbol(self, unit_symbol: "str") -> None: self._unit_symbol = unit_symbol @property - def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": + def scale_type(self) -> "Optional[GrantaServerApiParameterInfoScaleType]": """Gets the scale_type of this GrantaServerApiParameterInfo. Returns @@ -189,7 +199,9 @@ def scale_type(self) -> "GrantaServerApiParameterInfoScaleType": return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> None: + def scale_type( + self, scale_type: "Optional[GrantaServerApiParameterInfoScaleType]" + ) -> None: """Sets the scale_type of this GrantaServerApiParameterInfo. Parameters @@ -200,7 +212,9 @@ def scale_type(self, scale_type: "GrantaServerApiParameterInfoScaleType") -> Non self._scale_type = scale_type @property - def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": + def interpolation_type( + self, + ) -> "Optional[GrantaServerApiParameterInfoInterpolationType]": """Gets the interpolation_type of this GrantaServerApiParameterInfo. Returns @@ -212,7 +226,8 @@ def interpolation_type(self) -> "GrantaServerApiParameterInfoInterpolationType": @interpolation_type.setter def interpolation_type( - self, interpolation_type: "GrantaServerApiParameterInfoInterpolationType" + self, + interpolation_type: "Optional[GrantaServerApiParameterInfoInterpolationType]", ) -> None: """Sets the interpolation_type of this GrantaServerApiParameterInfo. @@ -224,7 +239,7 @@ def interpolation_type( self._interpolation_type = interpolation_type @property - def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": + def parameter_type(self) -> "Optional[GrantaServerApiParameterInfoParameterType]": """Gets the parameter_type of this GrantaServerApiParameterInfo. Returns @@ -236,7 +251,7 @@ def parameter_type(self) -> "GrantaServerApiParameterInfoParameterType": @parameter_type.setter def parameter_type( - self, parameter_type: "GrantaServerApiParameterInfoParameterType" + self, parameter_type: "Optional[GrantaServerApiParameterInfoParameterType]" ) -> None: """Sets the parameter_type of this GrantaServerApiParameterInfo. @@ -248,7 +263,9 @@ def parameter_type( self._parameter_type = parameter_type @property - def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": + def default_value( + self, + ) -> "Optional[GrantaServerApiDataExportDatumsParameterValue]": """Gets the default_value of this GrantaServerApiParameterInfo. Returns @@ -260,7 +277,7 @@ def default_value(self) -> "GrantaServerApiDataExportDatumsParameterValue": @default_value.setter def default_value( - self, default_value: "GrantaServerApiDataExportDatumsParameterValue" + self, default_value: "Optional[GrantaServerApiDataExportDatumsParameterValue]" ) -> None: """Sets the default_value of this GrantaServerApiParameterInfo. @@ -289,7 +306,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6545fb3a..5eabca44 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): +class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "new_parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "new_short_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "new_parent": "newParent", "new_short_name": "newShortName", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "newParent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,9 @@ def __init__( self.new_short_name = new_short_name @property - def new_parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + def new_parent( + self, + ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": """Gets the new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Returns @@ -86,7 +98,8 @@ def new_parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" @new_parent.setter def new_parent( - self, new_parent: "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + self, + new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]", ) -> None: """Sets the new_parent of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. @@ -98,7 +111,7 @@ def new_parent( self._new_parent = new_parent @property - def new_short_name(self) -> "str": + def new_short_name(self) -> "Optional[str]": """Gets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Returns @@ -109,7 +122,7 @@ def new_short_name(self) -> "str": return self._new_short_name @new_short_name.setter - def new_short_name(self, new_short_name: "str") -> None: + def new_short_name(self, new_short_name: "Optional[str]") -> None: """Sets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. Parameters @@ -137,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7177542b..19536c9c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): +class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "full_name": "str", "record_type": "GrantaServerApiRecordType", "guid": "str", @@ -44,7 +54,7 @@ class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): "tree_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "full_name": "fullName", "record_type": "recordType", "guid": "guid", @@ -52,12 +62,12 @@ class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): "tree_name": "treeName", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordType": "GrantaServerApiRecordType", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -78,8 +88,8 @@ def __init__( parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional tree_name: str, optional """ - self._record_type = None - self._full_name = None + self._record_type: GrantaServerApiRecordType = None # type: ignore[assignment] + self._full_name: str = None # type: ignore[assignment] self._tree_name = None self._parent = None self._guid = None @@ -142,7 +152,7 @@ def full_name(self, full_name: "str") -> None: self._full_name = full_name @property - def tree_name(self) -> "str": + def tree_name(self) -> "Optional[str]": """Gets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns @@ -153,7 +163,7 @@ def tree_name(self) -> "str": return self._tree_name @tree_name.setter - def tree_name(self, tree_name: "str") -> None: + def tree_name(self, tree_name: "Optional[str]") -> None: """Sets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters @@ -164,7 +174,9 @@ def tree_name(self, tree_name: "str") -> None: self._tree_name = tree_name @property - def parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + def parent( + self, + ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns @@ -176,7 +188,7 @@ def parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": @parent.setter def parent( - self, parent: "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + self, parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. @@ -188,7 +200,7 @@ def parent( self._parent = parent @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Returns @@ -199,7 +211,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. Parameters @@ -227,7 +239,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 27d02d0c..cf8a2235 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): +class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "new_parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } - attribute_map = { + attribute_map: Dict[str, str] = { "new_parent": "newParent", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "newParent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.new_parent = new_parent @property - def new_parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + def new_parent( + self, + ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": """Gets the new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. Returns @@ -79,7 +91,8 @@ def new_parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" @new_parent.setter def new_parent( - self, new_parent: "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + self, + new_parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]", ) -> None: """Sets the new_parent of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e449f841..663f61f1 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): +class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "is_folder": "bool", "record_versions": "list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", @@ -45,7 +55,7 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "is_folder": "isFolder", "record_versions": "recordVersions", @@ -54,14 +64,14 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): "parent": "parent", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "table": "GrantaServerApiSchemaSlimEntitiesSlimTable", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "recordVersions": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", "subsets": "GrantaServerApiSchemaSlimEntitiesSlimSubset", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,12 +94,12 @@ def __init__( table: GrantaServerApiSchemaSlimEntitiesSlimTable parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional """ - self._is_folder = None - self._table = None + self._is_folder: bool = None # type: ignore[assignment] + self._table: GrantaServerApiSchemaSlimEntitiesSlimTable = None # type: ignore[assignment] self._parent = None - self._record_versions = None - self._subsets = None - self._guid = 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 = is_folder self.table = table @@ -148,7 +158,9 @@ def table(self, table: "GrantaServerApiSchemaSlimEntitiesSlimTable") -> None: self._table = table @property - def parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + def parent( + self, + ) -> "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]": """Gets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns @@ -160,7 +172,7 @@ def parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": @parent.setter def parent( - self, parent: "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + self, parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" ) -> None: """Sets the parent of this GrantaServerApiRecordsRecordHistoriesRecordHistory. @@ -174,7 +186,7 @@ def parent( @property def record_versions( self, - ) -> "list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": + ) -> "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]": """Gets the record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns @@ -187,13 +199,13 @@ def record_versions( @record_versions.setter def record_versions( self, - record_versions: "list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", + record_versions: "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", ) -> None: """Sets the record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Parameters ---------- - record_versions: list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] + record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] The record_versions of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ if record_versions is None: @@ -201,7 +213,7 @@ def record_versions( self._record_versions = record_versions @property - def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": + def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": """Gets the subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Returns @@ -213,13 +225,13 @@ def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": @subsets.setter def subsets( - self, subsets: "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]" + self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]" ) -> None: """Sets the subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. Parameters ---------- - subsets: list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. """ if subsets is None: @@ -268,7 +280,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f961ceba..3b202cb4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordHistoriesSlimRecordHistory(ModelBase): +class GrantaServerApiRecordsRecordHistoriesSlimRecordHistory(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiRecordsRecordHistoriesSlimRecordHistory(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- guid: str """ - self._guid = None + self._guid: str = None # type: ignore[assignment] self.guid = guid @@ -105,7 +115,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 1b6e10d2..c4fcb801 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): +class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "created_by_user": "str", "created_date": "datetime", "database_key": "str", @@ -54,7 +64,7 @@ class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): "released_date": "datetime", } - attribute_map = { + attribute_map: Dict[str, str] = { "created_by_user": "createdByUser", "created_date": "createdDate", "database_key": "databaseKey", @@ -72,7 +82,7 @@ class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): "released_date": "releasedDate", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordHistory": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "table": "GrantaServerApiSchemaSlimEntitiesSlimTable", "recordType": "GrantaServerApiRecordType", @@ -80,7 +90,7 @@ class GrantaServerApiRecordsRecordVersionsRecordVersion(ModelBase): "versionState": "GrantaServerApiVersionState", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -121,21 +131,21 @@ def __init__( version_state: GrantaServerApiVersionState released_date: datetime, optional """ - self._record_history = None - self._table = None - self._database_key = None - self._created_by_user = None - self._created_date = None - self._last_modified_by_user = None - self._last_modified_date = None - self._record_type = None + 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 = None - self._record_color = None - self._version_number = None - self._version_state = None - self._name = None - self._guid = 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] self.record_history = record_history self.table = table @@ -355,7 +365,7 @@ def record_type(self, record_type: "GrantaServerApiRecordType") -> None: self._record_type = record_type @property - def released_date(self) -> "datetime": + def released_date(self) -> "Optional[datetime]": """Gets the released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. Returns @@ -366,7 +376,7 @@ def released_date(self) -> "datetime": return self._released_date @released_date.setter - def released_date(self, released_date: "datetime") -> None: + def released_date(self, released_date: "Optional[datetime]") -> None: """Sets the released_date of this GrantaServerApiRecordsRecordVersionsRecordVersion. Parameters @@ -538,7 +548,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7b0309e5..dc2c6a80 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiRecordsRecordVersionsSlimRecordVersion(ModelBase): +class GrantaServerApiRecordsRecordVersionsSlimRecordVersion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiRecordsRecordVersionsSlimRecordVersion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "version_number": "int", "version_state": "GrantaServerApiVersionState", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "version_number": "versionNumber", "version_state": "versionState", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "versionState": "GrantaServerApiVersionState", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,10 +83,10 @@ def __init__( version_number: int version_state: GrantaServerApiVersionState """ - self._version_number = None - self._version_state = None - self._name = None - self._guid = None + 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 = version_number self.version_state = version_state @@ -197,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7e008a05..32eda98f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesAttribute(ModelBase): +class GrantaServerApiSchemaAttributesAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): "help_path": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -60,7 +70,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): "help_path": "helpPath", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "aboutAttribute": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "info": "GrantaServerApiSchemaAttributesAttributeAttributeInfo", @@ -84,7 +94,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): "mathsFunctional".lower(): "#/components/schemas/GrantaServerApiSchemaAttributesMathsFunctionalAttribute", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -111,14 +121,14 @@ def __init__( axis_name: str, optional help_path: str, optional """ - self._default_threshold_type = None + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self._axis_name = None self._help_path = None self._about_attribute = None - self._info = None - self._display_names = None - self._name = None - self._guid = 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 = default_threshold_type if axis_name is not None: @@ -164,7 +174,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesAttribute. Returns @@ -175,7 +185,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesAttribute. Parameters @@ -186,7 +196,7 @@ def axis_name(self, axis_name: "str") -> None: self._axis_name = axis_name @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaAttributesAttribute. Returns @@ -197,7 +207,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesAttribute. Parameters @@ -208,7 +218,9 @@ def help_path(self, help_path: "str") -> None: self._help_path = help_path @property - def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def about_attribute( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. Returns @@ -220,7 +232,8 @@ def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @about_attribute.setter def about_attribute( - self, about_attribute: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, + about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. @@ -258,7 +271,7 @@ def info( self._info = info @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaAttributesAttribute. Returns @@ -269,12 +282,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaAttributesAttribute. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaAttributesAttribute. """ if display_names is None: @@ -341,19 +354,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5cf0010d..5cc94be2 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): +class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "chartable": "bool", "expressionable": "bool", "extended_name": "str", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): "primary_dynamic_link_groups": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "chartable": "chartable", "expressionable": "expressionable", "extended_name": "extendedName", @@ -66,7 +76,7 @@ class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): "primary_dynamic_link_groups": "primaryDynamicLinkGroups", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "orderedMetaAttributes": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "standardNames": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "primaryDataLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", @@ -75,7 +85,7 @@ class GrantaServerApiSchemaAttributesAttributeAttributeInfo(ModelBase): "foreignDynamicLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -110,16 +120,16 @@ def __init__( ordered_meta_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional primary_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional """ - self._type_code = None - self._chartable = None - self._expressionable = None - self._linkable = None - self._extended_name = None - self._is_meta_attribute = None + 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 = None - self._primary_data_link_groups = None - self._foreign_data_link_groups = 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 @@ -288,7 +298,7 @@ def is_meta_attribute(self, is_meta_attribute: "bool") -> None: @property def ordered_meta_attributes( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": """Gets the ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -301,13 +311,13 @@ def ordered_meta_attributes( @ordered_meta_attributes.setter def ordered_meta_attributes( self, - ordered_meta_attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + ordered_meta_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", ) -> None: """Sets the ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - ordered_meta_attributes: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + ordered_meta_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The ordered_meta_attributes of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._ordered_meta_attributes = ordered_meta_attributes @@ -315,7 +325,7 @@ def ordered_meta_attributes( @property def standard_names( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -327,13 +337,13 @@ def standard_names( @standard_names.setter def standard_names( - self, standard_names: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, standard_names: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - standard_names: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + standard_names: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The standard_names of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ if standard_names is None: @@ -343,7 +353,7 @@ def standard_names( @property def primary_data_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -356,13 +366,13 @@ def primary_data_link_groups( @primary_data_link_groups.setter def primary_data_link_groups( self, - primary_data_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + primary_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - primary_data_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + primary_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The primary_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ if primary_data_link_groups is None: @@ -374,7 +384,7 @@ def primary_data_link_groups( @property def foreign_data_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -387,13 +397,13 @@ def foreign_data_link_groups( @foreign_data_link_groups.setter def foreign_data_link_groups( self, - foreign_data_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + foreign_data_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - foreign_data_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + foreign_data_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The foreign_data_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ if foreign_data_link_groups is None: @@ -405,7 +415,7 @@ def foreign_data_link_groups( @property def primary_dynamic_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": """Gets the primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -418,13 +428,13 @@ def primary_dynamic_link_groups( @primary_dynamic_link_groups.setter def primary_dynamic_link_groups( self, - primary_dynamic_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + primary_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", ) -> None: """Sets the primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - primary_dynamic_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + primary_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The primary_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._primary_dynamic_link_groups = primary_dynamic_link_groups @@ -432,7 +442,7 @@ def primary_dynamic_link_groups( @property def foreign_dynamic_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": """Gets the foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Returns @@ -445,13 +455,13 @@ def foreign_dynamic_link_groups( @foreign_dynamic_link_groups.setter def foreign_dynamic_link_groups( self, - foreign_dynamic_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + foreign_dynamic_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", ) -> None: """Sets the foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. Parameters ---------- - foreign_dynamic_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + foreign_dynamic_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The foreign_dynamic_link_groups of this GrantaServerApiSchemaAttributesAttributeAttributeInfo. """ self._foreign_dynamic_link_groups = foreign_dynamic_link_groups @@ -474,7 +484,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4e33a187..b6562a9c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): +class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "has_validation_rules": "bool", "is_valid": "bool", "value_changed": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "has_validation_rules": "hasValidationRules", "is_valid": "isValid", "value_changed": "valueChanged", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.value_changed = value_changed @property - def is_valid(self) -> "bool": + def is_valid(self) -> "Optional[bool]": """Gets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was valid based on the attributes data rules. @@ -91,7 +101,7 @@ def is_valid(self) -> "bool": return self._is_valid @is_valid.setter - def is_valid(self, is_valid: "bool") -> None: + def is_valid(self, is_valid: "Optional[bool]") -> None: """Sets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the provided value was valid based on the attributes data rules. @@ -103,7 +113,7 @@ def is_valid(self, is_valid: "bool") -> None: self._is_valid = is_valid @property - def has_validation_rules(self) -> "bool": + def has_validation_rules(self) -> "Optional[bool]": """Gets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the attribute has any validation rules that were checked. @@ -115,7 +125,7 @@ def has_validation_rules(self) -> "bool": return self._has_validation_rules @has_validation_rules.setter - def has_validation_rules(self, has_validation_rules: "bool") -> None: + def has_validation_rules(self, has_validation_rules: "Optional[bool]") -> None: """Sets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. Gets whether the attribute has any validation rules that were checked. @@ -127,7 +137,7 @@ def has_validation_rules(self, has_validation_rules: "bool") -> None: self._has_validation_rules = has_validation_rules @property - def value_changed(self) -> "bool": + def value_changed(self) -> "Optional[bool]": """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. @@ -139,7 +149,7 @@ def value_changed(self) -> "bool": return self._value_changed @value_changed.setter - def value_changed(self, value_changed: "bool") -> None: + def value_changed(self, value_changed: "Optional[bool]") -> 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. @@ -168,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f2f67a88..1d69cdd6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesAttributesInfo(ModelBase): +class GrantaServerApiSchemaAttributesAttributesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaAttributesAttributesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimAttribute]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attributes": "attributes", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] """ - self._attributes = None + self._attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] = None # type: ignore[assignment] self.attributes = attributes @property - def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": + def attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": """Gets the attributes of this GrantaServerApiSchemaAttributesAttributesInfo. Returns @@ -78,13 +88,13 @@ def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimAttribute]" + self, attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimAttribute]" ) -> None: """Sets the attributes of this GrantaServerApiSchemaAttributesAttributesInfo. Parameters ---------- - attributes: list[GrantaServerApiSchemaSlimEntitiesSlimAttribute] + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimAttribute] The attributes of this GrantaServerApiSchemaAttributesAttributesInfo. """ if attributes is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5993cc20..e8f4618e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): +class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): "help_path": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): "help_path": "helpPath", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "aboutAttribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } @@ -77,7 +87,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute(ModelBase): "mathsFunctional".lower(): "#/components/schemas/GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -101,7 +111,7 @@ def __init__( self._default_threshold_type = None self._help_path = None self._about_attribute = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if default_threshold_type is not None: @@ -117,7 +127,7 @@ def __init__( @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns @@ -130,7 +140,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. @@ -142,7 +152,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns @@ -153,7 +163,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters @@ -164,7 +174,9 @@ def help_path(self, help_path: "str") -> None: self._help_path = help_path @property - def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def about_attribute( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns @@ -176,7 +188,7 @@ def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @about_attribute.setter def about_attribute( - self, about_attribute: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. @@ -212,7 +224,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Returns @@ -223,7 +235,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaAttributesCreateAttributesCreateAttribute. Parameters @@ -245,19 +257,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d12b1a41..310fc3e2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDateTimeAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 dc4af69d..de1bfb3c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_type": "discreteType", "name": "name", "about_attribute": "aboutAttribute", @@ -63,11 +73,11 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,8 +111,8 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None - self._discrete_type = None + self._type: str = None # type: ignore[assignment] + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self._is_multi_valued = None self.type = type @@ -161,7 +171,7 @@ def discrete_type( self._discrete_type = discrete_type @property - def is_multi_valued(self) -> "bool": + def is_multi_valued(self) -> "Optional[bool]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. Returns @@ -172,7 +182,7 @@ def is_multi_valued(self) -> "bool": return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "bool") -> None: + def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteAttribute. Parameters @@ -200,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5a44031f..06b10b68 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAtt discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_parameters": "list[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]", "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAtt "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_parameters": "attributeParameters", "discrete_type": "discreteType", "name": "name", @@ -63,12 +73,12 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAtt "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -102,9 +112,9 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None - self._discrete_type = None - self._attribute_parameters = None + 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 = type self.discrete_type = discrete_type @@ -163,7 +173,7 @@ def discrete_type( @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]": + ) -> "List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. Returns @@ -176,13 +186,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]", + attribute_parameters: "List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttribute. """ if attribute_parameters is None: @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1f83c1e5..5f367bf0 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter( - ModelBase -): +class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,21 +46,21 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAtt discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "default_value": "defaultValue", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +75,7 @@ def __init__( parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity default_value: float, optional """ - self._parameter = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self._default_value = None self.parameter = parameter @@ -101,7 +109,7 @@ def parameter( self._parameter = parameter @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. Returns @@ -112,7 +120,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateDiscreteFunctionalAttributeParameter. Parameters @@ -140,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d4a0130a..e3ab5f74 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFileAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d256d6c7..5e8aa064 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_parameters": "list[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]", "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttrib "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_parameters": "attributeParameters", "name": "name", "about_attribute": "aboutAttribute", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttrib "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -110,10 +120,10 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._axis_name = None - self._attribute_parameters = None + self._attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] = None # type: ignore[assignment] self._is_range = None self.type = type @@ -150,7 +160,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns @@ -161,7 +171,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters @@ -172,7 +184,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: self._unit = unit @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns @@ -183,7 +195,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters @@ -196,7 +208,7 @@ def axis_name(self, axis_name: "str") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]": + ) -> "List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns @@ -209,13 +221,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]", + attribute_parameters: "List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. """ if attribute_parameters is None: @@ -225,7 +237,7 @@ def attribute_parameters( self._attribute_parameters = attribute_parameters @property - def is_range(self) -> "bool": + def is_range(self) -> "Optional[bool]": """Gets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Returns @@ -236,7 +248,7 @@ def is_range(self) -> "bool": return self._is_range @is_range.setter - def is_range(self, is_range: "bool") -> None: + def is_range(self, is_range: "Optional[bool]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttribute. Parameters @@ -264,7 +276,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2d8fbf22..3bc04a69 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter( - ModelBase -): +class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,27 +46,27 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_value": "float", "interpolation_method": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "scale_type": "GrantaServerApiSchemaAttributesAttributeScaleType", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "default_value": "defaultValue", "interpolation_method": "interpolationMethod", "scale_type": "scaleType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "interpolationMethod": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "scaleType": "GrantaServerApiSchemaAttributesAttributeScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,7 +85,7 @@ def __init__( interpolation_method: GrantaServerApiSchemaAttributesAttributeInterpolationMethod, optional scale_type: GrantaServerApiSchemaAttributesAttributeScaleType, optional """ - self._parameter = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self._default_value = None self._interpolation_method = None self._scale_type = None @@ -117,7 +125,7 @@ def parameter( self._parameter = parameter @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns @@ -128,7 +136,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Parameters @@ -141,7 +149,7 @@ def default_value(self, default_value: "float") -> None: @property def interpolation_method( self, - ) -> "GrantaServerApiSchemaAttributesAttributeInterpolationMethod": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns @@ -154,7 +162,7 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", + interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. @@ -166,7 +174,9 @@ def interpolation_method( self._interpolation_method = interpolation_method @property - def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": + def scale_type( + self, + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": """Gets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. Returns @@ -178,7 +188,7 @@ def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": @scale_type.setter def scale_type( - self, scale_type: "GrantaServerApiSchemaAttributesAttributeScaleType" + self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesCreateAttributesCreateFloatFunctionalAttributeParameter. @@ -207,7 +217,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 47b662ea..df5cf258 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateHyperlinkAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8578004c..54534ad8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "axis_name": "axisName", @@ -63,9 +73,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -99,7 +109,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_unique = None self._axis_name = None @@ -134,7 +144,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_unique(self) -> "bool": + def is_unique(self) -> "Optional[bool]": """Gets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value @@ -146,7 +156,7 @@ def is_unique(self) -> "bool": return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "bool") -> None: + def is_unique(self, is_unique: "Optional[bool]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value @@ -158,7 +168,7 @@ def is_unique(self, is_unique: "bool") -> None: self._is_unique = is_unique @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Returns @@ -169,7 +179,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateIntegerAttribute. Parameters @@ -197,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f5b39799..91f1afc0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLogicalAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7d25391c..0319f4df 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateLongTextAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3365bf80..2e440685 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "allow_all_compatible_expressions": "bool", @@ -58,7 +68,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttrib "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "allow_all_compatible_expressions": "allowAllCompatibleExpressions", @@ -75,13 +85,13 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttrib "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "expressions": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -127,7 +137,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._attribute_parameters = None self._expressions = None @@ -180,7 +190,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -191,7 +201,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -204,7 +216,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -216,19 +228,22 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ self._attribute_parameters = attribute_parameters @property - def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def expressions( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -240,19 +255,19 @@ def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": @expressions.setter def expressions( - self, expressions: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" ) -> None: """Sets the expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters ---------- - expressions: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. """ self._expressions = expressions @property - def allow_extrapolation(self) -> "bool": + def allow_extrapolation(self) -> "Optional[bool]": """Gets the allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -263,7 +278,7 @@ def allow_extrapolation(self) -> "bool": return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation(self, allow_extrapolation: "bool") -> None: + def allow_extrapolation(self, allow_extrapolation: "Optional[bool]") -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -274,7 +289,7 @@ def allow_extrapolation(self, allow_extrapolation: "bool") -> None: self._allow_extrapolation = allow_extrapolation @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -285,7 +300,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -296,7 +311,7 @@ def axis_name(self, axis_name: "str") -> None: self._axis_name = axis_name @property - def is_range(self) -> "bool": + def is_range(self) -> "Optional[bool]": """Gets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -307,7 +322,7 @@ def is_range(self) -> "bool": return self._is_range @is_range.setter - def is_range(self, is_range: "bool") -> None: + def is_range(self, is_range: "Optional[bool]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -318,7 +333,7 @@ def is_range(self, is_range: "bool") -> None: self._is_range = is_range @property - def allow_all_compatible_expressions(self) -> "bool": + def allow_all_compatible_expressions(self) -> "Optional[bool]": """Gets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -330,7 +345,7 @@ def allow_all_compatible_expressions(self) -> "bool": @allow_all_compatible_expressions.setter def allow_all_compatible_expressions( - self, allow_all_compatible_expressions: "bool" + self, allow_all_compatible_expressions: "Optional[bool]" ) -> None: """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. @@ -342,7 +357,7 @@ def allow_all_compatible_expressions( self._allow_all_compatible_expressions = allow_all_compatible_expressions @property - def allow_anonymous_expressions(self) -> "bool": + def allow_anonymous_expressions(self) -> "Optional[bool]": """Gets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Returns @@ -353,7 +368,9 @@ def allow_anonymous_expressions(self) -> "bool": return self._allow_anonymous_expressions @allow_anonymous_expressions.setter - def allow_anonymous_expressions(self, allow_anonymous_expressions: "bool") -> None: + def allow_anonymous_expressions( + self, allow_anonymous_expressions: "Optional[bool]" + ) -> None: """Sets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesCreateAttributesCreateMathsFunctionalAttribute. Parameters @@ -381,7 +398,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 72c43016..3820ef0a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePictureAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +101,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 98ba974a..ac7df71b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attribute_parameters": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "attribute_parameters": "attributeParameters", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -110,7 +120,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_multi_valued = None self._unit = None self._axis_name = None @@ -151,7 +161,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_multi_valued(self) -> "bool": + def is_multi_valued(self) -> "Optional[bool]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns @@ -162,7 +172,7 @@ def is_multi_valued(self) -> "bool": return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "bool") -> None: + def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters @@ -173,7 +183,7 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: self._is_multi_valued = is_multi_valued @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns @@ -184,7 +194,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters @@ -195,7 +207,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: self._unit = unit @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns @@ -206,7 +218,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters @@ -219,7 +231,7 @@ def axis_name(self, axis_name: "str") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Returns @@ -231,13 +243,14 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesCreateAttributesCreatePointAttribute. """ self._attribute_parameters = attribute_parameters @@ -260,7 +273,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 88a2a526..a4cad241 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "axis_name": "axisName", @@ -63,11 +73,11 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,7 +111,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._axis_name = None @@ -136,7 +146,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Returns @@ -147,7 +157,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Parameters @@ -158,7 +170,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: self._unit = unit @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Returns @@ -169,7 +181,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesCreateAttributesCreateRangeAttribute. Parameters @@ -197,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 326686d3..aca491b3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "data_rule": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "data_rule": "dataRule", @@ -63,11 +73,11 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "dataRule": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,7 +111,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_unique = None self._data_rule = None @@ -136,7 +146,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_unique(self) -> "bool": + def is_unique(self) -> "Optional[bool]": """Gets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value @@ -148,7 +158,7 @@ def is_unique(self) -> "bool": return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "bool") -> None: + def is_unique(self, is_unique: "Optional[bool]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value @@ -160,7 +170,7 @@ def is_unique(self, is_unique: "bool") -> None: self._is_unique = is_unique @property - def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. Returns @@ -172,7 +182,7 @@ def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @data_rule.setter def data_rule( - self, data_rule: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesCreateAttributesCreateShortTextAttribute. @@ -201,7 +211,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 678e1147..6a174a10 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_create_attributes_create_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "about_attribute": "aboutAttribute", "default_threshold_type": "defaultThresholdType", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "tabularColumns": "GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn", "target": "GrantaServerApiSchemaAttributesTabularAttributeTarget", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -114,7 +124,7 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._display_full_table = None self._display_summary_row_inline = None self._hide_unlinked_rows = None @@ -158,7 +168,7 @@ def type(self, type: "str") -> None: self._type = type @property - def display_full_table(self) -> "bool": + def display_full_table(self) -> "Optional[bool]": """Gets the display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -169,7 +179,7 @@ def display_full_table(self) -> "bool": return self._display_full_table @display_full_table.setter - def display_full_table(self, display_full_table: "bool") -> None: + def display_full_table(self, display_full_table: "Optional[bool]") -> None: """Sets the display_full_table of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters @@ -180,7 +190,7 @@ def display_full_table(self, display_full_table: "bool") -> None: self._display_full_table = display_full_table @property - def display_summary_row_inline(self) -> "bool": + def display_summary_row_inline(self) -> "Optional[bool]": """Gets the display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -191,7 +201,9 @@ def display_summary_row_inline(self) -> "bool": return self._display_summary_row_inline @display_summary_row_inline.setter - def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None: + def display_summary_row_inline( + self, display_summary_row_inline: "Optional[bool]" + ) -> None: """Sets the display_summary_row_inline of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters @@ -202,7 +214,7 @@ def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None self._display_summary_row_inline = display_summary_row_inline @property - def hide_unlinked_rows(self) -> "bool": + def hide_unlinked_rows(self) -> "Optional[bool]": """Gets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -213,7 +225,7 @@ def hide_unlinked_rows(self) -> "bool": return self._hide_unlinked_rows @hide_unlinked_rows.setter - def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: + def hide_unlinked_rows(self, hide_unlinked_rows: "Optional[bool]") -> None: """Sets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters @@ -226,7 +238,7 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: @property def tabular_columns( self, - ) -> "list[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]": + ) -> "Optional[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -239,19 +251,21 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( self, - tabular_columns: "list[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]", + tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn]]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Parameters ---------- - tabular_columns: list[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn] + tabular_columns: List[GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn] The tabular_columns of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. """ self._tabular_columns = tabular_columns @property - def target(self) -> "GrantaServerApiSchemaAttributesTabularAttributeTarget": + def target( + self, + ) -> "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]": """Gets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. Returns @@ -263,7 +277,7 @@ def target(self) -> "GrantaServerApiSchemaAttributesTabularAttributeTarget": @target.setter def target( - self, target: "GrantaServerApiSchemaAttributesTabularAttributeTarget" + self, target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesCreateAttributesCreateTabularAttribute. @@ -292,7 +306,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1a867bd5..dac164fe 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesDateTimeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesDateTimeAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesDateTimeAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e5b93219..ca27881a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesDiscreteAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "display_names": "dict(str, str)", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaAttributesDiscreteAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "discrete_type": "discreteType", "display_names": "displayNames", @@ -69,11 +79,11 @@ class GrantaServerApiSchemaAttributesDiscreteAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -116,9 +126,9 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None - self._discrete_type = None - self._is_multi_valued = None + 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 = type self.discrete_type = discrete_type @@ -216,7 +226,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d026418c..a3f75c13 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_parameters": "list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_parameters": "attributeParameters", "default_threshold_type": "defaultThresholdType", "discrete_type": "discreteType", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "attributeParameters": "GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,9 +127,9 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None - self._discrete_type = None - self._attribute_parameters = None + 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 = type self.discrete_type = discrete_type @@ -178,7 +188,7 @@ def discrete_type( @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]": + ) -> "List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. Returns @@ -191,13 +201,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]", + attribute_parameters: "List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. """ if attribute_parameters is None: @@ -224,7 +234,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e9ccd808..cf1a25de 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelBase): +class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelB discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "float", "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "parameter": "parameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,7 @@ def __init__( self.default_value = default_value @property - def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Returns @@ -86,7 +96,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @parameter.setter def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. @@ -98,7 +108,7 @@ def parameter( self._parameter = parameter @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Returns @@ -109,7 +119,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. Parameters @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f29dd3ed..dd57e164 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesFileAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesFileAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesFileAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a7824e15..6e7f2173 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_parameters": "list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", @@ -56,7 +66,7 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_parameters": "attributeParameters", "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", @@ -71,12 +81,12 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "attributeParameters": "GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -121,10 +131,10 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None - self._attribute_parameters = None - self._is_range = None + self._attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] = None # type: ignore[assignment] + self._is_range: bool = None # type: ignore[assignment] self.type = type if unit is not None: @@ -157,7 +167,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Returns @@ -168,7 +178,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Parameters @@ -181,7 +191,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]": + ) -> "List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Returns @@ -194,13 +204,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]", + attribute_parameters: "List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. """ if attribute_parameters is None: @@ -251,7 +261,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 be87ea9c..3c355260 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase): +class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,27 +46,27 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "float", "interpolation_method": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "scale_type": "GrantaServerApiSchemaAttributesAttributeScaleType", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "interpolation_method": "interpolationMethod", "parameter": "parameter", "scale_type": "scaleType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "interpolationMethod": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "scaleType": "GrantaServerApiSchemaAttributesAttributeScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( self.scale_type = scale_type @property - def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -102,7 +112,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @parameter.setter def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. @@ -114,7 +124,7 @@ def parameter( self._parameter = parameter @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -125,7 +135,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Parameters @@ -138,7 +148,7 @@ def default_value(self, default_value: "float") -> None: @property def interpolation_method( self, - ) -> "GrantaServerApiSchemaAttributesAttributeInterpolationMethod": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -151,7 +161,7 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", + interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. @@ -163,7 +173,9 @@ def interpolation_method( self._interpolation_method = interpolation_method @property - def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": + def scale_type( + self, + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": """Gets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. Returns @@ -175,7 +187,7 @@ def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": @scale_type.setter def scale_type( - self, scale_type: "GrantaServerApiSchemaAttributesAttributeScaleType" + self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b59439c8..67a961b5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesHyperlinkAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesHyperlinkAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesHyperlinkAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e24c0c93..8a5d0f73 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesIntegerAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesIntegerAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,9 +77,9 @@ class GrantaServerApiSchemaAttributesIntegerAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -110,8 +120,8 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None - self._is_unique = None + self._type: str = None # type: ignore[assignment] + self._is_unique: bool = None # type: ignore[assignment] self.type = type self.is_unique = is_unique @@ -184,7 +194,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f329b377..2d54af6f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesLogicalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesLogicalAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesLogicalAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 828e2088..2ab8fe0e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesLongTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesLongTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesLongTextAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 afc72660..6f9587da 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesMathsContent(ModelBase): +class GrantaServerApiSchemaAttributesMathsContent(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaAttributesMathsContent(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_contents": "list[GrantaServerApiSchemaParametersParameterContent]", "transpose_axes": "bool", "use_logarithmic_scale": "bool", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaAttributesMathsContent(ModelBase): "free_parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_contents": "parameterContents", "transpose_axes": "transposeAxes", "use_logarithmic_scale": "useLogarithmicScale", @@ -54,13 +64,13 @@ class GrantaServerApiSchemaAttributesMathsContent(ModelBase): "free_parameter": "freeParameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "expression": "GrantaServerApiSchemaSlimEntitiesSlimExpression", "freeParameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameterContents": "GrantaServerApiSchemaParametersParameterContent", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,11 +94,11 @@ def __init__( free_parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ self._curve_label = None - self._transpose_axes = None - self._use_logarithmic_scale = 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 = None + self._parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] = None # type: ignore[assignment] if curve_label is not None: self.curve_label = curve_label @@ -101,7 +111,7 @@ def __init__( self.parameter_contents = parameter_contents @property - def curve_label(self) -> "str": + def curve_label(self) -> "Optional[str]": """Gets the curve_label of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -112,7 +122,7 @@ def curve_label(self) -> "str": return self._curve_label @curve_label.setter - def curve_label(self, curve_label: "str") -> None: + def curve_label(self, curve_label: "Optional[str]") -> None: """Sets the curve_label of this GrantaServerApiSchemaAttributesMathsContent. Parameters @@ -173,7 +183,7 @@ def use_logarithmic_scale(self, use_logarithmic_scale: "bool") -> None: self._use_logarithmic_scale = use_logarithmic_scale @property - def expression(self) -> "GrantaServerApiSchemaSlimEntitiesSlimExpression": + def expression(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimExpression]": """Gets the expression of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -185,7 +195,7 @@ def expression(self) -> "GrantaServerApiSchemaSlimEntitiesSlimExpression": @expression.setter def expression( - self, expression: "GrantaServerApiSchemaSlimEntitiesSlimExpression" + self, expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimExpression]" ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesMathsContent. @@ -197,7 +207,9 @@ def expression( self._expression = expression @property - def free_parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def free_parameter( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the free_parameter of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -209,7 +221,8 @@ def free_parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @free_parameter.setter def free_parameter( - self, free_parameter: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, + free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesMathsContent. @@ -223,7 +236,7 @@ def free_parameter( @property def parameter_contents( self, - ) -> "list[GrantaServerApiSchemaParametersParameterContent]": + ) -> "List[GrantaServerApiSchemaParametersParameterContent]": """Gets the parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. Returns @@ -236,13 +249,13 @@ def parameter_contents( @parameter_contents.setter def parameter_contents( self, - parameter_contents: "list[GrantaServerApiSchemaParametersParameterContent]", + parameter_contents: "List[GrantaServerApiSchemaParametersParameterContent]", ) -> None: """Sets the parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. Parameters ---------- - parameter_contents: list[GrantaServerApiSchemaParametersParameterContent] + parameter_contents: List[GrantaServerApiSchemaParametersParameterContent] The parameter_contents of this GrantaServerApiSchemaAttributesMathsContent. """ if parameter_contents is None: @@ -269,7 +282,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9f3dc8d9..cf4ee884 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesMathsFunctionalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "allow_all_compatible_expressions": "bool", "allow_anonymous_expressions": "bool", "allow_extrapolation": "bool", @@ -61,7 +71,7 @@ class GrantaServerApiSchemaAttributesMathsFunctionalAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "allow_all_compatible_expressions": "allowAllCompatibleExpressions", "allow_anonymous_expressions": "allowAnonymousExpressions", "allow_extrapolation": "allowExtrapolation", @@ -81,14 +91,14 @@ class GrantaServerApiSchemaAttributesMathsFunctionalAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "expressions": "GrantaServerApiSchemaSlimEntitiesSlimExpression", "defaultContent": "GrantaServerApiSchemaAttributesMathsContent", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -143,15 +153,15 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + 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._allow_all_compatible_expressions = None - self._allow_anonymous_expressions = None - self._default_content = 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 = type if unit is not None: @@ -189,7 +199,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Returns @@ -200,7 +210,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters @@ -213,7 +223,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Returns @@ -226,13 +236,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ if attribute_parameters is None: @@ -242,7 +252,7 @@ def attribute_parameters( self._attribute_parameters = attribute_parameters @property - def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]": + def expressions(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimExpression]": """Gets the expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Returns @@ -254,13 +264,13 @@ def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]" @expressions.setter def expressions( - self, expressions: "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]" + self, expressions: "List[GrantaServerApiSchemaSlimEntitiesSlimExpression]" ) -> None: """Sets the expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. Parameters ---------- - expressions: list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] The expressions of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. """ if expressions is None: @@ -415,7 +425,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0ba2265e..9653c984 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesPictureAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesPictureAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaAttributesPictureAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 06833469..eac29bc2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesPointAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_parameters": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", @@ -56,7 +66,7 @@ class GrantaServerApiSchemaAttributesPointAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_parameters": "attributeParameters", "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", @@ -71,12 +81,12 @@ class GrantaServerApiSchemaAttributesPointAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -121,10 +131,10 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None - self._is_multi_valued = None - self._attribute_parameters = None + self._is_multi_valued: bool = None # type: ignore[assignment] + self._attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] self.type = type if unit is not None: @@ -157,7 +167,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaAttributesPointAttribute. Returns @@ -168,7 +178,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesPointAttribute. Parameters @@ -205,7 +215,7 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. Returns @@ -218,13 +228,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + attribute_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. """ if attribute_parameters is None: @@ -251,7 +261,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cf371c9d..c74aeec7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesRangeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesRangeAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaAttributesRangeAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self.type = type @@ -144,7 +154,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaAttributesRangeAttribute. Returns @@ -155,7 +165,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaAttributesRangeAttribute. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 6f16255c..6c0180d8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesShortTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaAttributesShortTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -69,11 +79,11 @@ class GrantaServerApiSchemaAttributesShortTextAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "dataRule": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -116,8 +126,8 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None - self._is_unique = None + self._type: str = None # type: ignore[assignment] + self._is_unique: bool = None # type: ignore[assignment] self._data_rule = None self.type = type @@ -176,7 +186,7 @@ def is_unique(self, is_unique: "bool") -> None: self._is_unique = is_unique @property - def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. Returns @@ -188,7 +198,7 @@ def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @data_rule.setter def data_rule( - self, data_rule: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. @@ -217,7 +227,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 33f6aeca..99b5c8d4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesTabularAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_full_table": "bool", "display_names": "dict(str, str)", @@ -58,7 +68,7 @@ class GrantaServerApiSchemaAttributesTabularAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_full_table": "displayFullTable", "display_names": "displayNames", @@ -75,12 +85,12 @@ class GrantaServerApiSchemaAttributesTabularAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "target": "GrantaServerApiSchemaAttributesTabularAttributeTarget", "tabularColumns": "GrantaServerApiSchemaTabularColumnsTabularColumn", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -129,12 +139,12 @@ def __init__( axis_name=axis_name, help_path=help_path, ) - self._type = None - self._display_full_table = None - self._display_summary_row_inline = None - self._hide_unlinked_rows = None + 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 = None + self._tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] = None # type: ignore[assignment] self.type = type self.display_full_table = display_full_table @@ -247,7 +257,9 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: self._hide_unlinked_rows = hide_unlinked_rows @property - def target(self) -> "GrantaServerApiSchemaAttributesTabularAttributeTarget": + def target( + self, + ) -> "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]": """Gets the target of this GrantaServerApiSchemaAttributesTabularAttribute. Returns @@ -259,7 +271,7 @@ def target(self) -> "GrantaServerApiSchemaAttributesTabularAttributeTarget": @target.setter def target( - self, target: "GrantaServerApiSchemaAttributesTabularAttributeTarget" + self, target: "Optional[GrantaServerApiSchemaAttributesTabularAttributeTarget]" ) -> None: """Sets the target of this GrantaServerApiSchemaAttributesTabularAttribute. @@ -273,7 +285,7 @@ def target( @property def tabular_columns( self, - ) -> "list[GrantaServerApiSchemaTabularColumnsTabularColumn]": + ) -> "List[GrantaServerApiSchemaTabularColumnsTabularColumn]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. Returns @@ -285,13 +297,13 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( - self, tabular_columns: "list[GrantaServerApiSchemaTabularColumnsTabularColumn]" + self, tabular_columns: "List[GrantaServerApiSchemaTabularColumnsTabularColumn]" ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. Parameters ---------- - tabular_columns: list[GrantaServerApiSchemaTabularColumnsTabularColumn] + tabular_columns: List[GrantaServerApiSchemaTabularColumnsTabularColumn] The tabular_columns of this GrantaServerApiSchemaAttributesTabularAttribute. """ if tabular_columns is None: @@ -316,7 +328,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0c65b486..f4dff725 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): +class GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaAttributesTabularAttributeTarget(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "target_attribute_guid": "str", "target_database_guid": "str", "target_database_version_guid": "str", "target_table_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "target_attribute_guid": "targetAttributeGuid", "target_database_guid": "targetDatabaseGuid", "target_database_version_guid": "targetDatabaseVersionGuid", "target_table_guid": "targetTableGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.target_attribute_guid = target_attribute_guid @property - def target_database_guid(self) -> "str": + def target_database_guid(self) -> "Optional[str]": """Gets the target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns @@ -97,7 +107,7 @@ def target_database_guid(self) -> "str": return self._target_database_guid @target_database_guid.setter - def target_database_guid(self, target_database_guid: "str") -> None: + def target_database_guid(self, target_database_guid: "Optional[str]") -> None: """Sets the target_database_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -108,7 +118,7 @@ def target_database_guid(self, target_database_guid: "str") -> None: self._target_database_guid = target_database_guid @property - def target_database_version_guid(self) -> "str": + def target_database_version_guid(self) -> "Optional[str]": """Gets the target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns @@ -119,7 +129,9 @@ def target_database_version_guid(self) -> "str": return self._target_database_version_guid @target_database_version_guid.setter - def target_database_version_guid(self, target_database_version_guid: "str") -> None: + def target_database_version_guid( + self, target_database_version_guid: "Optional[str]" + ) -> None: """Sets the target_database_version_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -130,7 +142,7 @@ def target_database_version_guid(self, target_database_version_guid: "str") -> N self._target_database_version_guid = target_database_version_guid @property - def target_table_guid(self) -> "str": + def target_table_guid(self) -> "Optional[str]": """Gets the target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns @@ -141,7 +153,7 @@ def target_table_guid(self) -> "str": return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "str") -> None: + def target_table_guid(self, target_table_guid: "Optional[str]") -> None: """Sets the target_table_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -152,7 +164,7 @@ def target_table_guid(self, target_table_guid: "str") -> None: self._target_table_guid = target_table_guid @property - def target_attribute_guid(self) -> "str": + def target_attribute_guid(self) -> "Optional[str]": """Gets the target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Returns @@ -163,7 +175,7 @@ def target_attribute_guid(self) -> "str": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "str") -> None: + def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: """Sets the target_attribute_guid of this GrantaServerApiSchemaAttributesTabularAttributeTarget. Parameters @@ -191,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8874b68a..9af184a8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -47,7 +57,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -56,7 +66,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): "name": "name", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "aboutAttribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } @@ -79,7 +89,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): "mathsFunctional".lower(): "#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -125,7 +135,7 @@ def __init__( @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -138,7 +148,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. @@ -150,7 +160,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def axis_name(self) -> "str": + def axis_name(self) -> "Optional[str]": """Gets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -161,7 +171,7 @@ def axis_name(self) -> "str": return self._axis_name @axis_name.setter - def axis_name(self, axis_name: "str") -> None: + def axis_name(self, axis_name: "Optional[str]") -> None: """Sets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters @@ -172,7 +182,7 @@ def axis_name(self, axis_name: "str") -> None: self._axis_name = axis_name @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -183,7 +193,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters @@ -194,7 +204,9 @@ def help_path(self, help_path: "str") -> None: self._help_path = help_path @property - def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def about_attribute( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -206,7 +218,7 @@ def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @about_attribute.setter def about_attribute( - self, about_attribute: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. @@ -218,7 +230,7 @@ def about_attribute( self._about_attribute = about_attribute @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -229,7 +241,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters @@ -240,7 +252,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Returns @@ -251,7 +263,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. Parameters @@ -273,19 +285,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c9355e42..fd4a2e7c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 84f2c6fa..0f8d1cbe 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -63,9 +73,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_multi_valued = None self.type = type @@ -132,7 +142,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_multi_valued(self) -> "bool": + def is_multi_valued(self) -> "Optional[bool]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. Returns @@ -143,7 +153,7 @@ def is_multi_valued(self) -> "bool": return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "bool") -> None: + def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. Parameters @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1e3577e2..e6b5a2c2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attribute_parameters": "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]", "axis_name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "attribute_parameters": "attributeParameters", "axis_name": "axisName", @@ -63,11 +73,11 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributeParameters": "GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -102,7 +112,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._attribute_parameters = None self.type = type @@ -136,7 +146,7 @@ def type(self, type: "str") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]": + ) -> "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. Returns @@ -149,13 +159,13 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]", + attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. """ self._attribute_parameters = attribute_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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 80098aba..916d2192 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter( - ModelBase -): +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,21 +46,21 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAtt discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "float", "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "parameter": "parameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,7 +84,7 @@ def __init__( self.default_value = default_value @property - def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Returns @@ -88,7 +96,7 @@ def parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @parameter.setter def parameter( - self, parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. @@ -100,7 +108,7 @@ def parameter( self._parameter = parameter @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Returns @@ -111,7 +119,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttributeParameter. Parameters @@ -139,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cf86481d..7a50355d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 30bf4fdd..38c6de70 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attribute_parameters": "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]", "axis_name": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "attribute_parameters": "attributeParameters", "axis_name": "axisName", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -111,7 +121,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._attribute_parameters = None self._is_range = None @@ -149,7 +159,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns @@ -160,7 +170,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters @@ -173,7 +185,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]": + ) -> "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns @@ -186,19 +198,19 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( self, - attribute_parameters: "list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]", + attribute_parameters: "Optional[List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter] + attribute_parameters: List[GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. """ self._attribute_parameters = attribute_parameters @property - def is_range(self) -> "bool": + def is_range(self) -> "Optional[bool]": """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. Returns @@ -209,7 +221,7 @@ def is_range(self) -> "bool": return self._is_range @is_range.setter - def is_range(self, is_range: "bool") -> None: + def is_range(self, is_range: "Optional[bool]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 07e323a4..3b9a148f 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter( - ModelBase -): +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,26 +46,26 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_value": "float", "interpolation_method": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "parameter_guid": "str", "scale_type": "GrantaServerApiSchemaAttributesAttributeScaleType", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_value": "defaultValue", "interpolation_method": "interpolationMethod", "parameter_guid": "parameterGuid", "scale_type": "scaleType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "interpolationMethod": "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", "scaleType": "GrantaServerApiSchemaAttributesAttributeScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,7 +99,7 @@ def __init__( self.scale_type = scale_type @property - def parameter_guid(self) -> "str": + def parameter_guid(self) -> "Optional[str]": """Gets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -102,7 +110,7 @@ def parameter_guid(self) -> "str": return self._parameter_guid @parameter_guid.setter - def parameter_guid(self, parameter_guid: "str") -> None: + def parameter_guid(self, parameter_guid: "Optional[str]") -> None: """Sets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters @@ -113,7 +121,7 @@ def parameter_guid(self, parameter_guid: "str") -> None: self._parameter_guid = parameter_guid @property - def default_value(self) -> "float": + def default_value(self) -> "Optional[float]": """Gets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -124,7 +132,7 @@ def default_value(self) -> "float": return self._default_value @default_value.setter - def default_value(self, default_value: "float") -> None: + def default_value(self, default_value: "Optional[float]") -> None: """Sets the default_value of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Parameters @@ -137,7 +145,7 @@ def default_value(self, default_value: "float") -> None: @property def interpolation_method( self, - ) -> "GrantaServerApiSchemaAttributesAttributeInterpolationMethod": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]": """Gets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -150,7 +158,7 @@ def interpolation_method( @interpolation_method.setter def interpolation_method( self, - interpolation_method: "GrantaServerApiSchemaAttributesAttributeInterpolationMethod", + interpolation_method: "Optional[GrantaServerApiSchemaAttributesAttributeInterpolationMethod]", ) -> None: """Sets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. @@ -162,7 +170,9 @@ def interpolation_method( self._interpolation_method = interpolation_method @property - def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": + def scale_type( + self, + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]": """Gets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. Returns @@ -174,7 +184,7 @@ def scale_type(self) -> "GrantaServerApiSchemaAttributesAttributeScaleType": @scale_type.setter def scale_type( - self, scale_type: "GrantaServerApiSchemaAttributesAttributeScaleType" + self, scale_type: "Optional[GrantaServerApiSchemaAttributesAttributeScaleType]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttributeParameter. @@ -203,7 +213,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 78268e55..9936ddd0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 79ded7be..25114544 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -63,9 +73,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_unique = None self.type = type @@ -132,7 +142,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_unique(self) -> "bool": + def is_unique(self) -> "Optional[bool]": """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value @@ -144,7 +154,7 @@ def is_unique(self) -> "bool": return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "bool") -> None: + def is_unique(self, is_unique: "Optional[bool]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. Whether or not the attribute is constrained to contain a unique value @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 dae7d605..32bc7a2e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 13b1f1e1..22e919d3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1391239a..238765d0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBase): +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBas discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "curve_label": "str", "expression": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "free_parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBas "use_logarithmic_scale": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "curve_label": "curveLabel", "expression": "expression", "free_parameter": "freeParameter", @@ -54,13 +64,13 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent(ModelBas "use_logarithmic_scale": "useLogarithmicScale", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "expression": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "freeParameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "parameterContents": "GrantaServerApiSchemaParametersUpdateParameterContent", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -104,7 +114,7 @@ def __init__( self.parameter_contents = parameter_contents @property - def curve_label(self) -> "str": + def curve_label(self) -> "Optional[str]": """Gets the curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -115,7 +125,7 @@ def curve_label(self) -> "str": return self._curve_label @curve_label.setter - def curve_label(self, curve_label: "str") -> None: + def curve_label(self, curve_label: "Optional[str]") -> None: """Sets the curve_label of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters @@ -126,7 +136,7 @@ def curve_label(self, curve_label: "str") -> None: self._curve_label = curve_label @property - def transpose_axes(self) -> "bool": + def transpose_axes(self) -> "Optional[bool]": """Gets the transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -137,7 +147,7 @@ def transpose_axes(self) -> "bool": return self._transpose_axes @transpose_axes.setter - def transpose_axes(self, transpose_axes: "bool") -> None: + def transpose_axes(self, transpose_axes: "Optional[bool]") -> None: """Sets the transpose_axes of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters @@ -148,7 +158,7 @@ def transpose_axes(self, transpose_axes: "bool") -> None: self._transpose_axes = transpose_axes @property - def use_logarithmic_scale(self) -> "bool": + def use_logarithmic_scale(self) -> "Optional[bool]": """Gets the use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -159,7 +169,7 @@ def use_logarithmic_scale(self) -> "bool": return self._use_logarithmic_scale @use_logarithmic_scale.setter - def use_logarithmic_scale(self, use_logarithmic_scale: "bool") -> None: + def use_logarithmic_scale(self, use_logarithmic_scale: "Optional[bool]") -> None: """Sets the use_logarithmic_scale of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters @@ -170,7 +180,7 @@ def use_logarithmic_scale(self, use_logarithmic_scale: "bool") -> None: self._use_logarithmic_scale = use_logarithmic_scale @property - def expression(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def expression(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -182,7 +192,7 @@ def expression(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @expression.setter def expression( - self, expression: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, expression: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the expression of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. @@ -194,7 +204,7 @@ def expression( self._expression = expression @property - def free_parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def free_parameter(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -206,7 +216,7 @@ def free_parameter(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @free_parameter.setter def free_parameter( - self, free_parameter: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, free_parameter: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the free_parameter of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. @@ -220,7 +230,7 @@ def free_parameter( @property def parameter_contents( self, - ) -> "list[GrantaServerApiSchemaParametersUpdateParameterContent]": + ) -> "Optional[List[GrantaServerApiSchemaParametersUpdateParameterContent]]": """Gets the parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Returns @@ -233,13 +243,13 @@ def parameter_contents( @parameter_contents.setter def parameter_contents( self, - parameter_contents: "list[GrantaServerApiSchemaParametersUpdateParameterContent]", + parameter_contents: "Optional[List[GrantaServerApiSchemaParametersUpdateParameterContent]]", ) -> None: """Sets the parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. Parameters ---------- - parameter_contents: list[GrantaServerApiSchemaParametersUpdateParameterContent] + parameter_contents: List[GrantaServerApiSchemaParametersUpdateParameterContent] The parameter_contents of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent. """ self._parameter_contents = parameter_contents @@ -262,7 +272,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 6a0e8ddb..bb159ed2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttrib discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "allow_all_compatible_expressions": "bool", "allow_anonymous_expressions": "bool", @@ -59,7 +69,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttrib "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "allow_all_compatible_expressions": "allowAllCompatibleExpressions", "allow_anonymous_expressions": "allowAnonymousExpressions", @@ -77,14 +87,14 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttrib "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "expressions": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "defaultContent": "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -133,7 +143,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._attribute_parameters = None self._expressions = None @@ -186,7 +196,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -197,7 +207,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -210,7 +222,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -222,19 +234,22 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ self._attribute_parameters = attribute_parameters @property - def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def expressions( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -246,19 +261,19 @@ def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": @expressions.setter def expressions( - self, expressions: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" ) -> None: """Sets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters ---------- - expressions: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. """ self._expressions = expressions @property - def allow_extrapolation(self) -> "bool": + def allow_extrapolation(self) -> "Optional[bool]": """Gets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -269,7 +284,7 @@ def allow_extrapolation(self) -> "bool": return self._allow_extrapolation @allow_extrapolation.setter - def allow_extrapolation(self, allow_extrapolation: "bool") -> None: + def allow_extrapolation(self, allow_extrapolation: "Optional[bool]") -> None: """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -280,7 +295,7 @@ def allow_extrapolation(self, allow_extrapolation: "bool") -> None: self._allow_extrapolation = allow_extrapolation @property - def is_range(self) -> "bool": + def is_range(self) -> "Optional[bool]": """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -291,7 +306,7 @@ def is_range(self) -> "bool": return self._is_range @is_range.setter - def is_range(self, is_range: "bool") -> None: + def is_range(self, is_range: "Optional[bool]") -> None: """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -304,7 +319,7 @@ def is_range(self, is_range: "bool") -> None: @property def default_content( self, - ) -> "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent": + ) -> "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent]": """Gets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -317,7 +332,7 @@ def default_content( @default_content.setter def default_content( self, - default_content: "GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent", + default_content: "Optional[GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsContent]", ) -> None: """Sets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. @@ -329,7 +344,7 @@ def default_content( self._default_content = default_content @property - def allow_all_compatible_expressions(self) -> "bool": + def allow_all_compatible_expressions(self) -> "Optional[bool]": """Gets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -341,7 +356,7 @@ def allow_all_compatible_expressions(self) -> "bool": @allow_all_compatible_expressions.setter def allow_all_compatible_expressions( - self, allow_all_compatible_expressions: "bool" + self, allow_all_compatible_expressions: "Optional[bool]" ) -> None: """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. @@ -353,7 +368,7 @@ def allow_all_compatible_expressions( self._allow_all_compatible_expressions = allow_all_compatible_expressions @property - def allow_anonymous_expressions(self) -> "bool": + def allow_anonymous_expressions(self) -> "Optional[bool]": """Gets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Returns @@ -364,7 +379,9 @@ def allow_anonymous_expressions(self) -> "bool": return self._allow_anonymous_expressions @allow_anonymous_expressions.setter - def allow_anonymous_expressions(self, allow_anonymous_expressions: "bool") -> None: + def allow_anonymous_expressions( + self, allow_anonymous_expressions: "Optional[bool]" + ) -> None: """Sets the allow_anonymous_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. Parameters @@ -392,7 +409,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 ba6c4f07..3f26461c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -61,9 +71,9 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2be2d1e2..71e9ef51 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attribute_parameters": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", "axis_name": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "attribute_parameters": "attributeParameters", "axis_name": "axisName", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "attributeParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -111,7 +121,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._is_multi_valued = None self._attribute_parameters = None @@ -149,7 +159,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns @@ -160,7 +170,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters @@ -171,7 +183,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: self._unit = unit @property - def is_multi_valued(self) -> "bool": + def is_multi_valued(self) -> "Optional[bool]": """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns @@ -182,7 +194,7 @@ def is_multi_valued(self) -> "bool": return self._is_multi_valued @is_multi_valued.setter - def is_multi_valued(self, is_multi_valued: "bool") -> None: + def is_multi_valued(self, is_multi_valued: "Optional[bool]") -> None: """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters @@ -195,7 +207,7 @@ def is_multi_valued(self, is_multi_valued: "bool") -> None: @property def attribute_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Returns @@ -207,13 +219,14 @@ def attribute_parameters( @attribute_parameters.setter def attribute_parameters( - self, attribute_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + attribute_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. Parameters ---------- - attribute_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + attribute_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. """ self._attribute_parameters = attribute_parameters @@ -236,7 +249,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 44cf4f88..87e395eb 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -63,11 +73,11 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -102,7 +112,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self.type = type @@ -134,7 +144,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. Returns @@ -145,7 +155,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. Parameters @@ -173,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9e73ab94..569f0212 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "data_rule": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "data_rule": "dataRule", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "dataRule": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._is_unique = None self._data_rule = None @@ -141,7 +151,7 @@ def type(self, type: "str") -> None: self._type = type @property - def is_unique(self) -> "bool": + def is_unique(self) -> "Optional[bool]": """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value @@ -153,7 +163,7 @@ def is_unique(self) -> "bool": return self._is_unique @is_unique.setter - def is_unique(self, is_unique: "bool") -> None: + def is_unique(self, is_unique: "Optional[bool]") -> None: """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Whether or not the attribute is constrained to contain a unique value @@ -165,7 +175,7 @@ def is_unique(self, is_unique: "bool") -> None: self._is_unique = is_unique @property - def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def data_rule(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. Returns @@ -177,7 +187,7 @@ def data_rule(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @data_rule.setter def data_rule( - self, data_rule: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, data_rule: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. @@ -206,7 +216,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 801b18ea..470ac07a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_attributes_update_attributes_update_attribute import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "axis_name": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "about_attribute": "aboutAttribute", "axis_name": "axisName", "default_threshold_type": "defaultThresholdType", @@ -69,11 +79,11 @@ class GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "tabularColumns": "GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -114,7 +124,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._display_full_table = None self._display_summary_row_inline = None self._hide_unlinked_rows = None @@ -155,7 +165,7 @@ def type(self, type: "str") -> None: self._type = type @property - def display_full_table(self) -> "bool": + def display_full_table(self) -> "Optional[bool]": """Gets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns @@ -166,7 +176,7 @@ def display_full_table(self) -> "bool": return self._display_full_table @display_full_table.setter - def display_full_table(self, display_full_table: "bool") -> None: + def display_full_table(self, display_full_table: "Optional[bool]") -> None: """Sets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters @@ -177,7 +187,7 @@ def display_full_table(self, display_full_table: "bool") -> None: self._display_full_table = display_full_table @property - def display_summary_row_inline(self) -> "bool": + def display_summary_row_inline(self) -> "Optional[bool]": """Gets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns @@ -188,7 +198,9 @@ def display_summary_row_inline(self) -> "bool": return self._display_summary_row_inline @display_summary_row_inline.setter - def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None: + def display_summary_row_inline( + self, display_summary_row_inline: "Optional[bool]" + ) -> None: """Sets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters @@ -199,7 +211,7 @@ def display_summary_row_inline(self, display_summary_row_inline: "bool") -> None self._display_summary_row_inline = display_summary_row_inline @property - def hide_unlinked_rows(self) -> "bool": + def hide_unlinked_rows(self) -> "Optional[bool]": """Gets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns @@ -210,7 +222,7 @@ def hide_unlinked_rows(self) -> "bool": return self._hide_unlinked_rows @hide_unlinked_rows.setter - def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: + def hide_unlinked_rows(self, hide_unlinked_rows: "Optional[bool]") -> None: """Sets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters @@ -223,7 +235,7 @@ def hide_unlinked_rows(self, hide_unlinked_rows: "bool") -> None: @property def tabular_columns( self, - ) -> "list[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]": + ) -> "Optional[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]]": """Gets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Returns @@ -236,13 +248,13 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( self, - tabular_columns: "list[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]", + tabular_columns: "Optional[List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn]]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. Parameters ---------- - tabular_columns: list[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn] + tabular_columns: List[GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn] The tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. """ self._tabular_columns = tabular_columns @@ -265,7 +277,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 152cac2e..5a745b39 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): +class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "record_history_guid": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "record_history_guid": "recordHistoryGuid", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.record_history_guid = record_history_guid @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The value to check an attributes data validation rules against @@ -84,7 +94,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. The value to check an attributes data validation rules against @@ -96,7 +106,7 @@ def value(self, value: "str") -> None: self._value = value @property - def record_history_guid(self) -> "str": + def record_history_guid(self) -> "Optional[str]": """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 @@ -108,7 +118,7 @@ def record_history_guid(self) -> "str": return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "str") -> None: + def record_history_guid(self, record_history_guid: "Optional[str]") -> 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 @@ -137,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 88ffba20..91b86d83 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): +class GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "description": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "description": "description", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( """ self._description = None self._value = None - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] if description is not None: self.description = description @@ -84,7 +94,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaConfigurationsConfiguration. Returns @@ -95,7 +105,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsConfiguration. Parameters @@ -106,7 +116,7 @@ def description(self, description: "str") -> None: self._description = description @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSchemaConfigurationsConfiguration. Returns @@ -117,7 +127,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSchemaConfigurationsConfiguration. Parameters @@ -193,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f31796f3..a2d8b65d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): +class GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "configurations": "list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]", } - attribute_map = { + attribute_map: Dict[str, str] = { "configurations": "configurations", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "configurations": "GrantaServerApiSchemaSlimEntitiesSlimConfiguration", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,14 +71,14 @@ def __init__( ---------- configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] """ - self._configurations = None + self._configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] = None # type: ignore[assignment] self.configurations = configurations @property def configurations( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]": """Gets the configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. Returns @@ -80,13 +90,13 @@ def configurations( @configurations.setter def configurations( - self, configurations: "list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]" + self, configurations: "List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]" ) -> None: """Sets the configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. Parameters ---------- - configurations: list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] + configurations: List[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] The configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. """ if configurations is None: @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 25c59608..52104aa7 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): +class GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "value": "str", "description": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "value": "value", "description": "description", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,8 +82,8 @@ def __init__( guid: str, optional """ self._description = None - self._value = None - self._name = None + self._value: str = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self._guid = None if description is not None: @@ -84,7 +94,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Returns @@ -95,7 +105,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Parameters @@ -154,7 +164,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Returns @@ -165,7 +175,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. Parameters @@ -193,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9d9df504..694e248c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): +class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "guid": "str", "name": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "guid": "guid", "name": "name", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns @@ -97,7 +107,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters @@ -108,7 +118,7 @@ def description(self, description: "str") -> None: self._description = description @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns @@ -119,7 +129,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters @@ -130,7 +140,7 @@ def value(self, value: "str") -> None: self._value = value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns @@ -141,7 +151,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Parameters @@ -152,7 +162,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. Returns @@ -163,7 +173,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 df778d5f..0f137d90 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConstantsConstant(ModelBase): +class GrantaServerApiSchemaConstantsConstant(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaConstantsConstant(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "value": "float", "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "value": "value", "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,9 +84,9 @@ def __init__( unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ self._unit = None - self._value = None - self._name = None - self._guid = None + self._value: float = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] if unit is not None: self.unit = unit @@ -85,7 +95,7 @@ def __init__( self.guid = guid @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaConstantsConstant. Returns @@ -96,7 +106,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaConstantsConstant. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 89969308..452ddc5f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): +class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "constants": "list[GrantaServerApiSchemaSlimEntitiesSlimConstant]", } - attribute_map = { + attribute_map: Dict[str, str] = { "constants": "constants", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "constants": "GrantaServerApiSchemaSlimEntitiesSlimConstant", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.constants = constants @property - def constants(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimConstant]": + def constants( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimConstant]]": """Gets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. Returns @@ -79,13 +91,13 @@ def constants(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimConstant]": @constants.setter def constants( - self, constants: "list[GrantaServerApiSchemaSlimEntitiesSlimConstant]" + self, constants: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimConstant]]" ) -> None: """Sets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. Parameters ---------- - constants: list[GrantaServerApiSchemaSlimEntitiesSlimConstant] + constants: List[GrantaServerApiSchemaSlimEntitiesSlimConstant] The constants of this GrantaServerApiSchemaConstantsConstantsInfo. """ self._constants = constants @@ -108,7 +120,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 78bd0001..d5eb7e89 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConstantsCreateConstant(ModelBase): +class GrantaServerApiSchemaConstantsCreateConstant(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaConstantsCreateConstant(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "value": "float", "guid": "str", "unit_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "value": "value", "guid": "guid", "unit_guid": "unitGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,8 +82,8 @@ def __init__( unit_guid: str, optional """ self._unit_guid = None - self._value = None - self._name = None + self._value: float = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self._guid = None if unit_guid is not None: @@ -84,7 +94,7 @@ def __init__( self.guid = guid @property - def unit_guid(self) -> "str": + def unit_guid(self) -> "Optional[str]": """Gets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. Returns @@ -95,7 +105,7 @@ def unit_guid(self) -> "str": return self._unit_guid @unit_guid.setter - def unit_guid(self, unit_guid: "str") -> None: + def unit_guid(self, unit_guid: "Optional[str]") -> None: """Sets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. Parameters @@ -154,7 +164,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaConstantsCreateConstant. Returns @@ -165,7 +175,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaConstantsCreateConstant. Parameters @@ -193,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 73a70901..e38581c6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): +class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "unit_guid": "str", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "unit_guid": "unitGuid", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.guid = guid @property - def unit_guid(self) -> "str": + def unit_guid(self) -> "Optional[str]": """Gets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. Returns @@ -97,7 +107,7 @@ def unit_guid(self) -> "str": return self._unit_guid @unit_guid.setter - def unit_guid(self, unit_guid: "str") -> None: + def unit_guid(self, unit_guid: "Optional[str]") -> None: """Sets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters @@ -108,7 +118,7 @@ def unit_guid(self, unit_guid: "str") -> None: self._unit_guid = unit_guid @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiSchemaConstantsUpdateConstant. Returns @@ -119,7 +129,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters @@ -130,7 +140,7 @@ def value(self, value: "float") -> None: self._value = value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaConstantsUpdateConstant. Returns @@ -141,7 +151,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaConstantsUpdateConstant. Parameters @@ -152,7 +162,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. Returns @@ -163,7 +173,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b045df9d..5438e556 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDataRulesCreateDataRule(ModelBase): +class GrantaServerApiSchemaDataRulesCreateDataRule(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaDataRulesCreateDataRule(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "name": "str", "regular_expression": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "name": "name", "regular_expression": "regularExpression", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,9 +81,9 @@ def __init__( regular_expression: str guid: str, optional """ - self._description = None - self._regular_expression = None - self._name = None + 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 = description @@ -157,7 +167,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDataRulesCreateDataRule. Returns @@ -168,7 +178,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDataRulesCreateDataRule. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cc906738..1203ce62 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDataRulesDataRule(ModelBase): +class GrantaServerApiSchemaDataRulesDataRule(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaDataRulesDataRule(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "guid": "str", "name": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaDataRulesDataRule(ModelBase): "used_by_attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "guid": "guid", "name": "name", @@ -52,11 +62,11 @@ class GrantaServerApiSchemaDataRulesDataRule(ModelBase): "used_by_attributes": "usedByAttributes", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "usedByAttributes": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,11 +87,11 @@ def __init__( regular_expression: str used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ - self._description = None - self._regular_expression = None - self._used_by_attributes = None - self._name = None - self._guid = None + 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 = description self.regular_expression = regular_expression @@ -142,7 +152,7 @@ def regular_expression(self, regular_expression: "str") -> None: @property def used_by_attributes( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. Returns @@ -155,13 +165,13 @@ def used_by_attributes( @used_by_attributes.setter def used_by_attributes( self, - used_by_attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + used_by_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. Parameters ---------- - used_by_attributes: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + used_by_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The used_by_attributes of this GrantaServerApiSchemaDataRulesDataRule. """ if used_by_attributes is None: @@ -236,7 +246,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3f3039a8..15a62236 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): +class GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDataRulesDataRulesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "data_rules": "list[GrantaServerApiSchemaDataRulesDataRule]", } - attribute_map = { + attribute_map: Dict[str, str] = { "data_rules": "dataRules", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "dataRules": "GrantaServerApiSchemaDataRulesDataRule", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.data_rules = data_rules @property - def data_rules(self) -> "list[GrantaServerApiSchemaDataRulesDataRule]": + def data_rules(self) -> "Optional[List[GrantaServerApiSchemaDataRulesDataRule]]": """Gets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. Returns @@ -79,13 +89,13 @@ def data_rules(self) -> "list[GrantaServerApiSchemaDataRulesDataRule]": @data_rules.setter def data_rules( - self, data_rules: "list[GrantaServerApiSchemaDataRulesDataRule]" + self, data_rules: "Optional[List[GrantaServerApiSchemaDataRulesDataRule]]" ) -> None: """Sets the data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. Parameters ---------- - data_rules: list[GrantaServerApiSchemaDataRulesDataRule] + data_rules: List[GrantaServerApiSchemaDataRulesDataRule] The data_rules of this GrantaServerApiSchemaDataRulesDataRulesInfo. """ self._data_rules = data_rules @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 68c4485b..45985901 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): +class GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaDataRulesUpdateDataRule(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "guid": "str", "name": "str", "regular_expression": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "guid": "guid", "name": "name", "regular_expression": "regularExpression", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns @@ -97,7 +107,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters @@ -108,7 +118,7 @@ def description(self, description: "str") -> None: self._description = description @property - def regular_expression(self) -> "str": + def regular_expression(self) -> "Optional[str]": """Gets the regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns @@ -119,7 +129,7 @@ def regular_expression(self) -> "str": return self._regular_expression @regular_expression.setter - def regular_expression(self, regular_expression: "str") -> None: + def regular_expression(self, regular_expression: "Optional[str]") -> None: """Sets the regular_expression of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters @@ -130,7 +140,7 @@ def regular_expression(self, regular_expression: "str") -> None: self._regular_expression = regular_expression @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns @@ -141,7 +151,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaDataRulesUpdateDataRule. Parameters @@ -152,7 +162,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. Returns @@ -163,7 +173,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDataRulesUpdateDataRule. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c711d534..3b8bd76f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDatabase(ModelBase): +class GrantaServerApiSchemaDatabase(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaDatabase(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "is_locked": "bool", "is_read_only": "bool", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaDatabase(ModelBase): "version_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "is_locked": "isLocked", "is_read_only": "isReadOnly", @@ -74,11 +84,11 @@ class GrantaServerApiSchemaDatabase(ModelBase): "version_guid": "versionGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "status": "GrantaServerApiSchemaDatabaseStatus", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -126,17 +136,17 @@ def __init__( self._notes = None self._currency_code = None self._is_access_controlled = None - self._key = None + self._key: str = None # type: ignore[assignment] self._version_guid = None - self._status = None - self._is_read_only = None - self._is_locked = 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 = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] if author is not None: self.author = author @@ -166,7 +176,7 @@ def __init__( self.guid = guid @property - def author(self) -> "str": + def author(self) -> "Optional[str]": """Gets the author of this GrantaServerApiSchemaDatabase. Returns @@ -177,7 +187,7 @@ def author(self) -> "str": return self._author @author.setter - def author(self, author: "str") -> None: + def author(self, author: "Optional[str]") -> None: """Sets the author of this GrantaServerApiSchemaDatabase. Parameters @@ -188,7 +198,7 @@ def author(self, author: "str") -> None: self._author = author @property - def company(self) -> "str": + def company(self) -> "Optional[str]": """Gets the company of this GrantaServerApiSchemaDatabase. Returns @@ -199,7 +209,7 @@ def company(self) -> "str": return self._company @company.setter - def company(self, company: "str") -> None: + def company(self, company: "Optional[str]") -> None: """Sets the company of this GrantaServerApiSchemaDatabase. Parameters @@ -210,7 +220,7 @@ def company(self, company: "str") -> None: self._company = company @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiSchemaDatabase. Returns @@ -221,7 +231,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiSchemaDatabase. Parameters @@ -232,7 +242,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def currency_code(self) -> "str": + def currency_code(self) -> "Optional[str]": """Gets the currency_code of this GrantaServerApiSchemaDatabase. Returns @@ -243,7 +253,7 @@ def currency_code(self) -> "str": return self._currency_code @currency_code.setter - def currency_code(self, currency_code: "str") -> None: + def currency_code(self, currency_code: "Optional[str]") -> None: """Sets the currency_code of this GrantaServerApiSchemaDatabase. Parameters @@ -254,7 +264,7 @@ def currency_code(self, currency_code: "str") -> None: self._currency_code = currency_code @property - def is_access_controlled(self) -> "bool": + def is_access_controlled(self) -> "Optional[bool]": """Gets the is_access_controlled of this GrantaServerApiSchemaDatabase. Returns @@ -265,7 +275,7 @@ def is_access_controlled(self) -> "bool": return self._is_access_controlled @is_access_controlled.setter - def is_access_controlled(self, is_access_controlled: "bool") -> None: + def is_access_controlled(self, is_access_controlled: "Optional[bool]") -> None: """Sets the is_access_controlled of this GrantaServerApiSchemaDatabase. Parameters @@ -300,7 +310,7 @@ def key(self, key: "str") -> None: self._key = key @property - def version_guid(self) -> "str": + def version_guid(self) -> "Optional[str]": """Gets the version_guid of this GrantaServerApiSchemaDatabase. Returns @@ -311,7 +321,7 @@ def version_guid(self) -> "str": return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "str") -> None: + def version_guid(self, version_guid: "Optional[str]") -> None: """Sets the version_guid of this GrantaServerApiSchemaDatabase. Parameters @@ -394,7 +404,7 @@ def is_locked(self, is_locked: "bool") -> None: self._is_locked = is_locked @property - def index_in_sync(self) -> "bool": + def index_in_sync(self) -> "Optional[bool]": """Gets the index_in_sync of this GrantaServerApiSchemaDatabase. Returns @@ -405,7 +415,7 @@ def index_in_sync(self) -> "bool": return self._index_in_sync @index_in_sync.setter - def index_in_sync(self, index_in_sync: "bool") -> None: + def index_in_sync(self, index_in_sync: "Optional[bool]") -> None: """Sets the index_in_sync of this GrantaServerApiSchemaDatabase. Parameters @@ -416,7 +426,7 @@ def index_in_sync(self, index_in_sync: "bool") -> None: self._index_in_sync = index_in_sync @property - def index_up_to_date(self) -> "bool": + def index_up_to_date(self) -> "Optional[bool]": """Gets the index_up_to_date of this GrantaServerApiSchemaDatabase. Returns @@ -427,7 +437,7 @@ def index_up_to_date(self) -> "bool": return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date(self, index_up_to_date: "bool") -> None: + def index_up_to_date(self, index_up_to_date: "Optional[bool]") -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaDatabase. Parameters @@ -438,7 +448,7 @@ def index_up_to_date(self, index_up_to_date: "bool") -> None: self._index_up_to_date = index_up_to_date @property - def index_out_of_date_duration(self) -> "str": + def index_out_of_date_duration(self) -> "Optional[str]": """Gets the index_out_of_date_duration of this GrantaServerApiSchemaDatabase. Returns @@ -449,7 +459,9 @@ def index_out_of_date_duration(self) -> "str": 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: "str") -> None: + def index_out_of_date_duration( + self, index_out_of_date_duration: "Optional[str]" + ) -> None: """Sets the index_out_of_date_duration of this GrantaServerApiSchemaDatabase. Parameters @@ -460,7 +472,7 @@ def index_out_of_date_duration(self, index_out_of_date_duration: "str") -> None: self._index_out_of_date_duration = index_out_of_date_duration @property - def schema_version(self) -> "str": + def schema_version(self) -> "Optional[str]": """Gets the schema_version of this GrantaServerApiSchemaDatabase. Returns @@ -471,7 +483,7 @@ def schema_version(self) -> "str": return self._schema_version @schema_version.setter - def schema_version(self, schema_version: "str") -> None: + def schema_version(self, schema_version: "Optional[str]") -> None: """Sets the schema_version of this GrantaServerApiSchemaDatabase. Parameters @@ -547,7 +559,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 10fb9fb7..78a97677 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDatabasesInfo(ModelBase): +class GrantaServerApiSchemaDatabasesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDatabasesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "databases": "list[GrantaServerApiSchemaSlimEntitiesSlimDatabase]", } - attribute_map = { + attribute_map: Dict[str, str] = { "databases": "databases", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "databases": "GrantaServerApiSchemaSlimEntitiesSlimDatabase", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.databases = databases @property - def databases(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimDatabase]": + def databases( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase]]": """Gets the databases of this GrantaServerApiSchemaDatabasesInfo. Returns @@ -79,13 +91,13 @@ def databases(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimDatabase]": @databases.setter def databases( - self, databases: "list[GrantaServerApiSchemaSlimEntitiesSlimDatabase]" + self, databases: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimDatabase]]" ) -> None: """Sets the databases of this GrantaServerApiSchemaDatabasesInfo. Parameters ---------- - databases: list[GrantaServerApiSchemaSlimEntitiesSlimDatabase] + databases: List[GrantaServerApiSchemaSlimEntitiesSlimDatabase] The databases of this GrantaServerApiSchemaDatabasesInfo. """ self._databases = databases @@ -108,7 +120,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bdb91173..8d8211e8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteTypesCreateDiscreteType(ModelBase): +class GrantaServerApiSchemaDiscreteTypesCreateDiscreteType(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaDiscreteTypesCreateDiscreteType(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", "is_ordered": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", "is_ordered": "isOrdered", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,7 +78,7 @@ def __init__( is_ordered: bool, optional """ self._is_ordered = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if is_ordered is not None: @@ -78,7 +88,7 @@ def __init__( self.guid = guid @property - def is_ordered(self) -> "bool": + def is_ordered(self) -> "Optional[bool]": """Gets the is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Returns @@ -89,7 +99,7 @@ def is_ordered(self) -> "bool": return self._is_ordered @is_ordered.setter - def is_ordered(self, is_ordered: "bool") -> None: + def is_ordered(self, is_ordered: "Optional[bool]") -> None: """Sets the is_ordered of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Parameters @@ -124,7 +134,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Returns @@ -135,7 +145,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteTypesCreateDiscreteType. Parameters @@ -163,7 +173,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b811e230..cf109a36 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteTypesDiscreteType(ModelBase): +class GrantaServerApiSchemaDiscreteTypesDiscreteType(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaDiscreteTypesDiscreteType(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "is_ordered": "bool", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "is_ordered": "isOrdered", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,9 +77,9 @@ def __init__( is_ordered: bool name: str """ - self._is_ordered = None - self._name = None - self._guid = None + 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 = is_ordered self.name = name @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 055a5ecc..78ed7c29 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): +class GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_types": "list[GrantaServerApiSchemaDiscreteTypesDiscreteType]", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_types": "discreteTypes", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteTypes": "GrantaServerApiSchemaDiscreteTypesDiscreteType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.discrete_types = discrete_types @property - def discrete_types(self) -> "list[GrantaServerApiSchemaDiscreteTypesDiscreteType]": + def discrete_types( + self, + ) -> "Optional[List[GrantaServerApiSchemaDiscreteTypesDiscreteType]]": """Gets the discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. Returns @@ -79,13 +91,14 @@ def discrete_types(self) -> "list[GrantaServerApiSchemaDiscreteTypesDiscreteType @discrete_types.setter def discrete_types( - self, discrete_types: "list[GrantaServerApiSchemaDiscreteTypesDiscreteType]" + self, + discrete_types: "Optional[List[GrantaServerApiSchemaDiscreteTypesDiscreteType]]", ) -> None: """Sets the discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. Parameters ---------- - discrete_types: list[GrantaServerApiSchemaDiscreteTypesDiscreteType] + discrete_types: List[GrantaServerApiSchemaDiscreteTypesDiscreteType] The discrete_types of this GrantaServerApiSchemaDiscreteTypesDiscreteTypesInfo. """ self._discrete_types = discrete_types @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cbeffdc7..253cd733 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): +class GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "is_ordered": "bool", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "is_ordered": "isOrdered", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.guid = guid @property - def is_ordered(self) -> "bool": + def is_ordered(self) -> "Optional[bool]": """Gets the is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns @@ -90,7 +100,7 @@ def is_ordered(self) -> "bool": return self._is_ordered @is_ordered.setter - def is_ordered(self, is_ordered: "bool") -> None: + def is_ordered(self, is_ordered: "Optional[bool]") -> None: """Sets the is_ordered of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters @@ -101,7 +111,7 @@ def is_ordered(self, is_ordered: "bool") -> None: self._is_ordered = is_ordered @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns @@ -112,7 +122,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters @@ -123,7 +133,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Returns @@ -134,7 +144,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteTypesUpdateDiscreteType. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2003385a..122186ca 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue(ModelBase): +class GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( name: str guid: str, optional """ - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.name = name @@ -95,7 +105,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. Returns @@ -106,7 +116,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue. Parameters @@ -134,7 +144,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 6c486b0d..dc204bbd 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteValuesDiscreteValue(ModelBase): +class GrantaServerApiSchemaDiscreteValuesDiscreteValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteValuesDiscreteValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9590b0b5..6b8d7beb 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): +class GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_values": "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_values": "discreteValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteValues": "GrantaServerApiSchemaDiscreteValuesDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( @property def discrete_values( self, - ) -> "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": + ) -> "Optional[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]]": """Gets the discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. Returns @@ -81,13 +91,14 @@ def discrete_values( @discrete_values.setter def discrete_values( - self, discrete_values: "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]" + self, + discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]]", ) -> None: """Sets the discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. Parameters ---------- - discrete_values: list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] The discrete_values of this GrantaServerApiSchemaDiscreteValuesDiscreteValuesInfo. """ self._discrete_values = discrete_values @@ -110,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5dd72497..8f92d172 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): +class GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_values": "list[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_values": "discreteValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "discreteValues": "GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( @property def discrete_values( self, - ) -> "list[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]": + ) -> "Optional[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]]": """Gets the discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. Returns @@ -82,13 +92,13 @@ def discrete_values( @discrete_values.setter def discrete_values( self, - discrete_values: "list[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]", + discrete_values: "Optional[List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue]]", ) -> None: """Sets the discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. Parameters ---------- - discrete_values: list[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue] + discrete_values: List[GrantaServerApiSchemaDiscreteValuesCreateDiscreteValue] The discrete_values of this GrantaServerApiSchemaDiscreteValuesReplaceDiscreteValuesInfo. """ self._discrete_values = discrete_values @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e3724d2c..bdeb6e9f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): +class GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Returns @@ -83,7 +93,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Parameters @@ -94,7 +104,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Returns @@ -105,7 +115,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaDiscreteValuesUpdateDiscreteValue. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7bec386c..1562cf9a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaExpressionsCreateExpression(ModelBase): +class GrantaServerApiSchemaExpressionsCreateExpression(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaExpressionsCreateExpression(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "value": "str", "guid": "str", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "value": "value", "guid": "guid", "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,9 +83,9 @@ def __init__( guid: str, optional unit: GrantaServerApiSchemaSlimEntitiesSlimEntity, optional """ - self._value = None + self._value: str = None # type: ignore[assignment] self._unit = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.value = value @@ -110,7 +120,7 @@ def value(self, value: "str") -> None: self._value = value @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaExpressionsCreateExpression. Returns @@ -121,7 +131,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsCreateExpression. Parameters @@ -156,7 +168,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaExpressionsCreateExpression. Returns @@ -167,7 +179,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaExpressionsCreateExpression. Parameters @@ -195,7 +207,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 24ad565e..1c4cc4f5 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaExpressionsExpression(ModelBase): +class GrantaServerApiSchemaExpressionsExpression(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaExpressionsExpression(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_dependencies": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "constant_dependencies": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "guid": "str", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaExpressionsExpression(ModelBase): "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_dependencies": "attributeDependencies", "constant_dependencies": "constantDependencies", "guid": "guid", @@ -56,14 +66,14 @@ class GrantaServerApiSchemaExpressionsExpression(ModelBase): "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "attributeDependencies": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "constantDependencies": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameterDependencies": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,13 +98,13 @@ def __init__( value: str unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional """ - self._value = None + self._value: str = None # type: ignore[assignment] self._unit = None - self._attribute_dependencies = None - self._constant_dependencies = None - self._parameter_dependencies = None - self._name = None - self._guid = 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 = value if unit is not None: @@ -130,7 +140,7 @@ def value(self, value: "str") -> None: self._value = value @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -141,7 +151,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsExpression. Parameters @@ -154,7 +164,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: @property def attribute_dependencies( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -167,13 +177,13 @@ def attribute_dependencies( @attribute_dependencies.setter def attribute_dependencies( self, - attribute_dependencies: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + attribute_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. Parameters ---------- - attribute_dependencies: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attribute_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attribute_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ if attribute_dependencies is None: @@ -185,7 +195,7 @@ def attribute_dependencies( @property def constant_dependencies( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -198,13 +208,13 @@ def constant_dependencies( @constant_dependencies.setter def constant_dependencies( self, - constant_dependencies: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + constant_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. Parameters ---------- - constant_dependencies: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + constant_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constant_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ if constant_dependencies is None: @@ -216,7 +226,7 @@ def constant_dependencies( @property def parameter_dependencies( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. Returns @@ -229,13 +239,13 @@ def parameter_dependencies( @parameter_dependencies.setter def parameter_dependencies( self, - parameter_dependencies: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + parameter_dependencies: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. Parameters ---------- - parameter_dependencies: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + parameter_dependencies: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_dependencies of this GrantaServerApiSchemaExpressionsExpression. """ if parameter_dependencies is None: @@ -310,7 +320,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7d87416b..b2f1ae1a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): +class GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaExpressionsExpressionsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "expressions": "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]", } - attribute_map = { + attribute_map: Dict[str, str] = { "expressions": "expressions", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "expressions": "GrantaServerApiSchemaSlimEntitiesSlimExpression", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.expressions = expressions @property - def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]": + def expressions( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimExpression]]": """Gets the expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. Returns @@ -79,13 +91,14 @@ def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]" @expressions.setter def expressions( - self, expressions: "list[GrantaServerApiSchemaSlimEntitiesSlimExpression]" + self, + expressions: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimExpression]]", ) -> None: """Sets the expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. Parameters ---------- - expressions: list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimExpression] The expressions of this GrantaServerApiSchemaExpressionsExpressionsInfo. """ self._expressions = expressions @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cba4f917..cc558ed8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): +class GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaExpressionsUpdateExpression(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "unit": "unit", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,7 +98,7 @@ def __init__( self.guid = guid @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns @@ -99,7 +109,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters @@ -110,7 +120,7 @@ def value(self, value: "str") -> None: self._value = value @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns @@ -121,7 +131,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters @@ -132,7 +144,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: self._unit = unit @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns @@ -143,7 +155,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters @@ -154,7 +166,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaExpressionsUpdateExpression. Returns @@ -165,7 +177,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaExpressionsUpdateExpression. Parameters @@ -193,7 +205,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 792b0176..6cf6e6fe 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesCreateFolder(ModelBase): +class GrantaServerApiSchemaFilesCreateFolder(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaFilesCreateFolder(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "parent_guid": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "parent_guid": "parentGuid", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,8 +77,8 @@ def __init__( parent_guid: str guid: str, optional """ - self._parent_guid = None - self._name = None + self._parent_guid: str = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self._guid = None self.parent_guid = parent_guid @@ -125,7 +135,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaFilesCreateFolder. Returns @@ -136,7 +146,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesCreateFolder. Parameters @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 350704db..fbde8d4b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): +class GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaFilesExporterRefetchInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "errors": "list[str]", "succeeded": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "errors": "errors", "succeeded": "succeeded", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.errors = errors @property - def succeeded(self) -> "bool": + def succeeded(self) -> "Optional[bool]": """Gets the succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. Returns @@ -83,7 +93,7 @@ def succeeded(self) -> "bool": return self._succeeded @succeeded.setter - def succeeded(self, succeeded: "bool") -> None: + def succeeded(self, succeeded: "Optional[bool]") -> None: """Sets the succeeded of this GrantaServerApiSchemaFilesExporterRefetchInfo. Parameters @@ -94,7 +104,7 @@ def succeeded(self, succeeded: "bool") -> None: self._succeeded = succeeded @property - def errors(self) -> "list[str]": + def errors(self) -> "Optional[List[str]]": """Gets the errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. Returns @@ -105,12 +115,12 @@ def errors(self) -> "list[str]": return self._errors @errors.setter - def errors(self, errors: "list[str]") -> None: + def errors(self, errors: "Optional[List[str]]") -> None: """Sets the errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. Parameters ---------- - errors: list[str] + errors: List[str] The errors of this GrantaServerApiSchemaFilesExporterRefetchInfo. """ self._errors = errors @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0f40946f..f96c807c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesFileHeader(ModelBase): +class GrantaServerApiSchemaFilesFileHeader(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaFilesFileHeader(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "data_length": "int", "description": "str", "extension": "str", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaFilesFileHeader(ModelBase): "path": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "data_length": "dataLength", "description": "description", "extension": "extension", @@ -56,9 +66,9 @@ class GrantaServerApiSchemaFilesFileHeader(ModelBase): "path": "path", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,13 +93,13 @@ def __init__( name: str path: str """ - self._folder_guid = None - self._description = None - self._extension = None - self._data_length = None - self._path = None - self._name = None - self._guid = None + 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 = folder_guid self.description = description @@ -285,7 +295,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f4f629db..fa072a94 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesFilesInfo(ModelBase): +class GrantaServerApiSchemaFilesFilesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaFilesFilesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "files": "list[GrantaServerApiSchemaSlimEntitiesSlimFile]", } - attribute_map = { + attribute_map: Dict[str, str] = { "files": "files", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "files": "GrantaServerApiSchemaSlimEntitiesSlimFile", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.files = files @property - def files(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimFile]": + def files(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimFile]]": """Gets the files of this GrantaServerApiSchemaFilesFilesInfo. Returns @@ -78,12 +88,14 @@ def files(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimFile]": return self._files @files.setter - def files(self, files: "list[GrantaServerApiSchemaSlimEntitiesSlimFile]") -> None: + def files( + self, files: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimFile]]" + ) -> None: """Sets the files of this GrantaServerApiSchemaFilesFilesInfo. Parameters ---------- - files: list[GrantaServerApiSchemaSlimEntitiesSlimFile] + files: List[GrantaServerApiSchemaSlimEntitiesSlimFile] The files of this GrantaServerApiSchemaFilesFilesInfo. """ self._files = files @@ -106,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 69f096cd..0870010d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesFolder(ModelBase): +class GrantaServerApiSchemaFilesFolder(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaFilesFolder(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "parent_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "parent_guid": "parentGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,8 +78,8 @@ def __init__( parent_guid: str, optional """ self._parent_guid = None - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] if parent_guid is not None: self.parent_guid = parent_guid @@ -77,7 +87,7 @@ def __init__( self.guid = guid @property - def parent_guid(self) -> "str": + def parent_guid(self) -> "Optional[str]": """Gets the parent_guid of this GrantaServerApiSchemaFilesFolder. Returns @@ -88,7 +98,7 @@ def parent_guid(self) -> "str": return self._parent_guid @parent_guid.setter - def parent_guid(self, parent_guid: "str") -> None: + def parent_guid(self, parent_guid: "Optional[str]") -> None: """Sets the parent_guid of this GrantaServerApiSchemaFilesFolder. Parameters @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e9c50e1d..0e670d62 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesFoldersInfo(ModelBase): +class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "folders": "list[GrantaServerApiSchemaFilesFolder]", } - attribute_map = { + attribute_map: Dict[str, str] = { "folders": "folders", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "folders": "GrantaServerApiSchemaFilesFolder", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.folders = folders @property - def folders(self) -> "list[GrantaServerApiSchemaFilesFolder]": + def folders(self) -> "Optional[List[GrantaServerApiSchemaFilesFolder]]": """Gets the folders of this GrantaServerApiSchemaFilesFoldersInfo. Returns @@ -78,12 +88,14 @@ def folders(self) -> "list[GrantaServerApiSchemaFilesFolder]": return self._folders @folders.setter - def folders(self, folders: "list[GrantaServerApiSchemaFilesFolder]") -> None: + def folders( + self, folders: "Optional[List[GrantaServerApiSchemaFilesFolder]]" + ) -> None: """Sets the folders of this GrantaServerApiSchemaFilesFoldersInfo. Parameters ---------- - folders: list[GrantaServerApiSchemaFilesFolder] + folders: List[GrantaServerApiSchemaFilesFolder] The folders of this GrantaServerApiSchemaFilesFoldersInfo. """ self._folders = folders @@ -106,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5bcdb397..49fbc95b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesMoveFile(ModelBase): +class GrantaServerApiSchemaFilesMoveFile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSchemaFilesMoveFile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "folder_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "folder_guid": "folderGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- folder_guid: str """ - self._folder_guid = None + self._folder_guid: str = None # type: ignore[assignment] self.folder_guid = folder_guid @@ -105,7 +115,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e390123c..c331b700 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesMoveFolder(ModelBase): +class GrantaServerApiSchemaFilesMoveFolder(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSchemaFilesMoveFolder(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parent_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "parent_guid": "parentGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- parent_guid: str """ - self._parent_guid = None + self._parent_guid: str = None # type: ignore[assignment] self.parent_guid = parent_guid @@ -105,7 +115,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 04dbdd21..46da3118 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesUpdateFile(ModelBase): +class GrantaServerApiSchemaFilesUpdateFile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaFilesUpdateFile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaFilesUpdateFile. Returns @@ -90,7 +100,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaFilesUpdateFile. Parameters @@ -101,7 +111,7 @@ def description(self, description: "str") -> None: self._description = description @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaFilesUpdateFile. Returns @@ -112,7 +122,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaFilesUpdateFile. Parameters @@ -123,7 +133,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaFilesUpdateFile. Returns @@ -134,7 +144,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesUpdateFile. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 292fffa3..d42ca451 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaFilesUpdateFolder(ModelBase): +class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaFilesUpdateFolder. Returns @@ -83,7 +93,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaFilesUpdateFolder. Parameters @@ -94,7 +104,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaFilesUpdateFolder. Returns @@ -105,7 +115,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaFilesUpdateFolder. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8b889581..09a55403 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsCreateLayout(ModelBase): +class GrantaServerApiSchemaLayoutsCreateLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsCreateLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( name: str guid: str, optional """ - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.name = name @@ -95,7 +105,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaLayoutsCreateLayout. Returns @@ -106,7 +116,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsCreateLayout. Parameters @@ -134,7 +144,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7e215c08..74843f5d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsCreateLayoutSection(ModelBase): +class GrantaServerApiSchemaLayoutsCreateLayoutSection(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsCreateLayoutSection(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( name: str guid: str, optional """ - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.name = name @@ -95,7 +105,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. Returns @@ -106,7 +116,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsCreateLayoutSection. Parameters @@ -134,7 +144,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c4ad1445..e26c29f1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_layout_section import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaLayoutsFullLayoutSection( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaLayoutsFullLayoutSection( "section_detail_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -57,11 +67,11 @@ class GrantaServerApiSchemaLayoutsFullLayoutSection( "section_detail_type": "sectionDetailType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "sectionItems": "GrantaServerApiSchemaLayoutsLayoutItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,8 +93,8 @@ def __init__( section_detail_type: str """ super().__init__(display_names=display_names, guid=guid, name=name) - self._section_detail_type = None - self._section_items = None + self._section_detail_type: str = None # type: ignore[assignment] + self._section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] = None # type: ignore[assignment] self.section_detail_type = section_detail_type self.section_items = section_items @@ -116,7 +126,7 @@ def section_detail_type(self, section_detail_type: "str") -> None: self._section_detail_type = section_detail_type @property - def section_items(self) -> "list[GrantaServerApiSchemaLayoutsLayoutItem]": + def section_items(self) -> "List[GrantaServerApiSchemaLayoutsLayoutItem]": """Gets the section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. Returns @@ -128,13 +138,13 @@ def section_items(self) -> "list[GrantaServerApiSchemaLayoutsLayoutItem]": @section_items.setter def section_items( - self, section_items: "list[GrantaServerApiSchemaLayoutsLayoutItem]" + self, section_items: "List[GrantaServerApiSchemaLayoutsLayoutItem]" ) -> None: """Sets the section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. Parameters ---------- - section_items: list[GrantaServerApiSchemaLayoutsLayoutItem] + section_items: List[GrantaServerApiSchemaLayoutsLayoutItem] The section_items of this GrantaServerApiSchemaLayoutsFullLayoutSection. """ if section_items is None: @@ -159,7 +169,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4bdeb5b7..5f19b16a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayout(ModelBase): +class GrantaServerApiSchemaLayoutsLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaLayoutsLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", "sections": "list[GrantaServerApiSchemaLayoutsLayoutSection]", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", "sections": "sections", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "sections": "GrantaServerApiSchemaLayoutsLayoutSection", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,10 +83,10 @@ def __init__( name: str sections: List[GrantaServerApiSchemaLayoutsLayoutSection] """ - self._sections = None - self._display_names = None - self._name = None - self._guid = None + 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 = sections self.display_names = display_names @@ -84,7 +94,7 @@ def __init__( self.guid = guid @property - def sections(self) -> "list[GrantaServerApiSchemaLayoutsLayoutSection]": + def sections(self) -> "List[GrantaServerApiSchemaLayoutsLayoutSection]": """Gets the sections of this GrantaServerApiSchemaLayoutsLayout. Returns @@ -96,13 +106,13 @@ def sections(self) -> "list[GrantaServerApiSchemaLayoutsLayoutSection]": @sections.setter def sections( - self, sections: "list[GrantaServerApiSchemaLayoutsLayoutSection]" + self, sections: "List[GrantaServerApiSchemaLayoutsLayoutSection]" ) -> None: """Sets the sections of this GrantaServerApiSchemaLayoutsLayout. Parameters ---------- - sections: list[GrantaServerApiSchemaLayoutsLayoutSection] + sections: List[GrantaServerApiSchemaLayoutsLayoutSection] The sections of this GrantaServerApiSchemaLayoutsLayout. """ if sections is None: @@ -110,7 +120,7 @@ def sections( self._sections = sections @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaLayoutsLayout. Returns @@ -121,12 +131,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaLayoutsLayout. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayout. """ if display_names is None: @@ -199,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 ec749eea..fedc051e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaLayoutsLayoutAttributeItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_type": "GrantaServerApiAttributeType", "guid": "str", "name": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaLayoutsLayoutAttributeItem( "tabular_columns": "list[GrantaServerApiSchemaLayoutsLayoutTabularColumn]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_type": "attributeType", "guid": "guid", "name": "name", @@ -65,13 +75,13 @@ class GrantaServerApiSchemaLayoutsLayoutAttributeItem( "tabular_columns": "tabularColumns", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributeType": "GrantaServerApiAttributeType", "metaAttributes": "GrantaServerApiSchemaLayoutsLayoutAttributeItem", "tabularColumns": "GrantaServerApiSchemaLayoutsLayoutTabularColumn", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -103,10 +113,10 @@ def __init__( super().__init__( guid=guid, name=name, underlying_entity_guid=underlying_entity_guid ) - self._item_type = None - self._attribute_type = None - self._required = None - self._read_only = None + 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 @@ -218,7 +228,7 @@ def read_only(self, read_only: "bool") -> None: @property def meta_attributes( self, - ) -> "list[GrantaServerApiSchemaLayoutsLayoutAttributeItem]": + ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem]]": """Gets the meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns @@ -230,13 +240,14 @@ def meta_attributes( @meta_attributes.setter def meta_attributes( - self, meta_attributes: "list[GrantaServerApiSchemaLayoutsLayoutAttributeItem]" + self, + meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsLayoutAttributeItem]]", ) -> None: """Sets the meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Parameters ---------- - meta_attributes: list[GrantaServerApiSchemaLayoutsLayoutAttributeItem] + meta_attributes: List[GrantaServerApiSchemaLayoutsLayoutAttributeItem] The meta_attributes of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ self._meta_attributes = meta_attributes @@ -244,7 +255,7 @@ def meta_attributes( @property def tabular_columns( self, - ) -> "list[GrantaServerApiSchemaLayoutsLayoutTabularColumn]": + ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn]]": """Gets the tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Returns @@ -256,13 +267,14 @@ def tabular_columns( @tabular_columns.setter def tabular_columns( - self, tabular_columns: "list[GrantaServerApiSchemaLayoutsLayoutTabularColumn]" + self, + tabular_columns: "Optional[List[GrantaServerApiSchemaLayoutsLayoutTabularColumn]]", ) -> None: """Sets the tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. Parameters ---------- - tabular_columns: list[GrantaServerApiSchemaLayoutsLayoutTabularColumn] + tabular_columns: List[GrantaServerApiSchemaLayoutsLayoutTabularColumn] The tabular_columns of this GrantaServerApiSchemaLayoutsLayoutAttributeItem. """ self._tabular_columns = tabular_columns @@ -285,7 +297,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a2c5f36e..91090a26 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayoutItem(ModelBase): +class GrantaServerApiSchemaLayoutsLayoutItem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,26 +48,26 @@ class GrantaServerApiSchemaLayoutsLayoutItem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "underlying_entity_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "underlying_entity_guid": "underlyingEntityGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "attribute".lower(): "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutAttributeItem", "link".lower(): "#/components/schemas/GrantaServerApiSchemaLayoutsLayoutLinkItem", } - discriminator = "item_type" + discriminator: Optional[str] = "item_type" def __init__( self, @@ -74,9 +84,9 @@ def __init__( name: str underlying_entity_guid: str """ - self._underlying_entity_guid = None - self._name = None - self._guid = None + 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 = underlying_entity_guid self.name = name @@ -168,19 +178,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 470f8a44..92f82da4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaLayoutsLayoutLinkItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "forwards": "bool", "guid": "str", "link_type": "GrantaServerApiSchemaLayoutsLayoutItemLinkType", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaLayoutsLayoutLinkItem( "target_database_version": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "forwards": "forwards", "guid": "guid", "link_type": "linkType", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaLayoutsLayoutLinkItem( "target_database_version": "targetDatabaseVersion", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkType": "GrantaServerApiSchemaLayoutsLayoutItemLinkType", "nextLink": "GrantaServerApiSchemaLayoutsLayoutLinkItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,12 +116,12 @@ def __init__( super().__init__( guid=guid, name=name, underlying_entity_guid=underlying_entity_guid ) - self._item_type = None - self._link_type = None + 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 = None - self._forwards = None + self._target_table: str = None # type: ignore[assignment] + self._forwards: bool = None # type: ignore[assignment] self._next_link = None self.item_type = item_type @@ -176,7 +186,7 @@ def link_type( self._link_type = link_type @property - def target_database(self) -> "str": + def target_database(self) -> "Optional[str]": """Gets the target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns @@ -187,7 +197,7 @@ def target_database(self) -> "str": return self._target_database @target_database.setter - def target_database(self, target_database: "str") -> None: + def target_database(self, target_database: "Optional[str]") -> None: """Sets the target_database of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters @@ -198,7 +208,7 @@ def target_database(self, target_database: "str") -> None: self._target_database = target_database @property - def target_database_version(self) -> "str": + def target_database_version(self) -> "Optional[str]": """Gets the target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns @@ -209,7 +219,7 @@ def target_database_version(self) -> "str": return self._target_database_version @target_database_version.setter - def target_database_version(self, target_database_version: "str") -> None: + def target_database_version(self, target_database_version: "Optional[str]") -> None: """Sets the target_database_version of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Parameters @@ -268,7 +278,7 @@ def forwards(self, forwards: "bool") -> None: self._forwards = forwards @property - def next_link(self) -> "GrantaServerApiSchemaLayoutsLayoutLinkItem": + def next_link(self) -> "Optional[GrantaServerApiSchemaLayoutsLayoutLinkItem]": """Gets the next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. Returns @@ -280,7 +290,7 @@ def next_link(self) -> "GrantaServerApiSchemaLayoutsLayoutLinkItem": @next_link.setter def next_link( - self, next_link: "GrantaServerApiSchemaLayoutsLayoutLinkItem" + self, next_link: "Optional[GrantaServerApiSchemaLayoutsLayoutLinkItem]" ) -> None: """Sets the next_link of this GrantaServerApiSchemaLayoutsLayoutLinkItem. @@ -309,7 +319,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d43c9949..c0451240 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayoutSection(ModelBase): +class GrantaServerApiSchemaLayoutsLayoutSection(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,26 +48,26 @@ class GrantaServerApiSchemaLayoutsLayoutSection(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "slim".lower(): "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayoutSection", "full".lower(): "#/components/schemas/GrantaServerApiSchemaLayoutsFullLayoutSection", } - discriminator = "section_detail_type" + discriminator: Optional[str] = "section_detail_type" def __init__( self, @@ -74,16 +84,16 @@ def __init__( guid: str name: str """ - self._display_names = None - self._name = None - self._guid = 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.display_names = display_names self.name = name self.guid = guid @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaLayoutsLayoutSection. Returns @@ -94,12 +104,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaLayoutsLayoutSection. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaLayoutsLayoutSection. """ if display_names is None: @@ -166,19 +176,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 ad862b54..b298ae82 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): +class GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsLayoutSectionsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "layout_sections": "list[GrantaServerApiSchemaLayoutsLayoutSection]", } - attribute_map = { + attribute_map: Dict[str, str] = { "layout_sections": "layoutSections", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "layoutSections": "GrantaServerApiSchemaLayoutsLayoutSection", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.layout_sections = layout_sections @property - def layout_sections(self) -> "list[GrantaServerApiSchemaLayoutsLayoutSection]": + def layout_sections( + self, + ) -> "Optional[List[GrantaServerApiSchemaLayoutsLayoutSection]]": """Gets the layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. Returns @@ -79,13 +91,14 @@ def layout_sections(self) -> "list[GrantaServerApiSchemaLayoutsLayoutSection]": @layout_sections.setter def layout_sections( - self, layout_sections: "list[GrantaServerApiSchemaLayoutsLayoutSection]" + self, + layout_sections: "Optional[List[GrantaServerApiSchemaLayoutsLayoutSection]]", ) -> None: """Sets the layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. Parameters ---------- - layout_sections: list[GrantaServerApiSchemaLayoutsLayoutSection] + layout_sections: List[GrantaServerApiSchemaLayoutsLayoutSection] The layout_sections of this GrantaServerApiSchemaLayoutsLayoutSectionsInfo. """ self._layout_sections = layout_sections @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 25225b9d..3220a669 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): +class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "GrantaServerApiSchemaTabularColumnsTabularColumnDtoType", "guid": "str", "name": "str", "tabular_column_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "guid": "guid", "name": "name", "tabular_column_guid": "tabularColumnGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "columnType": "GrantaServerApiSchemaTabularColumnsTabularColumnDtoType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,10 +83,10 @@ def __init__( name: str tabular_column_guid: str """ - self._column_type = None - self._tabular_column_guid = None - self._name = None - self._guid = None + 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 = column_type self.tabular_column_guid = tabular_column_guid @@ -201,7 +211,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 dc8d1374..83fdc243 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): +class GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsLayoutsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "layouts": "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]", } - attribute_map = { + attribute_map: Dict[str, str] = { "layouts": "layouts", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "layouts": "GrantaServerApiSchemaSlimEntitiesSlimLayout", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.layouts = layouts @property - def layouts(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]": + def layouts(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimLayout]]": """Gets the layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. Returns @@ -79,13 +89,13 @@ def layouts(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]": @layouts.setter def layouts( - self, layouts: "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]" + self, layouts: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimLayout]]" ) -> None: """Sets the layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. Parameters ---------- - layouts: list[GrantaServerApiSchemaSlimEntitiesSlimLayout] + layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] The layouts of this GrantaServerApiSchemaLayoutsLayoutsInfo. """ self._layouts = layouts @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 70181865..40666a79 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_new_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "association_chain_links": "list[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]", "association_chain_name": "str", "guid": "str", "item_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "association_chain_links": "associationChainLinks", "association_chain_name": "associationChainName", "guid": "guid", "item_type": "itemType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "associationChainLinks": "GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,9 +89,9 @@ def __init__( item_type: str """ super().__init__(guid=guid) - self._item_type = None - self._association_chain_name = None - self._association_chain_links = None + 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 = item_type self.association_chain_name = association_chain_name @@ -140,7 +150,7 @@ def association_chain_name(self, association_chain_name: "str") -> None: @property def association_chain_links( self, - ) -> "list[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]": + ) -> "List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]": """Gets the association_chain_links of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. Returns @@ -153,13 +163,13 @@ def association_chain_links( @association_chain_links.setter def association_chain_links( self, - association_chain_links: "list[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]", + association_chain_links: "List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink]", ) -> None: """Sets the association_chain_links of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. Parameters ---------- - association_chain_links: list[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] + association_chain_links: List[GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink] The association_chain_links of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem. """ if association_chain_links is None: @@ -186,7 +196,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 93c993b3..cb6b0b56 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink(ModelBase): +class GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "source_database_version_guid": "str", "tabular_attribute_guid": "str", "forwards": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "source_database_version_guid": "sourceDatabaseVersionGuid", "tabular_attribute_guid": "tabularAttributeGuid", "forwards": "forwards", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,8 +78,8 @@ def __init__( forwards: bool, optional """ self._forwards = None - self._source_database_version_guid = None - self._tabular_attribute_guid = None + self._source_database_version_guid: str = None # type: ignore[assignment] + self._tabular_attribute_guid: str = None # type: ignore[assignment] if forwards is not None: self.forwards = forwards @@ -77,7 +87,7 @@ def __init__( self.tabular_attribute_guid = tabular_attribute_guid @property - def forwards(self) -> "bool": + def forwards(self) -> "Optional[bool]": """Gets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. Returns @@ -88,7 +98,7 @@ def forwards(self) -> "bool": return self._forwards @forwards.setter - def forwards(self, forwards: "bool") -> None: + def forwards(self, forwards: "Optional[bool]") -> None: """Sets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutAssociationChainLink. Parameters @@ -168,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 78b37212..42be6256 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_new_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutAttributeItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guid": "str", "guid": "str", "item_type": "str", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutAttributeItem( "tabular_column_guids": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guid": "attributeGuid", "guid": "guid", "item_type": "itemType", @@ -61,11 +71,11 @@ class GrantaServerApiSchemaLayoutsNewLayoutAttributeItem( "tabular_column_guids": "tabularColumnGuids", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "metaAttributes": "GrantaServerApiSchemaLayoutsNewLayoutAttributeItem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,8 +101,8 @@ def __init__( tabular_column_guids: List[str], optional """ super().__init__(guid=guid) - self._item_type = None - self._attribute_guid = None + 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 @@ -158,7 +168,7 @@ def attribute_guid(self, attribute_guid: "str") -> None: self._attribute_guid = attribute_guid @property - def required(self) -> "bool": + def required(self) -> "Optional[bool]": """Gets the required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns @@ -169,7 +179,7 @@ def required(self) -> "bool": return self._required @required.setter - def required(self, required: "bool") -> None: + def required(self, required: "Optional[bool]") -> None: """Sets the required of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters @@ -180,7 +190,7 @@ def required(self, required: "bool") -> None: self._required = required @property - def read_only(self) -> "bool": + def read_only(self) -> "Optional[bool]": """Gets the read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns @@ -191,7 +201,7 @@ def read_only(self) -> "bool": return self._read_only @read_only.setter - def read_only(self, read_only: "bool") -> None: + def read_only(self, read_only: "Optional[bool]") -> None: """Sets the read_only of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters @@ -204,7 +214,7 @@ def read_only(self, read_only: "bool") -> None: @property def meta_attributes( self, - ) -> "list[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]": + ) -> "Optional[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]]": """Gets the meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns @@ -217,19 +227,19 @@ def meta_attributes( @meta_attributes.setter def meta_attributes( self, - meta_attributes: "list[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]", + meta_attributes: "Optional[List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem]]", ) -> None: """Sets the meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - meta_attributes: list[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem] + meta_attributes: List[GrantaServerApiSchemaLayoutsNewLayoutAttributeItem] The meta_attributes of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ self._meta_attributes = meta_attributes @property - def tabular_column_guids(self) -> "list[str]": + def tabular_column_guids(self) -> "Optional[List[str]]": """Gets the tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Returns @@ -240,12 +250,12 @@ def tabular_column_guids(self) -> "list[str]": return self._tabular_column_guids @tabular_column_guids.setter - def tabular_column_guids(self, tabular_column_guids: "list[str]") -> None: + def tabular_column_guids(self, tabular_column_guids: "Optional[List[str]]") -> None: """Sets the tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. Parameters ---------- - tabular_column_guids: list[str] + tabular_column_guids: List[str] The tabular_column_guids of this GrantaServerApiSchemaLayoutsNewLayoutAttributeItem. """ self._tabular_column_guids = tabular_column_guids @@ -268,7 +278,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bd7d8861..c4e3c12c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_new_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_group_guid": "str", "source_database_guid": "str", "source_table_guid": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem( "item_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_group_guid": "linkGroupGuid", "source_database_guid": "sourceDatabaseGuid", "source_table_guid": "sourceTableGuid", @@ -57,9 +67,9 @@ class GrantaServerApiSchemaLayoutsNewLayoutCrossDatabaseLinkItem( "item_type": "itemType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,10 +91,10 @@ def __init__( item_type: str """ super().__init__(guid=guid) - self._item_type = None - self._source_database_guid = None - self._source_table_guid = None - self._link_group_guid = None + 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 = item_type self.source_database_guid = source_database_guid @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cc685c2d..ac622230 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): +class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "attribute".lower(): "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutAttributeItem", @@ -56,7 +66,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): "associationChain".lower(): "#/components/schemas/GrantaServerApiSchemaLayoutsNewLayoutAssociationChainItem", } - discriminator = "item_type" + discriminator: Optional[str] = "item_type" def __init__( self, @@ -75,7 +85,7 @@ def __init__( self.guid = guid @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. Returns @@ -86,7 +96,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsNewLayoutItem. Parameters @@ -108,19 +118,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 411fdacf..85cb39ec 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_new_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_group_guid": "str", "guid": "str", "item_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_group_guid": "linkGroupGuid", "guid": "guid", "item_type": "itemType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( item_type: str """ super().__init__(guid=guid) - self._item_type = None - self._link_group_guid = None + self._item_type: str = None # type: ignore[assignment] + self._link_group_guid: str = None # type: ignore[assignment] self.item_type = item_type self.link_group_guid = link_group_guid @@ -145,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a6d69498..5e539ec9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_new_layout_item import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_group_guid": "str", "forwards": "bool", "guid": "str", "item_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_group_guid": "linkGroupGuid", "forwards": "forwards", "guid": "guid", "item_type": "itemType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,9 +87,9 @@ def __init__( item_type: str """ super().__init__(guid=guid) - self._item_type = None + self._item_type: str = None # type: ignore[assignment] self._forwards = None - self._link_group_guid = None + self._link_group_guid: str = None # type: ignore[assignment] self.item_type = item_type if forwards is not None: @@ -111,7 +121,7 @@ def item_type(self, item_type: "str") -> None: self._item_type = item_type @property - def forwards(self) -> "bool": + def forwards(self) -> "Optional[bool]": """Gets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. Returns @@ -122,7 +132,7 @@ def forwards(self) -> "bool": return self._forwards @forwards.setter - def forwards(self, forwards: "bool") -> None: + def forwards(self, forwards: "Optional[bool]") -> None: """Sets the forwards of this GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem. Parameters @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0e790d7c..53ccda1b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsReorderSectionsInfo(ModelBase): +class GrantaServerApiSchemaLayoutsReorderSectionsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsReorderSectionsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "layout_sections": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "layout_sections": "layoutSections", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "layoutSections": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] """ - self._layout_sections = None + self._layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] = None # type: ignore[assignment] self.layout_sections = layout_sections @property - def layout_sections(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def layout_sections(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the layout_sections of this GrantaServerApiSchemaLayoutsReorderSectionsInfo. Returns @@ -78,13 +88,13 @@ def layout_sections(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" @layout_sections.setter def layout_sections( - self, layout_sections: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, layout_sections: "List[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the layout_sections of this GrantaServerApiSchemaLayoutsReorderSectionsInfo. Parameters ---------- - layout_sections: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + layout_sections: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The layout_sections of this GrantaServerApiSchemaLayoutsReorderSectionsInfo. """ if layout_sections is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d4292179..45c059d6 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): +class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. Returns @@ -83,7 +93,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. Parameters @@ -94,7 +104,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. Returns @@ -105,7 +115,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 646dac72..fe3b0d8c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersContinuousRange(ModelBase): +class GrantaServerApiSchemaParametersContinuousRange(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaParametersContinuousRange(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "high_value": "float", "low_value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "high_value": "highValue", "low_value": "lowValue", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.high_value = high_value @property - def low_value(self) -> "float": + def low_value(self) -> "Optional[float]": """Gets the low_value of this GrantaServerApiSchemaParametersContinuousRange. Returns @@ -83,7 +93,7 @@ def low_value(self) -> "float": return self._low_value @low_value.setter - def low_value(self, low_value: "float") -> None: + def low_value(self, low_value: "Optional[float]") -> None: """Sets the low_value of this GrantaServerApiSchemaParametersContinuousRange. Parameters @@ -94,7 +104,7 @@ def low_value(self, low_value: "float") -> None: self._low_value = low_value @property - def high_value(self) -> "float": + def high_value(self) -> "Optional[float]": """Gets the high_value of this GrantaServerApiSchemaParametersContinuousRange. Returns @@ -105,7 +115,7 @@ def high_value(self) -> "float": return self._high_value @high_value.setter - def high_value(self, high_value: "float") -> None: + def high_value(self, high_value: "Optional[float]") -> None: """Sets the high_value of this GrantaServerApiSchemaParametersContinuousRange. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 80713b91..9d00ad36 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_create_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersCreateDiscreteParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_index": "int", "name": "str", "values": "list[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaParametersCreateDiscreteParameter( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_index": "defaultParameterValueIndex", "name": "name", "values": "values", @@ -59,11 +69,11 @@ class GrantaServerApiSchemaParametersCreateDiscreteParameter( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "values": "GrantaServerApiSchemaParametersCreateDiscreteParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -92,8 +102,8 @@ def __init__( guid=guid, help_path=help_path, ) - self._values = None - self._type = None + self._values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self.values = values self.type = type @@ -101,7 +111,7 @@ def __init__( @property def values( self, - ) -> "list[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]": + ) -> "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. Returns @@ -114,13 +124,13 @@ def values( @values.setter def values( self, - values: "list[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]", + values: "List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue]", ) -> None: """Sets the values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. Parameters ---------- - values: list[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] + values: List[GrantaServerApiSchemaParametersCreateDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersCreateDiscreteParameter. """ if values is None: @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b4d78801..4b3c84b9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_create_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSchemaParametersCreateDiscreteParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( type: str """ super().__init__(guid=guid) - self._type = None - self._name = None + self._type: str = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self.type = type self.name = name @@ -145,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 fe9df598..f463a570 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_create_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersCreateNumericParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_index": "int", "interpolation_type": "GrantaServerApiSchemaParametersParameterInterpolationType", "is_restricted": "bool", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaParametersCreateNumericParameter( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_index": "defaultParameterValueIndex", "interpolation_type": "interpolationType", "is_restricted": "isRestricted", @@ -67,14 +77,14 @@ class GrantaServerApiSchemaParametersCreateNumericParameter( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "values": "GrantaServerApiSchemaParametersCreateNumericParameterValue", "interpolationType": "GrantaServerApiSchemaParametersParameterInterpolationType", "scaleType": "GrantaServerApiSchemaParametersParameterScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -111,12 +121,12 @@ def __init__( guid=guid, help_path=help_path, ) - self._type = None - self._is_restricted = None + self._type: str = None # type: ignore[assignment] + self._is_restricted: bool = None # type: ignore[assignment] self._unit = None - self._values = None - self._interpolation_type = None - self._scale_type = 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 = type self.is_restricted = is_restricted @@ -175,7 +185,7 @@ def is_restricted(self, is_restricted: "bool") -> None: self._is_restricted = is_restricted @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaParametersCreateNumericParameter. Returns @@ -186,7 +196,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaParametersCreateNumericParameter. Parameters @@ -199,7 +211,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: @property def values( self, - ) -> "list[GrantaServerApiSchemaParametersCreateNumericParameterValue]": + ) -> "List[GrantaServerApiSchemaParametersCreateNumericParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersCreateNumericParameter. Returns @@ -211,13 +223,13 @@ def values( @values.setter def values( - self, values: "list[GrantaServerApiSchemaParametersCreateNumericParameterValue]" + self, values: "List[GrantaServerApiSchemaParametersCreateNumericParameterValue]" ) -> None: """Sets the values of this GrantaServerApiSchemaParametersCreateNumericParameter. Parameters ---------- - values: list[GrantaServerApiSchemaParametersCreateNumericParameterValue] + values: List[GrantaServerApiSchemaParametersCreateNumericParameterValue] The values of this GrantaServerApiSchemaParametersCreateNumericParameter. """ if values is None: @@ -299,7 +311,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bacb8cdc..41f8b27c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_create_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSchemaParametersCreateNumericParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "value": "float", "guid": "str", "name": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "value": "value", "guid": "guid", "name": "name", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,8 +87,8 @@ def __init__( type: str """ super().__init__(guid=guid) - self._value = None - self._type = None + self._value: float = None # type: ignore[assignment] + self._type: str = None # type: ignore[assignment] self._name = None self.value = value @@ -135,7 +145,7 @@ def type(self, type: "str") -> None: self._type = type @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. Returns @@ -146,7 +156,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaParametersCreateNumericParameterValue. Parameters @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0884fb83..99d801d3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersCreateParameter(ModelBase): +class GrantaServerApiSchemaParametersCreateParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,28 +48,28 @@ class GrantaServerApiSchemaParametersCreateParameter(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_index": "int", "name": "str", "guid": "str", "help_path": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_index": "defaultParameterValueIndex", "name": "name", "guid": "guid", "help_path": "helpPath", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersCreateDiscreteParameter", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersCreateNumericParameter", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -79,8 +89,8 @@ def __init__( help_path: str, optional """ self._help_path = None - self._default_parameter_value_index = None - self._name = None + self._default_parameter_value_index: int = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self._guid = None if help_path is not None: @@ -91,7 +101,7 @@ def __init__( self.guid = guid @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaParametersCreateParameter. Returns @@ -102,7 +112,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersCreateParameter. Parameters @@ -165,7 +175,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaParametersCreateParameter. Returns @@ -176,7 +186,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersCreateParameter. Parameters @@ -198,19 +208,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a63ab20b..f89fba3c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): +class GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,22 +48,22 @@ class GrantaServerApiSchemaParametersCreateParameterValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersCreateDiscreteParameterValue", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersCreateNumericParameterValue", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaParametersCreateParameterValue. Returns @@ -83,7 +93,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersCreateParameterValue. Parameters @@ -105,19 +115,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4f16930c..84305c97 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersDiscreteParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "display_names": "dict(str, str)", "guid": "str", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaParametersDiscreteParameter( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "display_names": "displayNames", "guid": "guid", @@ -61,11 +71,11 @@ class GrantaServerApiSchemaParametersDiscreteParameter( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "values": "GrantaServerApiSchemaParametersDiscreteParameterValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -97,8 +107,8 @@ def __init__( name=name, help_path=help_path, ) - self._type = None - self._values = None + self._type: str = None # type: ignore[assignment] + self._values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] = None # type: ignore[assignment] self.type = type self.values = values @@ -128,7 +138,7 @@ def type(self, type: "str") -> None: self._type = type @property - def values(self) -> "list[GrantaServerApiSchemaParametersDiscreteParameterValue]": + def values(self) -> "List[GrantaServerApiSchemaParametersDiscreteParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersDiscreteParameter. Returns @@ -140,13 +150,13 @@ def values(self) -> "list[GrantaServerApiSchemaParametersDiscreteParameterValue] @values.setter def values( - self, values: "list[GrantaServerApiSchemaParametersDiscreteParameterValue]" + self, values: "List[GrantaServerApiSchemaParametersDiscreteParameterValue]" ) -> None: """Sets the values of this GrantaServerApiSchemaParametersDiscreteParameter. Parameters ---------- - values: list[GrantaServerApiSchemaParametersDiscreteParameterValue] + values: List[GrantaServerApiSchemaParametersDiscreteParameterValue] The values of this GrantaServerApiSchemaParametersDiscreteParameter. """ if values is None: @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 67ba50da..a093b27b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter_content import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,26 +51,26 @@ class GrantaServerApiSchemaParametersDiscreteParameterContent( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameter_range": "GrantaServerApiSchemaParametersDiscreteRange", "parameter_value": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "parameter_range": "parameterRange", "parameter_value": "parameterValue", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValue": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameterRange": "GrantaServerApiSchemaParametersDiscreteRange", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -80,9 +90,9 @@ def __init__( type: str """ super().__init__(parameter=parameter) - self._type = None + self._type: str = None # type: ignore[assignment] self._parameter_value = None - self._parameter_range = None + self._parameter_range: GrantaServerApiSchemaParametersDiscreteRange = None # type: ignore[assignment] self.type = type if parameter_value is not None: @@ -114,7 +124,9 @@ def type(self, type: "str") -> None: self._type = type @property - def parameter_value(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def parameter_value( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. Returns @@ -126,7 +138,8 @@ def parameter_value(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @parameter_value.setter def parameter_value( - self, parameter_value: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, + parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersDiscreteParameterContent. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 06e4daad..1519f1f1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSchemaParametersDiscreteParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,8 +83,8 @@ def __init__( type: str """ super().__init__(guid=guid) - self._type = None - self._name = None + self._type: str = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self.type = type self.name = name @@ -145,7 +155,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0129f8cf..474a4d2d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersDiscreteRange(ModelBase): +class GrantaServerApiSchemaParametersDiscreteRange(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaParametersDiscreteRange(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_values": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_values": "parameterValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,14 +71,14 @@ def __init__( ---------- parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ - self._parameter_values = None + self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] = None # type: ignore[assignment] self.parameter_values = parameter_values @property def parameter_values( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. Returns @@ -80,13 +90,13 @@ def parameter_values( @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, parameter_values: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. Parameters ---------- - parameter_values: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameter_values of this GrantaServerApiSchemaParametersDiscreteRange. """ if parameter_values is None: @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bd2f4ff6..9e4db187 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersNumericParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "display_names": "dict(str, str)", "guid": "str", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaParametersNumericParameter( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "display_names": "displayNames", "guid": "guid", @@ -69,14 +79,14 @@ class GrantaServerApiSchemaParametersNumericParameter( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "values": "GrantaServerApiSchemaParametersNumericParameterValue", "interpolationType": "GrantaServerApiSchemaParametersParameterInterpolationType", "scaleType": "GrantaServerApiSchemaParametersParameterScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -116,12 +126,12 @@ def __init__( name=name, help_path=help_path, ) - self._type = None - self._is_restricted = None + self._type: str = None # type: ignore[assignment] + self._is_restricted: bool = None # type: ignore[assignment] self._unit = None - self._values = None - self._interpolation_type = None - self._scale_type = 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 = type self.is_restricted = is_restricted @@ -180,7 +190,7 @@ def is_restricted(self, is_restricted: "bool") -> None: self._is_restricted = is_restricted @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaParametersNumericParameter. Returns @@ -191,7 +201,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaParametersNumericParameter. Parameters @@ -202,7 +212,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: self._unit = unit @property - def values(self) -> "list[GrantaServerApiSchemaParametersNumericParameterValue]": + def values(self) -> "List[GrantaServerApiSchemaParametersNumericParameterValue]": """Gets the values of this GrantaServerApiSchemaParametersNumericParameter. Returns @@ -214,13 +224,13 @@ def values(self) -> "list[GrantaServerApiSchemaParametersNumericParameterValue]" @values.setter def values( - self, values: "list[GrantaServerApiSchemaParametersNumericParameterValue]" + self, values: "List[GrantaServerApiSchemaParametersNumericParameterValue]" ) -> None: """Sets the values of this GrantaServerApiSchemaParametersNumericParameter. Parameters ---------- - values: list[GrantaServerApiSchemaParametersNumericParameterValue] + values: List[GrantaServerApiSchemaParametersNumericParameterValue] The values of this GrantaServerApiSchemaParametersNumericParameter. """ if values is None: @@ -302,7 +312,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f09026bc..939e831d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter_content import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSchemaParametersNumericParameterContent( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameter_range": "GrantaServerApiSchemaParametersContinuousRange", "type": "str", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "parameter_range": "parameterRange", "type": "type", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterRange": "GrantaServerApiSchemaParametersContinuousRange", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,9 +89,9 @@ def __init__( value: float, optional """ super().__init__(parameter=parameter) - self._type = None + self._type: str = None # type: ignore[assignment] self._value = None - self._parameter_range = None + self._parameter_range: GrantaServerApiSchemaParametersContinuousRange = None # type: ignore[assignment] self.type = type if value is not None: @@ -113,7 +123,7 @@ def type(self, type: "str") -> None: self._type = type @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiSchemaParametersNumericParameterContent. Returns @@ -124,7 +134,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiSchemaParametersNumericParameterContent. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2a12ec60..b283e8d9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSchemaParametersNumericParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "value": "float", "name": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "value": "value", "name": "name", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,8 +87,8 @@ def __init__( type: str """ super().__init__(guid=guid) - self._type = None - self._value = None + self._type: str = None # type: ignore[assignment] + self._value: float = None # type: ignore[assignment] self._name = None self.type = type @@ -135,7 +145,7 @@ def value(self, value: "float") -> None: self._value = value @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaParametersNumericParameterValue. Returns @@ -146,7 +156,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaParametersNumericParameterValue. Parameters @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7ef83add..554db47f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersParameter(ModelBase): +class GrantaServerApiSchemaParametersParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaParametersParameter(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "display_names": "dict(str, str)", "guid": "str", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaParametersParameter(ModelBase): "help_path": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "display_names": "displayNames", "guid": "guid", @@ -54,14 +64,14 @@ class GrantaServerApiSchemaParametersParameter(ModelBase): "help_path": "helpPath", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersDiscreteParameter", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersNumericParameter", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -83,10 +93,10 @@ def __init__( help_path: str, optional """ self._help_path = None - self._default_parameter_value_guid = None - self._display_names = None - self._name = None - self._guid = 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] if help_path is not None: self.help_path = help_path @@ -96,7 +106,7 @@ def __init__( self.guid = guid @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaParametersParameter. Returns @@ -107,7 +117,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersParameter. Parameters @@ -144,7 +154,7 @@ def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> N self._default_parameter_value_guid = default_parameter_value_guid @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaParametersParameter. Returns @@ -155,12 +165,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaParametersParameter. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaParametersParameter. """ if display_names is None: @@ -227,19 +237,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 142c82d3..348b320e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersParameterContent(ModelBase): +class GrantaServerApiSchemaParametersParameterContent(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiSchemaParametersParameterContent(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } @@ -55,7 +65,7 @@ class GrantaServerApiSchemaParametersParameterContent(ModelBase): "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersNumericParameterContent", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,7 +78,7 @@ def __init__( ---------- parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity """ - self._parameter = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity = None # type: ignore[assignment] self.parameter = parameter @@ -110,19 +120,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 439bd5fa..1d051d91 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersParameterValue(ModelBase): +class GrantaServerApiSchemaParametersParameterValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,22 +48,22 @@ class GrantaServerApiSchemaParametersParameterValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersDiscreteParameterValue", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersNumericParameterValue", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -66,7 +76,7 @@ def __init__( ---------- guid: str """ - self._guid = None + self._guid: str = None # type: ignore[assignment] self.guid = guid @@ -106,19 +116,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9123b441..3695ffe1 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersParametersInfo(ModelBase): +class GrantaServerApiSchemaParametersParametersInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaParametersParametersInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameters": "list[GrantaServerApiSchemaParametersParameter]", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameters": "parameters", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameters": "GrantaServerApiSchemaParametersParameter", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.parameters = parameters @property - def parameters(self) -> "list[GrantaServerApiSchemaParametersParameter]": + def parameters(self) -> "Optional[List[GrantaServerApiSchemaParametersParameter]]": """Gets the parameters of this GrantaServerApiSchemaParametersParametersInfo. Returns @@ -79,13 +89,13 @@ def parameters(self) -> "list[GrantaServerApiSchemaParametersParameter]": @parameters.setter def parameters( - self, parameters: "list[GrantaServerApiSchemaParametersParameter]" + self, parameters: "Optional[List[GrantaServerApiSchemaParametersParameter]]" ) -> None: """Sets the parameters of this GrantaServerApiSchemaParametersParametersInfo. Parameters ---------- - parameters: list[GrantaServerApiSchemaParametersParameter] + parameters: List[GrantaServerApiSchemaParametersParameter] The parameters of this GrantaServerApiSchemaParametersParametersInfo. """ self._parameters = parameters @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a3df4992..d0bf995f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): +class GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaParametersUpdateContinuousRange(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "high_value": "float", "low_value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "high_value": "highValue", "low_value": "lowValue", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.high_value = high_value @property - def low_value(self) -> "float": + def low_value(self) -> "Optional[float]": """Gets the low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Returns @@ -83,7 +93,7 @@ def low_value(self) -> "float": return self._low_value @low_value.setter - def low_value(self, low_value: "float") -> None: + def low_value(self, low_value: "Optional[float]") -> None: """Sets the low_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Parameters @@ -94,7 +104,7 @@ def low_value(self, low_value: "float") -> None: self._low_value = low_value @property - def high_value(self) -> "float": + def high_value(self) -> "Optional[float]": """Gets the high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Returns @@ -105,7 +115,7 @@ def high_value(self) -> "float": return self._high_value @high_value.setter - def high_value(self, high_value: "float") -> None: + def high_value(self, high_value: "Optional[float]") -> None: """Sets the high_value of this GrantaServerApiSchemaParametersUpdateContinuousRange. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d2c856fe..c4548603 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "guid": "str", "help_path": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameter( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "guid": "guid", "help_path": "helpPath", @@ -57,9 +67,9 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameter( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -132,7 +142,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f37d4c2e..13e8a665 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter_content import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,26 +51,26 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameterContent( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "parameter_range": "GrantaServerApiSchemaParametersUpdateDiscreteRange", "parameter_value": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "parameter_range": "parameterRange", "parameter_value": "parameterValue", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValue": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "parameterRange": "GrantaServerApiSchemaParametersUpdateDiscreteRange", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -80,7 +90,7 @@ def __init__( type: str """ super().__init__(parameter=parameter) - self._type = None + self._type: str = None # type: ignore[assignment] self._parameter_value = None self._parameter_range = None @@ -115,7 +125,9 @@ def type(self, type: "str") -> None: self._type = type @property - def parameter_value(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def parameter_value( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Returns @@ -127,7 +139,7 @@ def parameter_value(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @parameter_value.setter def parameter_value( - self, parameter_value: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, parameter_value: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the parameter_value of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. @@ -139,7 +151,9 @@ def parameter_value( self._parameter_value = parameter_value @property - def parameter_range(self) -> "GrantaServerApiSchemaParametersUpdateDiscreteRange": + def parameter_range( + self, + ) -> "Optional[GrantaServerApiSchemaParametersUpdateDiscreteRange]": """Gets the parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. Returns @@ -151,7 +165,8 @@ def parameter_range(self) -> "GrantaServerApiSchemaParametersUpdateDiscreteRange @parameter_range.setter def parameter_range( - self, parameter_range: "GrantaServerApiSchemaParametersUpdateDiscreteRange" + self, + parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateDiscreteRange]", ) -> None: """Sets the parameter_range of this GrantaServerApiSchemaParametersUpdateDiscreteParameterContent. @@ -180,7 +195,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 74d9f064..a1f310c7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSchemaParametersUpdateDiscreteParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( type: str """ super().__init__(guid=guid) - self._type = None + self._type: str = None # type: ignore[assignment] self._name = None self.type = type @@ -105,7 +115,7 @@ def type(self, type: "str") -> None: self._type = type @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. Returns @@ -116,7 +126,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateDiscreteParameterValue. Parameters @@ -144,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 13577748..17e8ba88 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersUpdateDiscreteRange(ModelBase): +class GrantaServerApiSchemaParametersUpdateDiscreteRange(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaParametersUpdateDiscreteRange(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter_values": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter_values": "parameterValues", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterValues": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -61,12 +71,12 @@ def __init__( ---------- parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] """ - self._parameter_values = None + self._parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] = None # type: ignore[assignment] self.parameter_values = parameter_values @property - def parameter_values(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def parameter_values(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the parameter_values of this GrantaServerApiSchemaParametersUpdateDiscreteRange. Returns @@ -78,13 +88,13 @@ def parameter_values(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity] @parameter_values.setter def parameter_values( - self, parameter_values: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, parameter_values: "List[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the parameter_values of this GrantaServerApiSchemaParametersUpdateDiscreteRange. Parameters ---------- - parameter_values: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + parameter_values: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The parameter_values of this GrantaServerApiSchemaParametersUpdateDiscreteRange. """ if parameter_values is None: @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 42e9a6b3..dd74b9cd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaParametersUpdateNumericParameter( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "guid": "str", "help_path": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaParametersUpdateNumericParameter( "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "guid": "guid", "help_path": "helpPath", @@ -63,13 +73,13 @@ class GrantaServerApiSchemaParametersUpdateNumericParameter( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "interpolationType": "GrantaServerApiSchemaParametersParameterInterpolationType", "scaleType": "GrantaServerApiSchemaParametersParameterScaleType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -102,7 +112,7 @@ def __init__( help_path=help_path, name=name, ) - self._type = None + self._type: str = None # type: ignore[assignment] self._unit = None self._interpolation_type = None self._scale_type = None @@ -140,7 +150,7 @@ def type(self, type: "str") -> None: self._type = type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns @@ -151,7 +161,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. Parameters @@ -164,7 +176,7 @@ def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: @property def interpolation_type( self, - ) -> "GrantaServerApiSchemaParametersParameterInterpolationType": + ) -> "Optional[GrantaServerApiSchemaParametersParameterInterpolationType]": """Gets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns @@ -177,7 +189,7 @@ def interpolation_type( @interpolation_type.setter def interpolation_type( self, - interpolation_type: "GrantaServerApiSchemaParametersParameterInterpolationType", + interpolation_type: "Optional[GrantaServerApiSchemaParametersParameterInterpolationType]", ) -> None: """Sets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. @@ -189,7 +201,9 @@ def interpolation_type( self._interpolation_type = interpolation_type @property - def scale_type(self) -> "GrantaServerApiSchemaParametersParameterScaleType": + def scale_type( + self, + ) -> "Optional[GrantaServerApiSchemaParametersParameterScaleType]": """Gets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. Returns @@ -201,7 +215,7 @@ def scale_type(self) -> "GrantaServerApiSchemaParametersParameterScaleType": @scale_type.setter def scale_type( - self, scale_type: "GrantaServerApiSchemaParametersParameterScaleType" + self, scale_type: "Optional[GrantaServerApiSchemaParametersParameterScaleType]" ) -> None: """Sets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. @@ -230,7 +244,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 fb60ea19..d5181e71 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter_content import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSchemaParametersUpdateNumericParameterContent( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "parameter_range": "GrantaServerApiSchemaParametersUpdateContinuousRange", "type": "str", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", "parameter_range": "parameterRange", "type": "type", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameterRange": "GrantaServerApiSchemaParametersUpdateContinuousRange", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( value: float, optional """ super().__init__(parameter=parameter) - self._type = None + self._type: str = None # type: ignore[assignment] self._value = None self._parameter_range = None @@ -114,7 +124,7 @@ def type(self, type: "str") -> None: self._type = type @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Returns @@ -125,7 +135,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Parameters @@ -136,7 +146,9 @@ def value(self, value: "float") -> None: self._value = value @property - def parameter_range(self) -> "GrantaServerApiSchemaParametersUpdateContinuousRange": + def parameter_range( + self, + ) -> "Optional[GrantaServerApiSchemaParametersUpdateContinuousRange]": """Gets the parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. Returns @@ -148,7 +160,8 @@ def parameter_range(self) -> "GrantaServerApiSchemaParametersUpdateContinuousRan @parameter_range.setter def parameter_range( - self, parameter_range: "GrantaServerApiSchemaParametersUpdateContinuousRange" + self, + parameter_range: "Optional[GrantaServerApiSchemaParametersUpdateContinuousRange]", ) -> None: """Sets the parameter_range of this GrantaServerApiSchemaParametersUpdateNumericParameterContent. @@ -177,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 02726685..95f02143 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_parameters_update_parameter_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSchemaParametersUpdateNumericParameterValue( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "type": "str", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -78,7 +88,7 @@ def __init__( """ super().__init__(guid=guid) self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] self._name = None if value is not None: @@ -88,7 +98,7 @@ def __init__( self.name = name @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Returns @@ -99,7 +109,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Parameters @@ -134,7 +144,7 @@ def type(self, type: "str") -> None: self._type = type @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. Returns @@ -145,7 +155,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateNumericParameterValue. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b82ee639..1a9ef1c4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersUpdateParameter(ModelBase): +class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,28 +48,28 @@ class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_parameter_value_guid": "str", "guid": "str", "help_path": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_parameter_value_guid": "defaultParameterValueGuid", "guid": "guid", "help_path": "helpPath", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersUpdateDiscreteParameter", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersUpdateNumericParameter", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -93,7 +103,7 @@ def __init__( self.guid = guid @property - def help_path(self) -> "str": + def help_path(self) -> "Optional[str]": """Gets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. Returns @@ -104,7 +114,7 @@ def help_path(self) -> "str": return self._help_path @help_path.setter - def help_path(self, help_path: "str") -> None: + def help_path(self, help_path: "Optional[str]") -> None: """Sets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. Parameters @@ -115,7 +125,7 @@ def help_path(self, help_path: "str") -> None: self._help_path = help_path @property - def default_parameter_value_guid(self) -> "str": + def default_parameter_value_guid(self) -> "Optional[str]": """Gets the default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. Returns @@ -126,7 +136,9 @@ def default_parameter_value_guid(self) -> "str": return self._default_parameter_value_guid @default_parameter_value_guid.setter - def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> None: + def default_parameter_value_guid( + self, default_parameter_value_guid: "Optional[str]" + ) -> None: """Sets the default_parameter_value_guid of this GrantaServerApiSchemaParametersUpdateParameter. Parameters @@ -137,7 +149,7 @@ def default_parameter_value_guid(self, default_parameter_value_guid: "str") -> N self._default_parameter_value_guid = default_parameter_value_guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaParametersUpdateParameter. Returns @@ -148,7 +160,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaParametersUpdateParameter. Parameters @@ -159,7 +171,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaParametersUpdateParameter. Returns @@ -170,7 +182,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersUpdateParameter. Parameters @@ -192,19 +204,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d002f7ec..02ae9157 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): +class GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } @@ -55,7 +65,7 @@ class GrantaServerApiSchemaParametersUpdateParameterContent(ModelBase): "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersUpdateNumericParameterContent", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,7 +78,7 @@ def __init__( ---------- parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity """ - self._parameter = None + self._parameter: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self.parameter = parameter @@ -110,19 +120,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 93a9d89f..11336a16 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): +class GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,22 +48,22 @@ class GrantaServerApiSchemaParametersUpdateParameterValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "discrete".lower(): "#/components/schemas/GrantaServerApiSchemaParametersUpdateDiscreteParameterValue", "numeric".lower(): "#/components/schemas/GrantaServerApiSchemaParametersUpdateNumericParameterValue", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaParametersUpdateParameterValue. Returns @@ -83,7 +93,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaParametersUpdateParameterValue. Parameters @@ -105,19 +115,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 baefe7be..f1a08b1a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): +class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "table_guid": "str", "guid": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): "subset_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "table_guid": "tableGuid", "guid": "guid", @@ -52,9 +62,9 @@ class GrantaServerApiSchemaProfileTablesCreateProfileTable(ModelBase): "subset_guid": "subsetGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,8 +85,8 @@ def __init__( layout_guid: str, optional subset_guid: str, optional """ - self._database_guid = None - self._table_guid = None + 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 @@ -139,7 +149,7 @@ def table_guid(self, table_guid: "str") -> None: self._table_guid = table_guid @property - def subset_guid(self) -> "str": + def subset_guid(self) -> "Optional[str]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns @@ -150,7 +160,7 @@ def subset_guid(self) -> "str": return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "str") -> None: + def subset_guid(self, subset_guid: "Optional[str]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters @@ -161,7 +171,7 @@ def subset_guid(self, subset_guid: "str") -> None: self._subset_guid = subset_guid @property - def layout_guid(self) -> "str": + def layout_guid(self) -> "Optional[str]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns @@ -172,7 +182,7 @@ def layout_guid(self) -> "str": return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "str") -> None: + def layout_guid(self, layout_guid: "Optional[str]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters @@ -183,7 +193,7 @@ def layout_guid(self, layout_guid: "str") -> None: self._layout_guid = layout_guid @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Returns @@ -194,7 +204,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesCreateProfileTable. Parameters @@ -222,7 +232,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4c20f687..a33b3a29 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): +class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "table_guid": "str", "database_fallback_hint": "str", @@ -48,7 +58,7 @@ class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): "table_fallback_hint": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "table_guid": "tableGuid", "database_fallback_hint": "databaseFallbackHint", @@ -60,9 +70,9 @@ class GrantaServerApiSchemaProfileTablesProfileTable(ModelBase): "table_fallback_hint": "tableFallbackHint", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,9 +106,9 @@ def __init__( self._layout_guid = None self._layout_fallback_hint = None self._guid = None - self._database_guid = None + self._database_guid: str = None # type: ignore[assignment] self._database_fallback_hint = None - self._table_guid = None + self._table_guid: str = None # type: ignore[assignment] self._table_fallback_hint = None if subset_guid is not None: @@ -119,7 +129,7 @@ def __init__( self.table_fallback_hint = table_fallback_hint @property - def subset_guid(self) -> "str": + def subset_guid(self) -> "Optional[str]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -130,7 +140,7 @@ def subset_guid(self) -> "str": return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "str") -> None: + def subset_guid(self, subset_guid: "Optional[str]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -141,7 +151,7 @@ def subset_guid(self, subset_guid: "str") -> None: self._subset_guid = subset_guid @property - def subset_fallback_hint(self) -> "str": + def subset_fallback_hint(self) -> "Optional[str]": """Gets the subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -152,7 +162,7 @@ def subset_fallback_hint(self) -> "str": return self._subset_fallback_hint @subset_fallback_hint.setter - def subset_fallback_hint(self, subset_fallback_hint: "str") -> None: + def subset_fallback_hint(self, subset_fallback_hint: "Optional[str]") -> None: """Sets the subset_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -163,7 +173,7 @@ def subset_fallback_hint(self, subset_fallback_hint: "str") -> None: self._subset_fallback_hint = subset_fallback_hint @property - def layout_guid(self) -> "str": + def layout_guid(self) -> "Optional[str]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -174,7 +184,7 @@ def layout_guid(self) -> "str": return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "str") -> None: + def layout_guid(self, layout_guid: "Optional[str]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -185,7 +195,7 @@ def layout_guid(self, layout_guid: "str") -> None: self._layout_guid = layout_guid @property - def layout_fallback_hint(self) -> "str": + def layout_fallback_hint(self) -> "Optional[str]": """Gets the layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -196,7 +206,7 @@ def layout_fallback_hint(self) -> "str": return self._layout_fallback_hint @layout_fallback_hint.setter - def layout_fallback_hint(self, layout_fallback_hint: "str") -> None: + def layout_fallback_hint(self, layout_fallback_hint: "Optional[str]") -> None: """Sets the layout_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -207,7 +217,7 @@ def layout_fallback_hint(self, layout_fallback_hint: "str") -> None: self._layout_fallback_hint = layout_fallback_hint @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -218,7 +228,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -253,7 +263,7 @@ def database_guid(self, database_guid: "str") -> None: self._database_guid = database_guid @property - def database_fallback_hint(self) -> "str": + def database_fallback_hint(self) -> "Optional[str]": """Gets the database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -264,7 +274,7 @@ def database_fallback_hint(self) -> "str": return self._database_fallback_hint @database_fallback_hint.setter - def database_fallback_hint(self, database_fallback_hint: "str") -> None: + def database_fallback_hint(self, database_fallback_hint: "Optional[str]") -> None: """Sets the database_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -299,7 +309,7 @@ def table_guid(self, table_guid: "str") -> None: self._table_guid = table_guid @property - def table_fallback_hint(self) -> "str": + def table_fallback_hint(self) -> "Optional[str]": """Gets the table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Returns @@ -310,7 +320,7 @@ def table_fallback_hint(self) -> "str": return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint(self, table_fallback_hint: "str") -> None: + def table_fallback_hint(self, table_fallback_hint: "Optional[str]") -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaProfileTablesProfileTable. Parameters @@ -338,7 +348,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 adade835..06767732 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): +class GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaProfileTablesProfileTablesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "profile_tables": "list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]", } - attribute_map = { + attribute_map: Dict[str, str] = { "profile_tables": "profileTables", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "profileTables": "GrantaServerApiSchemaSlimEntitiesSlimProfileTable", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( @property def profile_tables( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]]": """Gets the profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. Returns @@ -81,13 +91,14 @@ def profile_tables( @profile_tables.setter def profile_tables( - self, profile_tables: "list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]" + self, + profile_tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]]", ) -> None: """Sets the profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. Parameters ---------- - profile_tables: list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] The profile_tables of this GrantaServerApiSchemaProfileTablesProfileTablesInfo. """ self._profile_tables = profile_tables @@ -110,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8b736a48..8efa25af 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): +class GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaProfileTablesUpdateProfileTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "layout_guid": "str", "subset_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "layout_guid": "layoutGuid", "subset_guid": "subsetGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.guid = guid @property - def subset_guid(self) -> "str": + def subset_guid(self) -> "Optional[str]": """Gets the subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns @@ -90,7 +100,7 @@ def subset_guid(self) -> "str": return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "str") -> None: + def subset_guid(self, subset_guid: "Optional[str]") -> None: """Sets the subset_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters @@ -101,7 +111,7 @@ def subset_guid(self, subset_guid: "str") -> None: self._subset_guid = subset_guid @property - def layout_guid(self) -> "str": + def layout_guid(self) -> "Optional[str]": """Gets the layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns @@ -112,7 +122,7 @@ def layout_guid(self) -> "str": return self._layout_guid @layout_guid.setter - def layout_guid(self, layout_guid: "str") -> None: + def layout_guid(self, layout_guid: "Optional[str]") -> None: """Sets the layout_guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters @@ -123,7 +133,7 @@ def layout_guid(self, layout_guid: "str") -> None: self._layout_guid = layout_guid @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Returns @@ -134,7 +144,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfileTablesUpdateProfileTable. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 cc2655bf..208bbd34 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): +class GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiSchemaProfilesAllProfilesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_profile": "GrantaServerApiSchemaSlimEntitiesSlimProfile", "profiles": "list[GrantaServerApiSchemaSlimEntitiesSlimProfile]", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_profile": "defaultProfile", "profiles": "profiles", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "profiles": "GrantaServerApiSchemaSlimEntitiesSlimProfile", "defaultProfile": "GrantaServerApiSchemaSlimEntitiesSlimProfile", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,9 @@ def __init__( self.default_profile = default_profile @property - def profiles(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimProfile]": + def profiles( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfile]]": """Gets the profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. Returns @@ -87,19 +99,21 @@ def profiles(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimProfile]": @profiles.setter def profiles( - self, profiles: "list[GrantaServerApiSchemaSlimEntitiesSlimProfile]" + self, profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimProfile]]" ) -> None: """Sets the profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. Parameters ---------- - profiles: list[GrantaServerApiSchemaSlimEntitiesSlimProfile] + profiles: List[GrantaServerApiSchemaSlimEntitiesSlimProfile] The profiles of this GrantaServerApiSchemaProfilesAllProfilesInfo. """ self._profiles = profiles @property - def default_profile(self) -> "GrantaServerApiSchemaSlimEntitiesSlimProfile": + def default_profile( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimProfile]": """Gets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. Returns @@ -111,7 +125,7 @@ def default_profile(self) -> "GrantaServerApiSchemaSlimEntitiesSlimProfile": @default_profile.setter def default_profile( - self, default_profile: "GrantaServerApiSchemaSlimEntitiesSlimProfile" + self, default_profile: "Optional[GrantaServerApiSchemaSlimEntitiesSlimProfile]" ) -> None: """Sets the default_profile of this GrantaServerApiSchemaProfilesAllProfilesInfo. @@ -140,7 +154,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c275ae84..3b33e2fa 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesCreateProfile(ModelBase): +class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "description": "str", "group_name": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): "homepage_url": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "description": "description", "group_name": "groupName", @@ -52,9 +62,9 @@ class GrantaServerApiSchemaProfilesCreateProfile(ModelBase): "homepage_url": "homepageUrl", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -78,7 +88,7 @@ def __init__( self._description = None self._homepage_url = None self._group_name = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if description is not None: @@ -92,7 +102,7 @@ def __init__( self.guid = guid @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaProfilesCreateProfile. Returns @@ -103,7 +113,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesCreateProfile. Parameters @@ -114,7 +124,7 @@ def description(self, description: "str") -> None: self._description = description @property - def homepage_url(self) -> "str": + def homepage_url(self) -> "Optional[str]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. Returns @@ -125,7 +135,7 @@ def homepage_url(self) -> "str": return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "str") -> None: + def homepage_url(self, homepage_url: "Optional[str]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesCreateProfile. Parameters @@ -136,7 +146,7 @@ def homepage_url(self, homepage_url: "str") -> None: self._homepage_url = homepage_url @property - def group_name(self) -> "str": + def group_name(self) -> "Optional[str]": """Gets the group_name of this GrantaServerApiSchemaProfilesCreateProfile. Returns @@ -147,7 +157,7 @@ def group_name(self) -> "str": return self._group_name @group_name.setter - def group_name(self, group_name: "str") -> None: + def group_name(self, group_name: "Optional[str]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesCreateProfile. Parameters @@ -182,7 +192,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfilesCreateProfile. Returns @@ -193,7 +203,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesCreateProfile. Parameters @@ -221,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d18a2304..31b962fe 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesProfile(ModelBase): +class GrantaServerApiSchemaProfilesProfile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaProfilesProfile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "is_implicit": "bool", "key": "str", "name": "str", @@ -47,7 +57,7 @@ class GrantaServerApiSchemaProfilesProfile(ModelBase): "homepage_url": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "is_implicit": "isImplicit", "key": "key", "name": "name", @@ -58,11 +68,11 @@ class GrantaServerApiSchemaProfilesProfile(ModelBase): "homepage_url": "homepageUrl", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "profileTables": "GrantaServerApiSchemaSlimEntitiesSlimProfileTable", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -91,12 +101,12 @@ def __init__( """ self._description = None self._homepage_url = None - self._profile_tables = None - self._key = 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 = None - self._name = None + self._is_implicit: bool = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] if description is not None: self.description = description @@ -112,7 +122,7 @@ def __init__( self.name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaProfilesProfile. Returns @@ -123,7 +133,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesProfile. Parameters @@ -134,7 +144,7 @@ def description(self, description: "str") -> None: self._description = description @property - def homepage_url(self) -> "str": + def homepage_url(self) -> "Optional[str]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesProfile. Returns @@ -145,7 +155,7 @@ def homepage_url(self) -> "str": return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "str") -> None: + def homepage_url(self, homepage_url: "Optional[str]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesProfile. Parameters @@ -158,7 +168,7 @@ def homepage_url(self, homepage_url: "str") -> None: @property def profile_tables( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]": """Gets the profile_tables of this GrantaServerApiSchemaProfilesProfile. Returns @@ -170,13 +180,13 @@ def profile_tables( @profile_tables.setter def profile_tables( - self, profile_tables: "list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]" + self, profile_tables: "List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable]" ) -> None: """Sets the profile_tables of this GrantaServerApiSchemaProfilesProfile. Parameters ---------- - profile_tables: list[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] + profile_tables: List[GrantaServerApiSchemaSlimEntitiesSlimProfileTable] The profile_tables of this GrantaServerApiSchemaProfilesProfile. """ if profile_tables is None: @@ -210,7 +220,7 @@ def key(self, key: "str") -> None: self._key = key @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfilesProfile. Guid is a unique identifier of a profile. Separate from key. @@ -222,7 +232,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesProfile. Guid is a unique identifier of a profile. Separate from key. @@ -234,7 +244,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def group_name(self) -> "str": + def group_name(self) -> "Optional[str]": """Gets the group_name of this GrantaServerApiSchemaProfilesProfile. Returns @@ -245,7 +255,7 @@ def group_name(self) -> "str": return self._group_name @group_name.setter - def group_name(self, group_name: "str") -> None: + def group_name(self, group_name: "Optional[str]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesProfile. Parameters @@ -321,7 +331,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d47055a9..40e5c043 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): +class GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiSchemaProfilesUpdateAllProfilesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_profile": "GrantaServerApiSchemaProfilesUpdateDefaultProfile", "profiles": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_profile": "defaultProfile", "profiles": "profiles", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "profiles": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "defaultProfile": "GrantaServerApiSchemaProfilesUpdateDefaultProfile", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( self.default_profile = default_profile @property - def profiles(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def profiles(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Returns @@ -87,19 +97,21 @@ def profiles(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": @profiles.setter def profiles( - self, profiles: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, profiles: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]" ) -> None: """Sets the profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Parameters ---------- - profiles: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + profiles: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The profiles of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. """ self._profiles = profiles @property - def default_profile(self) -> "GrantaServerApiSchemaProfilesUpdateDefaultProfile": + def default_profile( + self, + ) -> "Optional[GrantaServerApiSchemaProfilesUpdateDefaultProfile]": """Gets the default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. Returns @@ -111,7 +123,8 @@ def default_profile(self) -> "GrantaServerApiSchemaProfilesUpdateDefaultProfile" @default_profile.setter def default_profile( - self, default_profile: "GrantaServerApiSchemaProfilesUpdateDefaultProfile" + self, + default_profile: "Optional[GrantaServerApiSchemaProfilesUpdateDefaultProfile]", ) -> None: """Sets the default_profile of this GrantaServerApiSchemaProfilesUpdateAllProfilesInfo. @@ -140,7 +153,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9857b1d8..24907ee2 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesUpdateDefaultProfile(ModelBase): +class GrantaServerApiSchemaProfilesUpdateDefaultProfile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSchemaProfilesUpdateDefaultProfile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "key": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "key": "key", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- key: str """ - self._key = None + self._key: str = None # type: ignore[assignment] self.key = key @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 98268513..8b7d8a35 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): +class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "description": "str", "group_name": "str", "guid": "str", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): "profile_table_guids": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "description": "description", "group_name": "groupName", "guid": "guid", @@ -54,9 +64,9 @@ class GrantaServerApiSchemaProfilesUpdateProfile(ModelBase): "profile_table_guids": "profileTableGuids", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( self.name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSchemaProfilesUpdateProfile. Returns @@ -111,7 +121,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters @@ -122,7 +132,7 @@ def description(self, description: "str") -> None: self._description = description @property - def homepage_url(self) -> "str": + def homepage_url(self) -> "Optional[str]": """Gets the homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. Returns @@ -133,7 +143,7 @@ def homepage_url(self) -> "str": return self._homepage_url @homepage_url.setter - def homepage_url(self, homepage_url: "str") -> None: + def homepage_url(self, homepage_url: "Optional[str]") -> None: """Sets the homepage_url of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters @@ -144,7 +154,7 @@ def homepage_url(self, homepage_url: "str") -> None: self._homepage_url = homepage_url @property - def profile_table_guids(self) -> "list[str]": + def profile_table_guids(self) -> "Optional[List[str]]": """Gets the profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. Returns @@ -155,18 +165,18 @@ def profile_table_guids(self) -> "list[str]": return self._profile_table_guids @profile_table_guids.setter - def profile_table_guids(self, profile_table_guids: "list[str]") -> None: + def profile_table_guids(self, profile_table_guids: "Optional[List[str]]") -> None: """Sets the profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters ---------- - profile_table_guids: list[str] + profile_table_guids: List[str] The profile_table_guids of this GrantaServerApiSchemaProfilesUpdateProfile. """ self._profile_table_guids = profile_table_guids @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaProfilesUpdateProfile. Guid is a unique identifier of a profile. Separate from key. @@ -178,7 +188,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaProfilesUpdateProfile. Guid is a unique identifier of a profile. Separate from key. @@ -190,7 +200,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def group_name(self) -> "str": + def group_name(self) -> "Optional[str]": """Gets the group_name of this GrantaServerApiSchemaProfilesUpdateProfile. Returns @@ -201,7 +211,7 @@ def group_name(self) -> "str": return self._group_name @group_name.setter - def group_name(self, group_name: "str") -> None: + def group_name(self, group_name: "Optional[str]") -> None: """Sets the group_name of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters @@ -212,7 +222,7 @@ def group_name(self, group_name: "str") -> None: self._group_name = group_name @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaProfilesUpdateProfile. Returns @@ -223,7 +233,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaProfilesUpdateProfile. Parameters @@ -251,7 +261,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7a30da23..43bd8570 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_source": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", "attribute_target": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_source": "attributeSource", "attribute_target": "attributeTarget", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributeSource": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", "attributeTarget": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,9 @@ def __init__( self.attribute_target = attribute_target @property - def attribute_source(self) -> "GrantaServerApiSchemaSlimEntitiesSlimAttribute": + def attribute_source( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": """Gets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Returns @@ -87,7 +99,8 @@ def attribute_source(self) -> "GrantaServerApiSchemaSlimEntitiesSlimAttribute": @attribute_source.setter def attribute_source( - self, attribute_source: "GrantaServerApiSchemaSlimEntitiesSlimAttribute" + self, + attribute_source: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]", ) -> None: """Sets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. @@ -99,7 +112,9 @@ def attribute_source( self._attribute_source = attribute_source @property - def attribute_target(self) -> "GrantaServerApiSchemaSlimEntitiesSlimAttribute": + def attribute_target( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]": """Gets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. Returns @@ -111,7 +126,8 @@ def attribute_target(self) -> "GrantaServerApiSchemaSlimEntitiesSlimAttribute": @attribute_target.setter def attribute_target( - self, attribute_target: "GrantaServerApiSchemaSlimEntitiesSlimAttribute" + self, + attribute_target: "Optional[GrantaServerApiSchemaSlimEntitiesSlimAttribute]", ) -> None: """Sets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. @@ -140,7 +156,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 83c1ba5c..971b8220 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_source_guid": "str", "attribute_target_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_source_guid": "attributeSourceGuid", "attribute_target_guid": "attributeTargetGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( attribute_source_guid: str attribute_target_guid: str """ - self._attribute_source_guid = None - self._attribute_target_guid = None + self._attribute_source_guid: str = None # type: ignore[assignment] + self._attribute_target_guid: str = None # type: ignore[assignment] self.attribute_source_guid = attribute_source_guid self.attribute_target_guid = attribute_target_guid @@ -139,7 +149,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8d2f816b..104eb685 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_create_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_target": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "name": "str", "reverse_name": "str", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_target": "linkTarget", "name": "name", "reverse_name": "reverseName", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -87,7 +97,7 @@ def __init__( super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type = None + self._type: str = None # type: ignore[assignment] self._include_indirect_links = None self.type = type @@ -119,7 +129,7 @@ def type(self, type: "str") -> None: self._type = type @property - def include_indirect_links(self) -> "bool": + def include_indirect_links(self) -> "Optional[bool]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. Returns @@ -130,7 +140,7 @@ def include_indirect_links(self) -> "bool": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "bool") -> None: + def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup. Parameters @@ -158,7 +168,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1430f6a2..895b0811 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_create_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_pairs": "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", "link_target": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_pairs": "attributePairs", "link_target": "linkTarget", "name": "name", @@ -63,12 +73,12 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "referentialIntegrityModel": "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", "attributePairs": "GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -98,10 +108,10 @@ def __init__( super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type = None + self._type: str = None # type: ignore[assignment] self._forbid_orphans = None self._referential_integrity_model = None - self._attribute_pairs = None + self._attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] = None # type: ignore[assignment] self.type = type if forbid_orphans is not None: @@ -135,7 +145,7 @@ def type(self, type: "str") -> None: self._type = type @property - def forbid_orphans(self) -> "bool": + def forbid_orphans(self) -> "Optional[bool]": """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Returns @@ -146,7 +156,7 @@ def forbid_orphans(self) -> "bool": return self._forbid_orphans @forbid_orphans.setter - def forbid_orphans(self, forbid_orphans: "bool") -> None: + def forbid_orphans(self, forbid_orphans: "Optional[bool]") -> None: """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Parameters @@ -159,7 +169,7 @@ def forbid_orphans(self, forbid_orphans: "bool") -> None: @property def referential_integrity_model( self, - ) -> "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel": + ) -> "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]": """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Returns @@ -172,7 +182,7 @@ def referential_integrity_model( @referential_integrity_model.setter def referential_integrity_model( self, - referential_integrity_model: "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", + referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]", ) -> None: """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. @@ -186,7 +196,7 @@ def referential_integrity_model( @property def attribute_pairs( self, - ) -> "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]": + ) -> "List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]": """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Returns @@ -199,13 +209,13 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( self, - attribute_pairs: "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", + attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. Parameters ---------- - attribute_pairs: list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsCreateDynamicRecordLinkGroup. """ if attribute_pairs is None: @@ -230,7 +240,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 368dbda2..4064b133 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,21 +48,21 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_target": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "name": "str", "reverse_name": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_target": "linkTarget", "name": "name", "reverse_name": "reverseName", "guid": "guid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkTarget": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", } @@ -62,7 +72,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup(ModelBase): "crossDatabase".lower(): "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCreateCrossDatabaseRecordLinkGroup", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -81,9 +91,9 @@ def __init__( reverse_name: str guid: str, optional """ - self._link_target = None - self._reverse_name = None - self._name = None + 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 = link_target @@ -167,7 +177,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. Returns @@ -178,7 +188,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsCreateRecordLinkGroup. Parameters @@ -200,19 +210,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8a39b044..3fd24812 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_create_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_target": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "name": "str", "reverse_name": "str", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_target": "linkTarget", "name": "name", "reverse_name": "reverseName", @@ -59,9 +69,9 @@ class GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -87,7 +97,7 @@ def __init__( super().__init__( link_target=link_target, name=name, reverse_name=reverse_name, guid=guid ) - self._type = None + self._type: str = None # type: ignore[assignment] self._include_indirect_links = None self.type = type @@ -119,7 +129,7 @@ def type(self, type: "str") -> None: self._type = type @property - def include_indirect_links(self) -> "bool": + def include_indirect_links(self) -> "Optional[bool]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. Returns @@ -130,7 +140,7 @@ def include_indirect_links(self) -> "bool": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "bool") -> None: + def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCreateStaticRecordLinkGroup. Parameters @@ -158,7 +168,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e8a89887..855ff4c5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "include_indirect_links": "bool", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "include_indirect_links": "includeIndirectLinks", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -105,8 +115,8 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type = None - self._include_indirect_links = None + self._type: str = None # type: ignore[assignment] + self._include_indirect_links: bool = None # type: ignore[assignment] self.type = type self.include_indirect_links = include_indirect_links @@ -179,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2ca368e9..8e9edc79 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_pairs": "list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]", "display_names": "dict(str, str)", "forbid_orphans": "bool", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_pairs": "attributePairs", "display_names": "displayNames", "forbid_orphans": "forbidOrphans", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "referentialIntegrityModel": "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", "attributePairs": "GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -116,10 +126,10 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type = None - self._forbid_orphans = None - self._referential_integrity_model = None - self._attribute_pairs = None + 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 = type self.forbid_orphans = forbid_orphans @@ -208,7 +218,7 @@ def referential_integrity_model( @property def attribute_pairs( self, - ) -> "list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]": + ) -> "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]": """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. Returns @@ -221,13 +231,13 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( self, - attribute_pairs: "list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]", + attribute_pairs: "List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]", ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. Parameters ---------- - attribute_pairs: list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. """ if attribute_pairs is None: @@ -252,7 +262,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f0826527..4e2d7e31 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "link_source": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "link_target": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", } - attribute_map = { + attribute_map: Dict[str, str] = { "link_source": "linkSource", "link_target": "linkTarget", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkSource": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", "linkTarget": "GrantaServerApiSchemaRecordLinkGroupsLinkTarget", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -66,8 +76,8 @@ def __init__( link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget """ - self._link_source = None - self._link_target = None + self._link_source: GrantaServerApiSchemaRecordLinkGroupsLinkTarget = None # type: ignore[assignment] + self._link_target: GrantaServerApiSchemaRecordLinkGroupsLinkTarget = None # type: ignore[assignment] self.link_source = link_source self.link_target = link_target @@ -142,7 +152,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0b24ad1a..c6e5a6f0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "database_version_guid": "str", "table_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "database_version_guid": "databaseVersionGuid", "table_guid": "tableGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.table_guid = table_guid @property - def database_guid(self) -> "str": + def database_guid(self) -> "Optional[str]": """Gets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns @@ -90,7 +100,7 @@ def database_guid(self) -> "str": return self._database_guid @database_guid.setter - def database_guid(self, database_guid: "str") -> None: + def database_guid(self, database_guid: "Optional[str]") -> None: """Sets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters @@ -101,7 +111,7 @@ def database_guid(self, database_guid: "str") -> None: self._database_guid = database_guid @property - def database_version_guid(self) -> "str": + def database_version_guid(self) -> "Optional[str]": """Gets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns @@ -112,7 +122,7 @@ def database_version_guid(self) -> "str": return self._database_version_guid @database_version_guid.setter - def database_version_guid(self, database_version_guid: "str") -> None: + def database_version_guid(self, database_version_guid: "Optional[str]") -> None: """Sets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters @@ -123,7 +133,7 @@ def database_version_guid(self, database_version_guid: "str") -> None: self._database_version_guid = database_version_guid @property - def table_guid(self) -> "str": + def table_guid(self) -> "Optional[str]": """Gets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Returns @@ -134,7 +144,7 @@ def table_guid(self) -> "str": return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "str") -> None: + def table_guid(self, table_guid: "Optional[str]") -> None: """Sets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8d85512a..d5f810a0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "link_info": "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", @@ -48,7 +58,7 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): "reverse_display_names": "dict(str, str)", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "link_info": "linkInfo", @@ -58,7 +68,7 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): "reverse_display_names": "reverseDisplayNames", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkInfo": "GrantaServerApiSchemaRecordLinkGroupsLinkInfo", } @@ -68,7 +78,7 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): "crossDatabase".lower(): "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -93,13 +103,13 @@ def __init__( identity: int, optional reverse_display_names: Dict[str, str], optional """ - self._link_info = None + self._link_info: GrantaServerApiSchemaRecordLinkGroupsLinkInfo = None # type: ignore[assignment] self._identity = None - self._reverse_name = None + self._reverse_name: str = None # type: ignore[assignment] self._reverse_display_names = None - self._display_names = None - self._name = None - self._guid = 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 = link_info if identity is not None: @@ -138,7 +148,7 @@ def link_info( self._link_info = link_info @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Returns @@ -149,7 +159,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters @@ -184,7 +194,7 @@ def reverse_name(self, reverse_name: "str") -> None: self._reverse_name = reverse_name @property - def reverse_display_names(self) -> "dict(str, str)": + def reverse_display_names(self) -> "Optional[Dict[str, str]]": """Gets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Returns @@ -195,18 +205,20 @@ def reverse_display_names(self) -> "dict(str, str)": return self._reverse_display_names @reverse_display_names.setter - def reverse_display_names(self, reverse_display_names: "dict(str, str)") -> None: + def reverse_display_names( + self, reverse_display_names: "Optional[Dict[str, str]]" + ) -> None: """Sets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters ---------- - reverse_display_names: dict(str, str) + reverse_display_names: Dict[str, str] The reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ self._reverse_display_names = reverse_display_names @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Returns @@ -217,12 +229,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. """ if display_names is None: @@ -289,19 +301,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bf44be4c..10fd9b71 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "record_link_groups": "list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]", } - attribute_map = { + attribute_map: Dict[str, str] = { "record_link_groups": "recordLinkGroups", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "recordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -69,7 +79,7 @@ def __init__( @property def record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]]": """Gets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. Returns @@ -82,13 +92,13 @@ def record_link_groups( @record_link_groups.setter def record_link_groups( self, - record_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]", + record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]]", ) -> None: """Sets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. Parameters ---------- - record_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] + record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] The record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. """ self._record_link_groups = record_link_groups @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 137f98cc..a8367b72 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "include_indirect_links": "bool", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "include_indirect_links": "includeIndirectLinks", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -105,8 +115,8 @@ def __init__( identity=identity, reverse_display_names=reverse_display_names, ) - self._type = None - self._include_indirect_links = None + self._type: str = None # type: ignore[assignment] + self._include_indirect_links: bool = None # type: ignore[assignment] self.type = type self.include_indirect_links = include_indirect_links @@ -179,7 +189,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 87ccf5f9..d5c51bc4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_update_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "include_indirect_links": "bool", "name": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "include_indirect_links": "includeIndirectLinks", "name": "name", @@ -57,9 +67,9 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,14 +92,14 @@ def __init__( """ super().__init__(guid=guid, name=name, reverse_name=reverse_name) self._include_indirect_links = None - self._type = None + self._type: str = None # type: ignore[assignment] if include_indirect_links is not None: self.include_indirect_links = include_indirect_links self.type = type @property - def include_indirect_links(self) -> "bool": + def include_indirect_links(self) -> "Optional[bool]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. Returns @@ -100,7 +110,7 @@ def include_indirect_links(self) -> "bool": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "bool") -> None: + def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. Parameters @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 65c276b1..b0f0e34b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_update_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_pairs": "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", "forbid_orphans": "bool", "guid": "str", @@ -51,7 +61,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_pairs": "attributePairs", "forbid_orphans": "forbidOrphans", "guid": "guid", @@ -61,12 +71,12 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "referentialIntegrityModel": "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", "attributePairs": "GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -95,7 +105,7 @@ def __init__( self._forbid_orphans = None self._referential_integrity_model = None self._attribute_pairs = None - self._type = None + self._type: str = None # type: ignore[assignment] if forbid_orphans is not None: self.forbid_orphans = forbid_orphans @@ -106,7 +116,7 @@ def __init__( self.type = type @property - def forbid_orphans(self) -> "bool": + def forbid_orphans(self) -> "Optional[bool]": """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns @@ -117,7 +127,7 @@ def forbid_orphans(self) -> "bool": return self._forbid_orphans @forbid_orphans.setter - def forbid_orphans(self, forbid_orphans: "bool") -> None: + def forbid_orphans(self, forbid_orphans: "Optional[bool]") -> None: """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Parameters @@ -130,7 +140,7 @@ def forbid_orphans(self, forbid_orphans: "bool") -> None: @property def referential_integrity_model( self, - ) -> "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel": + ) -> "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]": """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns @@ -143,7 +153,7 @@ def referential_integrity_model( @referential_integrity_model.setter def referential_integrity_model( self, - referential_integrity_model: "GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel", + referential_integrity_model: "Optional[GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel]", ) -> None: """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. @@ -157,7 +167,7 @@ def referential_integrity_model( @property def attribute_pairs( self, - ) -> "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]": + ) -> "Optional[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]]": """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Returns @@ -170,13 +180,13 @@ def attribute_pairs( @attribute_pairs.setter def attribute_pairs( self, - attribute_pairs: "list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]", + attribute_pairs: "Optional[List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair]]", ) -> None: """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. Parameters ---------- - attribute_pairs: list[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] + attribute_pairs: List[GrantaServerApiSchemaRecordLinkGroupsCreateAttributeLinkPair] The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. """ self._attribute_pairs = attribute_pairs @@ -223,7 +233,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9108cf29..b095f1da 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): +class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,19 +48,19 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "reverse_name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "reverse_name": "reverseName", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "static".lower(): "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup", @@ -58,7 +68,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): "crossDatabase".lower(): "#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -87,7 +97,7 @@ def __init__( self.guid = guid @property - def reverse_name(self) -> "str": + def reverse_name(self) -> "Optional[str]": """Gets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns @@ -98,7 +108,7 @@ def reverse_name(self) -> "str": return self._reverse_name @reverse_name.setter - def reverse_name(self, reverse_name: "str") -> None: + def reverse_name(self, reverse_name: "Optional[str]") -> None: """Sets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters @@ -109,7 +119,7 @@ def reverse_name(self, reverse_name: "str") -> None: self._reverse_name = reverse_name @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns @@ -120,7 +130,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters @@ -131,7 +141,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Returns @@ -142,7 +152,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. Parameters @@ -164,19 +174,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f1521cba..09d02999 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_record_link_groups_update_record_link_group import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "include_indirect_links": "bool", "name": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "include_indirect_links": "includeIndirectLinks", "name": "name", @@ -57,9 +67,9 @@ class GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,14 +92,14 @@ def __init__( """ super().__init__(guid=guid, name=name, reverse_name=reverse_name) self._include_indirect_links = None - self._type = None + self._type: str = None # type: ignore[assignment] if include_indirect_links is not None: self.include_indirect_links = include_indirect_links self.type = type @property - def include_indirect_links(self) -> "bool": + def include_indirect_links(self) -> "Optional[bool]": """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. Returns @@ -100,7 +110,7 @@ def include_indirect_links(self) -> "bool": return self._include_indirect_links @include_indirect_links.setter - def include_indirect_links(self, include_indirect_links: "bool") -> None: + def include_indirect_links(self, include_indirect_links: "Optional[bool]") -> None: """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. Parameters @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 abd0a566..65139c44 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): "about_attribute": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -52,12 +62,12 @@ class GrantaServerApiSchemaSlimEntitiesSlimAttribute(ModelBase): "about_attribute": "aboutAttribute", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiAttributeType", "aboutAttribute": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -78,11 +88,11 @@ def __init__( type: GrantaServerApiAttributeType about_attribute: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity, optional """ - self._type = None + self._type: GrantaServerApiAttributeType = None # type: ignore[assignment] self._about_attribute = None - self._display_names = None - self._name = None - self._guid = 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 = type if about_attribute is not None: @@ -116,7 +126,9 @@ def type(self, type: "GrantaServerApiAttributeType") -> None: self._type = type @property - def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": + def about_attribute( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. Returns @@ -128,7 +140,8 @@ def about_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity": @about_attribute.setter def about_attribute( - self, about_attribute: "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + self, + about_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the about_attribute of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. @@ -140,7 +153,7 @@ def about_attribute( self._about_attribute = about_attribute @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. Returns @@ -151,12 +164,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimAttribute. """ if display_names is None: @@ -229,7 +242,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 02db0776..ff6054d5 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e58df245..bd14f1d9 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimConstant(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimConstant(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimConstant(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9bc16e9e..9c70aa3b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "is_locked": "bool", "is_read_only": "bool", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): "version_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "is_locked": "isLocked", "is_read_only": "isReadOnly", @@ -64,11 +74,11 @@ class GrantaServerApiSchemaSlimEntitiesSlimDatabase(ModelBase): "version_guid": "versionGuid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "status": "GrantaServerApiSchemaDatabaseStatus", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,17 +111,17 @@ def __init__( schema_version: str, optional version_guid: str, optional """ - self._key = None + self._key: str = None # type: ignore[assignment] self._version_guid = None - self._status = None - self._is_read_only = None - self._is_locked = 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 = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.key = key if version_guid is not None: @@ -155,7 +165,7 @@ def key(self, key: "str") -> None: self._key = key @property - def version_guid(self) -> "str": + def version_guid(self) -> "Optional[str]": """Gets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns @@ -166,7 +176,7 @@ def version_guid(self) -> "str": return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "str") -> None: + def version_guid(self, version_guid: "Optional[str]") -> None: """Sets the version_guid of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters @@ -249,7 +259,7 @@ def is_locked(self, is_locked: "bool") -> None: self._is_locked = is_locked @property - def index_in_sync(self) -> "bool": + def index_in_sync(self) -> "Optional[bool]": """Gets the index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns @@ -260,7 +270,7 @@ def index_in_sync(self) -> "bool": return self._index_in_sync @index_in_sync.setter - def index_in_sync(self, index_in_sync: "bool") -> None: + def index_in_sync(self, index_in_sync: "Optional[bool]") -> None: """Sets the index_in_sync of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters @@ -271,7 +281,7 @@ def index_in_sync(self, index_in_sync: "bool") -> None: self._index_in_sync = index_in_sync @property - def index_up_to_date(self) -> "bool": + def index_up_to_date(self) -> "Optional[bool]": """Gets the index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns @@ -282,7 +292,7 @@ def index_up_to_date(self) -> "bool": return self._index_up_to_date @index_up_to_date.setter - def index_up_to_date(self, index_up_to_date: "bool") -> None: + def index_up_to_date(self, index_up_to_date: "Optional[bool]") -> None: """Sets the index_up_to_date of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters @@ -293,7 +303,7 @@ def index_up_to_date(self, index_up_to_date: "bool") -> None: self._index_up_to_date = index_up_to_date @property - def index_out_of_date_duration(self) -> "str": + def index_out_of_date_duration(self) -> "Optional[str]": """Gets the index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns @@ -304,7 +314,9 @@ def index_out_of_date_duration(self) -> "str": 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: "str") -> None: + def index_out_of_date_duration( + self, index_out_of_date_duration: "Optional[str]" + ) -> None: """Sets the index_out_of_date_duration of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters @@ -315,7 +327,7 @@ def index_out_of_date_duration(self, index_out_of_date_duration: "str") -> None: self._index_out_of_date_duration = index_out_of_date_duration @property - def schema_version(self) -> "str": + def schema_version(self) -> "Optional[str]": """Gets the schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Returns @@ -326,7 +338,7 @@ def schema_version(self) -> "str": return self._schema_version @schema_version.setter - def schema_version(self, schema_version: "str") -> None: + def schema_version(self, schema_version: "Optional[str]") -> None: """Sets the schema_version of this GrantaServerApiSchemaSlimEntitiesSlimDatabase. Parameters @@ -402,7 +414,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4451b64d..ac45796a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimEntity(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimEntity(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSchemaSlimEntitiesSlimEntity(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- guid: str """ - self._guid = None + self._guid: str = None # type: ignore[assignment] self.guid = guid @@ -105,7 +115,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b703eca0..468bae19 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimExpression(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimExpression(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimExpression(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 20deb18f..611bd7a0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 76b9f008..d23f4778 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimLayout(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimLayout(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaSlimEntitiesSlimLayout(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,16 +77,16 @@ def __init__( guid: str name: str """ - self._display_names = None - self._name = None - self._guid = 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.display_names = display_names self.name = name self.guid = guid @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimLayout. Returns @@ -87,12 +97,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimLayout. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimLayout. """ if display_names is None: @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0cef1a7e..6e798022 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_layouts_layout_section import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSchemaSlimEntitiesSlimLayoutSection( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", "section_detail_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", "section_detail_type": "sectionDetailType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,7 +87,7 @@ def __init__( section_detail_type: str """ super().__init__(display_names=display_names, guid=guid, name=name) - self._section_detail_type = None + self._section_detail_type: str = None # type: ignore[assignment] self.section_detail_type = section_detail_type @@ -125,7 +135,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f43353df..2e46b555 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimNamedEntity(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimNamedEntity(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimNamedEntity(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str name: str """ - self._name = None - self._guid = None + self._name: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 6137e2dc..8fd9bebb 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimObjects(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attributes": "attributes", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.attributes = attributes @property - def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def attributes( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]": """Gets the attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. Returns @@ -79,13 +91,14 @@ def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, + attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]", ) -> None: """Sets the attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. Parameters ---------- - attributes: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attributes of this GrantaServerApiSchemaSlimEntitiesSlimObjects. """ self._attributes = attributes @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3f41fd0e..5b7bc8a5 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "is_implicit": "bool", "key": "str", "name": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "is_implicit": "isImplicit", "key": "key", "name": "name", @@ -52,9 +62,9 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfile(ModelBase): "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,11 +85,11 @@ def __init__( group_name: str, optional guid: str, optional """ - self._key = None + self._key: str = None # type: ignore[assignment] self._guid = None self._group_name = None - self._is_implicit = None - self._name = None + self._is_implicit: bool = None # type: ignore[assignment] + self._name: str = None # type: ignore[assignment] self.key = key if guid is not None: @@ -116,7 +126,7 @@ def key(self, key: "str") -> None: self._key = key @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Guid is a unique identifier of a profile. Separate from key. @@ -128,7 +138,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Guid is a unique identifier of a profile. Separate from key. @@ -140,7 +150,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def group_name(self) -> "str": + def group_name(self) -> "Optional[str]": """Gets the group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Returns @@ -151,7 +161,7 @@ def group_name(self) -> "str": return self._group_name @group_name.setter - def group_name(self, group_name: "str") -> None: + def group_name(self, group_name: "Optional[str]") -> None: """Sets the group_name of this GrantaServerApiSchemaSlimEntitiesSlimProfile. Parameters @@ -227,7 +237,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 88ff5358..7d75c961 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_guid": "str", "table_guid": "str", "database_fallback_hint": "str", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): "table_fallback_hint": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_guid": "databaseGuid", "table_guid": "tableGuid", "database_fallback_hint": "databaseFallbackHint", @@ -52,9 +62,9 @@ class GrantaServerApiSchemaSlimEntitiesSlimProfileTable(ModelBase): "table_fallback_hint": "tableFallbackHint", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,9 +86,9 @@ def __init__( table_fallback_hint: str, optional """ self._guid = None - self._database_guid = None + self._database_guid: str = None # type: ignore[assignment] self._database_fallback_hint = None - self._table_guid = None + self._table_guid: str = None # type: ignore[assignment] self._table_fallback_hint = None if guid is not None: @@ -91,7 +101,7 @@ def __init__( self.table_fallback_hint = table_fallback_hint @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns @@ -102,7 +112,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters @@ -137,7 +147,7 @@ def database_guid(self, database_guid: "str") -> None: self._database_guid = database_guid @property - def database_fallback_hint(self) -> "str": + def database_fallback_hint(self) -> "Optional[str]": """Gets the database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns @@ -148,7 +158,7 @@ def database_fallback_hint(self) -> "str": return self._database_fallback_hint @database_fallback_hint.setter - def database_fallback_hint(self, database_fallback_hint: "str") -> None: + def database_fallback_hint(self, database_fallback_hint: "Optional[str]") -> None: """Sets the database_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters @@ -183,7 +193,7 @@ def table_guid(self, table_guid: "str") -> None: self._table_guid = table_guid @property - def table_fallback_hint(self) -> "str": + def table_fallback_hint(self) -> "Optional[str]": """Gets the table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Returns @@ -194,7 +204,7 @@ def table_fallback_hint(self) -> "str": return self._table_fallback_hint @table_fallback_hint.setter - def table_fallback_hint(self, table_fallback_hint: "str") -> None: + def table_fallback_hint(self, table_fallback_hint: "Optional[str]") -> None: """Sets the table_fallback_hint of this GrantaServerApiSchemaSlimEntitiesSlimProfileTable. Parameters @@ -222,7 +232,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b80a3aab..05ca4b7f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): "reverse_display_names": "dict(str, str)", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -56,11 +66,11 @@ class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): "reverse_display_names": "reverseDisplayNames", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,12 +96,12 @@ def __init__( reverse_display_names: Dict[str, str], optional """ self._identity = None - self._type = None - self._reverse_name = None + self._type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType = None # type: ignore[assignment] + self._reverse_name: str = None # type: ignore[assignment] self._reverse_display_names = None - self._display_names = None - self._name = None - self._guid = 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 = identity @@ -104,7 +114,7 @@ def __init__( self.guid = guid @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Returns @@ -115,7 +125,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters @@ -176,7 +186,7 @@ def reverse_name(self, reverse_name: "str") -> None: self._reverse_name = reverse_name @property - def reverse_display_names(self) -> "dict(str, str)": + def reverse_display_names(self) -> "Optional[Dict[str, str]]": """Gets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Returns @@ -187,18 +197,20 @@ def reverse_display_names(self) -> "dict(str, str)": return self._reverse_display_names @reverse_display_names.setter - def reverse_display_names(self, reverse_display_names: "dict(str, str)") -> None: + def reverse_display_names( + self, reverse_display_names: "Optional[Dict[str, str]]" + ) -> None: """Sets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters ---------- - reverse_display_names: dict(str, str) + reverse_display_names: Dict[str, str] The reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ self._reverse_display_names = reverse_display_names @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Returns @@ -209,12 +221,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. """ if display_names is None: @@ -287,7 +299,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 61a3ecb3..c5da0b24 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimSubset(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaSlimEntitiesSlimSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,16 +77,16 @@ def __init__( guid: str name: str """ - self._display_names = None - self._name = None - self._guid = 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.display_names = display_names self.name = name self.guid = guid @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimSubset. Returns @@ -87,12 +97,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimSubset. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimSubset. """ if display_names is None: @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5a271b40..c9721e44 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "is_hidden_from_browse": "bool", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "is_hidden_from_browse": "isHiddenFromBrowse", @@ -54,9 +64,9 @@ class GrantaServerApiSchemaSlimEntitiesSlimTable(ModelBase): "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,12 +89,12 @@ def __init__( is_versioned: bool name: str """ - self._is_hidden_from_browse = None - self._is_hidden_from_search = None - self._is_versioned = None - self._display_names = None - self._name = None - self._guid = None + 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 = is_hidden_from_browse self.is_hidden_from_search = is_hidden_from_search @@ -170,7 +180,7 @@ def is_versioned(self, is_versioned: "bool") -> None: self._is_versioned = is_versioned @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. Returns @@ -181,12 +191,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimTable. """ if display_names is None: @@ -259,7 +269,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 5677874b..1eb876e3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimUnit(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimUnit(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSlimEntitiesSlimUnit(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "symbol": "symbol", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,8 +73,8 @@ def __init__( guid: str symbol: str """ - self._symbol = None - self._guid = None + self._symbol: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.symbol = symbol self.guid = guid @@ -135,7 +145,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2c698758..b9a7e9a0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSlimEntitiesSlimUnitSystem(ModelBase): +class GrantaServerApiSchemaSlimEntitiesSlimUnitSystem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSchemaSlimEntitiesSlimUnitSystem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,16 +77,16 @@ def __init__( guid: str name: str """ - self._display_names = None - self._name = None - self._guid = 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.display_names = display_names self.name = name self.guid = guid @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. Returns @@ -87,12 +97,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSlimEntitiesSlimUnitSystem. """ if display_names is None: @@ -165,7 +175,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 eb1d4639..513c107d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): +class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", "mapped_attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): "mapped_record_link_groups": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", "mapped_attributes": "mappedAttributes", @@ -54,14 +64,14 @@ class GrantaServerApiSchemaStandardNamesCreateStandardName(ModelBase): "mapped_record_link_groups": "mappedRecordLinkGroups", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "mappedAttributes": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedCrossDatabaseRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,7 +98,7 @@ def __init__( self._mapped_parameters = None self._mapped_record_link_groups = None self._mapped_cross_database_record_link_groups = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if mapped_attributes is not None: @@ -106,7 +116,9 @@ def __init__( self.guid = guid @property - def mapped_attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def mapped_attributes( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns @@ -118,19 +130,22 @@ def mapped_attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity @mapped_attributes.setter def mapped_attributes( - self, mapped_attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_attributes: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_attributes of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_attributes = mapped_attributes @property - def mapped_parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def mapped_parameters( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns @@ -142,13 +157,14 @@ def mapped_parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity @mapped_parameters.setter def mapped_parameters( - self, mapped_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_parameters of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_parameters = mapped_parameters @@ -156,7 +172,7 @@ def mapped_parameters( @property def mapped_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns @@ -169,13 +185,13 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( self, - mapped_record_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", + mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters ---------- - mapped_record_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_record_link_groups = mapped_record_link_groups @@ -183,7 +199,7 @@ def mapped_record_link_groups( @property def mapped_cross_database_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns @@ -196,13 +212,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: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", + mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> 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: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesCreateStandardName. """ self._mapped_cross_database_record_link_groups = ( @@ -234,7 +250,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. Returns @@ -245,7 +261,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaStandardNamesCreateStandardName. Parameters @@ -273,7 +289,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9665ddce..a155d6e8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaStandardNamesStandardName(ModelBase): +class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "mapped_attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "mapped_cross_database_record_link_groups": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "mapped_attributes": "mappedAttributes", "mapped_cross_database_record_link_groups": "mappedCrossDatabaseRecordLinkGroups", @@ -54,14 +64,14 @@ class GrantaServerApiSchemaStandardNamesStandardName(ModelBase): "name": "name", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "mappedAttributes": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "mappedParameters": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "mappedRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "mappedCrossDatabaseRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -84,12 +94,12 @@ def __init__( mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] name: str """ - 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 + 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 = mapped_attributes self.mapped_parameters = mapped_parameters @@ -103,7 +113,7 @@ def __init__( @property def mapped_attributes( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -116,13 +126,13 @@ def mapped_attributes( @mapped_attributes.setter def mapped_attributes( self, - mapped_attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + mapped_attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. Parameters ---------- - mapped_attributes: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_attributes of this GrantaServerApiSchemaStandardNamesStandardName. """ if mapped_attributes is None: @@ -134,7 +144,7 @@ def mapped_attributes( @property def mapped_parameters( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -147,13 +157,13 @@ def mapped_parameters( @mapped_parameters.setter def mapped_parameters( self, - mapped_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + mapped_parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. Parameters ---------- - mapped_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_parameters of this GrantaServerApiSchemaStandardNamesStandardName. """ if mapped_parameters is None: @@ -165,7 +175,7 @@ def mapped_parameters( @property def mapped_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -178,13 +188,13 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( self, - mapped_record_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + mapped_record_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. Parameters ---------- - mapped_record_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ if mapped_record_link_groups is None: @@ -196,7 +206,7 @@ def mapped_record_link_groups( @property def mapped_cross_database_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + ) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. Returns @@ -209,13 +219,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: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + mapped_cross_database_record_link_groups: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", ) -> None: """Sets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. Parameters ---------- - mapped_cross_database_record_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + mapped_cross_database_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesStandardName. """ if mapped_cross_database_record_link_groups is None: @@ -292,7 +302,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 89791f39..8f25aa0a 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): +class GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaStandardNamesStandardNamesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "standard_names": "list[GrantaServerApiSchemaStandardNamesStandardName]", } - attribute_map = { + attribute_map: Dict[str, str] = { "standard_names": "standardNames", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "standardNames": "GrantaServerApiSchemaStandardNamesStandardName", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.standard_names = standard_names @property - def standard_names(self) -> "list[GrantaServerApiSchemaStandardNamesStandardName]": + def standard_names( + self, + ) -> "Optional[List[GrantaServerApiSchemaStandardNamesStandardName]]": """Gets the standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. Returns @@ -79,13 +91,14 @@ def standard_names(self) -> "list[GrantaServerApiSchemaStandardNamesStandardName @standard_names.setter def standard_names( - self, standard_names: "list[GrantaServerApiSchemaStandardNamesStandardName]" + self, + standard_names: "Optional[List[GrantaServerApiSchemaStandardNamesStandardName]]", ) -> None: """Sets the standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. Parameters ---------- - standard_names: list[GrantaServerApiSchemaStandardNamesStandardName] + standard_names: List[GrantaServerApiSchemaStandardNamesStandardName] The standard_names of this GrantaServerApiSchemaStandardNamesStandardNamesInfo. """ self._standard_names = standard_names @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c67831d4..d0e7de68 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): +class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "mapped_attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", "mapped_cross_database_record_link_groups": "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "mapped_attributes": "mappedAttributes", "mapped_cross_database_record_link_groups": "mappedCrossDatabaseRecordLinkGroups", @@ -54,14 +64,14 @@ class GrantaServerApiSchemaStandardNamesUpdateStandardName(ModelBase): "name": "name", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "mappedAttributes": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedParameters": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "mappedCrossDatabaseRecordLinkGroups": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,9 @@ def __init__( self.guid = guid @property - def mapped_attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def mapped_attributes( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -119,19 +131,22 @@ def mapped_attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity @mapped_attributes.setter def mapped_attributes( - self, mapped_attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + mapped_attributes: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_attributes: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_attributes: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_attributes of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_attributes = mapped_attributes @property - def mapped_parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + def mapped_parameters( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -143,13 +158,14 @@ def mapped_parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity @mapped_parameters.setter def mapped_parameters( - self, mapped_parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + self, + mapped_parameters: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_parameters: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_parameters: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_parameters of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_parameters = mapped_parameters @@ -157,7 +173,7 @@ def mapped_parameters( @property def mapped_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -170,13 +186,13 @@ def mapped_record_link_groups( @mapped_record_link_groups.setter def mapped_record_link_groups( self, - mapped_record_link_groups: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", + mapped_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> None: """Sets the mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters ---------- - mapped_record_link_groups: list[GrantaServerApiSchemaSlimEntitiesSlimEntity] + mapped_record_link_groups: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_record_link_groups = mapped_record_link_groups @@ -184,7 +200,7 @@ def mapped_record_link_groups( @property def mapped_cross_database_record_link_groups( self, - ) -> "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]": + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]": """Gets the mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -197,13 +213,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: "list[GrantaServerApiSchemaSlimEntitiesSlimEntity]", + mapped_cross_database_record_link_groups: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimEntity]]", ) -> 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: List[GrantaServerApiSchemaSlimEntitiesSlimEntity] The mapped_cross_database_record_link_groups of this GrantaServerApiSchemaStandardNamesUpdateStandardName. """ self._mapped_cross_database_record_link_groups = ( @@ -211,7 +227,7 @@ def mapped_cross_database_record_link_groups( ) @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -222,7 +238,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters @@ -233,7 +249,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Returns @@ -244,7 +260,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaStandardNamesUpdateStandardName. Parameters @@ -272,7 +288,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 22d13f7a..bd50304b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): +class GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "record_history_guid": "str", "recurse_children": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "record_history_guid": "recordHistoryGuid", "recurse_children": "recurseChildren", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( record_history_guid: str recurse_children: bool, optional """ - self._record_history_guid = None + self._record_history_guid: str = None # type: ignore[assignment] self._recurse_children = None self.record_history_guid = record_history_guid @@ -97,7 +107,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def recurse_children(self) -> "bool": + def recurse_children(self) -> "Optional[bool]": """Gets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. Returns @@ -108,7 +118,7 @@ def recurse_children(self) -> "bool": return self._recurse_children @recurse_children.setter - def recurse_children(self, recurse_children: "bool") -> None: + def recurse_children(self, recurse_children: "Optional[bool]") -> None: """Sets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. Parameters @@ -136,7 +146,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3a634ddf..02348d46 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsCreateSubset(ModelBase): +class GrantaServerApiSchemaSubsetsCreateSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaSubsetsCreateSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "associated_layout": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "associated_layout": "associatedLayout", "guid": "guid", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "associatedLayout": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,7 +80,7 @@ def __init__( guid: str, optional """ self._associated_layout = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if associated_layout is not None: @@ -80,7 +90,9 @@ def __init__( self.guid = guid @property - def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def associated_layout( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. Returns @@ -92,7 +104,7 @@ def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @associated_layout.setter def associated_layout( - self, associated_layout: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsCreateSubset. @@ -128,7 +140,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaSubsetsCreateSubset. Returns @@ -139,7 +151,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaSubsetsCreateSubset. Parameters @@ -167,7 +179,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 12ea4d3c..7552aa02 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): +class GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "record_history_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "record_history_guid": "recordHistoryGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -59,7 +69,7 @@ def __init__( ---------- record_history_guid: str """ - self._record_history_guid = None + self._record_history_guid: str = None # type: ignore[assignment] self.record_history_guid = record_history_guid @@ -107,7 +117,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8b549306..e06b809d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsSubset(ModelBase): +class GrantaServerApiSchemaSubsetsSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaSubsetsSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", "associated_layout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", "associated_layout": "associatedLayout", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "associatedLayout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,9 +84,9 @@ def __init__( associated_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional """ self._associated_layout = None - self._display_names = None - self._name = None - self._guid = 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 = associated_layout @@ -85,7 +95,9 @@ def __init__( self.guid = guid @property - def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimLayout": + def associated_layout( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. Returns @@ -97,7 +109,7 @@ def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimLayout": @associated_layout.setter def associated_layout( - self, associated_layout: "GrantaServerApiSchemaSlimEntitiesSlimLayout" + self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsSubset. @@ -109,7 +121,7 @@ def associated_layout( self._associated_layout = associated_layout @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaSubsetsSubset. Returns @@ -120,12 +132,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaSubsetsSubset. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaSubsetsSubset. """ if display_names is None: @@ -198,7 +210,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d7775e85..e6f4ee0d 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): +class GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaSubsetsSubsetsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "subsets": "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]", } - attribute_map = { + attribute_map: Dict[str, str] = { "subsets": "subsets", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "subsets": "GrantaServerApiSchemaSlimEntitiesSlimSubset", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.subsets = subsets @property - def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": + def subsets(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimSubset]]": """Gets the subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. Returns @@ -79,13 +89,13 @@ def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": @subsets.setter def subsets( - self, subsets: "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]" + self, subsets: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimSubset]]" ) -> None: """Sets the subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. Parameters ---------- - subsets: list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiSchemaSubsetsSubsetsInfo. """ self._subsets = subsets @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4b4a1267..2246c073 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): +class GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaSubsetsUpdateSubset(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "associated_layout": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "associated_layout": "associatedLayout", "guid": "guid", "name": "name", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "associatedLayout": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,9 @@ def __init__( self.guid = guid @property - def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def associated_layout( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns @@ -93,7 +105,7 @@ def associated_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @associated_layout.setter def associated_layout( - self, associated_layout: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, associated_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the associated_layout of this GrantaServerApiSchemaSubsetsUpdateSubset. @@ -105,7 +117,7 @@ def associated_layout( self._associated_layout = associated_layout @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns @@ -116,7 +128,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaSubsetsUpdateSubset. Parameters @@ -127,7 +139,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaSubsetsUpdateSubset. Returns @@ -138,7 +150,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaSubsetsUpdateSubset. Parameters @@ -166,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 afa7972a..80fc45ac 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTablesCreateTable(ModelBase): +class GrantaServerApiSchemaTablesCreateTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaTablesCreateTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", "is_hidden_from_browse": "bool", "is_hidden_from_search": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", "is_hidden_from_browse": "isHiddenFromBrowse", "is_hidden_from_search": "isHiddenFromSearch", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( """ self._is_hidden_from_browse = None self._is_hidden_from_search = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if is_hidden_from_browse is not None: @@ -85,7 +95,7 @@ def __init__( self.guid = guid @property - def is_hidden_from_browse(self) -> "bool": + def is_hidden_from_browse(self) -> "Optional[bool]": """Gets the is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. Returns @@ -96,7 +106,7 @@ def is_hidden_from_browse(self) -> "bool": return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: + def is_hidden_from_browse(self, is_hidden_from_browse: "Optional[bool]") -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesCreateTable. Parameters @@ -107,7 +117,7 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: self._is_hidden_from_browse = is_hidden_from_browse @property - def is_hidden_from_search(self) -> "bool": + def is_hidden_from_search(self) -> "Optional[bool]": """Gets the is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. Returns @@ -118,7 +128,7 @@ def is_hidden_from_search(self) -> "bool": return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: + def is_hidden_from_search(self, is_hidden_from_search: "Optional[bool]") -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesCreateTable. Parameters @@ -153,7 +163,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaTablesCreateTable. Returns @@ -164,7 +174,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaTablesCreateTable. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 8588a060..fe6bd578 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTablesTable(ModelBase): +class GrantaServerApiSchemaTablesTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "is_hidden_from_browse": "bool", @@ -50,7 +60,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "default_subset": "GrantaServerApiSchemaSlimEntitiesSlimSubset", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "is_hidden_from_browse": "isHiddenFromBrowse", @@ -64,7 +74,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "default_subset": "defaultSubset", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultSubset": "GrantaServerApiSchemaSlimEntitiesSlimSubset", "subsets": "GrantaServerApiSchemaSlimEntitiesSlimSubset", "defaultLayout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", @@ -72,7 +82,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "versionState": "GrantaServerApiVersionState", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,16 +116,16 @@ def __init__( default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional """ self._default_subset = None - self._subsets = None + self._subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] = None # type: ignore[assignment] self._default_layout = None - self._layouts = None - self._version_state = None - self._is_hidden_from_browse = None - self._is_hidden_from_search = None - self._is_versioned = None - self._display_names = None - self._name = None - self._guid = 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 = default_subset @@ -132,7 +142,7 @@ def __init__( self.guid = guid @property - def default_subset(self) -> "GrantaServerApiSchemaSlimEntitiesSlimSubset": + def default_subset(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]": """Gets the default_subset of this GrantaServerApiSchemaTablesTable. Returns @@ -144,7 +154,7 @@ def default_subset(self) -> "GrantaServerApiSchemaSlimEntitiesSlimSubset": @default_subset.setter def default_subset( - self, default_subset: "GrantaServerApiSchemaSlimEntitiesSlimSubset" + self, default_subset: "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]" ) -> None: """Sets the default_subset of this GrantaServerApiSchemaTablesTable. @@ -156,7 +166,7 @@ def default_subset( self._default_subset = default_subset @property - def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": + def subsets(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]": """Gets the subsets of this GrantaServerApiSchemaTablesTable. Returns @@ -168,13 +178,13 @@ def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": @subsets.setter def subsets( - self, subsets: "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]" + self, subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]" ) -> None: """Sets the subsets of this GrantaServerApiSchemaTablesTable. Parameters ---------- - subsets: list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] The subsets of this GrantaServerApiSchemaTablesTable. """ if subsets is None: @@ -182,7 +192,7 @@ def subsets( self._subsets = subsets @property - def default_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimLayout": + def default_layout(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]": """Gets the default_layout of this GrantaServerApiSchemaTablesTable. Returns @@ -194,7 +204,7 @@ def default_layout(self) -> "GrantaServerApiSchemaSlimEntitiesSlimLayout": @default_layout.setter def default_layout( - self, default_layout: "GrantaServerApiSchemaSlimEntitiesSlimLayout" + self, default_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" ) -> None: """Sets the default_layout of this GrantaServerApiSchemaTablesTable. @@ -206,7 +216,7 @@ def default_layout( self._default_layout = default_layout @property - def layouts(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]": + def layouts(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]": """Gets the layouts of this GrantaServerApiSchemaTablesTable. Returns @@ -218,13 +228,13 @@ def layouts(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]": @layouts.setter def layouts( - self, layouts: "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]" + self, layouts: "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]" ) -> None: """Sets the layouts of this GrantaServerApiSchemaTablesTable. Parameters ---------- - layouts: list[GrantaServerApiSchemaSlimEntitiesSlimLayout] + layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] The layouts of this GrantaServerApiSchemaTablesTable. """ if layouts is None: @@ -332,7 +342,7 @@ def is_versioned(self, is_versioned: "bool") -> None: self._is_versioned = is_versioned @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaTablesTable. Returns @@ -343,12 +353,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaTablesTable. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaTablesTable. """ if display_names is None: @@ -421,7 +431,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3454cb19..fd6ca490 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTablesTablesInfo(ModelBase): +class GrantaServerApiSchemaTablesTablesInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaTablesTablesInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "tables": "list[GrantaServerApiSchemaSlimEntitiesSlimTable]", } - attribute_map = { + attribute_map: Dict[str, str] = { "tables": "tables", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "tables": "GrantaServerApiSchemaSlimEntitiesSlimTable", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.tables = tables @property - def tables(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimTable]": + def tables(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimTable]]": """Gets the tables of this GrantaServerApiSchemaTablesTablesInfo. Returns @@ -79,13 +89,13 @@ def tables(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimTable]": @tables.setter def tables( - self, tables: "list[GrantaServerApiSchemaSlimEntitiesSlimTable]" + self, tables: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimTable]]" ) -> None: """Sets the tables of this GrantaServerApiSchemaTablesTablesInfo. Parameters ---------- - tables: list[GrantaServerApiSchemaSlimEntitiesSlimTable] + tables: List[GrantaServerApiSchemaSlimEntitiesSlimTable] The tables of this GrantaServerApiSchemaTablesTablesInfo. """ self._tables = tables @@ -108,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3b90fafd..c62de9bd 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTablesUpdateTable(ModelBase): +class GrantaServerApiSchemaTablesUpdateTable(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaTablesUpdateTable(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_layout_guid": "str", "default_subset_guid": "str", "guid": "str", @@ -45,7 +55,7 @@ class GrantaServerApiSchemaTablesUpdateTable(ModelBase): "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_layout_guid": "defaultLayoutGuid", "default_subset_guid": "defaultSubsetGuid", "guid": "guid", @@ -54,9 +64,9 @@ class GrantaServerApiSchemaTablesUpdateTable(ModelBase): "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -100,7 +110,7 @@ def __init__( self.guid = guid @property - def is_hidden_from_browse(self) -> "bool": + def is_hidden_from_browse(self) -> "Optional[bool]": """Gets the is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -111,7 +121,7 @@ def is_hidden_from_browse(self) -> "bool": return self._is_hidden_from_browse @is_hidden_from_browse.setter - def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: + def is_hidden_from_browse(self, is_hidden_from_browse: "Optional[bool]") -> None: """Sets the is_hidden_from_browse of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -122,7 +132,7 @@ def is_hidden_from_browse(self, is_hidden_from_browse: "bool") -> None: self._is_hidden_from_browse = is_hidden_from_browse @property - def is_hidden_from_search(self) -> "bool": + def is_hidden_from_search(self) -> "Optional[bool]": """Gets the is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -133,7 +143,7 @@ def is_hidden_from_search(self) -> "bool": return self._is_hidden_from_search @is_hidden_from_search.setter - def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: + def is_hidden_from_search(self, is_hidden_from_search: "Optional[bool]") -> None: """Sets the is_hidden_from_search of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -144,7 +154,7 @@ def is_hidden_from_search(self, is_hidden_from_search: "bool") -> None: self._is_hidden_from_search = is_hidden_from_search @property - def default_subset_guid(self) -> "str": + def default_subset_guid(self) -> "Optional[str]": """Gets the default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -155,7 +165,7 @@ def default_subset_guid(self) -> "str": return self._default_subset_guid @default_subset_guid.setter - def default_subset_guid(self, default_subset_guid: "str") -> None: + def default_subset_guid(self, default_subset_guid: "Optional[str]") -> None: """Sets the default_subset_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -166,7 +176,7 @@ def default_subset_guid(self, default_subset_guid: "str") -> None: self._default_subset_guid = default_subset_guid @property - def default_layout_guid(self) -> "str": + def default_layout_guid(self) -> "Optional[str]": """Gets the default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -177,7 +187,7 @@ def default_layout_guid(self) -> "str": return self._default_layout_guid @default_layout_guid.setter - def default_layout_guid(self, default_layout_guid: "str") -> None: + def default_layout_guid(self, default_layout_guid: "Optional[str]") -> None: """Sets the default_layout_guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -188,7 +198,7 @@ def default_layout_guid(self, default_layout_guid: "str") -> None: self._default_layout_guid = default_layout_guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -199,7 +209,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -210,7 +220,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaTablesUpdateTable. Returns @@ -221,7 +231,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaTablesUpdateTable. Parameters @@ -249,7 +259,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3c21dd1a..f8d3c333 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttribu discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "linked_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "name": "str", "column_type": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttribu "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "linked_attribute": "linkedAttribute", "name": "name", "column_type": "columnType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedAttribu "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedAttribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,8 +117,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._linked_attribute = None + self._column_type: str = None # type: ignore[assignment] + self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self.column_type = column_type self.linked_attribute = linked_attribute @@ -181,7 +191,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 ddeb30b5..6f679142 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "linked_column": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "name": "str", "column_type": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "linked_column": "linkedColumn", "name": "name", "column_type": "columnType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedColumnT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedColumn": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,8 +117,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._linked_column = None + self._column_type: str = None # type: ignore[assignment] + self._linked_column: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self.column_type = column_type self.linked_column = linked_column @@ -181,7 +191,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f5592483..266a620f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "guid": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "guid": "guid", @@ -63,9 +73,9 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLinkedRecordT "summary_row_text": "summaryRowText", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,7 +111,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self.column_type = column_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 60f640e5..2e8f61f2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTime discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTime "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTime "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDateTimeTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c7cf3712..d9bef69b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscrete discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimEntity", "name": "str", "column_type": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscrete "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "discrete_type": "discreteType", "name": "name", "column_type": "columnType", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscrete "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,9 +122,9 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None - self._discrete_type = None + self._discrete_type: GrantaServerApiSchemaSlimEntitiesSlimEntity = None # type: ignore[assignment] self.column_type = column_type if default_threshold_type is not None: @@ -148,7 +158,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. Returns @@ -161,7 +171,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalDiscreteTabularColumn. @@ -216,7 +226,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 81eb7674..8e3389e3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabu discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabu "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabu "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalFileTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 bc172978..049638b9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlin discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlin "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlin "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalHyperlinkTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 51676200..223be6a8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalIntegerTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e3f3cfdb..982bc11e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLogicalTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 ce7cad2c..efff237d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongText discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongText "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongText "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalLongTextTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b93f1cfd..bd097224 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 6e0aa90a..9d4f4d04 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTab discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTab "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTab "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self._unit = None @@ -149,7 +159,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Returns @@ -162,7 +172,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. @@ -174,7 +184,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Returns @@ -185,7 +195,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPointTabularColumn. Parameters @@ -213,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 eae5d844..6a3b931e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTab discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTab "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTab "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self._unit = None @@ -149,7 +159,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Returns @@ -162,7 +172,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. @@ -174,7 +184,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Returns @@ -185,7 +195,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalRangeTabularColumn. Parameters @@ -213,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 04f21b96..eb85eb0f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_create_tabular_columns_create_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTex discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTex "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "column_type": "columnType", "default_threshold_type": "defaultThresholdType", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTex "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalShortTextTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b0efb7bb..188bfdd4 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn( - ModelBase -): +class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +48,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", "roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", @@ -50,7 +58,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", "roll_up_type": "rollUpType", @@ -60,7 +68,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "summaryRowRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } @@ -82,7 +90,7 @@ class GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn "localPicture".lower(): "#/components/schemas/GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateLocalPictureTabularColumn", } - discriminator = "column_type" + discriminator: Optional[str] = "column_type" def __init__( self, @@ -112,7 +120,7 @@ def __init__( self._summary_row_text = None self._roll_up_type = None self._summary_row_roll_up_type = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None if show_as_link is not None: @@ -130,7 +138,7 @@ def __init__( self.guid = guid @property - def show_as_link(self) -> "bool": + def show_as_link(self) -> "Optional[bool]": """Gets the show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -141,7 +149,7 @@ def show_as_link(self) -> "bool": return self._show_as_link @show_as_link.setter - def show_as_link(self, show_as_link: "bool") -> None: + def show_as_link(self, show_as_link: "Optional[bool]") -> None: """Sets the show_as_link of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -152,7 +160,7 @@ def show_as_link(self, show_as_link: "bool") -> None: self._show_as_link = show_as_link @property - def summary_row_enabled(self) -> "bool": + def summary_row_enabled(self) -> "Optional[bool]": """Gets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -163,7 +171,7 @@ def summary_row_enabled(self) -> "bool": return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled(self, summary_row_enabled: "bool") -> None: + def summary_row_enabled(self, summary_row_enabled: "Optional[bool]") -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -174,7 +182,7 @@ def summary_row_enabled(self, summary_row_enabled: "bool") -> None: self._summary_row_enabled = summary_row_enabled @property - def summary_row_text(self) -> "str": + def summary_row_text(self) -> "Optional[str]": """Gets the summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -185,7 +193,7 @@ def summary_row_text(self) -> "str": return self._summary_row_text @summary_row_text.setter - def summary_row_text(self, summary_row_text: "str") -> None: + def summary_row_text(self, summary_row_text: "Optional[str]") -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -198,7 +206,7 @@ def summary_row_text(self, summary_row_text: "str") -> None: @property def roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -210,7 +218,8 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( - self, roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" + self, + roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. @@ -224,7 +233,7 @@ def roll_up_type( @property def summary_row_roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -237,7 +246,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", + summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. @@ -273,7 +282,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Returns @@ -284,7 +293,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaTabularColumnsCreateTabularColumnsCreateTabularColumn. Parameters @@ -306,19 +315,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c0990992..6fda8945 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "linked_attribute": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "linked_attribute": "linkedAttribute", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedAttribute": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._linked_attribute = None + self._column_type: str = None # type: ignore[assignment] + self._linked_attribute: GrantaServerApiSchemaSlimEntitiesSlimAttribute = None # type: ignore[assignment] self.column_type = column_type self.linked_attribute = linked_attribute @@ -186,7 +196,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 f08c5851..8c651b67 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "linked_attribute": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "linked_attribute": "linkedAttribute", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedAttribute": "GrantaServerApiSchemaSlimEntitiesSlimAttribute", "linkedColumn": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,9 +127,9 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._linked_attribute = None - self._linked_column = None + 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 = column_type self.linked_attribute = linked_attribute @@ -219,7 +229,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1d133bba..eddb9066 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn( "column_type": "columnType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self.column_type = column_type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 878a8667..3bd76bc8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 abe73ed9..fb383970 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "display_names": "dict(str, str)", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "discrete_type": "discreteType", "display_names": "displayNames", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,9 +127,9 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None - self._discrete_type = None + 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 = column_type self.default_threshold_type = default_threshold_type @@ -224,7 +234,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 c9122618..73560869 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 67109b30..f628fa30 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 12f7999c..6f47b8e8 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 81b42cd2..24926be1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 44379df1..c2f51359 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7ff3bb7d..d8f2c6a5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 862a19df..3e1dc03f 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,8 +127,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self._unit = None self.column_type = column_type @@ -182,7 +192,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Returns @@ -193,7 +203,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. Parameters @@ -221,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 46e5c845..124759a1 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -55,7 +65,7 @@ class GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn( "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -69,12 +79,12 @@ class GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn( "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -117,8 +127,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self._unit = None self.column_type = column_type @@ -182,7 +192,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Returns @@ -193,7 +203,7 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + def unit(self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. Parameters @@ -221,7 +231,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 72ebfb2f..2355da91 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "display_names": "dict(str, str)", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_threshold_type": "defaultThresholdType", "display_names": "displayNames", "guid": "guid", @@ -67,11 +77,11 @@ class GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn( "column_type": "columnType", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,8 +122,8 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None - self._default_threshold_type = None + self._column_type: str = None # type: ignore[assignment] + self._default_threshold_type: GrantaServerApiSchemaAttributesAttributeThresholdType = None # type: ignore[assignment] self.column_type = column_type self.default_threshold_type = default_threshold_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 339be0fa..55ec9dae 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): +class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +48,7 @@ class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -60,7 +70,7 @@ class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "summaryRowRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } @@ -83,7 +93,7 @@ class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): "unavailable".lower(): "#/components/schemas/GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn", } - discriminator = "column_type" + discriminator: Optional[str] = "column_type" def __init__( self, @@ -110,14 +120,14 @@ def __init__( summary_row_roll_up_type: GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType summary_row_text: str """ - 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._display_names = None - self._name = None - self._guid = None + 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 = show_as_link self.summary_row_enabled = summary_row_enabled @@ -262,7 +272,7 @@ def summary_row_roll_up_type( self._summary_row_roll_up_type = summary_row_roll_up_type @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaTabularColumnsTabularColumn. Returns @@ -273,12 +283,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaTabularColumnsTabularColumn. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaTabularColumnsTabularColumn. """ if display_names is None: @@ -345,19 +355,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 53412a35..902a10a7 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn( "column_type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", @@ -65,9 +75,9 @@ class GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn( "column_type": "columnType", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -106,7 +116,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self.column_type = column_type @@ -152,7 +162,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b527c3ac..5c7aca67 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttribu discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "guid": "str", "linked_attribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttribu "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "guid": "guid", "linked_attribute": "linkedAttribute", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttribu "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedAttribute": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._linked_attribute = None self.column_type = column_type @@ -139,7 +149,9 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def linked_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def linked_attribute( + self, + ) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. Returns @@ -151,7 +163,7 @@ def linked_attribute(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @linked_attribute.setter def linked_attribute( - self, linked_attribute: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, linked_attribute: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the linked_attribute of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedAttributeTabularColumn. @@ -180,7 +192,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 aa37a20d..ad21d4ca 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "guid": "str", "linked_column": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "guid": "guid", "linked_column": "linkedColumn", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkedColumn": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._linked_column = None self.column_type = column_type @@ -139,7 +149,7 @@ def column_type(self, column_type: "str") -> None: self._column_type = column_type @property - def linked_column(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def linked_column(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. Returns @@ -151,7 +161,7 @@ def linked_column(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @linked_column.setter def linked_column( - self, linked_column: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, linked_column: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the linked_column of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedColumnTabularColumn. @@ -180,7 +190,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 02f742b9..e7184809 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "guid": "str", "name": "str", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "guid": "guid", "name": "name", @@ -63,9 +73,9 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLinkedRecordT "summary_row_text": "summaryRowText", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -101,7 +111,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self.column_type = column_type @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 e52a52f6..69834096 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTime discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTime "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTime "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDateTimeTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 75dc2324..68514df9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscrete discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discrete_type": "GrantaServerApiSchemaSlimEntitiesSlimEntity", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscrete "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "discrete_type": "discreteType", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscrete "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "discreteType": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self._discrete_type = None @@ -149,7 +159,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Returns @@ -162,7 +172,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. @@ -174,7 +184,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def discrete_type(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def discrete_type(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. Returns @@ -186,7 +196,7 @@ def discrete_type(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": @discrete_type.setter def discrete_type( - self, discrete_type: "GrantaServerApiSchemaSlimEntitiesSlimEntity" + self, discrete_type: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" ) -> None: """Sets the discrete_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalDiscreteTabularColumn. @@ -215,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 371720d2..71e726b6 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabu discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabu "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabu "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalFileTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 66c3a370..39e4c714 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlin discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlin "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlin "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalHyperlinkTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4b569505..54d53054 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalIntegerTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4031b392..66b70174 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLogicalTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0d71e24d..2197df2e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongText discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongText "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongText "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalLongTextTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 2587ff12..28329c2b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureT discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureT "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureT "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b89909d4..bef75e5b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTab discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTab "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTab "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self._unit = None @@ -149,7 +159,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Returns @@ -162,7 +172,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. @@ -174,7 +184,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Returns @@ -185,7 +195,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPointTabularColumn. Parameters @@ -213,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 be4428f4..c796ac7b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTab discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -54,7 +64,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTab "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -67,12 +77,12 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTab "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", "unit": "GrantaServerApiSchemaSlimEntitiesSlimEntity", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -112,7 +122,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self._unit = None @@ -149,7 +159,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Returns @@ -162,7 +172,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. @@ -174,7 +184,7 @@ def default_threshold_type( self._default_threshold_type = default_threshold_type @property - def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": + def unit(self) -> "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]": """Gets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Returns @@ -185,7 +195,9 @@ def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimEntity": return self._unit @unit.setter - def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimEntity") -> None: + def unit( + self, unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimEntity]" + ) -> None: """Sets the unit of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalRangeTabularColumn. Parameters @@ -213,7 +225,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9debacf9..16e867e9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_schema_tabular_columns_update_tabular_columns_update_tabular_column import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTex discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_type": "str", "default_threshold_type": "GrantaServerApiSchemaAttributesAttributeThresholdType", "guid": "str", @@ -53,7 +63,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTex "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_type": "columnType", "default_threshold_type": "defaultThresholdType", "guid": "guid", @@ -65,11 +75,11 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTex "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "defaultThresholdType": "GrantaServerApiSchemaAttributesAttributeThresholdType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( summary_row_roll_up_type=summary_row_roll_up_type, summary_row_text=summary_row_text, ) - self._column_type = None + self._column_type: str = None # type: ignore[assignment] self._default_threshold_type = None self.column_type = column_type @@ -141,7 +151,7 @@ def column_type(self, column_type: "str") -> None: @property def default_threshold_type( self, - ) -> "GrantaServerApiSchemaAttributesAttributeThresholdType": + ) -> "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]": """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. Returns @@ -154,7 +164,7 @@ def default_threshold_type( @default_threshold_type.setter def default_threshold_type( self, - default_threshold_type: "GrantaServerApiSchemaAttributesAttributeThresholdType", + default_threshold_type: "Optional[GrantaServerApiSchemaAttributesAttributeThresholdType]", ) -> None: """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalShortTextTabularColumn. @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 659ca81b..fe745d67 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 @@ -9,18 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn( - ModelBase -): +class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +48,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "roll_up_type": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", @@ -50,7 +58,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn "summary_row_text": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "roll_up_type": "rollUpType", @@ -60,7 +68,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn "summary_row_text": "summaryRowText", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "rollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", "summaryRowRollUpType": "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType", } @@ -82,7 +90,7 @@ class GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn "localPicture".lower(): "#/components/schemas/GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateLocalPictureTabularColumn", } - discriminator = "column_type" + discriminator: Optional[str] = "column_type" def __init__( self, @@ -131,7 +139,7 @@ def __init__( self.guid = guid @property - def show_as_link(self) -> "bool": + def show_as_link(self) -> "Optional[bool]": """Gets the show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -142,7 +150,7 @@ def show_as_link(self) -> "bool": return self._show_as_link @show_as_link.setter - def show_as_link(self, show_as_link: "bool") -> None: + def show_as_link(self, show_as_link: "Optional[bool]") -> None: """Sets the show_as_link of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -153,7 +161,7 @@ def show_as_link(self, show_as_link: "bool") -> None: self._show_as_link = show_as_link @property - def summary_row_enabled(self) -> "bool": + def summary_row_enabled(self) -> "Optional[bool]": """Gets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -164,7 +172,7 @@ def summary_row_enabled(self) -> "bool": return self._summary_row_enabled @summary_row_enabled.setter - def summary_row_enabled(self, summary_row_enabled: "bool") -> None: + def summary_row_enabled(self, summary_row_enabled: "Optional[bool]") -> None: """Sets the summary_row_enabled of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -175,7 +183,7 @@ def summary_row_enabled(self, summary_row_enabled: "bool") -> None: self._summary_row_enabled = summary_row_enabled @property - def summary_row_text(self) -> "str": + def summary_row_text(self) -> "Optional[str]": """Gets the summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -186,7 +194,7 @@ def summary_row_text(self) -> "str": return self._summary_row_text @summary_row_text.setter - def summary_row_text(self, summary_row_text: "str") -> None: + def summary_row_text(self, summary_row_text: "Optional[str]") -> None: """Sets the summary_row_text of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -199,7 +207,7 @@ def summary_row_text(self, summary_row_text: "str") -> None: @property def roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -211,7 +219,8 @@ def roll_up_type( @roll_up_type.setter def roll_up_type( - self, roll_up_type: "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType" + self, + roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. @@ -225,7 +234,7 @@ def roll_up_type( @property def summary_row_roll_up_type( self, - ) -> "GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType": + ) -> "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]": """Gets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -238,7 +247,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", + summary_row_roll_up_type: "Optional[GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType]", ) -> None: """Sets the summary_row_roll_up_type of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. @@ -250,7 +259,7 @@ def summary_row_roll_up_type( self._summary_row_roll_up_type = summary_row_roll_up_type @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -261,7 +270,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -272,7 +281,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Returns @@ -283,7 +292,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaTabularColumnsUpdateTabularColumnsUpdateTabularColumn. Parameters @@ -305,19 +314,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 9412d9ff..331d9669 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsCreateUnit(ModelBase): +class GrantaServerApiSchemaUnitsCreateUnit(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaUnitsCreateUnit(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "symbol": "str", "equation": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "symbol": "symbol", "equation": "equation", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,9 +81,9 @@ def __init__( equation: str, optional guid: str, optional """ - self._symbol = None + self._symbol: str = None # type: ignore[assignment] self._equation = None - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.symbol = symbol @@ -108,7 +118,7 @@ def symbol(self, symbol: "str") -> None: self._symbol = symbol @property - def equation(self) -> "str": + def equation(self) -> "Optional[str]": """Gets the equation of this GrantaServerApiSchemaUnitsCreateUnit. Returns @@ -119,7 +129,7 @@ def equation(self) -> "str": return self._equation @equation.setter - def equation(self, equation: "str") -> None: + def equation(self, equation: "Optional[str]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsCreateUnit. Parameters @@ -154,7 +164,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaUnitsCreateUnit. Returns @@ -165,7 +175,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsCreateUnit. Parameters @@ -193,7 +203,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 d4045bce..9a14af6c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsCreateUnitSystem(ModelBase): +class GrantaServerApiSchemaUnitsCreateUnitSystem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaUnitsCreateUnitSystem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name": "str", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name": "name", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( name: str guid: str, optional """ - self._name = None + self._name: str = None # type: ignore[assignment] self._guid = None self.name = name @@ -95,7 +105,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. Returns @@ -106,7 +116,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsCreateUnitSystem. Parameters @@ -134,7 +144,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 a26663a2..581722a2 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnit(ModelBase): +class GrantaServerApiSchemaUnitsUnit(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaUnitsUnit(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", "symbol": "str", "equation": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", "symbol": "symbol", "equation": "equation", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,10 +81,10 @@ def __init__( symbol: str equation: str, optional """ - self._name = None + self._name: str = None # type: ignore[assignment] self._equation = None - self._symbol = None - self._guid = None + self._symbol: str = None # type: ignore[assignment] + self._guid: str = None # type: ignore[assignment] self.name = name if equation is not None: @@ -107,7 +117,7 @@ def name(self, name: "str") -> None: self._name = name @property - def equation(self) -> "str": + def equation(self) -> "Optional[str]": """Gets the equation of this GrantaServerApiSchemaUnitsUnit. Returns @@ -118,7 +128,7 @@ def equation(self) -> "str": return self._equation @equation.setter - def equation(self, equation: "str") -> None: + def equation(self, equation: "Optional[str]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsUnit. Parameters @@ -194,7 +204,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 1c2308f4..5fcca12e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitEquivalent(ModelBase): +class GrantaServerApiSchemaUnitsUnitEquivalent(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaUnitsUnitEquivalent(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "equivalent_unit": "GrantaServerApiSchemaUnitsUnit", "unit": "GrantaServerApiSchemaUnitsUnit", "unit_system": "GrantaServerApiSchemaUnitsUnitSystem", } - attribute_map = { + attribute_map: Dict[str, str] = { "equivalent_unit": "equivalentUnit", "unit": "unit", "unit_system": "unitSystem", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaUnitsUnit", "unitSystem": "GrantaServerApiSchemaUnitsUnitSystem", "equivalentUnit": "GrantaServerApiSchemaUnitsUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -71,9 +81,9 @@ def __init__( unit: GrantaServerApiSchemaUnitsUnit unit_system: GrantaServerApiSchemaUnitsUnitSystem """ - self._unit = None - self._unit_system = None - self._equivalent_unit = None + 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 = unit self.unit_system = unit_system @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 00ca3128..f88ac53b 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): +class GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaUnitsUnitEquivalentsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "unit_equivalents": "list[GrantaServerApiSchemaUnitsUnitEquivalent]", } - attribute_map = { + attribute_map: Dict[str, str] = { "unit_equivalents": "unitEquivalents", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unitEquivalents": "GrantaServerApiSchemaUnitsUnitEquivalent", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.unit_equivalents = unit_equivalents @property - def unit_equivalents(self) -> "list[GrantaServerApiSchemaUnitsUnitEquivalent]": + def unit_equivalents( + self, + ) -> "Optional[List[GrantaServerApiSchemaUnitsUnitEquivalent]]": """Gets the unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. Returns @@ -79,13 +91,14 @@ def unit_equivalents(self) -> "list[GrantaServerApiSchemaUnitsUnitEquivalent]": @unit_equivalents.setter def unit_equivalents( - self, unit_equivalents: "list[GrantaServerApiSchemaUnitsUnitEquivalent]" + self, + unit_equivalents: "Optional[List[GrantaServerApiSchemaUnitsUnitEquivalent]]", ) -> None: """Sets the unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. Parameters ---------- - unit_equivalents: list[GrantaServerApiSchemaUnitsUnitEquivalent] + unit_equivalents: List[GrantaServerApiSchemaUnitsUnitEquivalent] The unit_equivalents of this GrantaServerApiSchemaUnitsUnitEquivalentsInfo. """ self._unit_equivalents = unit_equivalents @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 3fd3cfba..3f0109fc 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitMapping(ModelBase): +class GrantaServerApiSchemaUnitsUnitMapping(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,22 +46,22 @@ class GrantaServerApiSchemaUnitsUnitMapping(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "equivalent_unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - attribute_map = { + attribute_map: Dict[str, str] = { "equivalent_unit": "equivalentUnit", "unit": "unit", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", "equivalentUnit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -66,8 +76,8 @@ def __init__( equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit unit: GrantaServerApiSchemaSlimEntitiesSlimUnit """ - self._unit = None - self._equivalent_unit = None + self._unit: GrantaServerApiSchemaSlimEntitiesSlimUnit = None # type: ignore[assignment] + self._equivalent_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit = None # type: ignore[assignment] self.unit = unit self.equivalent_unit = equivalent_unit @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 4899d091..3482fd29 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitSystem(ModelBase): +class GrantaServerApiSchemaUnitsUnitSystem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSchemaUnitsUnitSystem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_names": "dict(str, str)", "guid": "str", "name": "str", "unit_mappings": "list[GrantaServerApiSchemaUnitsUnitMapping]", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_names": "displayNames", "guid": "guid", "name": "name", "unit_mappings": "unitMappings", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unitMappings": "GrantaServerApiSchemaUnitsUnitMapping", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,10 +83,10 @@ def __init__( name: str unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] """ - self._unit_mappings = None - self._display_names = None - self._name = None - self._guid = None + 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 = unit_mappings self.display_names = display_names @@ -84,7 +94,7 @@ def __init__( self.guid = guid @property - def unit_mappings(self) -> "list[GrantaServerApiSchemaUnitsUnitMapping]": + def unit_mappings(self) -> "List[GrantaServerApiSchemaUnitsUnitMapping]": """Gets the unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. Returns @@ -96,13 +106,13 @@ def unit_mappings(self) -> "list[GrantaServerApiSchemaUnitsUnitMapping]": @unit_mappings.setter def unit_mappings( - self, unit_mappings: "list[GrantaServerApiSchemaUnitsUnitMapping]" + self, unit_mappings: "List[GrantaServerApiSchemaUnitsUnitMapping]" ) -> None: """Sets the unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. Parameters ---------- - unit_mappings: list[GrantaServerApiSchemaUnitsUnitMapping] + unit_mappings: List[GrantaServerApiSchemaUnitsUnitMapping] The unit_mappings of this GrantaServerApiSchemaUnitsUnitSystem. """ if unit_mappings is None: @@ -110,7 +120,7 @@ def unit_mappings( self._unit_mappings = unit_mappings @property - def display_names(self) -> "dict(str, str)": + def display_names(self) -> "Dict[str, str]": """Gets the display_names of this GrantaServerApiSchemaUnitsUnitSystem. Returns @@ -121,12 +131,12 @@ def display_names(self) -> "dict(str, str)": return self._display_names @display_names.setter - def display_names(self, display_names: "dict(str, str)") -> None: + def display_names(self, display_names: "Dict[str, str]") -> None: """Sets the display_names of this GrantaServerApiSchemaUnitsUnitSystem. Parameters ---------- - display_names: dict(str, str) + display_names: Dict[str, str] The display_names of this GrantaServerApiSchemaUnitsUnitSystem. """ if display_names is None: @@ -199,7 +209,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 0803f281..f51cb43f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): +class GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaUnitsUnitSystemsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "unit_systems": "list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]", } - attribute_map = { + attribute_map: Dict[str, str] = { "unit_systems": "unitSystems", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "unitSystems": "GrantaServerApiSchemaSlimEntitiesSlimUnitSystem", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,9 @@ def __init__( self.unit_systems = unit_systems @property - def unit_systems(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]": + def unit_systems( + self, + ) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]]": """Gets the unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. Returns @@ -79,13 +91,14 @@ def unit_systems(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem] @unit_systems.setter def unit_systems( - self, unit_systems: "list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]" + self, + unit_systems: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem]]", ) -> None: """Sets the unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. Parameters ---------- - unit_systems: list[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem] + unit_systems: List[GrantaServerApiSchemaSlimEntitiesSlimUnitSystem] The unit_systems of this GrantaServerApiSchemaUnitsUnitSystemsInfo. """ self._unit_systems = unit_systems @@ -108,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 68003512..2e8118aa 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitUsage(ModelBase): +class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attributes": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "constants": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", "expressions": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", @@ -44,7 +54,7 @@ class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): "units": "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]", } - attribute_map = { + attribute_map: Dict[str, str] = { "attributes": "attributes", "constants": "constants", "expressions": "expressions", @@ -52,7 +62,7 @@ class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): "units": "units", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributes": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "parameters": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", "constants": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", @@ -60,7 +70,7 @@ class GrantaServerApiSchemaUnitsUnitUsage(ModelBase): "units": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,11 +91,11 @@ def __init__( parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] """ - self._attributes = None - self._parameters = None - self._constants = None - self._expressions = None - self._units = None + 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 = attributes self.parameters = parameters @@ -94,7 +104,7 @@ def __init__( self.units = units @property - def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def attributes(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the attributes of this GrantaServerApiSchemaUnitsUnitUsage. Returns @@ -106,13 +116,13 @@ def attributes(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" @attributes.setter def attributes( - self, attributes: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, attributes: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the attributes of this GrantaServerApiSchemaUnitsUnitUsage. Parameters ---------- - attributes: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + attributes: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The attributes of this GrantaServerApiSchemaUnitsUnitUsage. """ if attributes is None: @@ -120,7 +130,7 @@ def attributes( self._attributes = attributes @property - def parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def parameters(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the parameters of this GrantaServerApiSchemaUnitsUnitUsage. Returns @@ -132,13 +142,13 @@ def parameters(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" @parameters.setter def parameters( - self, parameters: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, parameters: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the parameters of this GrantaServerApiSchemaUnitsUnitUsage. Parameters ---------- - parameters: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + parameters: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The parameters of this GrantaServerApiSchemaUnitsUnitUsage. """ if parameters is None: @@ -146,7 +156,7 @@ def parameters( self._parameters = parameters @property - def constants(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def constants(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the constants of this GrantaServerApiSchemaUnitsUnitUsage. Returns @@ -158,13 +168,13 @@ def constants(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": @constants.setter def constants( - self, constants: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, constants: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the constants of this GrantaServerApiSchemaUnitsUnitUsage. Parameters ---------- - constants: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + constants: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The constants of this GrantaServerApiSchemaUnitsUnitUsage. """ if constants is None: @@ -172,7 +182,7 @@ def constants( self._constants = constants @property - def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + def expressions(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": """Gets the expressions of this GrantaServerApiSchemaUnitsUnitUsage. Returns @@ -184,13 +194,13 @@ def expressions(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] @expressions.setter def expressions( - self, expressions: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + self, expressions: "List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" ) -> None: """Sets the expressions of this GrantaServerApiSchemaUnitsUnitUsage. Parameters ---------- - expressions: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + expressions: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] The expressions of this GrantaServerApiSchemaUnitsUnitUsage. """ if expressions is None: @@ -198,7 +208,7 @@ def expressions( self._expressions = expressions @property - def units(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def units(self) -> "List[GrantaServerApiSchemaSlimEntitiesSlimUnit]": """Gets the units of this GrantaServerApiSchemaUnitsUnitUsage. Returns @@ -209,12 +219,12 @@ def units(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]": return self._units @units.setter - def units(self, units: "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def units(self, units: "List[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: """Sets the units of this GrantaServerApiSchemaUnitsUnitUsage. Parameters ---------- - units: list[GrantaServerApiSchemaSlimEntitiesSlimUnit] + units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] The units of this GrantaServerApiSchemaUnitsUnitUsage. """ if units is None: @@ -239,7 +249,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 36abae08..4a61f6f0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): +class GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaUnitsUnitsInfo(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "units": "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]", } - attribute_map = { + attribute_map: Dict[str, str] = { "units": "units", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "units": "GrantaServerApiSchemaSlimEntitiesSlimUnit", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( self.units = units @property - def units(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]": + def units(self) -> "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnit]]": """Gets the units of this GrantaServerApiSchemaUnitsUnitsInfo. Returns @@ -78,12 +88,14 @@ def units(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]": return self._units @units.setter - def units(self, units: "list[GrantaServerApiSchemaSlimEntitiesSlimUnit]") -> None: + def units( + self, units: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimUnit]]" + ) -> None: """Sets the units of this GrantaServerApiSchemaUnitsUnitsInfo. Parameters ---------- - units: list[GrantaServerApiSchemaSlimEntitiesSlimUnit] + units: List[GrantaServerApiSchemaSlimEntitiesSlimUnit] The units of this GrantaServerApiSchemaUnitsUnitsInfo. """ self._units = units @@ -106,7 +118,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 56fd29eb..ef0290f8 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): +class GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSchemaUnitsUpdateUnit(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "equation": "str", "guid": "str", "name": "str", "symbol": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "equation": "equation", "guid": "guid", "name": "name", "symbol": "symbol", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.guid = guid @property - def symbol(self) -> "str": + def symbol(self) -> "Optional[str]": """Gets the symbol of this GrantaServerApiSchemaUnitsUpdateUnit. Returns @@ -97,7 +107,7 @@ def symbol(self) -> "str": return self._symbol @symbol.setter - def symbol(self, symbol: "str") -> None: + def symbol(self, symbol: "Optional[str]") -> None: """Sets the symbol of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters @@ -108,7 +118,7 @@ def symbol(self, symbol: "str") -> None: self._symbol = symbol @property - def equation(self) -> "str": + def equation(self) -> "Optional[str]": """Gets the equation of this GrantaServerApiSchemaUnitsUpdateUnit. Returns @@ -119,7 +129,7 @@ def equation(self) -> "str": return self._equation @equation.setter - def equation(self, equation: "str") -> None: + def equation(self, equation: "Optional[str]") -> None: """Sets the equation of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters @@ -130,7 +140,7 @@ def equation(self, equation: "str") -> None: self._equation = equation @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaUnitsUpdateUnit. Returns @@ -141,7 +151,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaUnitsUpdateUnit. Parameters @@ -152,7 +162,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaUnitsUpdateUnit. Returns @@ -163,7 +173,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsUpdateUnit. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 7992d65a..addd3c37 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): +class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.guid = guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Returns @@ -83,7 +93,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Parameters @@ -94,7 +104,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Returns @@ -105,7 +115,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """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 b45913f4..9719f7f0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSchemaUpdateDatabase(ModelBase): +class GrantaServerApiSchemaUpdateDatabase(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSchemaUpdateDatabase(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "author": "str", "company": "str", "currency_code": "str", @@ -46,7 +56,7 @@ class GrantaServerApiSchemaUpdateDatabase(ModelBase): "version_guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "author": "author", "company": "company", "currency_code": "currencyCode", @@ -56,9 +66,9 @@ class GrantaServerApiSchemaUpdateDatabase(ModelBase): "version_guid": "versionGuid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -107,7 +117,7 @@ def __init__( self.guid = guid @property - def author(self) -> "str": + def author(self) -> "Optional[str]": """Gets the author of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -118,7 +128,7 @@ def author(self) -> "str": return self._author @author.setter - def author(self, author: "str") -> None: + def author(self, author: "Optional[str]") -> None: """Sets the author of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -129,7 +139,7 @@ def author(self, author: "str") -> None: self._author = author @property - def company(self) -> "str": + def company(self) -> "Optional[str]": """Gets the company of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -140,7 +150,7 @@ def company(self) -> "str": return self._company @company.setter - def company(self, company: "str") -> None: + def company(self, company: "Optional[str]") -> None: """Sets the company of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -151,7 +161,7 @@ def company(self, company: "str") -> None: self._company = company @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -162,7 +172,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -173,7 +183,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def currency_code(self) -> "str": + def currency_code(self) -> "Optional[str]": """Gets the currency_code of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -184,7 +194,7 @@ def currency_code(self) -> "str": return self._currency_code @currency_code.setter - def currency_code(self, currency_code: "str") -> None: + def currency_code(self, currency_code: "Optional[str]") -> None: """Sets the currency_code of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -195,7 +205,7 @@ def currency_code(self, currency_code: "str") -> None: self._currency_code = currency_code @property - def version_guid(self) -> "str": + def version_guid(self) -> "Optional[str]": """Gets the version_guid of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -206,7 +216,7 @@ def version_guid(self) -> "str": return self._version_guid @version_guid.setter - def version_guid(self, version_guid: "str") -> None: + def version_guid(self, version_guid: "Optional[str]") -> None: """Sets the version_guid of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -217,7 +227,7 @@ def version_guid(self, version_guid: "str") -> None: self._version_guid = version_guid @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -228,7 +238,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -239,7 +249,7 @@ def name(self, name: "str") -> None: self._name = name @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSchemaUpdateDatabase. Returns @@ -250,7 +260,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSchemaUpdateDatabase. Parameters @@ -278,7 +288,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 757e56eb..0995faef 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "is_meta_attribute": "bool", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "is_meta_attribute": "isMetaAttribute", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "matches".lower(): "#/components/schemas/GrantaServerApiSearchAttributeMatchesCriterion", @@ -63,7 +73,7 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): "notApplicable".lower(): "#/components/schemas/GrantaServerApiSearchAttributeNotApplicableCriterion", } - discriminator = "attribute_criterion_type" + discriminator: Optional[str] = "attribute_criterion_type" def __init__( self, @@ -86,7 +96,7 @@ def __init__( self._identity = None self._guid = None self._is_meta_attribute = None - self._type = None + self._type: str = None # type: ignore[assignment] if identity is not None: self.identity = identity @@ -97,7 +107,7 @@ def __init__( self.type = type @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSearchAttributeCriterion. Returns @@ -108,7 +118,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSearchAttributeCriterion. Parameters @@ -119,7 +129,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSearchAttributeCriterion. Returns @@ -130,7 +140,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSearchAttributeCriterion. Parameters @@ -141,7 +151,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def is_meta_attribute(self) -> "bool": + def is_meta_attribute(self) -> "Optional[bool]": """Gets the is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. Returns @@ -152,7 +162,7 @@ def is_meta_attribute(self) -> "bool": return self._is_meta_attribute @is_meta_attribute.setter - def is_meta_attribute(self, is_meta_attribute: "bool") -> None: + def is_meta_attribute(self, is_meta_attribute: "Optional[bool]") -> None: """Sets the is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. Parameters @@ -198,19 +208,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d5dcc179..9d28892c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_attribute_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchAttributeExistsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_criterion_type": "str", "guid": "str", "identity": "int", @@ -50,7 +60,7 @@ class GrantaServerApiSearchAttributeExistsCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_criterion_type": "attributeCriterionType", "guid": "guid", "identity": "identity", @@ -59,11 +69,11 @@ class GrantaServerApiSearchAttributeExistsCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiSearchDatumExistsCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,14 +100,14 @@ def __init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) self._inner_criterion = None - self._attribute_criterion_type = None + self._attribute_criterion_type: str = None # type: ignore[assignment] if inner_criterion is not None: self.inner_criterion = inner_criterion self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion(self) -> "GrantaServerApiSearchDatumExistsCriterion": + def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumExistsCriterion]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. Returns @@ -109,7 +119,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchDatumExistsCriterion": @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchDatumExistsCriterion" + self, inner_criterion: "Optional[GrantaServerApiSearchDatumExistsCriterion]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchAttributeExistsCriterion. @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a72e3ad0..30119fa3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_attribute_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchAttributeMatchesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_criterion_type": "str", "guid": "str", "identity": "int", @@ -50,7 +60,7 @@ class GrantaServerApiSearchAttributeMatchesCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_criterion_type": "attributeCriterionType", "guid": "guid", "identity": "identity", @@ -59,11 +69,11 @@ class GrantaServerApiSearchAttributeMatchesCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiSearchDatumCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,14 +100,14 @@ def __init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) self._inner_criterion = None - self._attribute_criterion_type = None + self._attribute_criterion_type: str = None # type: ignore[assignment] if inner_criterion is not None: self.inner_criterion = inner_criterion self.attribute_criterion_type = attribute_criterion_type @property - def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": + def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumCriterion]": """Gets the inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. Returns @@ -109,7 +119,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchDatumCriterion" + self, inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchAttributeMatchesCriterion. @@ -164,7 +174,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 040330af..ca990100 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_attribute_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchAttributeNotApplicableCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_criterion_type": "str", "guid": "str", "identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiSearchAttributeNotApplicableCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_criterion_type": "attributeCriterionType", "guid": "guid", "identity": "identity", @@ -57,9 +67,9 @@ class GrantaServerApiSearchAttributeNotApplicableCriterion( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,7 +93,7 @@ def __init__( super().__init__( guid=guid, identity=identity, is_meta_attribute=is_meta_attribute, type=type ) - self._attribute_criterion_type = None + self._attribute_criterion_type: str = None # type: ignore[assignment] self.attribute_criterion_type = attribute_criterion_type @@ -131,7 +141,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 dfebdf82..3f6a29dd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sort_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_type": "GrantaServerApiAttributeType", "guid": "str", "identity": "int", @@ -48,7 +58,7 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_type": "attributeType", "guid": "guid", "identity": "identity", @@ -57,12 +67,12 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributeType": "GrantaServerApiAttributeType", "sortType": "GrantaServerApiSearchSortType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -90,7 +100,7 @@ def __init__( self._guid = None self._attribute_type = None self._sort_type = None - self._type = None + self._type: str = None # type: ignore[assignment] if identity is not None: self.identity = identity @@ -103,7 +113,7 @@ def __init__( self.type = type @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSearchAttributeSortCriterion. Returns @@ -114,7 +124,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSearchAttributeSortCriterion. Parameters @@ -125,7 +135,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSearchAttributeSortCriterion. Returns @@ -136,7 +146,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSearchAttributeSortCriterion. Parameters @@ -147,7 +157,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def attribute_type(self) -> "GrantaServerApiAttributeType": + def attribute_type(self) -> "Optional[GrantaServerApiAttributeType]": """Gets the attribute_type of this GrantaServerApiSearchAttributeSortCriterion. Returns @@ -158,7 +168,9 @@ def attribute_type(self) -> "GrantaServerApiAttributeType": return self._attribute_type @attribute_type.setter - def attribute_type(self, attribute_type: "GrantaServerApiAttributeType") -> None: + def attribute_type( + self, attribute_type: "Optional[GrantaServerApiAttributeType]" + ) -> None: """Sets the attribute_type of this GrantaServerApiSearchAttributeSortCriterion. Parameters @@ -169,7 +181,7 @@ def attribute_type(self, attribute_type: "GrantaServerApiAttributeType") -> None self._attribute_type = attribute_type @property - def sort_type(self) -> "GrantaServerApiSearchSortType": + def sort_type(self) -> "Optional[GrantaServerApiSearchSortType]": """Gets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. Returns @@ -180,7 +192,7 @@ def sort_type(self) -> "GrantaServerApiSearchSortType": return self._sort_type @sort_type.setter - def sort_type(self, sort_type: "GrantaServerApiSearchSortType") -> None: + def sort_type(self, sort_type: "Optional[GrantaServerApiSearchSortType]") -> None: """Sets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 be75d9e5..c0ee8fb5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,27 +49,27 @@ class GrantaServerApiSearchBooleanCriterion(GrantaServerApiSearchCriterion): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[GrantaServerApiSearchCriterion]", "all": "list[GrantaServerApiSearchCriterion]", "any": "list[GrantaServerApiSearchCriterion]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "all": "all", "any": "any", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "all": "GrantaServerApiSearchCriterion", "any": "GrantaServerApiSearchCriterion", "none": "GrantaServerApiSearchCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( self._all = None self._any = None self.__none = None - self._type = None + self._type: str = None # type: ignore[assignment] if all is not None: self.all = all @@ -93,7 +103,7 @@ def __init__( self.type = type @property - def all(self) -> "list[GrantaServerApiSearchCriterion]": + def all(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": """Gets the all of this GrantaServerApiSearchBooleanCriterion. Only records that match all of these criteria are returned. @@ -105,19 +115,19 @@ def all(self) -> "list[GrantaServerApiSearchCriterion]": return self._all @all.setter - def all(self, all: "list[GrantaServerApiSearchCriterion]") -> None: + def all(self, all: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: """Sets the all of this GrantaServerApiSearchBooleanCriterion. Only records that match all of these criteria are returned. Parameters ---------- - all: list[GrantaServerApiSearchCriterion] + all: List[GrantaServerApiSearchCriterion] The all of this GrantaServerApiSearchBooleanCriterion. """ self._all = all @property - def any(self) -> "list[GrantaServerApiSearchCriterion]": + def any(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": """Gets the any of this GrantaServerApiSearchBooleanCriterion. Only results that match any of these criteria are returned. @@ -129,19 +139,19 @@ def any(self) -> "list[GrantaServerApiSearchCriterion]": return self._any @any.setter - def any(self, any: "list[GrantaServerApiSearchCriterion]") -> None: + def any(self, any: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: """Sets the any of this GrantaServerApiSearchBooleanCriterion. Only results that match any of these criteria are returned. Parameters ---------- - any: list[GrantaServerApiSearchCriterion] + any: List[GrantaServerApiSearchCriterion] The any of this GrantaServerApiSearchBooleanCriterion. """ self._any = any @property - def _none(self) -> "list[GrantaServerApiSearchCriterion]": + def _none(self) -> "Optional[List[GrantaServerApiSearchCriterion]]": """Gets the _none of this GrantaServerApiSearchBooleanCriterion. Only results that match none of these criteria are returned. @@ -153,13 +163,13 @@ def _none(self) -> "list[GrantaServerApiSearchCriterion]": return self.__none @_none.setter - def _none(self, _none: "list[GrantaServerApiSearchCriterion]") -> None: + def _none(self, _none: "Optional[List[GrantaServerApiSearchCriterion]]") -> None: """Sets the _none of this GrantaServerApiSearchBooleanCriterion. Only results that match none of these criteria are returned. Parameters ---------- - _none: list[GrantaServerApiSearchCriterion] + _none: List[GrantaServerApiSearchCriterion] The _none of this GrantaServerApiSearchBooleanCriterion. """ self.__none = _none @@ -206,7 +216,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 696a6e14..36d5c14c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchBoostByGuid(ModelBase): +class GrantaServerApiSearchBoostByGuid(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSearchBoostByGuid(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "boost_factor": "float", "guid": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "boost_factor": "boostFactor", "guid": "guid", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.boost_factor = boost_factor @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSearchBoostByGuid. Returns @@ -83,7 +93,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSearchBoostByGuid. Parameters @@ -94,7 +104,7 @@ def guid(self, guid: "str") -> None: self._guid = guid @property - def boost_factor(self) -> "float": + def boost_factor(self) -> "Optional[float]": """Gets the boost_factor of this GrantaServerApiSearchBoostByGuid. Returns @@ -105,7 +115,7 @@ def boost_factor(self) -> "float": return self._boost_factor @boost_factor.setter - def boost_factor(self, boost_factor: "float") -> None: + def boost_factor(self, boost_factor: "Optional[float]") -> None: """Sets the boost_factor of this GrantaServerApiSearchBoostByGuid. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9a9932a8..7d389143 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchBoostByIdentity(ModelBase): +class GrantaServerApiSearchBoostByIdentity(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,19 +46,19 @@ class GrantaServerApiSearchBoostByIdentity(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "boost_factor": "float", "identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "boost_factor": "boostFactor", "identity": "identity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -72,7 +82,7 @@ def __init__( self.boost_factor = boost_factor @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSearchBoostByIdentity. Returns @@ -83,7 +93,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSearchBoostByIdentity. Parameters @@ -94,7 +104,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def boost_factor(self) -> "float": + def boost_factor(self) -> "Optional[float]": """Gets the boost_factor of this GrantaServerApiSearchBoostByIdentity. Returns @@ -105,7 +115,7 @@ def boost_factor(self) -> "float": return self._boost_factor @boost_factor.setter - def boost_factor(self, boost_factor: "float") -> None: + def boost_factor(self, boost_factor: "Optional[float]") -> None: """Sets the boost_factor of this GrantaServerApiSearchBoostByIdentity. Parameters @@ -133,7 +143,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3c8eeb24..5628a2d4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchCriterion(ModelBase): +class GrantaServerApiSearchCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiSearchCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "boolean".lower(): "#/components/schemas/GrantaServerApiSearchBooleanCriterion", @@ -58,7 +68,7 @@ class GrantaServerApiSearchCriterion(ModelBase): "localColumn".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -77,19 +87,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9fa97964..5b9c8cfa 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchDateTimeDatumCriterion(GrantaServerApiSearchDatumCrit discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "datetime", "lte": "datetime", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._gte = None self._lte = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def gte(self) -> "datetime": + def gte(self) -> "Optional[datetime]": """Gets the gte of this GrantaServerApiSearchDateTimeDatumCriterion. Greater than or equal to @@ -94,7 +104,7 @@ def gte(self) -> "datetime": return self._gte @gte.setter - def gte(self, gte: "datetime") -> None: + def gte(self, gte: "Optional[datetime]") -> None: """Sets the gte of this GrantaServerApiSearchDateTimeDatumCriterion. Greater than or equal to @@ -106,7 +116,7 @@ def gte(self, gte: "datetime") -> None: self._gte = gte @property - def lte(self) -> "datetime": + def lte(self) -> "Optional[datetime]": """Gets the lte of this GrantaServerApiSearchDateTimeDatumCriterion. Less than or equal to @@ -118,7 +128,7 @@ def lte(self) -> "datetime": return self._lte @lte.setter - def lte(self, lte: "datetime") -> None: + def lte(self, lte: "Optional[datetime]") -> None: """Sets the lte of this GrantaServerApiSearchDateTimeDatumCriterion. Less than or equal to @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 236a61a3..4d4bb7ba 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchDatumCriterion(ModelBase): +class GrantaServerApiSearchDatumCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiSearchDatumCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "dateTime".lower(): "#/components/schemas/GrantaServerApiSearchDateTimeDatumCriterion", @@ -70,7 +80,7 @@ class GrantaServerApiSearchDatumCriterion(ModelBase): "shortText".lower(): "#/components/schemas/GrantaServerApiSearchShortTextDatumCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -89,19 +99,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0ad4e07e..c410ab0c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchDatumExistsCriterion(ModelBase): +class GrantaServerApiSearchDatumExistsCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,18 +48,18 @@ class GrantaServerApiSearchDatumExistsCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "link".lower(): "#/components/schemas/GrantaServerApiSearchLinkExistsDatumCriterion", "type".lower(): "#/components/schemas/GrantaServerApiSearchSimpleDatumExistsCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -68,19 +78,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c5575065..c6b193ed 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "constraints": "list[GrantaServerApiSearchParameterConstraint]", "gte": "int", "lte": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "constraints": "constraints", "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "constraints": "GrantaServerApiSearchParameterConstraint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self._gte = None self._lte = None self._constraints = None @@ -117,7 +127,7 @@ def type(self, type: "str") -> None: self._type = type @property - def gte(self) -> "int": + def gte(self) -> "Optional[int]": """Gets the gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Greater than or equal to @@ -129,7 +139,7 @@ def gte(self) -> "int": return self._gte @gte.setter - def gte(self, gte: "int") -> None: + def gte(self, gte: "Optional[int]") -> None: """Sets the gte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Greater than or equal to @@ -141,7 +151,7 @@ def gte(self, gte: "int") -> None: self._gte = gte @property - def lte(self) -> "int": + def lte(self) -> "Optional[int]": """Gets the lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Less than or equal to @@ -153,7 +163,7 @@ def lte(self) -> "int": return self._lte @lte.setter - def lte(self, lte: "int") -> None: + def lte(self, lte: "Optional[int]") -> None: """Sets the lte of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Less than or equal to @@ -165,7 +175,7 @@ def lte(self, lte: "int") -> None: self._lte = lte @property - def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": + def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": """Gets the constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. Optional unit string. If not included, the gte and lte values are assumed to be in database units. @@ -178,14 +188,14 @@ def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": @constraints.setter def constraints( - self, constraints: "list[GrantaServerApiSearchParameterConstraint]" + self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" ) -> 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: List[GrantaServerApiSearchParameterConstraint] The constraints of this GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion. """ self._constraints = constraints @@ -208,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 98cb0bf5..76cba8d4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "any_guids": "list[str]", "any_identities": "list[int]", "constraints": "list[GrantaServerApiSearchParameterConstraint]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "any_guids": "anyGuids", "any_identities": "anyIdentities", "constraints": "constraints", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "constraints": "GrantaServerApiSearchParameterConstraint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,7 @@ def __init__( super().__init__() self._any_identities = None self._any_guids = None - self._type = None + self._type: str = None # type: ignore[assignment] self._constraints = None if any_identities is not None: @@ -93,7 +103,7 @@ def __init__( self.constraints = constraints @property - def any_identities(self) -> "list[int]": + def any_identities(self) -> "Optional[List[int]]": """Gets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities @@ -105,19 +115,19 @@ def any_identities(self) -> "list[int]": return self._any_identities @any_identities.setter - def any_identities(self, any_identities: "list[int]") -> None: + def any_identities(self, any_identities: "Optional[List[int]]") -> None: """Sets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities Parameters ---------- - any_identities: list[int] + any_identities: List[int] The any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._any_identities = any_identities @property - def any_guids(self) -> "list[str]": + def any_guids(self) -> "Optional[List[str]]": """Gets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type GUIDs @@ -129,13 +139,13 @@ def any_guids(self) -> "list[str]": return self._any_guids @any_guids.setter - def any_guids(self, any_guids: "list[str]") -> None: + def any_guids(self, any_guids: "Optional[List[str]]") -> None: """Sets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type GUIDs Parameters ---------- - any_guids: list[str] + any_guids: List[str] The any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._any_guids = any_guids @@ -165,7 +175,7 @@ def type(self, type: "str") -> None: self._type = type @property - def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": + def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": """Gets the constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. @@ -178,14 +188,14 @@ def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": @constraints.setter def constraints( - self, constraints: "list[GrantaServerApiSearchParameterConstraint]" + self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" ) -> 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: List[GrantaServerApiSearchParameterConstraint] The constraints of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. """ self._constraints = constraints @@ -208,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a487b540..8178c395 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiSearchDiscreteGuidDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. Returns @@ -88,7 +98,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 a469eb3c..32dbff84 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchDiscreteGuidValuesDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[str]", "all": "list[str]", "any": "list[str]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "all": "all", "any": "any", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -80,7 +90,7 @@ def __init__( self._all = None self._any = None self.__none = None - self._type = None + self._type: str = None # type: ignore[assignment] if all is not None: self.all = all @@ -91,7 +101,7 @@ def __init__( self.type = type @property - def all(self) -> "list[str]": + def all(self) -> "Optional[List[str]]": """Gets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match all of these discrete value GUIDs @@ -103,19 +113,19 @@ def all(self) -> "list[str]": return self._all @all.setter - def all(self, all: "list[str]") -> None: + def all(self, all: "Optional[List[str]]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match all of these discrete value GUIDs Parameters ---------- - all: list[str] + all: List[str] The all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self._all = all @property - def any(self) -> "list[str]": + def any(self) -> "Optional[List[str]]": """Gets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match any of these discrete type GUIDs @@ -127,19 +137,19 @@ def any(self) -> "list[str]": return self._any @any.setter - def any(self, any: "list[str]") -> None: + def any(self, any: "Optional[List[str]]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match any of these discrete type GUIDs Parameters ---------- - any: list[str] + any: List[str] The any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "list[str]": + def _none(self) -> "Optional[List[str]]": """Gets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match none of the discrete type GUIDs @@ -151,13 +161,13 @@ def _none(self) -> "list[str]": return self.__none @_none.setter - def _none(self, _none: "list[str]") -> None: + def _none(self, _none: "Optional[List[str]]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. Match none of the discrete type GUIDs Parameters ---------- - _none: list[str] + _none: List[str] The _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. """ self.__none = _none @@ -204,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 693f96a7..28277bee 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiSearchDiscreteIdentityDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -70,14 +80,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "int": + def value(self) -> "Optional[int]": """Gets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. Returns @@ -88,7 +98,7 @@ def value(self) -> "int": return self._value @value.setter - def value(self, value: "int") -> None: + def value(self, value: "Optional[int]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. Parameters @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 edb31b9d..396d1fcd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[int]", "all": "list[int]", "any": "list[int]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "all": "all", "any": "any", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -80,7 +90,7 @@ def __init__( self._all = None self._any = None self.__none = None - self._type = None + self._type: str = None # type: ignore[assignment] if all is not None: self.all = all @@ -91,7 +101,7 @@ def __init__( self.type = type @property - def all(self) -> "list[int]": + def all(self) -> "Optional[List[int]]": """Gets the all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match all of these discrete value identities @@ -103,19 +113,19 @@ def all(self) -> "list[int]": return self._all @all.setter - def all(self, all: "list[int]") -> None: + def all(self, all: "Optional[List[int]]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match all of these discrete value identities Parameters ---------- - all: list[int] + all: List[int] The all of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self._all = all @property - def any(self) -> "list[int]": + def any(self) -> "Optional[List[int]]": """Gets the any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match any of these discrete type identities @@ -127,19 +137,19 @@ def any(self) -> "list[int]": return self._any @any.setter - def any(self, any: "list[int]") -> None: + def any(self, any: "Optional[List[int]]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match any of these discrete type identities Parameters ---------- - any: list[int] + any: List[int] The any of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "list[int]": + def _none(self) -> "Optional[List[int]]": """Gets the _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match none of the discrete type identities @@ -151,13 +161,13 @@ def _none(self) -> "list[int]": return self.__none @_none.setter - def _none(self, _none: "list[int]") -> None: + def _none(self, _none: "Optional[List[int]]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. Match none of the discrete type identities Parameters ---------- - _none: list[int] + _none: List[int] The _none of this GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion. """ self.__none = _none @@ -204,7 +214,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 61f8c045..6ac0babd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_parameter_constraint import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchDiscreteParameterNameConstraint( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[str]", "any": "list[str]", "parameter": "GrantaServerApiObjectIdentifier", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "any": "any", "parameter": "parameter", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( super().__init__(parameter=parameter) self._any = None self.__none = None - self._type = None + self._type: str = None # type: ignore[assignment] if any is not None: self.any = any @@ -88,7 +98,7 @@ def __init__( self.type = type @property - def any(self) -> "list[str]": + def any(self) -> "Optional[List[str]]": """Gets the any of this GrantaServerApiSearchDiscreteParameterNameConstraint. Returns @@ -99,18 +109,18 @@ def any(self) -> "list[str]": return self._any @any.setter - def any(self, any: "list[str]") -> None: + def any(self, any: "Optional[List[str]]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteParameterNameConstraint. Parameters ---------- - any: list[str] + any: List[str] The any of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ self._any = any @property - def _none(self) -> "list[str]": + def _none(self) -> "Optional[List[str]]": """Gets the _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. Returns @@ -121,12 +131,12 @@ def _none(self) -> "list[str]": return self.__none @_none.setter - def _none(self, _none: "list[str]") -> None: + def _none(self, _none: "Optional[List[str]]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. Parameters ---------- - _none: list[str] + _none: List[str] The _none of this GrantaServerApiSearchDiscreteParameterNameConstraint. """ self.__none = _none @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f22adda4..01e7c796 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_parameter_constraint import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchDiscreteParameterValueConstraint( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[float]", "any": "list[float]", "parameter": "GrantaServerApiObjectIdentifier", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "any": "any", "parameter": "parameter", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( super().__init__(parameter=parameter) self._any = None self.__none = None - self._type = None + self._type: str = None # type: ignore[assignment] if any is not None: self.any = any @@ -88,7 +98,7 @@ def __init__( self.type = type @property - def any(self) -> "list[float]": + def any(self) -> "Optional[List[float]]": """Gets the any of this GrantaServerApiSearchDiscreteParameterValueConstraint. Returns @@ -99,18 +109,18 @@ def any(self) -> "list[float]": return self._any @any.setter - def any(self, any: "list[float]") -> None: + def any(self, any: "Optional[List[float]]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteParameterValueConstraint. Parameters ---------- - any: list[float] + any: List[float] The any of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ self._any = any @property - def _none(self) -> "list[float]": + def _none(self) -> "Optional[List[float]]": """Gets the _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. Returns @@ -121,12 +131,12 @@ def _none(self) -> "list[float]": return self.__none @_none.setter - def _none(self, _none: "list[float]") -> None: + def _none(self, _none: "Optional[List[float]]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. Parameters ---------- - _none: list[float] + _none: List[float] The _none of this GrantaServerApiSearchDiscreteParameterValueConstraint. """ self.__none = _none @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 befef7cb..64be5e4c 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSearchDiscreteRangeDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "int", "lte": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._gte = None self._lte = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def gte(self) -> "int": + def gte(self) -> "Optional[int]": """Gets the gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Greater than or equal to @@ -96,7 +106,7 @@ def gte(self) -> "int": return self._gte @gte.setter - def gte(self, gte: "int") -> None: + def gte(self, gte: "Optional[int]") -> None: """Sets the gte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Greater than or equal to @@ -108,7 +118,7 @@ def gte(self, gte: "int") -> None: self._gte = gte @property - def lte(self) -> "int": + def lte(self) -> "Optional[int]": """Gets the lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Less than or equal to @@ -120,7 +130,7 @@ def lte(self) -> "int": return self._lte @lte.setter - def lte(self, lte: "int") -> None: + def lte(self, lte: "Optional[int]") -> None: """Sets the lte of this GrantaServerApiSearchDiscreteRangeDatumCriterion. Less than or equal to @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f2e9e745..73837098 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "text_match_behaviour": "GrantaServerApiSearchTextMatchBehaviour", "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "text_match_behaviour": "textMatchBehaviour", "type": "type", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,7 +87,7 @@ def __init__( super().__init__() self._value = None self._text_match_behaviour = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value @@ -86,7 +96,7 @@ def __init__( self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns @@ -97,7 +107,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchDiscreteTextDatumCriterion. Parameters @@ -108,7 +118,9 @@ def value(self, value: "str") -> None: self._value = value @property - def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": + def text_match_behaviour( + self, + ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. Returns @@ -120,7 +132,7 @@ def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "GrantaServerApiSearchTextMatchBehaviour" + self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. @@ -173,7 +185,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5cf95fca..19b9a6a4 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_none": "list[str]", "all": "list[str]", "any": "list[str]", @@ -49,7 +59,7 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_none": "none", "all": "all", "any": "any", @@ -57,11 +67,11 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -87,7 +97,7 @@ def __init__( self._any = None self.__none = None self._text_match_behaviour = None - self._type = None + self._type: str = None # type: ignore[assignment] if all is not None: self.all = all @@ -100,7 +110,7 @@ def __init__( self.type = type @property - def all(self) -> "list[str]": + def all(self) -> "Optional[List[str]]": """Gets the all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns @@ -111,18 +121,18 @@ def all(self) -> "list[str]": return self._all @all.setter - def all(self, all: "list[str]") -> None: + def all(self, all: "Optional[List[str]]") -> None: """Sets the all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - all: list[str] + all: List[str] The all of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self._all = all @property - def any(self) -> "list[str]": + def any(self) -> "Optional[List[str]]": """Gets the any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns @@ -133,18 +143,18 @@ def any(self) -> "list[str]": return self._any @any.setter - def any(self, any: "list[str]") -> None: + def any(self, any: "Optional[List[str]]") -> None: """Sets the any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - any: list[str] + any: List[str] The any of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self._any = any @property - def _none(self) -> "list[str]": + def _none(self) -> "Optional[List[str]]": """Gets the _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns @@ -155,18 +165,20 @@ def _none(self) -> "list[str]": return self.__none @_none.setter - def _none(self, _none: "list[str]") -> None: + def _none(self, _none: "Optional[List[str]]") -> None: """Sets the _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Parameters ---------- - _none: list[str] + _none: List[str] The _none of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. """ self.__none = _none @property - def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": + def text_match_behaviour( + self, + ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. Returns @@ -178,7 +190,7 @@ def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "GrantaServerApiSearchTextMatchBehaviour" + self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. @@ -231,7 +243,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d081b7f8..9508f9c2 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sorting_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchDoubleSortingValue(GrantaServerApiSearchSortingValue) discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "float", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "float": + def value(self) -> "Optional[float]": """Gets the value of this GrantaServerApiSearchDoubleSortingValue. Returns @@ -86,7 +96,7 @@ def value(self) -> "float": return self._value @value.setter - def value(self, value: "float") -> None: + def value(self, value: "Optional[float]") -> None: """Sets the value of this GrantaServerApiSearchDoubleSortingValue. Parameters @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6ac3b45f..e46b6643 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchFileDatumCriterion(GrantaServerApiSearchDatumCriterio discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchFileDatumCriterion. Returns @@ -86,7 +96,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchFileDatumCriterion. Parameters @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c573d785..e895c654 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSearchFloatFunctionalDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "constraints": "list[GrantaServerApiSearchParameterConstraint]", "gte": "float", "lte": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "constraints": "constraints", "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "constraints": "GrantaServerApiSearchParameterConstraint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self._gte = None self._lte = None self._constraints = None @@ -117,7 +127,7 @@ def type(self, type: "str") -> None: self._type = type @property - def gte(self) -> "float": + def gte(self) -> "Optional[float]": """Gets the gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Greater than or equal to @@ -129,7 +139,7 @@ def gte(self) -> "float": return self._gte @gte.setter - def gte(self, gte: "float") -> None: + def gte(self, gte: "Optional[float]") -> None: """Sets the gte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Greater than or equal to @@ -141,7 +151,7 @@ def gte(self, gte: "float") -> None: self._gte = gte @property - def lte(self) -> "float": + def lte(self) -> "Optional[float]": """Gets the lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Less than or equal to @@ -153,7 +163,7 @@ def lte(self) -> "float": return self._lte @lte.setter - def lte(self, lte: "float") -> None: + def lte(self, lte: "Optional[float]") -> None: """Sets the lte of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Less than or equal to @@ -165,7 +175,7 @@ def lte(self, lte: "float") -> None: self._lte = lte @property - def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": + def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": """Gets the constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. @@ -178,14 +188,14 @@ def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": @constraints.setter def constraints( - self, constraints: "list[GrantaServerApiSearchParameterConstraint]" + self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" ) -> 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: List[GrantaServerApiSearchParameterConstraint] The constraints of this GrantaServerApiSearchFloatFunctionalDatumCriterion. """ self._constraints = constraints @@ -208,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4b73877d..74207098 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "default_x_axis_parameter_guid": "str", "default_x_axis_parameter_identity": "int", "is_series_graph": "bool", @@ -55,7 +65,7 @@ class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion( "x_axis_parameter_identity": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "default_x_axis_parameter_guid": "defaultXAxisParameterGuid", "default_x_axis_parameter_identity": "defaultXAxisParameterIdentity", "is_series_graph": "isSeriesGraph", @@ -69,9 +79,9 @@ class GrantaServerApiSearchFloatFunctionalGraphDatumCriterion( "x_axis_parameter_identity": "xAxisParameterIdentity", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -105,7 +115,7 @@ def __init__( x_axis_parameter_identity: int, optional """ super().__init__() - self._type = None + 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 @@ -164,7 +174,7 @@ def type(self, type: "str") -> None: self._type = type @property - def x_axis_parameter_identity(self) -> "int": + def x_axis_parameter_identity(self) -> "Optional[int]": """Gets the x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. @@ -176,7 +186,9 @@ def x_axis_parameter_identity(self) -> "int": return self._x_axis_parameter_identity @x_axis_parameter_identity.setter - def x_axis_parameter_identity(self, x_axis_parameter_identity: "int") -> None: + def x_axis_parameter_identity( + self, x_axis_parameter_identity: "Optional[int]" + ) -> None: """Sets the x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. @@ -188,7 +200,7 @@ def x_axis_parameter_identity(self, x_axis_parameter_identity: "int") -> None: self._x_axis_parameter_identity = x_axis_parameter_identity @property - def x_axis_parameter_guid(self) -> "str": + def x_axis_parameter_guid(self) -> "Optional[str]": """Gets the x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. @@ -200,7 +212,7 @@ def x_axis_parameter_guid(self) -> "str": return self._x_axis_parameter_guid @x_axis_parameter_guid.setter - def x_axis_parameter_guid(self, x_axis_parameter_guid: "str") -> None: + def x_axis_parameter_guid(self, x_axis_parameter_guid: "Optional[str]") -> None: """Sets the x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only series graphs have an x axis. @@ -212,7 +224,7 @@ def x_axis_parameter_guid(self, x_axis_parameter_guid: "str") -> None: self._x_axis_parameter_guid = x_axis_parameter_guid @property - def number_of_series_lte(self) -> "int": + def number_of_series_lte(self) -> "Optional[int]": """Gets the number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -224,7 +236,7 @@ def number_of_series_lte(self) -> "int": return self._number_of_series_lte @number_of_series_lte.setter - def number_of_series_lte(self, number_of_series_lte: "int") -> None: + def number_of_series_lte(self, number_of_series_lte: "Optional[int]") -> None: """Sets the number_of_series_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -236,7 +248,7 @@ def number_of_series_lte(self, number_of_series_lte: "int") -> None: self._number_of_series_lte = number_of_series_lte @property - def number_of_series_gte(self) -> "int": + def number_of_series_gte(self) -> "Optional[int]": """Gets the number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -248,7 +260,7 @@ def number_of_series_gte(self) -> "int": return self._number_of_series_gte @number_of_series_gte.setter - def number_of_series_gte(self, number_of_series_gte: "int") -> None: + def number_of_series_gte(self, number_of_series_gte: "Optional[int]") -> None: """Sets the number_of_series_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of series. @@ -260,7 +272,7 @@ def number_of_series_gte(self, number_of_series_gte: "int") -> None: self._number_of_series_gte = number_of_series_gte @property - def show_as_table(self) -> "bool": + def show_as_table(self) -> "Optional[bool]": """Gets the show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the \"Show as table\" property @@ -272,7 +284,7 @@ def show_as_table(self) -> "bool": return self._show_as_table @show_as_table.setter - def show_as_table(self, show_as_table: "bool") -> None: + def show_as_table(self, show_as_table: "Optional[bool]") -> None: """Sets the show_as_table of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the \"Show as table\" property @@ -284,7 +296,7 @@ def show_as_table(self, show_as_table: "bool") -> None: self._show_as_table = show_as_table @property - def default_x_axis_parameter_identity(self) -> "int": + def default_x_axis_parameter_identity(self) -> "Optional[int]": """Gets the default_x_axis_parameter_identity of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional default x axis parameter filter. Only grid graphs have a default x axis. @@ -297,7 +309,7 @@ def default_x_axis_parameter_identity(self) -> "int": @default_x_axis_parameter_identity.setter def default_x_axis_parameter_identity( - self, default_x_axis_parameter_identity: "int" + self, default_x_axis_parameter_identity: "Optional[int]" ) -> 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. @@ -310,7 +322,7 @@ def default_x_axis_parameter_identity( self._default_x_axis_parameter_identity = default_x_axis_parameter_identity @property - def default_x_axis_parameter_guid(self) -> "str": + def default_x_axis_parameter_guid(self) -> "Optional[str]": """Gets the default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only grid graphs have a default x axis.. @@ -323,7 +335,7 @@ def default_x_axis_parameter_guid(self) -> "str": @default_x_axis_parameter_guid.setter def default_x_axis_parameter_guid( - self, default_x_axis_parameter_guid: "str" + self, default_x_axis_parameter_guid: "Optional[str]" ) -> None: """Sets the default_x_axis_parameter_guid of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional x axis parameter filter. Only grid graphs have a default x axis.. @@ -336,7 +348,7 @@ def default_x_axis_parameter_guid( self._default_x_axis_parameter_guid = default_x_axis_parameter_guid @property - def number_of_points_lte(self) -> "int": + def number_of_points_lte(self) -> "Optional[int]": """Gets the number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -348,7 +360,7 @@ def number_of_points_lte(self) -> "int": return self._number_of_points_lte @number_of_points_lte.setter - def number_of_points_lte(self, number_of_points_lte: "int") -> None: + def number_of_points_lte(self, number_of_points_lte: "Optional[int]") -> None: """Sets the number_of_points_lte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -360,7 +372,7 @@ def number_of_points_lte(self, number_of_points_lte: "int") -> None: self._number_of_points_lte = number_of_points_lte @property - def number_of_points_gte(self) -> "int": + def number_of_points_gte(self) -> "Optional[int]": """Gets the number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -372,7 +384,7 @@ def number_of_points_gte(self) -> "int": return self._number_of_points_gte @number_of_points_gte.setter - def number_of_points_gte(self, number_of_points_gte: "int") -> None: + def number_of_points_gte(self, number_of_points_gte: "Optional[int]") -> None: """Sets the number_of_points_gte of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for the number of points in a grid graph. @@ -384,7 +396,7 @@ def number_of_points_gte(self, number_of_points_gte: "int") -> None: self._number_of_points_gte = number_of_points_gte @property - def is_series_graph(self) -> "bool": + def is_series_graph(self) -> "Optional[bool]": """Gets the is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the type of graph @@ -396,7 +408,7 @@ def is_series_graph(self) -> "bool": return self._is_series_graph @is_series_graph.setter - def is_series_graph(self, is_series_graph: "bool") -> None: + def is_series_graph(self, is_series_graph: "Optional[bool]") -> None: """Sets the is_series_graph of this GrantaServerApiSearchFloatFunctionalGraphDatumCriterion. Optional filter for data on the type of graph @@ -425,7 +437,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index ea70d058..074d9b9c 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextAllAttributesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "free_text_criterion_type": "str", "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", @@ -49,7 +59,7 @@ class GrantaServerApiSearchFreeTextAllAttributesCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "free_text_criterion_type": "freeTextCriterionType", "guids_to_boost": "guidsToBoost", "identities_to_boost": "identitiesToBoost", @@ -57,12 +67,12 @@ class GrantaServerApiSearchFreeTextAllAttributesCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "guidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( super().__init__(type=type, value=value) self._identities_to_boost = None self._guids_to_boost = None - self._free_text_criterion_type = 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 @@ -95,7 +105,9 @@ def __init__( self.free_text_criterion_type = free_text_criterion_type @property - def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": + def identities_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. Returns @@ -107,19 +119,20 @@ def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": @identities_to_boost.setter def identities_to_boost( - self, identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + self, + identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", ) -> None: """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. Parameters ---------- - identities_to_boost: list[GrantaServerApiSearchBoostByIdentity] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. Returns @@ -131,13 +144,13 @@ def guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @guids_to_boost.setter def guids_to_boost( - self, guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" ) -> None: """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. Parameters ---------- - guids_to_boost: list[GrantaServerApiSearchBoostByGuid] + guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The guids_to_boost of this GrantaServerApiSearchFreeTextAllAttributesCriterion. """ self._guids_to_boost = guids_to_boost @@ -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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_all_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_all_criterion.py index 908320df..2f6ebc05 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiSearchFreeTextAllCriterion(GrantaServerApiSearchFreeTextCri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "attribute_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "attribute_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", @@ -49,7 +59,7 @@ class GrantaServerApiSearchFreeTextAllCriterion(GrantaServerApiSearchFreeTextCri "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "attribute_guids_to_boost": "attributeGuidsToBoost", "attribute_identities_to_boost": "attributeIdentitiesToBoost", "column_guids_to_boost": "columnGuidsToBoost", @@ -59,14 +69,14 @@ class GrantaServerApiSearchFreeTextAllCriterion(GrantaServerApiSearchFreeTextCri "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "attributeIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "attributeGuidsToBoost": "GrantaServerApiSearchBoostByGuid", "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( self._attribute_guids_to_boost = None self._column_identities_to_boost = None self._column_guids_to_boost = None - self._free_text_criterion_type = 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 @@ -111,7 +121,7 @@ def __init__( @property def attribute_identities_to_boost( self, - ) -> "list[GrantaServerApiSearchBoostByIdentity]": + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. Returns @@ -124,19 +134,21 @@ def attribute_identities_to_boost( @attribute_identities_to_boost.setter def attribute_identities_to_boost( self, - attribute_identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]", + attribute_identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", ) -> None: """Sets the attribute_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. Parameters ---------- - attribute_identities_to_boost: list[GrantaServerApiSearchBoostByIdentity] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def attribute_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. Returns @@ -148,13 +160,14 @@ def attribute_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @attribute_guids_to_boost.setter def attribute_guids_to_boost( - self, attribute_guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + 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] + attribute_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The attribute_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. """ self._attribute_guids_to_boost = attribute_guids_to_boost @@ -162,7 +175,7 @@ def attribute_guids_to_boost( @property def column_identities_to_boost( self, - ) -> "list[GrantaServerApiSearchBoostByIdentity]": + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. Returns @@ -174,19 +187,22 @@ def column_identities_to_boost( @column_identities_to_boost.setter def column_identities_to_boost( - self, column_identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + 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] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def column_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. Returns @@ -198,13 +214,13 @@ def column_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @column_guids_to_boost.setter def column_guids_to_boost( - self, column_guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + 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] + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllCriterion. """ self._column_guids_to_boost = column_guids_to_boost @@ -253,7 +269,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index 54b8dec3..4928ac1c 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextAllLocalColumnsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", "free_text_criterion_type": "str", @@ -49,7 +59,7 @@ class GrantaServerApiSearchFreeTextAllLocalColumnsCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_guids_to_boost": "columnGuidsToBoost", "column_identities_to_boost": "columnIdentitiesToBoost", "free_text_criterion_type": "freeTextCriterionType", @@ -57,12 +67,12 @@ class GrantaServerApiSearchFreeTextAllLocalColumnsCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( super().__init__(type=type, value=value) self._column_identities_to_boost = None self._column_guids_to_boost = None - self._free_text_criterion_type = 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 @@ -97,7 +107,7 @@ def __init__( @property def column_identities_to_boost( self, - ) -> "list[GrantaServerApiSearchBoostByIdentity]": + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. Returns @@ -109,19 +119,22 @@ def column_identities_to_boost( @column_identities_to_boost.setter def column_identities_to_boost( - self, column_identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + 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] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def column_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. Returns @@ -133,13 +146,13 @@ def column_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @column_guids_to_boost.setter def column_guids_to_boost( - self, column_guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + 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] + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The column_guids_to_boost of this GrantaServerApiSearchFreeTextAllLocalColumnsCriterion. """ self._column_guids_to_boost = column_guids_to_boost @@ -188,7 +201,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 17b5def9..4f698d04 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "all".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextAllCriterion", @@ -63,7 +73,7 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): "specifiedLocalColumns".lower(): "#/components/schemas/GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion", } - discriminator = "free_text_criterion_type" + discriminator: Optional[str] = "free_text_criterion_type" def __init__( self, @@ -80,14 +90,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchFreeTextCriterion. Returns @@ -98,7 +108,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchFreeTextCriterion. Parameters @@ -144,19 +154,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index 481044e9..cf97c7d9 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextExcludingAttributesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "free_text_criterion_type": "str", "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "guids_to_exclude": "list[str]", @@ -51,7 +61,7 @@ class GrantaServerApiSearchFreeTextExcludingAttributesCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "free_text_criterion_type": "freeTextCriterionType", "guids_to_boost": "guidsToBoost", "guids_to_exclude": "guidsToExclude", @@ -61,12 +71,12 @@ class GrantaServerApiSearchFreeTextExcludingAttributesCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "guidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( self._identities_to_exclude = None self._guids_to_boost = None self._guids_to_exclude = None - self._free_text_criterion_type = 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 @@ -109,7 +119,9 @@ def __init__( self.free_text_criterion_type = free_text_criterion_type @property - def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": + def identities_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Returns @@ -121,19 +133,20 @@ def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": @identities_to_boost.setter def identities_to_boost( - self, identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + self, + identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", ) -> None: """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Parameters ---------- - identities_to_boost: list[GrantaServerApiSearchBoostByIdentity] + 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) -> "list[int]": + def identities_to_exclude(self) -> "Optional[List[int]]": """Gets the identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Returns @@ -144,18 +157,20 @@ def identities_to_exclude(self) -> "list[int]": return self._identities_to_exclude @identities_to_exclude.setter - def identities_to_exclude(self, identities_to_exclude: "list[int]") -> None: + 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] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Returns @@ -167,19 +182,19 @@ def guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @guids_to_boost.setter def guids_to_boost( - self, guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" ) -> None: """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Parameters ---------- - guids_to_boost: list[GrantaServerApiSearchBoostByGuid] + 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) -> "list[str]": + def guids_to_exclude(self) -> "Optional[List[str]]": """Gets the guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. Returns @@ -190,12 +205,12 @@ def guids_to_exclude(self) -> "list[str]": return self._guids_to_exclude @guids_to_exclude.setter - def guids_to_exclude(self, guids_to_exclude: "list[str]") -> None: + 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] + guids_to_exclude: List[str] The guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingAttributesCriterion. """ self._guids_to_exclude = guids_to_exclude @@ -244,7 +259,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index a48d71af..8e0fb844 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "column_guids_to_exclude": "list[str]", "column_identities_to_boost": "list[GrantaServerApiSearchBoostByIdentity]", @@ -51,7 +61,7 @@ class GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_guids_to_boost": "columnGuidsToBoost", "column_guids_to_exclude": "columnGuidsToExclude", "column_identities_to_boost": "columnIdentitiesToBoost", @@ -61,12 +71,12 @@ class GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( self._column_identities_to_exclude = None self._column_guids_to_boost = None self._column_guids_to_exclude = None - self._free_text_criterion_type = 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 @@ -111,7 +121,7 @@ def __init__( @property def column_identities_to_boost( self, - ) -> "list[GrantaServerApiSearchBoostByIdentity]": + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. Returns @@ -123,19 +133,20 @@ def column_identities_to_boost( @column_identities_to_boost.setter def column_identities_to_boost( - self, column_identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + 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] + 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) -> "list[int]": + def column_identities_to_exclude(self) -> "Optional[List[int]]": """Gets the column_identities_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. Returns @@ -147,19 +158,21 @@ def column_identities_to_exclude(self) -> "list[int]": @column_identities_to_exclude.setter def column_identities_to_exclude( - self, column_identities_to_exclude: "list[int]" + 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] + 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) -> "list[GrantaServerApiSearchBoostByGuid]": + def column_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. Returns @@ -171,19 +184,19 @@ def column_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @column_guids_to_boost.setter def column_guids_to_boost( - self, column_guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + 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] + 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) -> "list[str]": + def column_guids_to_exclude(self) -> "Optional[List[str]]": """Gets the column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. Returns @@ -194,12 +207,14 @@ def column_guids_to_exclude(self) -> "list[str]": return self._column_guids_to_exclude @column_guids_to_exclude.setter - def column_guids_to_exclude(self, column_guids_to_exclude: "list[str]") -> None: + 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] + column_guids_to_exclude: List[str] The column_guids_to_exclude of this GrantaServerApiSearchFreeTextExcludingLocalColumnsCriterion. """ self._column_guids_to_exclude = column_guids_to_exclude @@ -248,7 +263,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index 2f708ba4..8d7c274d 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "free_text_criterion_type": "str", "guids": "list[str]", "guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", @@ -51,7 +61,7 @@ class GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "free_text_criterion_type": "freeTextCriterionType", "guids": "guids", "guids_to_boost": "guidsToBoost", @@ -61,12 +71,12 @@ class GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "identitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "guidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( self._identities_to_boost = None self._guids = None self._guids_to_boost = None - self._free_text_criterion_type = None + self._free_text_criterion_type: str = None # type: ignore[assignment] if identities is not None: self.identities = identities @@ -109,7 +119,7 @@ def __init__( self.free_text_criterion_type = free_text_criterion_type @property - def identities(self) -> "list[int]": + def identities(self) -> "Optional[List[int]]": """Gets the identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Returns @@ -120,18 +130,20 @@ def identities(self) -> "list[int]": return self._identities @identities.setter - def identities(self, identities: "list[int]") -> None: + def identities(self, identities: "Optional[List[int]]") -> None: """Sets the identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Parameters ---------- - identities: list[int] + identities: List[int] The identities of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. """ self._identities = identities @property - def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": + def identities_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Returns @@ -143,19 +155,20 @@ def identities_to_boost(self) -> "list[GrantaServerApiSearchBoostByIdentity]": @identities_to_boost.setter def identities_to_boost( - self, identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + self, + identities_to_boost: "Optional[List[GrantaServerApiSearchBoostByIdentity]]", ) -> None: """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Parameters ---------- - identities_to_boost: list[GrantaServerApiSearchBoostByIdentity] + identities_to_boost: List[GrantaServerApiSearchBoostByIdentity] The identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. """ self._identities_to_boost = identities_to_boost @property - def guids(self) -> "list[str]": + def guids(self) -> "Optional[List[str]]": """Gets the guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Returns @@ -166,18 +179,18 @@ def guids(self) -> "list[str]": return self._guids @guids.setter - def guids(self, guids: "list[str]") -> None: + def guids(self, guids: "Optional[List[str]]") -> None: """Sets the guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Parameters ---------- - guids: list[str] + guids: List[str] The guids of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. """ self._guids = guids @property - def guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": + def guids_to_boost(self) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Returns @@ -189,13 +202,13 @@ def guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @guids_to_boost.setter def guids_to_boost( - self, guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + self, guids_to_boost: "Optional[List[GrantaServerApiSearchBoostByGuid]]" ) -> None: """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. Parameters ---------- - guids_to_boost: list[GrantaServerApiSearchBoostByGuid] + guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedAttributesCriterion. """ self._guids_to_boost = guids_to_boost @@ -244,7 +257,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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_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 index 7755a604..f9b564ff 100644 --- 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "column_guids": "list[str]", "column_guids_to_boost": "list[GrantaServerApiSearchBoostByGuid]", "column_identities": "list[int]", @@ -51,7 +61,7 @@ class GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion( "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "column_guids": "columnGuids", "column_guids_to_boost": "columnGuidsToBoost", "column_identities": "columnIdentities", @@ -61,12 +71,12 @@ class GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion( "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "columnIdentitiesToBoost": "GrantaServerApiSearchBoostByIdentity", "columnGuidsToBoost": "GrantaServerApiSearchBoostByGuid", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -96,7 +106,7 @@ def __init__( self._column_identities_to_boost = None self._column_guids = None self._column_guids_to_boost = None - self._free_text_criterion_type = None + self._free_text_criterion_type: str = None # type: ignore[assignment] if column_identities is not None: self.column_identities = column_identities @@ -109,7 +119,7 @@ def __init__( self.free_text_criterion_type = free_text_criterion_type @property - def column_identities(self) -> "list[int]": + def column_identities(self) -> "Optional[List[int]]": """Gets the column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Returns @@ -120,12 +130,12 @@ def column_identities(self) -> "list[int]": return self._column_identities @column_identities.setter - def column_identities(self, column_identities: "list[int]") -> None: + def column_identities(self, column_identities: "Optional[List[int]]") -> None: """Sets the column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Parameters ---------- - column_identities: list[int] + column_identities: List[int] The column_identities of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. """ self._column_identities = column_identities @@ -133,7 +143,7 @@ def column_identities(self, column_identities: "list[int]") -> None: @property def column_identities_to_boost( self, - ) -> "list[GrantaServerApiSearchBoostByIdentity]": + ) -> "Optional[List[GrantaServerApiSearchBoostByIdentity]]": """Gets the column_identities_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Returns @@ -145,19 +155,20 @@ def column_identities_to_boost( @column_identities_to_boost.setter def column_identities_to_boost( - self, column_identities_to_boost: "list[GrantaServerApiSearchBoostByIdentity]" + 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] + 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) -> "list[str]": + def column_guids(self) -> "Optional[List[str]]": """Gets the column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Returns @@ -168,18 +179,20 @@ def column_guids(self) -> "list[str]": return self._column_guids @column_guids.setter - def column_guids(self, column_guids: "list[str]") -> None: + def column_guids(self, column_guids: "Optional[List[str]]") -> None: """Sets the column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Parameters ---------- - column_guids: list[str] + column_guids: List[str] The column_guids of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. """ self._column_guids = column_guids @property - def column_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": + def column_guids_to_boost( + self, + ) -> "Optional[List[GrantaServerApiSearchBoostByGuid]]": """Gets the column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. Returns @@ -191,13 +204,13 @@ def column_guids_to_boost(self) -> "list[GrantaServerApiSearchBoostByGuid]": @column_guids_to_boost.setter def column_guids_to_boost( - self, column_guids_to_boost: "list[GrantaServerApiSearchBoostByGuid]" + 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] + column_guids_to_boost: List[GrantaServerApiSearchBoostByGuid] The column_guids_to_boost of this GrantaServerApiSearchFreeTextSpecifiedLocalColumnsCriterion. """ self._column_guids_to_boost = column_guids_to_boost @@ -246,7 +259,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 c2d5d3e5..38a1139a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchHyperlinkDatumCriterion(GrantaServerApiSearchDatumCri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchHyperlinkDatumCriterion. Returns @@ -86,7 +96,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchHyperlinkDatumCriterion. Parameters @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 fe7b1bfa..faceb948 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchIndexStatus(ModelBase): +class GrantaServerApiSearchIndexStatus(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSearchIndexStatus(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "disk_status": "GrantaServerApiDiskStatus", "disk_threshold": "str", "records_that_failed_to_index": "list[GrantaServerApiIndexRecordFailure]", @@ -48,7 +58,7 @@ class GrantaServerApiSearchIndexStatus(ModelBase): "search_index_up_to_date": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "disk_status": "diskStatus", "disk_threshold": "diskThreshold", "records_that_failed_to_index": "recordsThatFailedToIndex", @@ -60,12 +70,12 @@ class GrantaServerApiSearchIndexStatus(ModelBase): "search_index_up_to_date": "searchIndexUpToDate", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "diskStatus": "GrantaServerApiDiskStatus", "recordsThatFailedToIndex": "GrantaServerApiIndexRecordFailure", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -124,7 +134,7 @@ def __init__( self.records_that_failed_to_index = records_that_failed_to_index @property - def search_index_up_to_date(self) -> "bool": + def search_index_up_to_date(self) -> "Optional[bool]": """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 @@ -136,7 +146,9 @@ def search_index_up_to_date(self) -> "bool": 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: "bool") -> None: + def search_index_up_to_date( + self, search_index_up_to_date: "Optional[bool]" + ) -> 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 @@ -148,7 +160,7 @@ def search_index_up_to_date(self, search_index_up_to_date: "bool") -> None: self._search_index_up_to_date = search_index_up_to_date @property - def search_index_out_of_date_duration(self) -> "str": + def search_index_out_of_date_duration(self) -> "Optional[str]": """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. @@ -161,7 +173,7 @@ def search_index_out_of_date_duration(self) -> "str": @search_index_out_of_date_duration.setter def search_index_out_of_date_duration( - self, search_index_out_of_date_duration: "str" + self, search_index_out_of_date_duration: "Optional[str]" ) -> 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. @@ -174,7 +186,7 @@ def search_index_out_of_date_duration( self._search_index_out_of_date_duration = search_index_out_of_date_duration @property - def search_index_in_sync(self) -> "bool": + def search_index_in_sync(self) -> "Optional[bool]": """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) @@ -186,7 +198,7 @@ def search_index_in_sync(self) -> "bool": return self._search_index_in_sync @search_index_in_sync.setter - def search_index_in_sync(self, search_index_in_sync: "bool") -> None: + def search_index_in_sync(self, search_index_in_sync: "Optional[bool]") -> 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) @@ -198,7 +210,7 @@ def search_index_in_sync(self, search_index_in_sync: "bool") -> None: self._search_index_in_sync = search_index_in_sync @property - def search_index_location(self) -> "str": + def search_index_location(self) -> "Optional[str]": """Gets the search_index_location of this GrantaServerApiSearchIndexStatus. The location of the index. @@ -210,7 +222,7 @@ def search_index_location(self) -> "str": return self._search_index_location @search_index_location.setter - def search_index_location(self, search_index_location: "str") -> None: + def search_index_location(self, search_index_location: "Optional[str]") -> None: """Sets the search_index_location of this GrantaServerApiSearchIndexStatus. The location of the index. @@ -222,7 +234,7 @@ def search_index_location(self, search_index_location: "str") -> None: self._search_index_location = search_index_location @property - def search_index_is_read_only(self) -> "bool": + def search_index_is_read_only(self) -> "Optional[bool]": """Gets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. True if the index is read only. @@ -234,7 +246,9 @@ def search_index_is_read_only(self) -> "bool": 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: "bool") -> None: + def search_index_is_read_only( + self, search_index_is_read_only: "Optional[bool]" + ) -> None: """Sets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. True if the index is read only. @@ -246,7 +260,7 @@ def search_index_is_read_only(self, search_index_is_read_only: "bool") -> None: self._search_index_is_read_only = search_index_is_read_only @property - def disk_status(self) -> "GrantaServerApiDiskStatus": + def disk_status(self) -> "Optional[GrantaServerApiDiskStatus]": """Gets the disk_status of this GrantaServerApiSearchIndexStatus. Returns @@ -257,7 +271,7 @@ def disk_status(self) -> "GrantaServerApiDiskStatus": return self._disk_status @disk_status.setter - def disk_status(self, disk_status: "GrantaServerApiDiskStatus") -> None: + def disk_status(self, disk_status: "Optional[GrantaServerApiDiskStatus]") -> None: """Sets the disk_status of this GrantaServerApiSearchIndexStatus. Parameters @@ -268,7 +282,7 @@ def disk_status(self, disk_status: "GrantaServerApiDiskStatus") -> None: self._disk_status = disk_status @property - def disk_threshold(self) -> "str": + def disk_threshold(self) -> "Optional[str]": """Gets the disk_threshold of this GrantaServerApiSearchIndexStatus. The 'flood stage' threshold from Elasticsearch. @@ -280,7 +294,7 @@ def disk_threshold(self) -> "str": return self._disk_threshold @disk_threshold.setter - def disk_threshold(self, disk_threshold: "str") -> None: + def disk_threshold(self, disk_threshold: "Optional[str]") -> None: """Sets the disk_threshold of this GrantaServerApiSearchIndexStatus. The 'flood stage' threshold from Elasticsearch. @@ -292,7 +306,7 @@ def disk_threshold(self, disk_threshold: "str") -> None: self._disk_threshold = disk_threshold @property - def search_index_unavailable(self) -> "bool": + def search_index_unavailable(self) -> "Optional[bool]": """Gets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. True if the index could not be contacted. @@ -304,7 +318,9 @@ def search_index_unavailable(self) -> "bool": return self._search_index_unavailable @search_index_unavailable.setter - def search_index_unavailable(self, search_index_unavailable: "bool") -> None: + def search_index_unavailable( + self, search_index_unavailable: "Optional[bool]" + ) -> None: """Sets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. True if the index could not be contacted. @@ -316,7 +332,9 @@ def search_index_unavailable(self, search_index_unavailable: "bool") -> None: self._search_index_unavailable = search_index_unavailable @property - def records_that_failed_to_index(self) -> "list[GrantaServerApiIndexRecordFailure]": + def records_that_failed_to_index( + self, + ) -> "Optional[List[GrantaServerApiIndexRecordFailure]]": """Gets the records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. Details of any records that failed to index. @@ -329,14 +347,15 @@ def records_that_failed_to_index(self) -> "list[GrantaServerApiIndexRecordFailur @records_that_failed_to_index.setter def records_that_failed_to_index( - self, records_that_failed_to_index: "list[GrantaServerApiIndexRecordFailure]" + self, + records_that_failed_to_index: "Optional[List[GrantaServerApiIndexRecordFailure]]", ) -> 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: List[GrantaServerApiIndexRecordFailure] The records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. """ self._records_that_failed_to_index = records_that_failed_to_index @@ -359,7 +378,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ca5ebf6..74494625 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchIntegerDatumCriterion(GrantaServerApiSearchDatumCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "int", "lte": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._gte = None self._lte = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def gte(self) -> "int": + def gte(self) -> "Optional[int]": """Gets the gte of this GrantaServerApiSearchIntegerDatumCriterion. Greater than or equal to @@ -94,7 +104,7 @@ def gte(self) -> "int": return self._gte @gte.setter - def gte(self, gte: "int") -> None: + def gte(self, gte: "Optional[int]") -> None: """Sets the gte of this GrantaServerApiSearchIntegerDatumCriterion. Greater than or equal to @@ -106,7 +116,7 @@ def gte(self, gte: "int") -> None: self._gte = gte @property - def lte(self) -> "int": + def lte(self) -> "Optional[int]": """Gets the lte of this GrantaServerApiSearchIntegerDatumCriterion. Less than or equal to @@ -118,7 +128,7 @@ def lte(self) -> "int": return self._lte @lte.setter - def lte(self, lte: "int") -> None: + def lte(self, lte: "Optional[int]") -> None: """Sets the lte of this GrantaServerApiSearchIntegerDatumCriterion. Less than or equal to @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e0d332a2..7816c3f5 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "indirect_links": "GrantaServerApiIndirectLinks", "inner_criterion": "GrantaServerApiSearchCriterion", "link_datum_type": "GrantaServerApiLinkAttributeType", @@ -54,7 +64,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "indirect_links": "indirectLinks", "inner_criterion": "innerCriterion", "link_datum_type": "linkDatumType", @@ -69,7 +79,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "localCriterion": "GrantaServerApiSearchCriterion", "linkDatumType": "GrantaServerApiLinkAttributeType", "indirectLinks": "GrantaServerApiIndirectLinks", @@ -77,7 +87,7 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio "localRowsBehaviour": "GrantaServerApiSearchLocalRowsBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -123,7 +133,7 @@ def __init__( self._target_attribute_identity = None self._target_attribute_guid = None self._inner_criterion = None - self._type = None + self._type: str = None # type: ignore[assignment] self._local_rows_behaviour = None if target_table_identity is not None: @@ -151,7 +161,7 @@ def __init__( self.local_rows_behaviour = local_rows_behaviour @property - def target_table_identity(self) -> "int": + def target_table_identity(self) -> "Optional[int]": """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. @@ -163,7 +173,7 @@ def target_table_identity(self) -> "int": return self._target_table_identity @target_table_identity.setter - def target_table_identity(self, target_table_identity: "int") -> None: + def target_table_identity(self, target_table_identity: "Optional[int]") -> 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. @@ -175,7 +185,7 @@ def target_table_identity(self, target_table_identity: "int") -> None: self._target_table_identity = target_table_identity @property - def target_table_guid(self) -> "str": + def target_table_guid(self) -> "Optional[str]": """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. @@ -187,7 +197,7 @@ def target_table_guid(self) -> "str": return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "str") -> None: + def target_table_guid(self, target_table_guid: "Optional[str]") -> 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. @@ -199,7 +209,7 @@ def target_table_guid(self, target_table_guid: "str") -> None: self._target_table_guid = target_table_guid @property - def target_database_key(self) -> "str": + def target_database_key(self) -> "Optional[str]": """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 @@ -211,7 +221,7 @@ def target_database_key(self) -> "str": return self._target_database_key @target_database_key.setter - def target_database_key(self, target_database_key: "str") -> None: + def target_database_key(self, target_database_key: "Optional[str]") -> 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 @@ -223,7 +233,7 @@ def target_database_key(self, target_database_key: "str") -> None: self._target_database_key = target_database_key @property - def local_criterion(self) -> "GrantaServerApiSearchCriterion": + def local_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": """Gets the local_criterion of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -235,7 +245,7 @@ def local_criterion(self) -> "GrantaServerApiSearchCriterion": @local_criterion.setter def local_criterion( - self, local_criterion: "GrantaServerApiSearchCriterion" + self, local_criterion: "Optional[GrantaServerApiSearchCriterion]" ) -> None: """Sets the local_criterion of this GrantaServerApiSearchLinkDatumCriterion. @@ -247,7 +257,7 @@ def local_criterion( self._local_criterion = local_criterion @property - def link_datum_type(self) -> "GrantaServerApiLinkAttributeType": + def link_datum_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": """Gets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -259,7 +269,7 @@ def link_datum_type(self) -> "GrantaServerApiLinkAttributeType": @link_datum_type.setter def link_datum_type( - self, link_datum_type: "GrantaServerApiLinkAttributeType" + self, link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" ) -> None: """Sets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. @@ -271,7 +281,7 @@ def link_datum_type( self._link_datum_type = link_datum_type @property - def indirect_links(self) -> "GrantaServerApiIndirectLinks": + def indirect_links(self) -> "Optional[GrantaServerApiIndirectLinks]": """Gets the indirect_links of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -282,7 +292,9 @@ def indirect_links(self) -> "GrantaServerApiIndirectLinks": return self._indirect_links @indirect_links.setter - def indirect_links(self, indirect_links: "GrantaServerApiIndirectLinks") -> None: + def indirect_links( + self, indirect_links: "Optional[GrantaServerApiIndirectLinks]" + ) -> None: """Sets the indirect_links of this GrantaServerApiSearchLinkDatumCriterion. Parameters @@ -293,7 +305,7 @@ def indirect_links(self, indirect_links: "GrantaServerApiIndirectLinks") -> None self._indirect_links = indirect_links @property - def search_in_reversed_direction(self) -> "bool": + def search_in_reversed_direction(self) -> "Optional[bool]": """Gets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -305,7 +317,7 @@ def search_in_reversed_direction(self) -> "bool": @search_in_reversed_direction.setter def search_in_reversed_direction( - self, search_in_reversed_direction: "bool" + self, search_in_reversed_direction: "Optional[bool]" ) -> None: """Sets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. @@ -317,7 +329,7 @@ def search_in_reversed_direction( self._search_in_reversed_direction = search_in_reversed_direction @property - def target_attribute_identity(self) -> "int": + def target_attribute_identity(self) -> "Optional[int]": """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. @@ -329,7 +341,9 @@ def target_attribute_identity(self) -> "int": return self._target_attribute_identity @target_attribute_identity.setter - def target_attribute_identity(self, target_attribute_identity: "int") -> None: + def target_attribute_identity( + self, target_attribute_identity: "Optional[int]" + ) -> 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. @@ -341,7 +355,7 @@ def target_attribute_identity(self, target_attribute_identity: "int") -> None: self._target_attribute_identity = target_attribute_identity @property - def target_attribute_guid(self) -> "str": + def target_attribute_guid(self) -> "Optional[str]": """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. @@ -353,7 +367,7 @@ def target_attribute_guid(self) -> "str": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "str") -> None: + def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> 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. @@ -365,7 +379,7 @@ def target_attribute_guid(self, target_attribute_guid: "str") -> None: self._target_attribute_guid = target_attribute_guid @property - def inner_criterion(self) -> "GrantaServerApiSearchCriterion": + def inner_criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": """Gets the inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -377,7 +391,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchCriterion": @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchCriterion" + self, inner_criterion: "Optional[GrantaServerApiSearchCriterion]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. @@ -413,7 +427,9 @@ def type(self, type: "str") -> None: self._type = type @property - def local_rows_behaviour(self) -> "GrantaServerApiSearchLocalRowsBehaviour": + def local_rows_behaviour( + self, + ) -> "Optional[GrantaServerApiSearchLocalRowsBehaviour]": """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. Returns @@ -425,7 +441,7 @@ def local_rows_behaviour(self) -> "GrantaServerApiSearchLocalRowsBehaviour": @local_rows_behaviour.setter def local_rows_behaviour( - self, local_rows_behaviour: "GrantaServerApiSearchLocalRowsBehaviour" + self, local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" ) -> None: """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkDatumCriterion. @@ -454,7 +470,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 de52b5a7..11230436 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_exists_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "indirect_links": "GrantaServerApiIndirectLinks", "link_datum_type": "GrantaServerApiLinkAttributeType", "local_rows_behaviour": "GrantaServerApiSearchLocalRowsBehaviour", @@ -54,7 +64,7 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "indirect_links": "indirectLinks", "link_datum_type": "linkDatumType", "local_rows_behaviour": "localRowsBehaviour", @@ -67,13 +77,13 @@ class GrantaServerApiSearchLinkExistsDatumCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkDatumType": "GrantaServerApiLinkAttributeType", "indirectLinks": "GrantaServerApiIndirectLinks", "localRowsBehaviour": "GrantaServerApiSearchLocalRowsBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -114,7 +124,7 @@ def __init__( self._local_rows_behaviour = None self._target_attribute_identity = None self._target_attribute_guid = None - self._type = None + self._type: str = None # type: ignore[assignment] if target_table_identity is not None: self.target_table_identity = target_table_identity @@ -137,7 +147,7 @@ def __init__( self.type = type @property - def target_table_identity(self) -> "int": + def target_table_identity(self) -> "Optional[int]": """Gets the target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -149,7 +159,7 @@ def target_table_identity(self) -> "int": return self._target_table_identity @target_table_identity.setter - def target_table_identity(self, target_table_identity: "int") -> None: + def target_table_identity(self, target_table_identity: "Optional[int]") -> None: """Sets the target_table_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -161,7 +171,7 @@ def target_table_identity(self, target_table_identity: "int") -> None: self._target_table_identity = target_table_identity @property - def target_table_guid(self) -> "str": + def target_table_guid(self) -> "Optional[str]": """Gets the target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -173,7 +183,7 @@ def target_table_guid(self) -> "str": return self._target_table_guid @target_table_guid.setter - def target_table_guid(self, target_table_guid: "str") -> None: + def target_table_guid(self, target_table_guid: "Optional[str]") -> None: """Sets the target_table_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. Table containing the linked records @@ -185,7 +195,7 @@ def target_table_guid(self, target_table_guid: "str") -> None: self._target_table_guid = target_table_guid @property - def target_database_key(self) -> "str": + def target_database_key(self) -> "Optional[str]": """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 @@ -197,7 +207,7 @@ def target_database_key(self) -> "str": return self._target_database_key @target_database_key.setter - def target_database_key(self, target_database_key: "str") -> None: + def target_database_key(self, target_database_key: "Optional[str]") -> 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 @@ -209,7 +219,7 @@ def target_database_key(self, target_database_key: "str") -> None: self._target_database_key = target_database_key @property - def link_datum_type(self) -> "GrantaServerApiLinkAttributeType": + def link_datum_type(self) -> "Optional[GrantaServerApiLinkAttributeType]": """Gets the link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns @@ -221,7 +231,7 @@ def link_datum_type(self) -> "GrantaServerApiLinkAttributeType": @link_datum_type.setter def link_datum_type( - self, link_datum_type: "GrantaServerApiLinkAttributeType" + self, link_datum_type: "Optional[GrantaServerApiLinkAttributeType]" ) -> None: """Sets the link_datum_type of this GrantaServerApiSearchLinkExistsDatumCriterion. @@ -233,7 +243,7 @@ def link_datum_type( self._link_datum_type = link_datum_type @property - def indirect_links(self) -> "GrantaServerApiIndirectLinks": + def indirect_links(self) -> "Optional[GrantaServerApiIndirectLinks]": """Gets the indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns @@ -244,7 +254,9 @@ def indirect_links(self) -> "GrantaServerApiIndirectLinks": return self._indirect_links @indirect_links.setter - def indirect_links(self, indirect_links: "GrantaServerApiIndirectLinks") -> None: + def indirect_links( + self, indirect_links: "Optional[GrantaServerApiIndirectLinks]" + ) -> None: """Sets the indirect_links of this GrantaServerApiSearchLinkExistsDatumCriterion. Parameters @@ -255,7 +267,7 @@ def indirect_links(self, indirect_links: "GrantaServerApiIndirectLinks") -> None self._indirect_links = indirect_links @property - def search_in_reversed_direction(self) -> "bool": + def search_in_reversed_direction(self) -> "Optional[bool]": """Gets the search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns @@ -267,7 +279,7 @@ def search_in_reversed_direction(self) -> "bool": @search_in_reversed_direction.setter def search_in_reversed_direction( - self, search_in_reversed_direction: "bool" + self, search_in_reversed_direction: "Optional[bool]" ) -> None: """Sets the search_in_reversed_direction of this GrantaServerApiSearchLinkExistsDatumCriterion. @@ -279,7 +291,9 @@ def search_in_reversed_direction( self._search_in_reversed_direction = search_in_reversed_direction @property - def local_rows_behaviour(self) -> "GrantaServerApiSearchLocalRowsBehaviour": + def local_rows_behaviour( + self, + ) -> "Optional[GrantaServerApiSearchLocalRowsBehaviour]": """Gets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. Returns @@ -291,7 +305,7 @@ def local_rows_behaviour(self) -> "GrantaServerApiSearchLocalRowsBehaviour": @local_rows_behaviour.setter def local_rows_behaviour( - self, local_rows_behaviour: "GrantaServerApiSearchLocalRowsBehaviour" + self, local_rows_behaviour: "Optional[GrantaServerApiSearchLocalRowsBehaviour]" ) -> None: """Sets the local_rows_behaviour of this GrantaServerApiSearchLinkExistsDatumCriterion. @@ -303,7 +317,7 @@ def local_rows_behaviour( self._local_rows_behaviour = local_rows_behaviour @property - def target_attribute_identity(self) -> "int": + def target_attribute_identity(self) -> "Optional[int]": """Gets the target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. @@ -315,7 +329,9 @@ def target_attribute_identity(self) -> "int": return self._target_attribute_identity @target_attribute_identity.setter - def target_attribute_identity(self, target_attribute_identity: "int") -> None: + def target_attribute_identity( + self, target_attribute_identity: "Optional[int]" + ) -> None: """Sets the target_attribute_identity of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. @@ -327,7 +343,7 @@ def target_attribute_identity(self, target_attribute_identity: "int") -> None: self._target_attribute_identity = target_attribute_identity @property - def target_attribute_guid(self) -> "str": + def target_attribute_guid(self) -> "Optional[str]": """Gets the target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. @@ -339,7 +355,7 @@ def target_attribute_guid(self) -> "str": return self._target_attribute_guid @target_attribute_guid.setter - def target_attribute_guid(self, target_attribute_guid: "str") -> None: + def target_attribute_guid(self, target_attribute_guid: "Optional[str]") -> None: """Sets the target_attribute_guid of this GrantaServerApiSearchLinkExistsDatumCriterion. For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. @@ -392,7 +408,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 dbc94ce8..d2f3015d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,19 +51,19 @@ class GrantaServerApiSearchLocalColumnCriterion(GrantaServerApiSearchCriterion): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "matches".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnMatchesCriterion", @@ -61,7 +71,7 @@ class GrantaServerApiSearchLocalColumnCriterion(GrantaServerApiSearchCriterion): "notApplicable".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnNotApplicableCriterion", } - discriminator = "local_column_criterion_type" + discriminator: Optional[str] = "local_column_criterion_type" def __init__( self, @@ -81,7 +91,7 @@ def __init__( super().__init__() self._identity = None self._guid = None - self._type = None + self._type: str = None # type: ignore[assignment] if identity is not None: self.identity = identity @@ -90,7 +100,7 @@ def __init__( self.type = type @property - def identity(self) -> "int": + def identity(self) -> "Optional[int]": """Gets the identity of this GrantaServerApiSearchLocalColumnCriterion. Returns @@ -101,7 +111,7 @@ def identity(self) -> "int": return self._identity @identity.setter - def identity(self, identity: "int") -> None: + def identity(self, identity: "Optional[int]") -> None: """Sets the identity of this GrantaServerApiSearchLocalColumnCriterion. Parameters @@ -112,7 +122,7 @@ def identity(self, identity: "int") -> None: self._identity = identity @property - def guid(self) -> "str": + def guid(self) -> "Optional[str]": """Gets the guid of this GrantaServerApiSearchLocalColumnCriterion. Returns @@ -123,7 +133,7 @@ def guid(self) -> "str": return self._guid @guid.setter - def guid(self, guid: "str") -> None: + def guid(self, guid: "Optional[str]") -> None: """Sets the guid of this GrantaServerApiSearchLocalColumnCriterion. Parameters @@ -169,19 +179,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7320c762..9cfd04bc 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_local_column_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchLocalColumnExistsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "inner_criterion": "GrantaServerApiSearchDatumExistsCriterion", "guid": "str", "identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiSearchLocalColumnExistsCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "inner_criterion": "innerCriterion", "guid": "guid", "identity": "identity", @@ -57,11 +67,11 @@ class GrantaServerApiSearchLocalColumnExistsCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiSearchDatumExistsCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,8 +93,8 @@ def __init__( type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._inner_criterion = None - self._local_column_criterion_type = None + self._inner_criterion: GrantaServerApiSearchDatumExistsCriterion = None # type: ignore[assignment] + self._local_column_criterion_type: str = None # type: ignore[assignment] self.inner_criterion = inner_criterion self.local_column_criterion_type = local_column_criterion_type @@ -159,7 +169,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 4e8981a5..b15caaf9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_local_column_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchLocalColumnMatchesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "inner_criterion": "GrantaServerApiSearchDatumCriterion", "guid": "str", "identity": "int", @@ -49,7 +59,7 @@ class GrantaServerApiSearchLocalColumnMatchesCriterion( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "inner_criterion": "innerCriterion", "guid": "guid", "identity": "identity", @@ -57,11 +67,11 @@ class GrantaServerApiSearchLocalColumnMatchesCriterion( "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "innerCriterion": "GrantaServerApiSearchDatumCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,8 +93,8 @@ def __init__( type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._inner_criterion = None - self._local_column_criterion_type = None + self._inner_criterion: GrantaServerApiSearchDatumCriterion = None # type: ignore[assignment] + self._local_column_criterion_type: str = None # type: ignore[assignment] self.inner_criterion = inner_criterion self.local_column_criterion_type = local_column_criterion_type @@ -159,7 +169,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ebac932..32e53e85 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_local_column_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,23 +51,23 @@ class GrantaServerApiSearchLocalColumnNotApplicableCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "guid": "str", "identity": "int", "local_column_criterion_type": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "guid": "guid", "identity": "identity", "local_column_criterion_type": "localColumnCriterionType", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -77,7 +87,7 @@ def __init__( type: str """ super().__init__(guid=guid, identity=identity, type=type) - self._local_column_criterion_type = None + self._local_column_criterion_type: str = None # type: ignore[assignment] self.local_column_criterion_type = local_column_criterion_type @@ -125,7 +135,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e0d5a09d..87994557 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchLogicalDatumCriterion(GrantaServerApiSearchDatumCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "bool", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "bool": + def value(self) -> "Optional[bool]": """Gets the value of this GrantaServerApiSearchLogicalDatumCriterion. Logical search value @@ -87,7 +97,7 @@ def value(self) -> "bool": return self._value @value.setter - def value(self, value: "bool") -> None: + def value(self, value: "Optional[bool]") -> None: """Sets the value of this GrantaServerApiSearchLogicalDatumCriterion. Logical search value @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b0ab0cae..2c762efa 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sorting_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchLongSortingValue(GrantaServerApiSearchSortingValue): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "int": + def value(self) -> "Optional[int]": """Gets the value of this GrantaServerApiSearchLongSortingValue. Returns @@ -86,7 +96,7 @@ def value(self) -> "int": return self._value @value.setter - def value(self, value: "int") -> None: + def value(self, value: "Optional[int]") -> None: """Sets the value of this GrantaServerApiSearchLongSortingValue. Parameters @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 db473709..e06c4f2b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchLongTextDatumCriterion(GrantaServerApiSearchDatumCrit discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchLongTextDatumCriterion. Long text search value @@ -87,7 +97,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchLongTextDatumCriterion. Long text search value @@ -140,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f72d24be..38bacd4b 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,25 +51,25 @@ class GrantaServerApiSearchMathsFunctionalDatumCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "constraints": "list[GrantaServerApiSearchParameterConstraint]", "gte": "float", "lte": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "constraints": "constraints", "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "constraints": "GrantaServerApiSearchParameterConstraint", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self._gte = None self._lte = None self._constraints = None @@ -117,7 +127,7 @@ def type(self, type: "str") -> None: self._type = type @property - def gte(self) -> "float": + def gte(self) -> "Optional[float]": """Gets the gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Greater than or equal to @@ -129,7 +139,7 @@ def gte(self) -> "float": return self._gte @gte.setter - def gte(self, gte: "float") -> None: + def gte(self, gte: "Optional[float]") -> None: """Sets the gte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Greater than or equal to @@ -141,7 +151,7 @@ def gte(self, gte: "float") -> None: self._gte = gte @property - def lte(self) -> "float": + def lte(self) -> "Optional[float]": """Gets the lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Less than or equal to @@ -153,7 +163,7 @@ def lte(self) -> "float": return self._lte @lte.setter - def lte(self, lte: "float") -> None: + def lte(self, lte: "Optional[float]") -> None: """Sets the lte of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Less than or equal to @@ -165,7 +175,7 @@ def lte(self, lte: "float") -> None: self._lte = lte @property - def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": + def constraints(self) -> "Optional[List[GrantaServerApiSearchParameterConstraint]]": """Gets the constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. Constraints on the parameters of the attribute. Unspecified parameters will be assumed to be unconstrained. @@ -178,14 +188,14 @@ def constraints(self) -> "list[GrantaServerApiSearchParameterConstraint]": @constraints.setter def constraints( - self, constraints: "list[GrantaServerApiSearchParameterConstraint]" + self, constraints: "Optional[List[GrantaServerApiSearchParameterConstraint]]" ) -> 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: List[GrantaServerApiSearchParameterConstraint] The constraints of this GrantaServerApiSearchMathsFunctionalDatumCriterion. """ self._constraints = constraints @@ -208,7 +218,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ef96a0ad..b70b0ccf 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_parameter_constraint import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,7 +51,7 @@ class GrantaServerApiSearchNumericParameterConstraint( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "float", "interpolation_type": "str", "lte": "float", @@ -51,7 +61,7 @@ class GrantaServerApiSearchNumericParameterConstraint( "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "interpolation_type": "interpolationType", "lte": "lte", @@ -61,9 +71,9 @@ class GrantaServerApiSearchNumericParameterConstraint( "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -94,7 +104,7 @@ def __init__( self._scale_type = None self._interpolation_type = None self._significant_figures = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -109,7 +119,7 @@ def __init__( self.type = type @property - def gte(self) -> "float": + def gte(self) -> "Optional[float]": """Gets the gte of this GrantaServerApiSearchNumericParameterConstraint. Returns @@ -120,7 +130,7 @@ def gte(self) -> "float": return self._gte @gte.setter - def gte(self, gte: "float") -> None: + def gte(self, gte: "Optional[float]") -> None: """Sets the gte of this GrantaServerApiSearchNumericParameterConstraint. Parameters @@ -131,7 +141,7 @@ def gte(self, gte: "float") -> None: self._gte = gte @property - def lte(self) -> "float": + def lte(self) -> "Optional[float]": """Gets the lte of this GrantaServerApiSearchNumericParameterConstraint. Returns @@ -142,7 +152,7 @@ def lte(self) -> "float": return self._lte @lte.setter - def lte(self, lte: "float") -> None: + def lte(self, lte: "Optional[float]") -> None: """Sets the lte of this GrantaServerApiSearchNumericParameterConstraint. Parameters @@ -153,7 +163,7 @@ def lte(self, lte: "float") -> None: self._lte = lte @property - def scale_type(self) -> "str": + def scale_type(self) -> "Optional[str]": """Gets the scale_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the scale type of the parameter. Can be Linear or Log @@ -165,7 +175,7 @@ def scale_type(self) -> "str": return self._scale_type @scale_type.setter - def scale_type(self, scale_type: "str") -> None: + def scale_type(self, scale_type: "Optional[str]") -> None: """Sets the scale_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the scale type of the parameter. Can be Linear or Log @@ -177,7 +187,7 @@ def scale_type(self, scale_type: "str") -> None: self._scale_type = scale_type @property - def interpolation_type(self) -> "str": + def interpolation_type(self) -> "Optional[str]": """Gets the interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the interpolation type of the parameter. Can be Auto, None, Linear or CubicSpline @@ -189,7 +199,7 @@ def interpolation_type(self) -> "str": return self._interpolation_type @interpolation_type.setter - def interpolation_type(self, interpolation_type: "str") -> None: + def interpolation_type(self, interpolation_type: "Optional[str]") -> None: """Sets the interpolation_type of this GrantaServerApiSearchNumericParameterConstraint. Optionally, override the interpolation type of the parameter. Can be Auto, None, Linear or CubicSpline @@ -201,7 +211,7 @@ def interpolation_type(self, interpolation_type: "str") -> None: self._interpolation_type = interpolation_type @property - def significant_figures(self) -> "int": + def significant_figures(self) -> "Optional[int]": """Gets the significant_figures of this GrantaServerApiSearchNumericParameterConstraint. Returns @@ -212,7 +222,7 @@ def significant_figures(self) -> "int": return self._significant_figures @significant_figures.setter - def significant_figures(self, significant_figures: "int") -> None: + def significant_figures(self, significant_figures: "Optional[int]") -> None: """Sets the significant_figures of this GrantaServerApiSearchNumericParameterConstraint. Parameters @@ -264,7 +274,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0131858c..76731200 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchPagingOptions(ModelBase): +class GrantaServerApiSearchPagingOptions(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSearchPagingOptions(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "keep_alive_in_minutes": "int", "page_number": "int", "page_size": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "keep_alive_in_minutes": "keepAliveInMinutes", "page_number": "pageNumber", "page_size": "pageSize", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.page_number = page_number @property - def page_size(self) -> "int": + def page_size(self) -> "Optional[int]": """Gets the page_size of this GrantaServerApiSearchPagingOptions. The number of results that should be returned in each page @@ -91,7 +101,7 @@ def page_size(self) -> "int": return self._page_size @page_size.setter - def page_size(self, page_size: "int") -> None: + def page_size(self, page_size: "Optional[int]") -> None: """Sets the page_size of this GrantaServerApiSearchPagingOptions. The number of results that should be returned in each page @@ -103,7 +113,7 @@ def page_size(self, page_size: "int") -> None: self._page_size = page_size @property - def keep_alive_in_minutes(self) -> "int": + def keep_alive_in_minutes(self) -> "Optional[int]": """Gets the keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. The length of time that the paginated search should be kept in memory @@ -115,7 +125,7 @@ def keep_alive_in_minutes(self) -> "int": return self._keep_alive_in_minutes @keep_alive_in_minutes.setter - def keep_alive_in_minutes(self, keep_alive_in_minutes: "int") -> None: + def keep_alive_in_minutes(self, keep_alive_in_minutes: "Optional[int]") -> None: """Sets the keep_alive_in_minutes of this GrantaServerApiSearchPagingOptions. The length of time that the paginated search should be kept in memory @@ -127,7 +137,7 @@ def keep_alive_in_minutes(self, keep_alive_in_minutes: "int") -> None: self._keep_alive_in_minutes = keep_alive_in_minutes @property - def page_number(self) -> "int": + def page_number(self) -> "Optional[int]": """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 @@ -139,7 +149,7 @@ def page_number(self) -> "int": return self._page_number @page_number.setter - def page_number(self, page_number: "int") -> None: + def page_number(self, page_number: "Optional[int]") -> 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 @@ -168,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d120c460..78f59944 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchParameterConstraint(ModelBase): +class GrantaServerApiSearchParameterConstraint(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiSearchParameterConstraint(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "parameter": "GrantaServerApiObjectIdentifier", } - attribute_map = { + attribute_map: Dict[str, str] = { "parameter": "parameter", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "parameter": "GrantaServerApiObjectIdentifier", } @@ -56,7 +66,7 @@ class GrantaServerApiSearchParameterConstraint(ModelBase): "numeric".lower(): "#/components/schemas/GrantaServerApiSearchNumericParameterConstraint", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -75,7 +85,7 @@ def __init__( self.parameter = parameter @property - def parameter(self) -> "GrantaServerApiObjectIdentifier": + def parameter(self) -> "Optional[GrantaServerApiObjectIdentifier]": """Gets the parameter of this GrantaServerApiSearchParameterConstraint. Returns @@ -86,7 +96,7 @@ def parameter(self) -> "GrantaServerApiObjectIdentifier": return self._parameter @parameter.setter - def parameter(self, parameter: "GrantaServerApiObjectIdentifier") -> None: + def parameter(self, parameter: "Optional[GrantaServerApiObjectIdentifier]") -> None: """Sets the parameter of this GrantaServerApiSearchParameterConstraint. Parameters @@ -108,19 +118,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f1639053..1c52f74d 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,17 +49,17 @@ class GrantaServerApiSearchPictureDatumCriterion(GrantaServerApiSearchDatumCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -63,7 +73,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -109,7 +119,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f8cd568b..f90aca5a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchPointDatumCriterion(GrantaServerApiSearchDatumCriteri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "float", "lte": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._gte = None self._lte = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def gte(self) -> "float": + def gte(self) -> "Optional[float]": """Gets the gte of this GrantaServerApiSearchPointDatumCriterion. Greater than or equal @@ -94,7 +104,7 @@ def gte(self) -> "float": return self._gte @gte.setter - def gte(self, gte: "float") -> None: + def gte(self, gte: "Optional[float]") -> None: """Sets the gte of this GrantaServerApiSearchPointDatumCriterion. Greater than or equal @@ -106,7 +116,7 @@ def gte(self, gte: "float") -> None: self._gte = gte @property - def lte(self) -> "float": + def lte(self) -> "Optional[float]": """Gets the lte of this GrantaServerApiSearchPointDatumCriterion. Less than or equal @@ -118,7 +128,7 @@ def lte(self) -> "float": return self._lte @lte.setter - def lte(self, lte: "float") -> None: + def lte(self, lte: "Optional[float]") -> None: """Sets the lte of this GrantaServerApiSearchPointDatumCriterion. Less than or equal @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e9d122cb..480ed348 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchRangeDatumCriterion(GrantaServerApiSearchDatumCriteri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "gte": "float", "lte": "float", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "gte": "gte", "lte": "lte", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._gte = None self._lte = None - self._type = None + self._type: str = None # type: ignore[assignment] if gte is not None: self.gte = gte @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def gte(self) -> "float": + def gte(self) -> "Optional[float]": """Gets the gte of this GrantaServerApiSearchRangeDatumCriterion. Greater than or equal to @@ -94,7 +104,7 @@ def gte(self) -> "float": return self._gte @gte.setter - def gte(self, gte: "float") -> None: + def gte(self, gte: "Optional[float]") -> None: """Sets the gte of this GrantaServerApiSearchRangeDatumCriterion. Greater than or equal to @@ -106,7 +116,7 @@ def gte(self, gte: "float") -> None: self._gte = gte @property - def lte(self) -> "float": + def lte(self) -> "Optional[float]": """Gets the lte of this GrantaServerApiSearchRangeDatumCriterion. Less than or equal to @@ -118,7 +128,7 @@ def lte(self) -> "float": return self._lte @lte.setter - def lte(self, lte: "float") -> None: + def lte(self, lte: "Optional[float]") -> None: """Sets the lte of this GrantaServerApiSearchRangeDatumCriterion. Less than or equal to @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 d27cebd4..ddcf9113 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchRecordAncestorCriterion(GrantaServerApiSearchCriterio discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "ancestor_identity": "int", "direct_parent_only": "bool", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "ancestor_identity": "ancestorIdentity", "direct_parent_only": "directParentOnly", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._ancestor_identity = None self._direct_parent_only = None - self._type = None + self._type: str = None # type: ignore[assignment] if ancestor_identity is not None: self.ancestor_identity = ancestor_identity @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def ancestor_identity(self) -> "int": + def ancestor_identity(self) -> "Optional[int]": """Gets the ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. Returns @@ -93,7 +103,7 @@ def ancestor_identity(self) -> "int": return self._ancestor_identity @ancestor_identity.setter - def ancestor_identity(self, ancestor_identity: "int") -> None: + def ancestor_identity(self, ancestor_identity: "Optional[int]") -> None: """Sets the ancestor_identity of this GrantaServerApiSearchRecordAncestorCriterion. Parameters @@ -104,7 +114,7 @@ def ancestor_identity(self, ancestor_identity: "int") -> None: self._ancestor_identity = ancestor_identity @property - def direct_parent_only(self) -> "bool": + def direct_parent_only(self) -> "Optional[bool]": """Gets the direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. Returns @@ -115,7 +125,7 @@ def direct_parent_only(self) -> "bool": return self._direct_parent_only @direct_parent_only.setter - def direct_parent_only(self, direct_parent_only: "bool") -> None: + def direct_parent_only(self, direct_parent_only: "Optional[bool]") -> None: """Sets the direct_parent_only of this GrantaServerApiSearchRecordAncestorCriterion. Parameters @@ -167,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9e0731b4..e7850be3 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,21 +51,21 @@ class GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "ancestor_history_identities": "list[int]", "database_key": "str", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "ancestor_history_identities": "ancestorHistoryIdentities", "database_key": "databaseKey", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._ancestor_history_identities = None self._database_key = None - self._type = None + self._type: str = None # type: ignore[assignment] if ancestor_history_identities is not None: self.ancestor_history_identities = ancestor_history_identities @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def ancestor_history_identities(self) -> "list[int]": + def ancestor_history_identities(self) -> "Optional[List[int]]": """Gets the ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Returns @@ -96,19 +106,19 @@ def ancestor_history_identities(self) -> "list[int]": @ancestor_history_identities.setter def ancestor_history_identities( - self, ancestor_history_identities: "list[int]" + self, ancestor_history_identities: "Optional[List[int]]" ) -> None: """Sets the ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Parameters ---------- - ancestor_history_identities: list[int] + ancestor_history_identities: List[int] The ancestor_history_identities of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. """ self._ancestor_history_identities = ancestor_history_identities @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Returns @@ -119,7 +129,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion. Parameters @@ -171,7 +181,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 9f7c27fc..734c219a 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchRecordListMemberCriterion(GrantaServerApiSearchCriter discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "record_list_identifiers": "list[str]", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "record_list_identifiers": "recordListIdentifiers", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._record_list_identifiers = None - self._type = None + self._type: str = None # type: ignore[assignment] if record_list_identifiers is not None: self.record_list_identifiers = record_list_identifiers self.type = type @property - def record_list_identifiers(self) -> "list[str]": + def record_list_identifiers(self) -> "Optional[List[str]]": """Gets the record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. Returns @@ -86,12 +96,14 @@ def record_list_identifiers(self) -> "list[str]": return self._record_list_identifiers @record_list_identifiers.setter - def record_list_identifiers(self, record_list_identifiers: "list[str]") -> None: + def record_list_identifiers( + self, record_list_identifiers: "Optional[List[str]]" + ) -> None: """Sets the record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. Parameters ---------- - record_list_identifiers: list[str] + record_list_identifiers: List[str] The record_list_identifiers of this GrantaServerApiSearchRecordListMemberCriterion. """ self._record_list_identifiers = record_list_identifiers @@ -138,7 +150,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 7681c490..2a5ab8fd 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,24 +49,24 @@ class GrantaServerApiSearchRecordPropertyCriterion(GrantaServerApiSearchCriterio discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_property": "GrantaServerApiSearchSearchableRecordProperty", "inner_criterion": "GrantaServerApiSearchDatumCriterion", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_property": "property", "inner_criterion": "innerCriterion", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "property": "GrantaServerApiSearchSearchableRecordProperty", "innerCriterion": "GrantaServerApiSearchDatumCriterion", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -76,7 +86,7 @@ def __init__( super().__init__() self.__property = None self._inner_criterion = None - self._type = None + self._type: str = None # type: ignore[assignment] if _property is not None: self._property = _property @@ -85,7 +95,7 @@ def __init__( self.type = type @property - def _property(self) -> "GrantaServerApiSearchSearchableRecordProperty": + def _property(self) -> "Optional[GrantaServerApiSearchSearchableRecordProperty]": """Gets the _property of this GrantaServerApiSearchRecordPropertyCriterion. Returns @@ -97,7 +107,7 @@ def _property(self) -> "GrantaServerApiSearchSearchableRecordProperty": @_property.setter def _property( - self, _property: "GrantaServerApiSearchSearchableRecordProperty" + self, _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertyCriterion. @@ -109,7 +119,7 @@ def _property( self.__property = _property @property - def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": + def inner_criterion(self) -> "Optional[GrantaServerApiSearchDatumCriterion]": """Gets the inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. Returns @@ -121,7 +131,7 @@ def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": @inner_criterion.setter def inner_criterion( - self, inner_criterion: "GrantaServerApiSearchDatumCriterion" + self, inner_criterion: "Optional[GrantaServerApiSearchDatumCriterion]" ) -> None: """Sets the inner_criterion of this GrantaServerApiSearchRecordPropertyCriterion. @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 df2e5ae2..230034bf 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sort_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,26 +51,26 @@ class GrantaServerApiSearchRecordPropertySortCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "_property": "GrantaServerApiSearchSearchableRecordProperty", "sort_direction": "GrantaServerApiSearchSortDirection", "sort_type": "GrantaServerApiSearchSortType", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "_property": "property", "sort_direction": "sortDirection", "sort_type": "sortType", "type": "type", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "property": "GrantaServerApiSearchSearchableRecordProperty", "sortType": "GrantaServerApiSearchSortType", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -82,7 +92,7 @@ def __init__( super().__init__(sort_direction=sort_direction) self.__property = None self._sort_type = None - self._type = None + self._type: str = None # type: ignore[assignment] if _property is not None: self._property = _property @@ -91,7 +101,7 @@ def __init__( self.type = type @property - def _property(self) -> "GrantaServerApiSearchSearchableRecordProperty": + def _property(self) -> "Optional[GrantaServerApiSearchSearchableRecordProperty]": """Gets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. Returns @@ -103,7 +113,7 @@ def _property(self) -> "GrantaServerApiSearchSearchableRecordProperty": @_property.setter def _property( - self, _property: "GrantaServerApiSearchSearchableRecordProperty" + self, _property: "Optional[GrantaServerApiSearchSearchableRecordProperty]" ) -> None: """Sets the _property of this GrantaServerApiSearchRecordPropertySortCriterion. @@ -115,7 +125,7 @@ def _property( self.__property = _property @property - def sort_type(self) -> "GrantaServerApiSearchSortType": + def sort_type(self) -> "Optional[GrantaServerApiSearchSortType]": """Gets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. Returns @@ -126,7 +136,7 @@ def sort_type(self) -> "GrantaServerApiSearchSortType": return self._sort_type @sort_type.setter - def sort_type(self, sort_type: "GrantaServerApiSearchSortType") -> None: + def sort_type(self, sort_type: "Optional[GrantaServerApiSearchSortType]") -> None: """Sets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b3d0b818..bbc5ddf9 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,7 +49,7 @@ class GrantaServerApiSearchRecordReferenceCriterion(GrantaServerApiSearchCriteri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "database_key": "str", "record_guid": "str", "record_history_guid": "str", @@ -48,7 +58,7 @@ class GrantaServerApiSearchRecordReferenceCriterion(GrantaServerApiSearchCriteri "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "database_key": "databaseKey", "record_guid": "recordGuid", "record_history_guid": "recordHistoryGuid", @@ -57,9 +67,9 @@ class GrantaServerApiSearchRecordReferenceCriterion(GrantaServerApiSearchCriteri "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -88,7 +98,7 @@ def __init__( self._record_history_identity = None self._record_history_guid = None self._record_guid = None - self._type = None + self._type: str = None # type: ignore[assignment] if database_key is not None: self.database_key = database_key @@ -103,7 +113,7 @@ def __init__( self.type = type @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiSearchRecordReferenceCriterion. Returns @@ -114,7 +124,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiSearchRecordReferenceCriterion. Parameters @@ -125,7 +135,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def record_identity(self) -> "int": + def record_identity(self) -> "Optional[int]": """Gets the record_identity of this GrantaServerApiSearchRecordReferenceCriterion. Returns @@ -136,7 +146,7 @@ def record_identity(self) -> "int": return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "int") -> None: + def record_identity(self, record_identity: "Optional[int]") -> None: """Sets the record_identity of this GrantaServerApiSearchRecordReferenceCriterion. Parameters @@ -147,7 +157,7 @@ def record_identity(self, record_identity: "int") -> None: self._record_identity = record_identity @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. Returns @@ -158,7 +168,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiSearchRecordReferenceCriterion. Parameters @@ -169,7 +179,7 @@ def record_history_identity(self, record_history_identity: "int") -> None: self._record_history_identity = record_history_identity @property - def record_history_guid(self) -> "str": + def record_history_guid(self) -> "Optional[str]": """Gets the record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. Returns @@ -180,7 +190,7 @@ def record_history_guid(self) -> "str": return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "str") -> None: + def record_history_guid(self, record_history_guid: "Optional[str]") -> None: """Sets the record_history_guid of this GrantaServerApiSearchRecordReferenceCriterion. Parameters @@ -191,7 +201,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def record_guid(self) -> "str": + def record_guid(self) -> "Optional[str]": """Gets the record_guid of this GrantaServerApiSearchRecordReferenceCriterion. Returns @@ -202,7 +212,7 @@ def record_guid(self) -> "str": return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "str") -> None: + def record_guid(self, record_guid: "Optional[str]") -> None: """Sets the record_guid of this GrantaServerApiSearchRecordReferenceCriterion. Parameters @@ -254,7 +264,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 66fdfd7f..8f3060f0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSearchRecordSubsetCriterion(GrantaServerApiSearchCriterion) discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "subset_guid": "str", "subset_identity": "int", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "subset_guid": "subsetGuid", "subset_identity": "subsetIdentity", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._subset_identity = None self._subset_guid = None - self._type = None + self._type: str = None # type: ignore[assignment] if subset_identity is not None: self.subset_identity = subset_identity @@ -82,7 +92,7 @@ def __init__( self.type = type @property - def subset_identity(self) -> "int": + def subset_identity(self) -> "Optional[int]": """Gets the subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. Returns @@ -93,7 +103,7 @@ def subset_identity(self) -> "int": return self._subset_identity @subset_identity.setter - def subset_identity(self, subset_identity: "int") -> None: + def subset_identity(self, subset_identity: "Optional[int]") -> None: """Sets the subset_identity of this GrantaServerApiSearchRecordSubsetCriterion. Parameters @@ -104,7 +114,7 @@ def subset_identity(self, subset_identity: "int") -> None: self._subset_identity = subset_identity @property - def subset_guid(self) -> "str": + def subset_guid(self) -> "Optional[str]": """Gets the subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. Returns @@ -115,7 +125,7 @@ def subset_guid(self) -> "str": return self._subset_guid @subset_guid.setter - def subset_guid(self, subset_guid: "str") -> None: + def subset_guid(self, subset_guid: "Optional[str]") -> None: """Sets the subset_guid of this GrantaServerApiSearchRecordSubsetCriterion. Parameters @@ -167,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 0ae34893..5e935ba0 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sort_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchRelevanceSortCriterion(GrantaServerApiSearchSortCrite discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "sort_direction": "GrantaServerApiSearchSortDirection", "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "sort_direction": "sortDirection", "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -67,7 +77,7 @@ def __init__( type: str """ super().__init__(sort_direction=sort_direction) - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -113,7 +123,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 511d776a..8a023455 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSearchRequest(ModelBase): +class GrantaServerApiSearchSearchRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,25 +46,25 @@ class GrantaServerApiSearchSearchRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "criterion": "GrantaServerApiSearchCriterion", "paging_options": "GrantaServerApiSearchPagingOptions", "sort_criteria": "list[GrantaServerApiSearchSortCriterion]", } - attribute_map = { + attribute_map: Dict[str, str] = { "criterion": "criterion", "paging_options": "pagingOptions", "sort_criteria": "sortCriteria", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "criterion": "GrantaServerApiSearchCriterion", "sortCriteria": "GrantaServerApiSearchSortCriterion", "pagingOptions": "GrantaServerApiSearchPagingOptions", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -83,7 +93,7 @@ def __init__( self.paging_options = paging_options @property - def criterion(self) -> "GrantaServerApiSearchCriterion": + def criterion(self) -> "Optional[GrantaServerApiSearchCriterion]": """Gets the criterion of this GrantaServerApiSearchSearchRequest. Returns @@ -94,7 +104,7 @@ def criterion(self) -> "GrantaServerApiSearchCriterion": return self._criterion @criterion.setter - def criterion(self, criterion: "GrantaServerApiSearchCriterion") -> None: + def criterion(self, criterion: "Optional[GrantaServerApiSearchCriterion]") -> None: """Sets the criterion of this GrantaServerApiSearchSearchRequest. Parameters @@ -105,7 +115,7 @@ def criterion(self, criterion: "GrantaServerApiSearchCriterion") -> None: self._criterion = criterion @property - def sort_criteria(self) -> "list[GrantaServerApiSearchSortCriterion]": + def sort_criteria(self) -> "Optional[List[GrantaServerApiSearchSortCriterion]]": """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. @@ -118,20 +128,20 @@ def sort_criteria(self) -> "list[GrantaServerApiSearchSortCriterion]": @sort_criteria.setter def sort_criteria( - self, sort_criteria: "list[GrantaServerApiSearchSortCriterion]" + self, sort_criteria: "Optional[List[GrantaServerApiSearchSortCriterion]]" ) -> 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: List[GrantaServerApiSearchSortCriterion] The sort_criteria of this GrantaServerApiSearchSearchRequest. """ self._sort_criteria = sort_criteria @property - def paging_options(self) -> "GrantaServerApiSearchPagingOptions": + def paging_options(self) -> "Optional[GrantaServerApiSearchPagingOptions]": """Gets the paging_options of this GrantaServerApiSearchSearchRequest. Returns @@ -143,7 +153,7 @@ def paging_options(self) -> "GrantaServerApiSearchPagingOptions": @paging_options.setter def paging_options( - self, paging_options: "GrantaServerApiSearchPagingOptions" + self, paging_options: "Optional[GrantaServerApiSearchPagingOptions]" ) -> None: """Sets the paging_options of this GrantaServerApiSearchSearchRequest. @@ -172,7 +182,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 5ad3d21a..676e278c 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSearchResponse(ModelBase): +class GrantaServerApiSearchSearchResponse(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSearchSearchResponse(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "results": "list[GrantaServerApiSearchSearchResult]", "search_identifier": "str", "total_result_count": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "results": "results", "search_identifier": "searchIdentifier", "total_result_count": "totalResultCount", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "results": "GrantaServerApiSearchSearchResult", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -81,7 +91,7 @@ def __init__( self.results = results @property - def search_identifier(self) -> "str": + def search_identifier(self) -> "Optional[str]": """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 @@ -93,7 +103,7 @@ def search_identifier(self) -> "str": return self._search_identifier @search_identifier.setter - def search_identifier(self, search_identifier: "str") -> None: + def search_identifier(self, search_identifier: "Optional[str]") -> 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 @@ -105,7 +115,7 @@ def search_identifier(self, search_identifier: "str") -> None: self._search_identifier = search_identifier @property - def total_result_count(self) -> "int": + def total_result_count(self) -> "Optional[int]": """Gets the total_result_count of this GrantaServerApiSearchSearchResponse. Returns @@ -116,7 +126,7 @@ def total_result_count(self) -> "int": return self._total_result_count @total_result_count.setter - def total_result_count(self, total_result_count: "int") -> None: + def total_result_count(self, total_result_count: "Optional[int]") -> None: """Sets the total_result_count of this GrantaServerApiSearchSearchResponse. Parameters @@ -127,7 +137,7 @@ def total_result_count(self, total_result_count: "int") -> None: self._total_result_count = total_result_count @property - def results(self) -> "list[GrantaServerApiSearchSearchResult]": + def results(self) -> "Optional[List[GrantaServerApiSearchSearchResult]]": """Gets the results of this GrantaServerApiSearchSearchResponse. Returns @@ -138,12 +148,14 @@ def results(self) -> "list[GrantaServerApiSearchSearchResult]": return self._results @results.setter - def results(self, results: "list[GrantaServerApiSearchSearchResult]") -> None: + def results( + self, results: "Optional[List[GrantaServerApiSearchSearchResult]]" + ) -> None: """Sets the results of this GrantaServerApiSearchSearchResponse. Parameters ---------- - results: list[GrantaServerApiSearchSearchResult] + results: List[GrantaServerApiSearchSearchResult] The results of this GrantaServerApiSearchSearchResponse. """ self._results = results @@ -166,7 +178,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e0d92c3c..15ba1c9e 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSearchResult(ModelBase): +class GrantaServerApiSearchSearchResult(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSearchSearchResult(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "cubic_spline_status": "str", "database_key": "str", "parent_identity": "int", @@ -56,7 +66,7 @@ class GrantaServerApiSearchSearchResult(ModelBase): "version_number": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "cubic_spline_status": "cubicSplineStatus", "database_key": "databaseKey", "parent_identity": "parentIdentity", @@ -76,12 +86,12 @@ class GrantaServerApiSearchSearchResult(ModelBase): "version_number": "versionNumber", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "type": "GrantaServerApiRecordType", "sortingValue": "GrantaServerApiSearchSortingValue", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -180,7 +190,7 @@ def __init__( self.sorting_value = sorting_value @property - def database_key(self) -> "str": + def database_key(self) -> "Optional[str]": """Gets the database_key of this GrantaServerApiSearchSearchResult. Returns @@ -191,7 +201,7 @@ def database_key(self) -> "str": return self._database_key @database_key.setter - def database_key(self, database_key: "str") -> None: + def database_key(self, database_key: "Optional[str]") -> None: """Sets the database_key of this GrantaServerApiSearchSearchResult. Parameters @@ -202,7 +212,7 @@ def database_key(self, database_key: "str") -> None: self._database_key = database_key @property - def record_history_identity(self) -> "int": + def record_history_identity(self) -> "Optional[int]": """Gets the record_history_identity of this GrantaServerApiSearchSearchResult. Returns @@ -213,7 +223,7 @@ def record_history_identity(self) -> "int": return self._record_history_identity @record_history_identity.setter - def record_history_identity(self, record_history_identity: "int") -> None: + def record_history_identity(self, record_history_identity: "Optional[int]") -> None: """Sets the record_history_identity of this GrantaServerApiSearchSearchResult. Parameters @@ -224,7 +234,7 @@ def record_history_identity(self, record_history_identity: "int") -> None: self._record_history_identity = record_history_identity @property - def record_identity(self) -> "int": + def record_identity(self) -> "Optional[int]": """Gets the record_identity of this GrantaServerApiSearchSearchResult. Returns @@ -235,7 +245,7 @@ def record_identity(self) -> "int": return self._record_identity @record_identity.setter - def record_identity(self, record_identity: "int") -> None: + def record_identity(self, record_identity: "Optional[int]") -> None: """Sets the record_identity of this GrantaServerApiSearchSearchResult. Parameters @@ -246,7 +256,7 @@ def record_identity(self, record_identity: "int") -> None: self._record_identity = record_identity @property - def record_history_guid(self) -> "str": + def record_history_guid(self) -> "Optional[str]": """Gets the record_history_guid of this GrantaServerApiSearchSearchResult. Returns @@ -257,7 +267,7 @@ def record_history_guid(self) -> "str": return self._record_history_guid @record_history_guid.setter - def record_history_guid(self, record_history_guid: "str") -> None: + def record_history_guid(self, record_history_guid: "Optional[str]") -> None: """Sets the record_history_guid of this GrantaServerApiSearchSearchResult. Parameters @@ -268,7 +278,7 @@ def record_history_guid(self, record_history_guid: "str") -> None: self._record_history_guid = record_history_guid @property - def record_guid(self) -> "str": + def record_guid(self) -> "Optional[str]": """Gets the record_guid of this GrantaServerApiSearchSearchResult. Returns @@ -279,7 +289,7 @@ def record_guid(self) -> "str": return self._record_guid @record_guid.setter - def record_guid(self, record_guid: "str") -> None: + def record_guid(self, record_guid: "Optional[str]") -> None: """Sets the record_guid of this GrantaServerApiSearchSearchResult. Parameters @@ -290,7 +300,7 @@ def record_guid(self, record_guid: "str") -> None: self._record_guid = record_guid @property - def record_name(self) -> "str": + def record_name(self) -> "Optional[str]": """Gets the record_name of this GrantaServerApiSearchSearchResult. Returns @@ -301,7 +311,7 @@ def record_name(self) -> "str": return self._record_name @record_name.setter - def record_name(self, record_name: "str") -> None: + def record_name(self, record_name: "Optional[str]") -> None: """Sets the record_name of this GrantaServerApiSearchSearchResult. Parameters @@ -312,7 +322,7 @@ def record_name(self, record_name: "str") -> None: self._record_name = record_name @property - def tree_name(self) -> "str": + def tree_name(self) -> "Optional[str]": """Gets the tree_name of this GrantaServerApiSearchSearchResult. Returns @@ -323,7 +333,7 @@ def tree_name(self) -> "str": return self._tree_name @tree_name.setter - def tree_name(self, tree_name: "str") -> None: + def tree_name(self, tree_name: "Optional[str]") -> None: """Sets the tree_name of this GrantaServerApiSearchSearchResult. Parameters @@ -334,7 +344,7 @@ def tree_name(self, tree_name: "str") -> None: self._tree_name = tree_name @property - def record_color(self) -> "str": + def record_color(self) -> "Optional[str]": """Gets the record_color of this GrantaServerApiSearchSearchResult. Returns @@ -345,7 +355,7 @@ def record_color(self) -> "str": return self._record_color @record_color.setter - def record_color(self, record_color: "str") -> None: + def record_color(self, record_color: "Optional[str]") -> None: """Sets the record_color of this GrantaServerApiSearchSearchResult. Parameters @@ -356,7 +366,7 @@ def record_color(self, record_color: "str") -> None: self._record_color = record_color @property - def table_identity(self) -> "int": + def table_identity(self) -> "Optional[int]": """Gets the table_identity of this GrantaServerApiSearchSearchResult. Returns @@ -367,7 +377,7 @@ def table_identity(self) -> "int": return self._table_identity @table_identity.setter - def table_identity(self, table_identity: "int") -> None: + def table_identity(self, table_identity: "Optional[int]") -> None: """Sets the table_identity of this GrantaServerApiSearchSearchResult. Parameters @@ -378,7 +388,7 @@ def table_identity(self, table_identity: "int") -> None: self._table_identity = table_identity @property - def table_guid(self) -> "str": + def table_guid(self) -> "Optional[str]": """Gets the table_guid of this GrantaServerApiSearchSearchResult. Returns @@ -389,7 +399,7 @@ def table_guid(self) -> "str": return self._table_guid @table_guid.setter - def table_guid(self, table_guid: "str") -> None: + def table_guid(self, table_guid: "Optional[str]") -> None: """Sets the table_guid of this GrantaServerApiSearchSearchResult. Parameters @@ -400,7 +410,7 @@ def table_guid(self, table_guid: "str") -> None: self._table_guid = table_guid @property - def cubic_spline_status(self) -> "str": + def cubic_spline_status(self) -> "Optional[str]": """Gets the cubic_spline_status of this GrantaServerApiSearchSearchResult. Returns @@ -411,7 +421,7 @@ def cubic_spline_status(self) -> "str": return self._cubic_spline_status @cubic_spline_status.setter - def cubic_spline_status(self, cubic_spline_status: "str") -> None: + def cubic_spline_status(self, cubic_spline_status: "Optional[str]") -> None: """Sets the cubic_spline_status of this GrantaServerApiSearchSearchResult. Parameters @@ -422,7 +432,7 @@ def cubic_spline_status(self, cubic_spline_status: "str") -> None: self._cubic_spline_status = cubic_spline_status @property - def version_control_state(self) -> "str": + def version_control_state(self) -> "Optional[str]": """Gets the version_control_state of this GrantaServerApiSearchSearchResult. Returns @@ -433,7 +443,7 @@ def version_control_state(self) -> "str": return self._version_control_state @version_control_state.setter - def version_control_state(self, version_control_state: "str") -> None: + def version_control_state(self, version_control_state: "Optional[str]") -> None: """Sets the version_control_state of this GrantaServerApiSearchSearchResult. Parameters @@ -444,7 +454,7 @@ def version_control_state(self, version_control_state: "str") -> None: self._version_control_state = version_control_state @property - def version_number(self) -> "int": + def version_number(self) -> "Optional[int]": """Gets the version_number of this GrantaServerApiSearchSearchResult. Returns @@ -455,7 +465,7 @@ def version_number(self) -> "int": return self._version_number @version_number.setter - def version_number(self, version_number: "int") -> None: + def version_number(self, version_number: "Optional[int]") -> None: """Sets the version_number of this GrantaServerApiSearchSearchResult. Parameters @@ -466,7 +476,7 @@ def version_number(self, version_number: "int") -> None: self._version_number = version_number @property - def parent_identity(self) -> "int": + def parent_identity(self) -> "Optional[int]": """Gets the parent_identity of this GrantaServerApiSearchSearchResult. Returns @@ -477,7 +487,7 @@ def parent_identity(self) -> "int": return self._parent_identity @parent_identity.setter - def parent_identity(self, parent_identity: "int") -> None: + def parent_identity(self, parent_identity: "Optional[int]") -> None: """Sets the parent_identity of this GrantaServerApiSearchSearchResult. Parameters @@ -488,7 +498,7 @@ def parent_identity(self, parent_identity: "int") -> None: self._parent_identity = parent_identity @property - def type(self) -> "GrantaServerApiRecordType": + def type(self) -> "Optional[GrantaServerApiRecordType]": """Gets the type of this GrantaServerApiSearchSearchResult. Returns @@ -499,7 +509,7 @@ def type(self) -> "GrantaServerApiRecordType": return self._type @type.setter - def type(self, type: "GrantaServerApiRecordType") -> None: + def type(self, type: "Optional[GrantaServerApiRecordType]") -> None: """Sets the type of this GrantaServerApiSearchSearchResult. Parameters @@ -510,7 +520,7 @@ def type(self, type: "GrantaServerApiRecordType") -> None: self._type = type @property - def score(self) -> "float": + def score(self) -> "Optional[float]": """Gets the score of this GrantaServerApiSearchSearchResult. Returns @@ -521,7 +531,7 @@ def score(self) -> "float": return self._score @score.setter - def score(self, score: "float") -> None: + def score(self, score: "Optional[float]") -> None: """Sets the score of this GrantaServerApiSearchSearchResult. Parameters @@ -532,7 +542,7 @@ def score(self, score: "float") -> None: self._score = score @property - def sorting_value(self) -> "GrantaServerApiSearchSortingValue": + def sorting_value(self) -> "Optional[GrantaServerApiSearchSortingValue]": """Gets the sorting_value of this GrantaServerApiSearchSearchResult. Returns @@ -543,7 +553,9 @@ def sorting_value(self) -> "GrantaServerApiSearchSortingValue": return self._sorting_value @sorting_value.setter - def sorting_value(self, sorting_value: "GrantaServerApiSearchSortingValue") -> None: + def sorting_value( + self, sorting_value: "Optional[GrantaServerApiSearchSortingValue]" + ) -> None: """Sets the sorting_value of this GrantaServerApiSearchSearchResult. Parameters @@ -571,7 +583,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6d7d60a8..1d9678c3 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSearchResultsRequest(ModelBase): +class GrantaServerApiSearchSearchResultsRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSearchSearchResultsRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "page_number": "int", } - attribute_map = { + attribute_map: Dict[str, str] = { "page_number": "pageNumber", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( self.page_number = page_number @property - def page_number(self) -> "int": + def page_number(self) -> "Optional[int]": """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 @@ -77,7 +87,7 @@ def page_number(self) -> "int": return self._page_number @page_number.setter - def page_number(self, page_number: "int") -> None: + def page_number(self, page_number: "Optional[int]") -> 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 @@ -106,7 +116,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 b67f07d6..1798e732 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,23 +49,23 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "text_match_behaviour": "GrantaServerApiSearchTextMatchBehaviour", "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "text_match_behaviour": "textMatchBehaviour", "type": "type", "value": "value", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "textMatchBehaviour": "GrantaServerApiSearchTextMatchBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._value = None self._text_match_behaviour = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchShortTextDatumCriterion. Returns @@ -95,7 +105,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchShortTextDatumCriterion. Parameters @@ -106,7 +116,9 @@ def value(self, value: "str") -> None: self._value = value @property - def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": + def text_match_behaviour( + self, + ) -> "Optional[GrantaServerApiSearchTextMatchBehaviour]": """Gets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. Returns @@ -118,7 +130,7 @@ def text_match_behaviour(self) -> "GrantaServerApiSearchTextMatchBehaviour": @text_match_behaviour.setter def text_match_behaviour( - self, text_match_behaviour: "GrantaServerApiSearchTextMatchBehaviour" + self, text_match_behaviour: "Optional[GrantaServerApiSearchTextMatchBehaviour]" ) -> None: """Sets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. @@ -171,7 +183,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 6dd07f0b..6aad4e4e 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_datum_exists_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -41,17 +51,17 @@ class GrantaServerApiSearchSimpleDatumExistsCriterion( discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( type: str """ super().__init__() - self._type = None + self._type: str = None # type: ignore[assignment] self.type = type @@ -111,7 +121,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 80db9fe3..6d563dc0 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSortCriterion(ModelBase): +class GrantaServerApiSearchSortCriterion(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,15 +48,15 @@ class GrantaServerApiSearchSortCriterion(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "sort_direction": "GrantaServerApiSearchSortDirection", } - attribute_map = { + attribute_map: Dict[str, str] = { "sort_direction": "sortDirection", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "sortDirection": "GrantaServerApiSearchSortDirection", } @@ -56,7 +66,7 @@ class GrantaServerApiSearchSortCriterion(ModelBase): "relevance".lower(): "#/components/schemas/GrantaServerApiSearchRelevanceSortCriterion", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -75,7 +85,7 @@ def __init__( self.sort_direction = sort_direction @property - def sort_direction(self) -> "GrantaServerApiSearchSortDirection": + def sort_direction(self) -> "Optional[GrantaServerApiSearchSortDirection]": """Gets the sort_direction of this GrantaServerApiSearchSortCriterion. Returns @@ -87,7 +97,7 @@ def sort_direction(self) -> "GrantaServerApiSearchSortDirection": @sort_direction.setter def sort_direction( - self, sort_direction: "GrantaServerApiSearchSortDirection" + self, sort_direction: "Optional[GrantaServerApiSearchSortDirection]" ) -> None: """Sets the sort_direction of this GrantaServerApiSearchSortCriterion. @@ -110,19 +120,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 e70c9b2b..6ada3e7f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSearchSortingValue(ModelBase): +class GrantaServerApiSearchSortingValue(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiSearchSortingValue(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "double".lower(): "#/components/schemas/GrantaServerApiSearchDoubleSortingValue", @@ -50,7 +60,7 @@ class GrantaServerApiSearchSortingValue(ModelBase): "text".lower(): "#/components/schemas/GrantaServerApiSearchStringSortingValue", } - discriminator = "type" + discriminator: Optional[str] = "type" def __init__( self, @@ -69,19 +79,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f95292d7..b0e20ccc 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_sorting_value import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,19 +49,19 @@ class GrantaServerApiSearchStringSortingValue(GrantaServerApiSearchSortingValue) discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "type": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "type": "type", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -68,14 +78,14 @@ def __init__( """ super().__init__() self._value = None - self._type = None + self._type: str = None # type: ignore[assignment] if value is not None: self.value = value self.type = type @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this GrantaServerApiSearchStringSortingValue. Returns @@ -86,7 +96,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this GrantaServerApiSearchStringSortingValue. Parameters @@ -138,7 +148,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 073ac769..f5cbdf36 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_criterion import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,23 +49,23 @@ class GrantaServerApiSearchTabularLinkingValueCriterion(GrantaServerApiSearchCri discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "linking_value_match_behaviour": "GrantaServerApiSearchLinkingValueMatchBehaviour", "type": "str", "values": "list[str]", } - attribute_map = { + attribute_map: Dict[str, str] = { "linking_value_match_behaviour": "linkingValueMatchBehaviour", "type": "type", "values": "values", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "linkingValueMatchBehaviour": "GrantaServerApiSearchLinkingValueMatchBehaviour", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -75,7 +85,7 @@ def __init__( super().__init__() self._values = None self._linking_value_match_behaviour = None - self._type = None + self._type: str = None # type: ignore[assignment] if values is not None: self.values = values @@ -84,7 +94,7 @@ def __init__( self.type = type @property - def values(self) -> "list[str]": + def values(self) -> "Optional[List[str]]": """Gets the values of this GrantaServerApiSearchTabularLinkingValueCriterion. Returns @@ -95,12 +105,12 @@ def values(self) -> "list[str]": return self._values @values.setter - def values(self, values: "list[str]") -> None: + def values(self, values: "Optional[List[str]]") -> None: """Sets the values of this GrantaServerApiSearchTabularLinkingValueCriterion. Parameters ---------- - values: list[str] + values: List[str] The values of this GrantaServerApiSearchTabularLinkingValueCriterion. """ self._values = values @@ -108,7 +118,7 @@ def values(self, values: "list[str]") -> None: @property def linking_value_match_behaviour( self, - ) -> "GrantaServerApiSearchLinkingValueMatchBehaviour": + ) -> "Optional[GrantaServerApiSearchLinkingValueMatchBehaviour]": """Gets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. Returns @@ -121,7 +131,7 @@ def linking_value_match_behaviour( @linking_value_match_behaviour.setter def linking_value_match_behaviour( self, - linking_value_match_behaviour: "GrantaServerApiSearchLinkingValueMatchBehaviour", + linking_value_match_behaviour: "Optional[GrantaServerApiSearchLinkingValueMatchBehaviour]", ) -> None: """Sets the linking_value_match_behaviour of this GrantaServerApiSearchTabularLinkingValueCriterion. @@ -174,7 +184,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 effa9a56..4e0d5544 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): +class GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSelectionSearchesCreateSearchRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "detail": "GrantaServerApiSelectionSearchesSearchDetail", "search_config": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "detail": "detail", "search_config": "searchConfig", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "detail": "GrantaServerApiSelectionSearchesSearchDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,7 @@ def __init__( self.detail = detail @property - def search_config(self) -> "str": + def search_config(self) -> "Optional[str]": """Gets the search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. Returns @@ -85,7 +95,7 @@ def search_config(self) -> "str": return self._search_config @search_config.setter - def search_config(self, search_config: "str") -> None: + def search_config(self, search_config: "Optional[str]") -> None: """Sets the search_config of this GrantaServerApiSelectionSearchesCreateSearchRequest. Parameters @@ -96,7 +106,7 @@ def search_config(self, search_config: "str") -> None: self._search_config = search_config @property - def detail(self) -> "GrantaServerApiSelectionSearchesSearchDetail": + def detail(self) -> "Optional[GrantaServerApiSelectionSearchesSearchDetail]": """Gets the detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. Returns @@ -107,7 +117,9 @@ def detail(self) -> "GrantaServerApiSelectionSearchesSearchDetail": return self._detail @detail.setter - def detail(self, detail: "GrantaServerApiSelectionSearchesSearchDetail") -> None: + def detail( + self, detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" + ) -> None: """Sets the detail of this GrantaServerApiSelectionSearchesCreateSearchRequest. Parameters @@ -135,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 3ed6a083..32f90cce 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): +class GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,17 +46,17 @@ class GrantaServerApiSelectionSearchesFindSearchRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "name_contains": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "name_contains": "nameContains", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -65,7 +75,7 @@ def __init__( self.name_contains = name_contains @property - def name_contains(self) -> "str": + def name_contains(self) -> "Optional[str]": """Gets the name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. Returns @@ -76,7 +86,7 @@ def name_contains(self) -> "str": return self._name_contains @name_contains.setter - def name_contains(self, name_contains: "str") -> None: + def name_contains(self, name_contains: "Optional[str]") -> None: """Sets the name_contains of this GrantaServerApiSelectionSearchesFindSearchRequest. Parameters @@ -104,7 +114,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ad19af5d..d22cce81 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): +class GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSelectionSearchesSaveSearchRequest(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "detail": "GrantaServerApiSelectionSearchesSearchDetail", "search_config": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "detail": "detail", "search_config": "searchConfig", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "detail": "GrantaServerApiSelectionSearchesSearchDetail", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -74,7 +84,7 @@ def __init__( self.detail = detail @property - def search_config(self) -> "str": + def search_config(self) -> "Optional[str]": """Gets the search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. Returns @@ -85,7 +95,7 @@ def search_config(self) -> "str": return self._search_config @search_config.setter - def search_config(self, search_config: "str") -> None: + def search_config(self, search_config: "Optional[str]") -> None: """Sets the search_config of this GrantaServerApiSelectionSearchesSaveSearchRequest. Parameters @@ -96,7 +106,7 @@ def search_config(self, search_config: "str") -> None: self._search_config = search_config @property - def detail(self) -> "GrantaServerApiSelectionSearchesSearchDetail": + def detail(self) -> "Optional[GrantaServerApiSelectionSearchesSearchDetail]": """Gets the detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. Returns @@ -107,7 +117,9 @@ def detail(self) -> "GrantaServerApiSelectionSearchesSearchDetail": return self._detail @detail.setter - def detail(self, detail: "GrantaServerApiSelectionSearchesSearchDetail") -> None: + def detail( + self, detail: "Optional[GrantaServerApiSelectionSearchesSearchDetail]" + ) -> None: """Sets the detail of this GrantaServerApiSelectionSearchesSaveSearchRequest. Parameters @@ -135,7 +147,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ccd90a26..0e8e5ef4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesSearchDetail(ModelBase): +class GrantaServerApiSelectionSearchesSearchDetail(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,23 +46,23 @@ class GrantaServerApiSelectionSearchesSearchDetail(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "criteria": "str", "description": "str", "name": "str", "notes": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "criteria": "criteria", "description": "description", "name": "name", "notes": "notes", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -86,7 +96,7 @@ def __init__( self.criteria = criteria @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSelectionSearchesSearchDetail. Returns @@ -97,7 +107,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesSearchDetail. Parameters @@ -108,7 +118,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSelectionSearchesSearchDetail. Returns @@ -119,7 +129,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSelectionSearchesSearchDetail. Parameters @@ -130,7 +140,7 @@ def description(self, description: "str") -> None: self._description = description @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiSelectionSearchesSearchDetail. Returns @@ -141,7 +151,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiSelectionSearchesSearchDetail. Parameters @@ -152,7 +162,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def criteria(self) -> "str": + def criteria(self) -> "Optional[str]": """Gets the criteria of this GrantaServerApiSelectionSearchesSearchDetail. Returns @@ -163,7 +173,7 @@ def criteria(self) -> "str": return self._criteria @criteria.setter - def criteria(self, criteria: "str") -> None: + def criteria(self, criteria: "Optional[str]") -> None: """Sets the criteria of this GrantaServerApiSelectionSearchesSearchDetail. 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 36388480..ab2a9a4f 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): +class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,7 +46,7 @@ class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "created_timestamp": "datetime", "created_user_or_group": "GrantaServerApiSelectionSearchesUserOrGroup", "criteria": "str", @@ -50,7 +60,7 @@ class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): "search_identifier": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "created_timestamp": "createdTimestamp", "created_user_or_group": "createdUserOrGroup", "criteria": "criteria", @@ -64,12 +74,12 @@ class GrantaServerApiSelectionSearchesSelectionSearch(ModelBase): "search_identifier": "searchIdentifier", } - subtype_mapping = { + subtype_mapping: Dict[str, str] = { "createdUserOrGroup": "GrantaServerApiSelectionSearchesUserOrGroup", "lastModifiedUserOrGroup": "GrantaServerApiSelectionSearchesUserOrGroup", } - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -138,7 +148,7 @@ def __init__( self.last_modified_user_or_group = last_modified_user_or_group @property - def search_identifier(self) -> "str": + def search_identifier(self) -> "Optional[str]": """Gets the search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -149,7 +159,7 @@ def search_identifier(self) -> "str": return self._search_identifier @search_identifier.setter - def search_identifier(self, search_identifier: "str") -> None: + def search_identifier(self, search_identifier: "Optional[str]") -> None: """Sets the search_identifier of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -160,7 +170,7 @@ def search_identifier(self, search_identifier: "str") -> None: self._search_identifier = search_identifier @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -171,7 +181,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -182,7 +192,7 @@ def name(self, name: "str") -> None: self._name = name @property - def description(self) -> "str": + def description(self) -> "Optional[str]": """Gets the description of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -193,7 +203,7 @@ def description(self) -> "str": return self._description @description.setter - def description(self, description: "str") -> None: + def description(self, description: "Optional[str]") -> None: """Sets the description of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -204,7 +214,7 @@ def description(self, description: "str") -> None: self._description = description @property - def notes(self) -> "str": + def notes(self) -> "Optional[str]": """Gets the notes of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -215,7 +225,7 @@ def notes(self) -> "str": return self._notes @notes.setter - def notes(self, notes: "str") -> None: + def notes(self, notes: "Optional[str]") -> None: """Sets the notes of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -226,7 +236,7 @@ def notes(self, notes: "str") -> None: self._notes = notes @property - def current_user_access_info(self) -> "dict(str, dict(str, bool))": + def current_user_access_info(self) -> "Optional[Dict[str, Dict[str, bool]]]": """Gets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -238,19 +248,19 @@ def current_user_access_info(self) -> "dict(str, dict(str, bool))": @current_user_access_info.setter def current_user_access_info( - self, current_user_access_info: "dict(str, dict(str, bool))" + self, current_user_access_info: "Optional[Dict[str, Dict[str, bool]]]" ) -> None: """Sets the current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters ---------- - current_user_access_info: dict(str, dict(str, bool)) + current_user_access_info: Dict[str, Dict[str, bool]] The current_user_access_info of this GrantaServerApiSelectionSearchesSelectionSearch. """ self._current_user_access_info = current_user_access_info @property - def criteria(self) -> "str": + def criteria(self) -> "Optional[str]": """Gets the criteria of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -261,7 +271,7 @@ def criteria(self) -> "str": return self._criteria @criteria.setter - def criteria(self, criteria: "str") -> None: + def criteria(self, criteria: "Optional[str]") -> None: """Sets the criteria of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -272,7 +282,7 @@ def criteria(self, criteria: "str") -> None: self._criteria = criteria @property - def explore_config(self) -> "str": + def explore_config(self) -> "Optional[str]": """Gets the explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -283,7 +293,7 @@ def explore_config(self) -> "str": return self._explore_config @explore_config.setter - def explore_config(self, explore_config: "str") -> None: + def explore_config(self, explore_config: "Optional[str]") -> None: """Sets the explore_config of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -294,7 +304,7 @@ def explore_config(self, explore_config: "str") -> None: self._explore_config = explore_config @property - def created_timestamp(self) -> "datetime": + def created_timestamp(self) -> "Optional[datetime]": """Gets the created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -305,7 +315,7 @@ def created_timestamp(self) -> "datetime": return self._created_timestamp @created_timestamp.setter - def created_timestamp(self, created_timestamp: "datetime") -> None: + def created_timestamp(self, created_timestamp: "Optional[datetime]") -> None: """Sets the created_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -316,7 +326,9 @@ def created_timestamp(self, created_timestamp: "datetime") -> None: self._created_timestamp = created_timestamp @property - def created_user_or_group(self) -> "GrantaServerApiSelectionSearchesUserOrGroup": + def created_user_or_group( + self, + ) -> "Optional[GrantaServerApiSelectionSearchesUserOrGroup]": """Gets the created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -328,7 +340,8 @@ def created_user_or_group(self) -> "GrantaServerApiSelectionSearchesUserOrGroup" @created_user_or_group.setter def created_user_or_group( - self, created_user_or_group: "GrantaServerApiSelectionSearchesUserOrGroup" + self, + created_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]", ) -> None: """Sets the created_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. @@ -340,7 +353,7 @@ def created_user_or_group( self._created_user_or_group = created_user_or_group @property - def last_modified_timestamp(self) -> "datetime": + def last_modified_timestamp(self) -> "Optional[datetime]": """Gets the last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -351,7 +364,9 @@ def last_modified_timestamp(self) -> "datetime": return self._last_modified_timestamp @last_modified_timestamp.setter - def last_modified_timestamp(self, last_modified_timestamp: "datetime") -> None: + def last_modified_timestamp( + self, last_modified_timestamp: "Optional[datetime]" + ) -> None: """Sets the last_modified_timestamp of this GrantaServerApiSelectionSearchesSelectionSearch. Parameters @@ -364,7 +379,7 @@ def last_modified_timestamp(self, last_modified_timestamp: "datetime") -> None: @property def last_modified_user_or_group( self, - ) -> "GrantaServerApiSelectionSearchesUserOrGroup": + ) -> "Optional[GrantaServerApiSelectionSearchesUserOrGroup]": """Gets the last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. Returns @@ -376,7 +391,8 @@ def last_modified_user_or_group( @last_modified_user_or_group.setter def last_modified_user_or_group( - self, last_modified_user_or_group: "GrantaServerApiSelectionSearchesUserOrGroup" + self, + last_modified_user_or_group: "Optional[GrantaServerApiSelectionSearchesUserOrGroup]", ) -> None: """Sets the last_modified_user_or_group of this GrantaServerApiSelectionSearchesSelectionSearch. @@ -405,7 +421,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 ce3282e7..d6986765 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): +class GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class GrantaServerApiSelectionSearchesUserOrGroup(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "display_name": "str", "identifier": "str", "name": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "display_name": "displayName", "identifier": "identifier", "name": "name", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.name = name @property - def identifier(self) -> "str": + def identifier(self) -> "Optional[str]": """Gets the identifier of this GrantaServerApiSelectionSearchesUserOrGroup. Returns @@ -90,7 +100,7 @@ def identifier(self) -> "str": return self._identifier @identifier.setter - def identifier(self, identifier: "str") -> None: + def identifier(self, identifier: "Optional[str]") -> None: """Sets the identifier of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters @@ -101,7 +111,7 @@ def identifier(self, identifier: "str") -> None: self._identifier = identifier @property - def display_name(self) -> "str": + def display_name(self) -> "Optional[str]": """Gets the display_name of this GrantaServerApiSelectionSearchesUserOrGroup. Returns @@ -112,7 +122,7 @@ def display_name(self) -> "str": return self._display_name @display_name.setter - def display_name(self, display_name: "str") -> None: + def display_name(self, display_name: "Optional[str]") -> None: """Sets the display_name of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters @@ -123,7 +133,7 @@ def display_name(self, display_name: "str") -> None: self._display_name = display_name @property - def name(self) -> "str": + def name(self) -> "Optional[str]": """Gets the name of this GrantaServerApiSelectionSearchesUserOrGroup. Returns @@ -134,7 +144,7 @@ def name(self) -> "str": return self._name @name.setter - def name(self, name: "str") -> None: + def name(self, name: "Optional[str]") -> None: """Sets the name of this GrantaServerApiSelectionSearchesUserOrGroup. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 90d99abe..e0d53225 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 @@ -9,7 +9,15 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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_value_specifier import ( @@ -18,6 +26,8 @@ if TYPE_CHECKING: + from datetime import datetime + import pathlib from . import * @@ -39,21 +49,21 @@ class GrantaServerApiSpecificValuesSpecifier(GrantaServerApiValueSpecifier): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "filter_on": "str", "guids": "list[str]", "identities": "list[int]", } - attribute_map = { + attribute_map: Dict[str, str] = { "filter_on": "filterOn", "guids": "guids", "identities": "identities", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -73,7 +83,7 @@ def __init__( super().__init__() self._identities = None self._guids = None - self._filter_on = None + self._filter_on: str = None # type: ignore[assignment] if identities is not None: self.identities = identities @@ -82,7 +92,7 @@ def __init__( self.filter_on = filter_on @property - def identities(self) -> "list[int]": + def identities(self) -> "Optional[List[int]]": """Gets the identities of this GrantaServerApiSpecificValuesSpecifier. Returns @@ -93,18 +103,18 @@ def identities(self) -> "list[int]": return self._identities @identities.setter - def identities(self, identities: "list[int]") -> None: + def identities(self, identities: "Optional[List[int]]") -> None: """Sets the identities of this GrantaServerApiSpecificValuesSpecifier. Parameters ---------- - identities: list[int] + identities: List[int] The identities of this GrantaServerApiSpecificValuesSpecifier. """ self._identities = identities @property - def guids(self) -> "list[str]": + def guids(self) -> "Optional[List[str]]": """Gets the guids of this GrantaServerApiSpecificValuesSpecifier. Returns @@ -115,12 +125,12 @@ def guids(self) -> "list[str]": return self._guids @guids.setter - def guids(self, guids: "list[str]") -> None: + def guids(self, guids: "Optional[List[str]]") -> None: """Sets the guids of this GrantaServerApiSpecificValuesSpecifier. Parameters ---------- - guids: list[str] + guids: List[str] The guids of this GrantaServerApiSpecificValuesSpecifier. """ self._guids = guids @@ -167,7 +177,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> 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 f9eee3f7..ac5c21a4 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 GrantaServerApiValueSpecifier(ModelBase): +class GrantaServerApiValueSpecifier(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,11 +48,11 @@ class GrantaServerApiValueSpecifier(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = {} + swagger_types: Dict[str, str] = {} - attribute_map = {} + attribute_map: Dict[str, str] = {} - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} discriminator_value_class_map = { "all".lower(): "#/components/schemas/GrantaServerApiAllValuesSpecifier", @@ -51,7 +61,7 @@ class GrantaServerApiValueSpecifier(ModelBase): "none".lower(): "#/components/schemas/GrantaServerApiNoValuesSpecifier", } - discriminator = "filter_on" + discriminator: Optional[str] = "filter_on" def __init__( self, @@ -70,19 +80,18 @@ def get_real_child_model(cls, data: ModelBase) -> str: 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.get(discriminator_value).rsplit( - "/", 1 - )[-1] + 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() + return self.to_str() # type: ignore[no-any-return] def __eq__(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 5e49515a..34653808 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 JobqueueFilesBody(ModelBase): +class JobqueueFilesBody(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,28 +46,28 @@ class JobqueueFilesBody(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "file": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "file": "file", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, *, - file: "Optional[Union[IO, pathlib.Path]]" = None, + file: "Optional[Union[BinaryIO, pathlib.Path]]" = None, ) -> None: """JobqueueFilesBody - a model defined in Swagger Parameters ---------- - file: Union[IO, pathlib.Path], optional + file: Union[BinaryIO, pathlib.Path], optional """ self._file = None @@ -65,7 +75,7 @@ def __init__( self.file = file @property - def file(self) -> "str": + def file(self) -> "Optional[Union[BinaryIO, pathlib.Path]]": """Gets the file of this JobqueueFilesBody. Returns @@ -76,12 +86,12 @@ def file(self) -> "str": return self._file @file.setter - def file(self, file: "str") -> None: + def file(self, file: "Optional[Union[BinaryIO, pathlib.Path]]") -> None: """Sets the file of this JobqueueFilesBody. Parameters ---------- - file: str + file: Union[BinaryIO, pathlib.Path] The file of this JobqueueFilesBody. """ self._file = file @@ -104,7 +114,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(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 f423b438..c3366744 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 @@ -9,16 +9,26 @@ """ import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # 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 JsonPatchDocument(ModelBase): +class JsonPatchDocument(ModelBase): # type: ignore[misc] """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -36,21 +46,21 @@ class JsonPatchDocument(ModelBase): discriminator: Optional[str] Name of the property used as discriminator for subtypes. """ - swagger_types = { + swagger_types: Dict[str, str] = { "op": "str", "path": "str", "value": "str", } - attribute_map = { + attribute_map: Dict[str, str] = { "op": "op", "path": "path", "value": "value", } - subtype_mapping = {} + subtype_mapping: Dict[str, str] = {} - discriminator = None + discriminator: Optional[str] = None def __init__( self, @@ -79,7 +89,7 @@ def __init__( self.value = value @property - def op(self) -> "str": + def op(self) -> "Optional[str]": """Gets the op of this JsonPatchDocument. Returns @@ -90,7 +100,7 @@ def op(self) -> "str": return self._op @op.setter - def op(self, op: "str") -> None: + def op(self, op: "Optional[str]") -> None: """Sets the op of this JsonPatchDocument. Parameters @@ -101,7 +111,7 @@ def op(self, op: "str") -> None: self._op = op @property - def path(self) -> "str": + def path(self) -> "Optional[str]": """Gets the path of this JsonPatchDocument. Returns @@ -112,7 +122,7 @@ def path(self) -> "str": return self._path @path.setter - def path(self, path: "str") -> None: + def path(self, path: "Optional[str]") -> None: """Sets the path of this JsonPatchDocument. Parameters @@ -123,7 +133,7 @@ def path(self, path: "str") -> None: self._path = path @property - def value(self) -> "str": + def value(self) -> "Optional[str]": """Gets the value of this JsonPatchDocument. Returns @@ -134,7 +144,7 @@ def value(self) -> "str": return self._value @value.setter - def value(self, value: "str") -> None: + def value(self, value: "Optional[str]") -> None: """Sets the value of this JsonPatchDocument. Parameters @@ -162,7 +172,7 @@ def get_real_child_model(cls, data: ModelBase) -> str: def __repr__(self) -> str: """For 'print' and 'pprint'""" - return self.to_str() + return self.to_str() # type: ignore[no-any-return] def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/py.typed b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/py.typed new file mode 100644 index 00000000..e69de29b diff --git a/pom.xml b/pom.xml index a23ffc83..a2fadf0d 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ 1.0.0 0.1.0 server-api.json - 2.0.8-SNAPSHOT + 2.0.9-SNAPSHOT ansys-grantami-serverapi-openapi ansys.grantami.serverapi_openapi Autogenerated client library for the Granta MI Server API. @@ -46,6 +46,7 @@ ${project.version} ${build-id} ${is-release} + True diff --git a/yaml/server-api.json b/yaml/server-api.json index 7aace86f..1d2c3ccc 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -64137,4 +64137,4 @@ } } } -} \ No newline at end of file +}