From b70b1c4e16d66fef6653fa4d7bc2a5b95dba404c Mon Sep 17 00:00:00 2001 From: Ludovic Steinbach Date: Tue, 30 Jan 2024 15:43:43 +0100 Subject: [PATCH] Update API spec 24.2 dev 720.1 (#128) Co-authored-by: ludovicsteinbach --- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 192 +- .../serverapi_openapi/api/__init__.py | 1 + .../serverapi_openapi/api/data_api.py | 589 ++ .../serverapi_openapi/api/integration_api.py | 2 - .../serverapi_openapi/api/job_queue_api.py | 65 + .../serverapi_openapi/api/list_item_api.py | 30 +- .../api/list_management_api.py | 132 +- .../api/list_permissions_api.py | 48 +- .../api/records___record_histories_api.py | 883 ++- .../api/records___record_versions_api.py | 501 ++ .../api/schema___attributes_api.py | 12 +- .../api/schema___constants_api.py | 6 +- ...___discrete_types___discrete_values_api.py | 6 +- .../api/schema___discrete_types_api.py | 6 +- .../api/schema___parameters_api.py | 14 +- .../api/schema___subsets_api.py | 246 + .../api/schema___tables_api.py | 196 +- .../serverapi_openapi/models/__init__.py | 173 +- ...anta_server_api_async_jobs_current_user.py | 176 + ...granta_server_api_data_applicable_datum.py | 142 + .../granta_server_api_data_date_time_datum.py | 157 + .../models/granta_server_api_data_datum.py | 94 + .../granta_server_api_data_datum_type.py | 30 + .../granta_server_api_data_discrete_datum.py | 163 + .../granta_server_api_data_hyperlink_datum.py | 219 + ...granta_server_api_data_hyperlink_target.py | 28 + .../granta_server_api_data_integer_datum.py | 157 + .../granta_server_api_data_logical_datum.py | 157 + .../granta_server_api_data_long_text_datum.py | 161 + ...ta_server_api_data_not_applicable_datum.py | 123 + .../granta_server_api_data_range_datum.py | 384 ++ .../granta_server_api_data_rich_text_type.py | 24 + .../granta_server_api_data_rich_text_value.py | 151 + ...granta_server_api_data_short_text_datum.py | 157 + ...erver_api_data_significant_figures_info.py | 184 + ...exceptions_attribute_deletion_exception.py | 179 - ...fication_data_modification_error_detail.py | 133 + ...n_in_use_data_modification_error_detail.py | 200 + ...ns_data_modification_referenced_by_type.py | 33 + ...s_deletion_attribute_deletion_exception.py | 186 + ...s_deletion_constant_deletion_exception.py} | 53 +- ...letion_discrete_type_deletion_exception.py | 186 + ...etion_discrete_value_deletion_exception.py | 186 + ...s_deletion_parameter_deletion_exception.py | 186 + ...tion_parameter_value_deletion_exception.py | 186 + ...ions_deletion_table_deletion_exception.py} | 51 +- ...anta_server_api_exceptions_error_detail.py | 18 +- ...exceptions_parameter_deletion_exception.py | 179 - ..._history_record_history_copy_exception.py} | 30 +- ..._history_record_history_move_exception.py} | 30 +- ...api_exceptions_table_deletion_exception.py | 179 - ...create_record_version_control_exception.py | 189 + ...ntrol_invalid_parent_state_error_detail.py | 131 + ...trol_invalid_version_state_error_detail.py | 162 + ...rol_not_the_latest_version_error_detail.py | 164 + ...sion_control_not_versioned_error_detail.py | 131 + ...elease_record_version_control_exception.py | 189 + ...release_table_version_control_exception.py | 189 + ...on_control_version_control_error_detail.py | 136 + ...thdraw_record_version_control_exception.py | 189 + ...a_server_api_lists_dto_create_list_item.py | 209 + ...erver_api_lists_dto_create_record_list.py} | 99 +- ...lists_dto_create_record_list_items_info.py | 121 + ...r_api_lists_dto_delete_record_list_item.py | 180 + ..._api_lists_dto_delete_record_list_items.py | 121 + .../granta_server_api_lists_dto_list_item.py | 37 +- ...server_api_lists_dto_record_list_header.py | 115 +- ..._api_lists_dto_record_list_headers_info.py | 121 + ...r_api_lists_dto_record_list_items_info.py} | 23 +- ...lists_dto_record_list_permission_flags.py} | 111 +- ...r_api_lists_dto_record_list_search_info.py | 11 +- ...pi_lists_dto_record_list_search_request.py | 13 +- ...api_lists_dto_record_list_search_result.py | 18 +- ...sts_dto_record_list_search_results_info.py | 123 + ...dto_update_record_list_permission_flags.py | 219 + ...ists_dto_update_record_list_properties.py} | 54 +- ...r_api_lists_dto_update_user_permission.py} | 54 +- ..._lists_dto_update_user_permissions_info.py | 123 + ...anta_server_api_lists_dto_user_or_group.py | 27 +- ...a_server_api_lists_dto_user_permission.py} | 75 +- ...ver_api_lists_dto_user_permissions_info.py | 123 + ...ds_record_histories_copy_record_history.py | 150 + ..._record_histories_create_record_history.py | 243 + ...ds_record_histories_move_record_history.py | 121 + ...records_record_histories_record_history.py | 33 + ...ma_subsets_add_record_history_to_subset.py | 150 + ...bsets_remove_record_history_from_subset.py | 123 + .../granta_server_api_schema_tables_table.py | 31 + .../granta_server_api_search_criterion.py | 1 + ...erver_api_search_local_column_criterion.py | 195 + ...pi_search_local_column_exists_criterion.py | 173 + ...i_search_local_column_matches_criterion.py | 173 + ...h_local_column_not_applicable_criterion.py | 141 + pom.xml | 2 +- yaml/server-api.json | 5898 ++++++++++++++--- 96 files changed, 16267 insertions(+), 2250 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_attribute_deletion_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_exceptions_constant_deletion_exception.py => granta_server_api_exceptions_deletion_constant_deletion_exception.py} (61%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_exceptions_discrete_value_deletion_exception.py => granta_server_api_exceptions_deletion_table_deletion_exception.py} (63%) delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_deletion_exception.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_exceptions_parameter_value_deletion_exception.py => granta_server_api_exceptions_record_history_record_history_copy_exception.py} (74%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_exceptions_discrete_type_deletion_exception.py => granta_server_api_exceptions_record_history_record_history_move_exception.py} (74%) delete mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_table_deletion_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_record_list_create.py => granta_server_api_lists_dto_create_record_list.py} (68%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_record_list_items.py => granta_server_api_lists_dto_record_list_items_info.py} (86%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_record_list_permission_flags_dto.py => granta_server_api_lists_dto_record_list_permission_flags.py} (72%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_record_list_properties.py => granta_server_api_lists_dto_update_record_list_properties.py} (76%) rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_user_permission_input_dto.py => granta_server_api_lists_dto_update_user_permission.py} (65%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py rename ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/{granta_server_api_lists_dto_user_permission_dto.py => granta_server_api_lists_dto_user_permission.py} (77%) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 9cb00d60..0a6e0e90 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 = "2.0.0.dev167" +version = "3.0.0.dev174" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py index 1d30c214..733cfc0b 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 @@ -12,6 +12,7 @@ # import apis into sdk package from .api.aggregation_api import AggregationApi +from .api.data_api import DataApi from .api.data_export_api import DataExportApi from .api.database_api import DatabaseApi from .api.integration_api import IntegrationApi @@ -262,6 +263,9 @@ from .models.granta_server_api_async_jobs_create_job_request import ( GrantaServerApiAsyncJobsCreateJobRequest, ) +from .models.granta_server_api_async_jobs_current_user import ( + GrantaServerApiAsyncJobsCurrentUser, +) from .models.granta_server_api_async_jobs_get_jobs_response import ( GrantaServerApiAsyncJobsGetJobsResponse, ) @@ -279,6 +283,17 @@ GrantaServerApiAsyncJobsUpdateJobRequest, ) from .models.granta_server_api_attribute_type import GrantaServerApiAttributeType +from .models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) +from .models.granta_server_api_data_date_time_datum import ( + GrantaServerApiDataDateTimeDatum, +) +from .models.granta_server_api_data_datum import GrantaServerApiDataDatum +from .models.granta_server_api_data_datum_type import GrantaServerApiDataDatumType +from .models.granta_server_api_data_discrete_datum import ( + GrantaServerApiDataDiscreteDatum, +) from .models.granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) @@ -525,31 +540,100 @@ from .models.granta_server_api_data_export_tabular_row_export_behaviour import ( GrantaServerApiDataExportTabularRowExportBehaviour, ) +from .models.granta_server_api_data_hyperlink_datum import ( + GrantaServerApiDataHyperlinkDatum, +) +from .models.granta_server_api_data_hyperlink_target import ( + GrantaServerApiDataHyperlinkTarget, +) +from .models.granta_server_api_data_integer_datum import GrantaServerApiDataIntegerDatum +from .models.granta_server_api_data_logical_datum import GrantaServerApiDataLogicalDatum +from .models.granta_server_api_data_long_text_datum import ( + GrantaServerApiDataLongTextDatum, +) +from .models.granta_server_api_data_not_applicable_datum import ( + GrantaServerApiDataNotApplicableDatum, +) +from .models.granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum +from .models.granta_server_api_data_rich_text_type import ( + GrantaServerApiDataRichTextType, +) +from .models.granta_server_api_data_rich_text_value import ( + GrantaServerApiDataRichTextValue, +) +from .models.granta_server_api_data_short_text_datum import ( + GrantaServerApiDataShortTextDatum, +) +from .models.granta_server_api_data_significant_figures_info import ( + GrantaServerApiDataSignificantFiguresInfo, +) from .models.granta_server_api_discrete_value import GrantaServerApiDiscreteValue from .models.granta_server_api_disk_status import GrantaServerApiDiskStatus -from .models.granta_server_api_exceptions_attribute_deletion_exception import ( - GrantaServerApiExceptionsAttributeDeletionException, +from .models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( + GrantaServerApiExceptionsDataModificationDataModificationErrorDetail, ) -from .models.granta_server_api_exceptions_constant_deletion_exception import ( - GrantaServerApiExceptionsConstantDeletionException, +from .models.granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail import ( + GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail, ) -from .models.granta_server_api_exceptions_discrete_type_deletion_exception import ( - GrantaServerApiExceptionsDiscreteTypeDeletionException, +from .models.granta_server_api_exceptions_data_modification_referenced_by_type import ( + GrantaServerApiExceptionsDataModificationReferencedByType, ) -from .models.granta_server_api_exceptions_discrete_value_deletion_exception import ( - GrantaServerApiExceptionsDiscreteValueDeletionException, +from .models.granta_server_api_exceptions_deletion_attribute_deletion_exception import ( + GrantaServerApiExceptionsDeletionAttributeDeletionException, +) +from .models.granta_server_api_exceptions_deletion_constant_deletion_exception import ( + GrantaServerApiExceptionsDeletionConstantDeletionException, +) +from .models.granta_server_api_exceptions_deletion_discrete_type_deletion_exception import ( + GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, +) +from .models.granta_server_api_exceptions_deletion_discrete_value_deletion_exception import ( + GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, +) +from .models.granta_server_api_exceptions_deletion_parameter_deletion_exception import ( + GrantaServerApiExceptionsDeletionParameterDeletionException, +) +from .models.granta_server_api_exceptions_deletion_parameter_value_deletion_exception import ( + GrantaServerApiExceptionsDeletionParameterValueDeletionException, +) +from .models.granta_server_api_exceptions_deletion_table_deletion_exception import ( + GrantaServerApiExceptionsDeletionTableDeletionException, ) from .models.granta_server_api_exceptions_error_detail import ( GrantaServerApiExceptionsErrorDetail, ) -from .models.granta_server_api_exceptions_parameter_deletion_exception import ( - GrantaServerApiExceptionsParameterDeletionException, +from .models.granta_server_api_exceptions_record_history_record_history_copy_exception import ( + GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, +) +from .models.granta_server_api_exceptions_record_history_record_history_move_exception import ( + GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, +) +from .models.granta_server_api_exceptions_version_control_create_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, +) +from .models.granta_server_api_exceptions_version_control_invalid_parent_state_error_detail import ( + GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail, +) +from .models.granta_server_api_exceptions_version_control_invalid_version_state_error_detail import ( + GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail, +) +from .models.granta_server_api_exceptions_version_control_not_the_latest_version_error_detail import ( + GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail, ) -from .models.granta_server_api_exceptions_parameter_value_deletion_exception import ( - GrantaServerApiExceptionsParameterValueDeletionException, +from .models.granta_server_api_exceptions_version_control_not_versioned_error_detail import ( + GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail, ) -from .models.granta_server_api_exceptions_table_deletion_exception import ( - GrantaServerApiExceptionsTableDeletionException, +from .models.granta_server_api_exceptions_version_control_release_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, +) +from .models.granta_server_api_exceptions_version_control_release_table_version_control_exception import ( + GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, +) +from .models.granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) +from .models.granta_server_api_exceptions_version_control_withdraw_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, ) from .models.granta_server_api_exclude_values_specifier import ( GrantaServerApiExcludeValuesSpecifier, @@ -621,6 +705,21 @@ from .models.granta_server_api_link_attribute_type import ( GrantaServerApiLinkAttributeType, ) +from .models.granta_server_api_lists_dto_create_list_item import ( + GrantaServerApiListsDtoCreateListItem, +) +from .models.granta_server_api_lists_dto_create_record_list import ( + GrantaServerApiListsDtoCreateRecordList, +) +from .models.granta_server_api_lists_dto_create_record_list_items_info import ( + GrantaServerApiListsDtoCreateRecordListItemsInfo, +) +from .models.granta_server_api_lists_dto_delete_record_list_item import ( + GrantaServerApiListsDtoDeleteRecordListItem, +) +from .models.granta_server_api_lists_dto_delete_record_list_items import ( + GrantaServerApiListsDtoDeleteRecordListItems, +) from .models.granta_server_api_lists_dto_list_boolean_criterion import ( GrantaServerApiListsDtoListBooleanCriterion, ) @@ -633,20 +732,17 @@ from .models.granta_server_api_lists_dto_paging_options import ( GrantaServerApiListsDtoPagingOptions, ) -from .models.granta_server_api_lists_dto_record_list_create import ( - GrantaServerApiListsDtoRecordListCreate, -) from .models.granta_server_api_lists_dto_record_list_header import ( GrantaServerApiListsDtoRecordListHeader, ) -from .models.granta_server_api_lists_dto_record_list_items import ( - GrantaServerApiListsDtoRecordListItems, +from .models.granta_server_api_lists_dto_record_list_headers_info import ( + GrantaServerApiListsDtoRecordListHeadersInfo, ) -from .models.granta_server_api_lists_dto_record_list_permission_flags_dto import ( - GrantaServerApiListsDtoRecordListPermissionFlagsDto, +from .models.granta_server_api_lists_dto_record_list_items_info import ( + GrantaServerApiListsDtoRecordListItemsInfo, ) -from .models.granta_server_api_lists_dto_record_list_properties import ( - GrantaServerApiListsDtoRecordListProperties, +from .models.granta_server_api_lists_dto_record_list_permission_flags import ( + GrantaServerApiListsDtoRecordListPermissionFlags, ) from .models.granta_server_api_lists_dto_record_list_search_criterion import ( GrantaServerApiListsDtoRecordListSearchCriterion, @@ -660,17 +756,32 @@ from .models.granta_server_api_lists_dto_record_list_search_result import ( GrantaServerApiListsDtoRecordListSearchResult, ) +from .models.granta_server_api_lists_dto_record_list_search_results_info import ( + GrantaServerApiListsDtoRecordListSearchResultsInfo, +) from .models.granta_server_api_lists_dto_response_options import ( GrantaServerApiListsDtoResponseOptions, ) +from .models.granta_server_api_lists_dto_update_record_list_permission_flags import ( + GrantaServerApiListsDtoUpdateRecordListPermissionFlags, +) +from .models.granta_server_api_lists_dto_update_record_list_properties import ( + GrantaServerApiListsDtoUpdateRecordListProperties, +) +from .models.granta_server_api_lists_dto_update_user_permission import ( + GrantaServerApiListsDtoUpdateUserPermission, +) +from .models.granta_server_api_lists_dto_update_user_permissions_info import ( + GrantaServerApiListsDtoUpdateUserPermissionsInfo, +) from .models.granta_server_api_lists_dto_user_or_group import ( GrantaServerApiListsDtoUserOrGroup, ) -from .models.granta_server_api_lists_dto_user_permission_dto import ( - GrantaServerApiListsDtoUserPermissionDto, +from .models.granta_server_api_lists_dto_user_permission import ( + GrantaServerApiListsDtoUserPermission, ) -from .models.granta_server_api_lists_dto_user_permission_input_dto import ( - GrantaServerApiListsDtoUserPermissionInputDto, +from .models.granta_server_api_lists_dto_user_permissions_info import ( + GrantaServerApiListsDtoUserPermissionsInfo, ) from .models.granta_server_api_lists_dto_user_role import ( GrantaServerApiListsDtoUserRole, @@ -692,6 +803,15 @@ from .models.granta_server_api_record_color import GrantaServerApiRecordColor from .models.granta_server_api_record_property import GrantaServerApiRecordProperty from .models.granta_server_api_record_type import GrantaServerApiRecordType +from .models.granta_server_api_records_record_histories_copy_record_history import ( + GrantaServerApiRecordsRecordHistoriesCopyRecordHistory, +) +from .models.granta_server_api_records_record_histories_create_record_history import ( + GrantaServerApiRecordsRecordHistoriesCreateRecordHistory, +) +from .models.granta_server_api_records_record_histories_move_record_history import ( + GrantaServerApiRecordsRecordHistoriesMoveRecordHistory, +) from .models.granta_server_api_records_record_histories_record_history import ( GrantaServerApiRecordsRecordHistoriesRecordHistory, ) @@ -1332,9 +1452,15 @@ from .models.granta_server_api_schema_standard_names_update_standard_name import ( GrantaServerApiSchemaStandardNamesUpdateStandardName, ) +from .models.granta_server_api_schema_subsets_add_record_history_to_subset import ( + GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset, +) from .models.granta_server_api_schema_subsets_create_subset import ( GrantaServerApiSchemaSubsetsCreateSubset, ) +from .models.granta_server_api_schema_subsets_remove_record_history_from_subset import ( + GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset, +) from .models.granta_server_api_schema_subsets_subset import ( GrantaServerApiSchemaSubsetsSubset, ) @@ -1658,6 +1784,18 @@ from .models.granta_server_api_search_linking_value_match_behaviour import ( GrantaServerApiSearchLinkingValueMatchBehaviour, ) +from .models.granta_server_api_search_local_column_criterion import ( + GrantaServerApiSearchLocalColumnCriterion, +) +from .models.granta_server_api_search_local_column_exists_criterion import ( + GrantaServerApiSearchLocalColumnExistsCriterion, +) +from .models.granta_server_api_search_local_column_matches_criterion import ( + GrantaServerApiSearchLocalColumnMatchesCriterion, +) +from .models.granta_server_api_search_local_column_not_applicable_criterion import ( + GrantaServerApiSearchLocalColumnNotApplicableCriterion, +) from .models.granta_server_api_search_local_rows_behaviour import ( GrantaServerApiSearchLocalRowsBehaviour, ) 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 1b99fe2d..95ceaf85 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 @@ -5,6 +5,7 @@ # import apis into api package from .aggregation_api import AggregationApi +from .data_api import DataApi from .data_export_api import DataExportApi from .database_api import DatabaseApi from .integration_api import IntegrationApi 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 new file mode 100644 index 00000000..f8fb50aa --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/data_api.py @@ -0,0 +1,589 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Dict, List, Optional, Union # noqa: F401 +from . import ApiBase + + +if TYPE_CHECKING: + from ..models import * + + +class DataApi(ApiBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get( + self, + *, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiDataDatum, None]": + """Get a datum for a given attribute and the latest version of a record history in given database. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiDataDatum, None] + """ + data = self._v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + database_key, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiDataDatum", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get( + self, + *, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiDataDatum, None]": + """Get a datum for a given database, record history, record version and attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiDataDatum, None] + """ + data = self._v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + database_key, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiDataDatum", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiDataDatum, None]": + """Get a datum for a given attribute and the latest version of a record history in given database and table. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiDataDatum, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + database_key, + table_guid, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_attributes_attribute_guid_get'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiDataDatum", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiDataDatum, None]": + """Get a datum for a given database, table, record history, record version and attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiDataDatum, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + 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, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_attributes_attribute_guid_get'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiDataDatum", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index 01229029..10985867 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 @@ -163,7 +163,6 @@ def _v1alpha_integration_schemas_post_with_http_info( 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", 400: None, 403: None, - 422: None, } return self.api_client.call_api( @@ -544,7 +543,6 @@ def _v1alpha_integration_schemas_schema_put_with_http_info( 201: "GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier", 400: None, 403: None, - 422: None, } return self.api_client.call_api( 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 ea8f9996..d2de0f02 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 @@ -24,6 +24,71 @@ class JobQueueApi(ApiBase): Ref: https://github.com/swagger-api/swagger-codegen """ + def v1alpha_job_queue_current_user_get( + self, + ) -> "GrantaServerApiAsyncJobsCurrentUser": + """Get the current user. + + This method makes a synchronous HTTP request. + + Returns + ------- + GrantaServerApiAsyncJobsCurrentUser + """ + data = self._v1alpha_job_queue_current_user_get_with_http_info( + _return_http_data_only=True + ) + return data # type: ignore[return-value] + + def _v1alpha_job_queue_current_user_get_with_http_info(self, **kwargs): + all_params = ["_return_http_data_only", "_preload_content", "_request_timeout"] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_job_queue_current_user_get" + ) + params[key] = val + del params["kwargs"] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["text/plain", "application/json", "text/json"] + ) + + response_type_map = { + 200: "GrantaServerApiAsyncJobsCurrentUser", + } + + return self.api_client.call_api( + "/v1alpha/job-queue/current-user", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + def v1alpha_job_queue_files_post( self, *, 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 4ca2a1a7..3b98c3f7 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 @@ -28,8 +28,8 @@ def api_v1_lists_list_list_identifier_items_add_post( self, *, list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListItems]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListItems, None]": + body: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, + ) -> "Union[GrantaServerApiListsDtoRecordListItemsInfo, None]": """Adds the specified items to an existing list. This method makes a synchronous HTTP request. @@ -37,11 +37,11 @@ def api_v1_lists_list_list_identifier_items_add_post( Parameters ---------- list_identifier: str - body: GrantaServerApiListsDtoRecordListItems + body: GrantaServerApiListsDtoCreateRecordListItemsInfo Returns ------- - Union[GrantaServerApiListsDtoRecordListItems, None] + Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ data = self._api_v1_lists_list_list_identifier_items_add_post_with_http_info( list_identifier, body, _return_http_data_only=True @@ -51,7 +51,7 @@ def api_v1_lists_list_list_identifier_items_add_post( def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( self, list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListItems]" = None, + body: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, **kwargs, ): all_params = [ @@ -108,7 +108,7 @@ def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( ) response_type_map = { - 202: "GrantaServerApiListsDtoRecordListItems", + 202: "GrantaServerApiListsDtoRecordListItemsInfo", 400: None, 403: None, 404: None, @@ -132,7 +132,7 @@ def _api_v1_lists_list_list_identifier_items_add_post_with_http_info( def api_v1_lists_list_list_identifier_items_get( self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListItems, None]": + ) -> "Union[GrantaServerApiListsDtoRecordListItemsInfo, None]": """Returns the items in the given list This method makes a synchronous HTTP request. @@ -143,7 +143,7 @@ def api_v1_lists_list_list_identifier_items_get( Returns ------- - Union[GrantaServerApiListsDtoRecordListItems, None] + Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ data = self._api_v1_lists_list_list_identifier_items_get_with_http_info( list_identifier, _return_http_data_only=True @@ -194,7 +194,7 @@ def _api_v1_lists_list_list_identifier_items_get_with_http_info( ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListItems", + 200: "GrantaServerApiListsDtoRecordListItemsInfo", 403: None, 404: None, } @@ -219,8 +219,8 @@ def api_v1_lists_list_list_identifier_items_remove_post( self, *, list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListItems]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListItems, None]": + body: "Optional[GrantaServerApiListsDtoDeleteRecordListItems]" = None, + ) -> "Union[GrantaServerApiListsDtoRecordListItemsInfo, None]": """Removed the specified items from an existing list. This method makes a synchronous HTTP request. @@ -228,11 +228,11 @@ def api_v1_lists_list_list_identifier_items_remove_post( Parameters ---------- list_identifier: str - body: GrantaServerApiListsDtoRecordListItems + body: GrantaServerApiListsDtoDeleteRecordListItems Returns ------- - Union[GrantaServerApiListsDtoRecordListItems, None] + Union[GrantaServerApiListsDtoRecordListItemsInfo, None] """ data = self._api_v1_lists_list_list_identifier_items_remove_post_with_http_info( list_identifier, body, _return_http_data_only=True @@ -242,7 +242,7 @@ def api_v1_lists_list_list_identifier_items_remove_post( def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( self, list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListItems]" = None, + body: "Optional[GrantaServerApiListsDtoDeleteRecordListItems]" = None, **kwargs, ): all_params = [ @@ -299,7 +299,7 @@ def _api_v1_lists_list_list_identifier_items_remove_post_with_http_info( ) response_type_map = { - 202: "GrantaServerApiListsDtoRecordListItems", + 202: "GrantaServerApiListsDtoRecordListItemsInfo", 400: None, 403: None, 404: 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 62703177..3e343783 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_management_api.py @@ -26,14 +26,14 @@ class ListManagementApi(ApiBase): def api_v1_lists_get( self, - ) -> "Union[List[GrantaServerApiListsDtoRecordListHeader], None]": + ) -> "Union[GrantaServerApiListsDtoRecordListHeadersInfo, None]": """Returns all lists visible to the calling user This method makes a synchronous HTTP request. Returns ------- - Union[List[GrantaServerApiListsDtoRecordListHeader], None] + Union[GrantaServerApiListsDtoRecordListHeadersInfo, None] """ data = self._api_v1_lists_get_with_http_info(_return_http_data_only=True) return data # type: ignore[return-value] @@ -68,7 +68,7 @@ def _api_v1_lists_get_with_http_info(self, **kwargs): ) response_type_map = { - 200: "list[GrantaServerApiListsDtoRecordListHeader]", + 200: "GrantaServerApiListsDtoRecordListHeadersInfo", 403: None, } @@ -342,16 +342,16 @@ def api_v1_lists_list_list_identifier_patch( self, *, list_identifier: "str", - body: "Optional[List[JsonPatchDocument]]" = None, + body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """Performs a partial update on the properties of a list. Only replace operations on name, description or notes are supported. + """Performs a partial update on the properties of a list. This method makes a synchronous HTTP request. Parameters ---------- list_identifier: str - body: List[JsonPatchDocument] + body: GrantaServerApiListsDtoUpdateRecordListProperties Returns ------- @@ -365,7 +365,7 @@ def api_v1_lists_list_list_identifier_patch( def _api_v1_lists_list_list_identifier_patch_with_http_info( self, list_identifier: "str", - body: "Optional[List[JsonPatchDocument]]" = None, + body: "Optional[GrantaServerApiListsDtoUpdateRecordListProperties]" = None, **kwargs, ): all_params = [ @@ -530,112 +530,6 @@ def _api_v1_lists_list_list_identifier_publish_post_with_http_info( response_type_map=response_type_map, ) - def api_v1_lists_list_list_identifier_put( - self, - *, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListProperties]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": - """If the list exists, updates the properties of the list. This will overwrite all current properties, but not the contents of the list. If the list does not exist, returns '404 not found' response - - This method makes a synchronous HTTP request. - - Parameters - ---------- - list_identifier: str - body: GrantaServerApiListsDtoRecordListProperties - - Returns - ------- - Union[GrantaServerApiListsDtoRecordListHeader, None] - """ - data = self._api_v1_lists_list_list_identifier_put_with_http_info( - list_identifier, body, _return_http_data_only=True - ) - return data # type: ignore[return-value] - - def _api_v1_lists_list_list_identifier_put_with_http_info( - self, - list_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListProperties]" = None, - **kwargs, - ): - all_params = [ - "list_identifier", - "body", - "_return_http_data_only", - "_preload_content", - "_request_timeout", - ] - - params = locals() - for key, val in params["kwargs"].items(): - if key not in all_params: - raise TypeError( - f"Got an unexpected keyword argument '{key}' to method api_v1_lists_list_list_identifier_put" - ) - params[key] = val - del params["kwargs"] - # verify the required parameter "list_identifier" is set - if "list_identifier" not in params or params["list_identifier"] is None: - raise ValueError( - "Missing the required parameter 'list_identifier' when calling 'api_v1_lists_list_list_identifier_put'" - ) - - collection_formats = {} - - path_params = {} - if "list_identifier" in params and list_identifier is not None: - path_params["listIdentifier"] = params["list_identifier"] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if "body" in params and body is not None: - body_params = params["body"] - # HTTP header 'Accept' - header_params["Accept"] = self.api_client.select_header_accept( - ["text/plain", "application/json", "text/json"] - ) - - # HTTP header 'Content-Type' - header_params["Content-Type"] = self.api_client.select_header_content_type( - [ - "application/json-patch+json", - "application/json", - "text/json", - "application/*+json", - ] - ) - - response_type_map = { - 200: "GrantaServerApiListsDtoRecordListHeader", - 400: None, - 403: None, - 404: None, - } - - return self.api_client.call_api( - "/api/v1/lists/list/{listIdentifier}", - "PUT", - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - _return_http_data_only=params.get("_return_http_data_only"), - _preload_content=params.get("_preload_content", True), - _request_timeout=params.get("_request_timeout"), - collection_formats=collection_formats, - response_type_map=response_type_map, - ) - def api_v1_lists_list_list_identifier_request_approval_post( self, *, list_identifier: "str" ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": @@ -981,7 +875,7 @@ def _api_v1_lists_list_list_identifier_unpublish_post_with_http_info( ) def api_v1_lists_post( - self, *, body: "Optional[GrantaServerApiListsDtoRecordListCreate]" = None + self, *, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None ) -> "Union[GrantaServerApiListsDtoRecordListHeader, None]": """Creates a new list with the specified properties and items. @@ -989,7 +883,7 @@ def api_v1_lists_post( Parameters ---------- - body: GrantaServerApiListsDtoRecordListCreate + body: GrantaServerApiListsDtoCreateRecordList Returns ------- @@ -999,7 +893,7 @@ def api_v1_lists_post( return data # type: ignore[return-value] def _api_v1_lists_post_with_http_info( - self, body: "Optional[GrantaServerApiListsDtoRecordListCreate]" = None, **kwargs + self, body: "Optional[GrantaServerApiListsDtoCreateRecordList]" = None, **kwargs ): all_params = [ "body", @@ -1162,7 +1056,7 @@ def _api_v1_lists_search_post_with_http_info( def api_v1_lists_search_results_result_resource_identifier_get( self, *, result_resource_identifier: "str" - ) -> "Union[List[GrantaServerApiListsDtoRecordListSearchResult], None]": + ) -> "Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None]": """Returns the search results found in the specified resource This method makes a synchronous HTTP request. @@ -1173,7 +1067,7 @@ def api_v1_lists_search_results_result_resource_identifier_get( Returns ------- - Union[List[GrantaServerApiListsDtoRecordListSearchResult], None] + Union[GrantaServerApiListsDtoRecordListSearchResultsInfo, None] """ data = self._api_v1_lists_search_results_result_resource_identifier_get_with_http_info( result_resource_identifier, _return_http_data_only=True @@ -1232,7 +1126,7 @@ def _api_v1_lists_search_results_result_resource_identifier_get_with_http_info( ) response_type_map = { - 200: "list[GrantaServerApiListsDtoRecordListSearchResult]", + 200: "GrantaServerApiListsDtoRecordListSearchResultsInfo", 403: None, 404: None, 410: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py index e1633276..7a1c51c3 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/list_permissions_api.py @@ -26,7 +26,7 @@ class ListPermissionsApi(ApiBase): def api_v1_lists_list_list_identifier_permissions_get( self, *, list_identifier: "str" - ) -> "Union[List[GrantaServerApiListsDtoUserPermissionDto], None]": + ) -> "Union[GrantaServerApiListsDtoUserPermissionsInfo, None]": """Gets all permissions associated with the specified list. This method makes a synchronous HTTP request. @@ -37,7 +37,7 @@ def api_v1_lists_list_list_identifier_permissions_get( Returns ------- - Union[List[GrantaServerApiListsDtoUserPermissionDto], None] + Union[GrantaServerApiListsDtoUserPermissionsInfo, None] """ data = self._api_v1_lists_list_list_identifier_permissions_get_with_http_info( list_identifier, _return_http_data_only=True @@ -88,7 +88,7 @@ def _api_v1_lists_list_list_identifier_permissions_get_with_http_info( ) response_type_map = { - 200: "list[GrantaServerApiListsDtoUserPermissionDto]", + 200: "GrantaServerApiListsDtoUserPermissionsInfo", 403: None, 404: None, } @@ -113,8 +113,8 @@ def api_v1_lists_list_list_identifier_permissions_post( self, *, list_identifier: "str", - body: "Optional[List[GrantaServerApiListsDtoUserPermissionInputDto]]" = None, - ) -> "Union[List[GrantaServerApiListsDtoUserPermissionDto], None]": + body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, + ) -> "Union[GrantaServerApiListsDtoUserPermissionsInfo, None]": """Sets permissions for the specified list. Returns a collection of the created/updated permissions. This method makes a synchronous HTTP request. @@ -122,11 +122,11 @@ def api_v1_lists_list_list_identifier_permissions_post( Parameters ---------- list_identifier: str - body: List[GrantaServerApiListsDtoUserPermissionInputDto] + body: GrantaServerApiListsDtoUpdateUserPermissionsInfo Returns ------- - Union[List[GrantaServerApiListsDtoUserPermissionDto], None] + Union[GrantaServerApiListsDtoUserPermissionsInfo, None] """ data = self._api_v1_lists_list_list_identifier_permissions_post_with_http_info( list_identifier, body, _return_http_data_only=True @@ -136,7 +136,7 @@ def api_v1_lists_list_list_identifier_permissions_post( def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( self, list_identifier: "str", - body: "Optional[List[GrantaServerApiListsDtoUserPermissionInputDto]]" = None, + body: "Optional[GrantaServerApiListsDtoUpdateUserPermissionsInfo]" = None, **kwargs, ): all_params = [ @@ -193,7 +193,7 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( ) response_type_map = { - 202: "list[GrantaServerApiListsDtoUserPermissionDto]", + 202: "GrantaServerApiListsDtoUserPermissionsInfo", 400: None, 403: None, 404: None, @@ -217,7 +217,7 @@ def _api_v1_lists_list_list_identifier_permissions_post_with_http_info( def api_v1_lists_list_list_identifier_permissions_subscribe_post( self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoUserPermissionDto, None]": + ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": """Subscribes the calling user to the specified list. This method makes a synchronous HTTP request. @@ -228,7 +228,7 @@ def api_v1_lists_list_list_identifier_permissions_subscribe_post( Returns ------- - Union[GrantaServerApiListsDtoUserPermissionDto, None] + Union[GrantaServerApiListsDtoUserPermission, None] """ data = self._api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info( list_identifier, _return_http_data_only=True @@ -279,7 +279,7 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info ) response_type_map = { - 202: "GrantaServerApiListsDtoUserPermissionDto", + 202: "GrantaServerApiListsDtoUserPermission", 400: None, 403: None, 404: None, @@ -303,7 +303,7 @@ def _api_v1_lists_list_list_identifier_permissions_subscribe_post_with_http_info def api_v1_lists_list_list_identifier_permissions_unsubscribe_post( self, *, list_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoUserPermissionDto, None]": + ) -> "Union[GrantaServerApiListsDtoUserPermission, None]": """Unsubscribes the calling user from the specified list. This method makes a synchronous HTTP request. @@ -314,7 +314,7 @@ def api_v1_lists_list_list_identifier_permissions_unsubscribe_post( Returns ------- - Union[GrantaServerApiListsDtoUserPermissionDto, None] + Union[GrantaServerApiListsDtoUserPermission, None] """ data = self._api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_info( list_identifier, _return_http_data_only=True @@ -365,7 +365,7 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in ) response_type_map = { - 202: "GrantaServerApiListsDtoUserPermissionDto", + 202: "GrantaServerApiListsDtoUserPermission", 400: None, 403: None, 404: None, @@ -389,7 +389,7 @@ def _api_v1_lists_list_list_identifier_permissions_unsubscribe_post_with_http_in def api_v1_lists_list_list_identifier_permissions_user_user_identifier_get( self, *, list_identifier: "str", user_identifier: "str" - ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlagsDto, None]": + ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": """Gets the permission flags of the permission associating the specified list with the specified user. This method makes a synchronous HTTP request. @@ -401,7 +401,7 @@ def api_v1_lists_list_list_identifier_permissions_user_user_identifier_get( Returns ------- - Union[GrantaServerApiListsDtoRecordListPermissionFlagsDto, None] + Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] """ data = self._api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with_http_info( list_identifier, user_identifier, _return_http_data_only=True @@ -460,7 +460,7 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_get_with ) response_type_map = { - 200: "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + 200: "GrantaServerApiListsDtoRecordListPermissionFlags", 403: None, 404: None, } @@ -486,8 +486,8 @@ def api_v1_lists_list_list_identifier_permissions_user_user_identifier_put( *, list_identifier: "str", user_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListPermissionFlagsDto]" = None, - ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlagsDto, None]": + body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, + ) -> "Union[GrantaServerApiListsDtoRecordListPermissionFlags, None]": """Sets the permission flags of the permission associating the specified list with the specified user. This method makes a synchronous HTTP request. @@ -496,11 +496,11 @@ def api_v1_lists_list_list_identifier_permissions_user_user_identifier_put( ---------- list_identifier: str user_identifier: str - body: GrantaServerApiListsDtoRecordListPermissionFlagsDto + body: GrantaServerApiListsDtoUpdateRecordListPermissionFlags Returns ------- - Union[GrantaServerApiListsDtoRecordListPermissionFlagsDto, None] + Union[GrantaServerApiListsDtoRecordListPermissionFlags, None] """ data = self._api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with_http_info( list_identifier, user_identifier, body, _return_http_data_only=True @@ -511,7 +511,7 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with self, list_identifier: "str", user_identifier: "str", - body: "Optional[GrantaServerApiListsDtoRecordListPermissionFlagsDto]" = None, + body: "Optional[GrantaServerApiListsDtoUpdateRecordListPermissionFlags]" = None, **kwargs, ): all_params = [ @@ -576,7 +576,7 @@ def _api_v1_lists_list_list_identifier_permissions_user_user_identifier_put_with ) response_type_map = { - 201: "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + 201: "GrantaServerApiListsDtoRecordListPermissionFlags", 400: None, 403: None, 404: 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 ea47ee9e..4b135107 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 @@ -141,6 +141,474 @@ def _v1alpha_databases_database_key_record_histories_record_history_guid_get_wit response_type_map=response_type_map, ) + def v1alpha_databases_database_key_record_histories_record_history_guid_latest_get( + self, + *, + database_key: "str", + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Get the latest record version for a record history for a given database. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] + """ + data = self._v1alpha_databases_database_key_record_histories_record_history_guid_latest_get_with_http_info( + database_key, + record_history_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_record_histories_record_history_guid_latest_get_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "record_history_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guid_latest_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guid_latest_get'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_record_histories_record_history_guidcopy_post( + self, + *, + database_key: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Make a copy of a record history. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory + + Returns + ------- + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_record_histories_record_history_guidcopy_post_with_http_info( + database_key, record_history_guid, body, _return_http_data_only=True + ) + return data # type: ignore[return-value] + + 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, + ): + all_params = [ + "database_key", + "record_history_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guidcopy_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidcopy_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidcopy_post'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:copy", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_record_histories_record_history_guidmove_post( + self, + *, + database_key: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Move a record history to be under a new parent. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + body: GrantaServerApiRecordsRecordHistoriesMoveRecordHistory + + Returns + ------- + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_record_histories_record_history_guidmove_post_with_http_info( + database_key, record_history_guid, body, _return_http_data_only=True + ) + return data # type: ignore[return-value] + + 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, + ): + all_params = [ + "database_key", + "record_history_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_record_histories_record_history_guidmove_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidmove_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_record_histories_record_history_guidmove_post'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:move", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_post( + self, + *, + database_key: "str", + table_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCreateRecordHistory]" = None, + ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Create a new record history. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + body: GrantaServerApiRecordsRecordHistoriesCreateRecordHistory + + Returns + ------- + Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_post_with_http_info( + database_key, table_guid, body, _return_http_data_only=True + ) + return data # type: ignore[return-value] + + 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, + ): + all_params = [ + "database_key", + "table_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_post'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get( self, *, @@ -149,8 +617,137 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his record_history_guid: "str", mode: "Optional[str]" = None, x_ansys_vc_mode: "Optional[str]" = None, - ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": - """Get a record history with a specified guid for a given database and table. + ) -> "Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Get a record history with a specified guid for a given database and table. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + database_key, + table_guid, + record_history_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + + query_params = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params = {} + 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 = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Get the latest record version for a record history for a given database and table. This method makes a synchronous HTTP request. @@ -166,9 +763,9 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his Returns ------- - Union[GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + Union[GrantaServerApiRecordsRecordVersionsRecordVersion, None] """ - data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get_with_http_info( database_key, table_guid, record_history_guid, @@ -178,7 +775,7 @@ def v1alpha_databases_database_key_tables_table_guid_record_histories_record_his ) return data # type: ignore[return-value] - def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get_with_http_info( + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get_with_http_info( self, database_key: "str", table_guid: "str", @@ -202,24 +799,24 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi for key, val in params["kwargs"].items(): if key not in all_params: raise TypeError( - f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get" + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get" ) params[key] = val del params["kwargs"] # verify the required parameter "database_key" is set if "database_key" not in params or params["database_key"] is None: raise ValueError( - "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" ) # verify the required parameter "table_guid" is set if "table_guid" not in params or params["table_guid"] is None: raise ValueError( - "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" ) # verify the required parameter "record_history_guid" is set if "record_history_guid" not in params or params["record_history_guid"] is None: raise ValueError( - "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_get'" + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_latest_get'" ) collection_formats = {} @@ -250,12 +847,12 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi ) response_type_map = { - 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", 404: None, } return self.api_client.call_api( - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}", + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest", "GET", path_params, query_params, @@ -269,3 +866,267 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi collection_formats=collection_formats, response_type_map=response_type_map, ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Make a copy of a record history. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + body: GrantaServerApiRecordsRecordHistoriesCopyRecordHistory + + Returns + ------- + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post_with_http_info( + database_key, + table_guid, + record_history_guid, + body, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesCopyRecordHistory]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidcopy_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 201: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:copy", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, + ) -> "Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None]": + """Move a record history to be under a new parent. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + body: GrantaServerApiRecordsRecordHistoriesMoveRecordHistory + + Returns + ------- + Union[GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, GrantaServerApiRecordsRecordHistoriesRecordHistory, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post_with_http_info( + database_key, + table_guid, + record_history_guid, + body, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + body: "Optional[GrantaServerApiRecordsRecordHistoriesMoveRecordHistory]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guidmove_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordHistoriesRecordHistory", + 400: "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:move", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) 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 d6d4b420..3b79fb3a 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 @@ -24,6 +24,127 @@ class RecordsRecordVersionsApi(ApiBase): Ref: https://github.com/swagger-api/swagger-codegen """ + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + ) -> "None": + """Deletes the record version. If the table is version controlled, only the current unreleased record version can be deleted. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + + Returns + ------- + None + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_delete'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + response_type_map = { + 200: None, + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}", + "DELETE", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guid_get( self, *, @@ -164,3 +285,383 @@ def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_hi collection_formats=collection_formats, response_type_map=response_type_map, ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + ) -> "Union[GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Create a new record version. The record version must be the latest version, and must be either released or withdrawn. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + + Returns + ------- + Union[GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + 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, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidcreate_new_version_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 201: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 400: "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:create-new-version", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + ) -> "Union[GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Releases the record version. Must be an unreleased record version. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + + Returns + ------- + Union[GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidrelease_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 400: "GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:release", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + ) -> "Union[GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None]": + """Withdraws the record version. Must be a released record version. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + + Returns + ------- + Union[GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, GrantaServerApiRecordsRecordVersionsRecordVersion, None] + """ + data = self._v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + _return_http_data_only=True, + ) + return data # type: ignore[return-value] + + def _v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_record_histories_record_history_guid_record_versions_record_version_guidwithdraw_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiRecordsRecordVersionsRecordVersion", + 400: "GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException", + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:withdraw", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) 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 e6f3b051..1a06b290 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py @@ -26,7 +26,7 @@ class SchemaAttributesApi(ApiBase): def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete( self, *, database_key: "str", table_guid: "str", attribute_guid: "str" - ) -> "Union[GrantaServerApiExceptionsAttributeDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": """Delete an attribute. This method makes a synchronous HTTP request. @@ -39,7 +39,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_d Returns ------- - Union[GrantaServerApiExceptionsAttributeDeletionException, None] + Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] """ data = self._v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_delete_with_http_info( database_key, table_guid, attribute_guid, _return_http_data_only=True @@ -106,7 +106,7 @@ def _v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_ ) response_type_map = { - 400: "GrantaServerApiExceptionsAttributeDeletionException", + 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", 200: None, 403: None, 404: None, @@ -987,7 +987,7 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_get_with_h def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete( self, *, database_key: "str", table_guid: "str", meta_attribute_guid: "str" - ) -> "Union[GrantaServerApiExceptionsAttributeDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None]": """Delete a meta-attribute. This method makes a synchronous HTTP request. @@ -1000,7 +1000,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib Returns ------- - Union[GrantaServerApiExceptionsAttributeDeletionException, None] + Union[GrantaServerApiExceptionsDeletionAttributeDeletionException, None] """ data = self._v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guid_delete_with_http_info( database_key, table_guid, meta_attribute_guid, _return_http_data_only=True @@ -1071,7 +1071,7 @@ def _v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attri ) response_type_map = { - 400: "GrantaServerApiExceptionsAttributeDeletionException", + 400: "GrantaServerApiExceptionsDeletionAttributeDeletionException", 200: None, 403: None, 404: 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 a39e856f..9ec8db42 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py @@ -26,7 +26,7 @@ class SchemaConstantsApi(ApiBase): def v1alpha_databases_database_key_constants_constant_guid_delete( self, *, database_key: "str", constant_guid: "str" - ) -> "Union[GrantaServerApiExceptionsConstantDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None]": """Delete a constant This method makes a synchronous HTTP request. @@ -40,7 +40,7 @@ def v1alpha_databases_database_key_constants_constant_guid_delete( Returns ------- - Union[GrantaServerApiExceptionsConstantDeletionException, None] + Union[GrantaServerApiExceptionsDeletionConstantDeletionException, None] """ data = self._v1alpha_databases_database_key_constants_constant_guid_delete_with_http_info( database_key, constant_guid, _return_http_data_only=True @@ -99,7 +99,7 @@ def _v1alpha_databases_database_key_constants_constant_guid_delete_with_http_inf ) response_type_map = { - 400: "GrantaServerApiExceptionsConstantDeletionException", + 400: "GrantaServerApiExceptionsDeletionConstantDeletionException", 200: None, 403: None, 404: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types___discrete_values_api.py index ecde9d97..ddfb75cd 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 @@ -30,7 +30,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va database_key: "str", discrete_type_guid: "str", discrete_value_guid: "str", - ) -> "Union[GrantaServerApiExceptionsDiscreteValueDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None]": """Delete a single discrete value. It must not be used by any data, or the operation will fail. This method makes a synchronous HTTP request. @@ -43,7 +43,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va Returns ------- - Union[GrantaServerApiExceptionsDiscreteValueDeletionException, None] + Union[GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, None] """ data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_discrete_value_guid_delete_with_http_info( database_key, @@ -117,7 +117,7 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_v ) response_type_map = { - 400: "GrantaServerApiExceptionsDiscreteValueDeletionException", + 400: "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException", 200: None, 403: None, 404: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py index bc730457..715b16ec 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py @@ -26,7 +26,7 @@ class SchemaDiscreteTypesApi(ApiBase): def v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete( self, *, database_key: "str", discrete_type_guid: "str" - ) -> "Union[GrantaServerApiExceptionsDiscreteTypeDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None]": """Delete discrete type, including all of its discrete values. This method makes a synchronous HTTP request. @@ -38,7 +38,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete( Returns ------- - Union[GrantaServerApiExceptionsDiscreteTypeDeletionException, None] + Union[GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, None] """ data = self._v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_with_http_info( database_key, discrete_type_guid, _return_http_data_only=True @@ -97,7 +97,7 @@ def _v1alpha_databases_database_key_discrete_types_discrete_type_guid_delete_wit ) response_type_map = { - 400: "GrantaServerApiExceptionsDiscreteTypeDeletionException", + 400: "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException", 200: None, 403: None, 404: 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 66ed82c7..362ed5bf 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 @@ -110,7 +110,7 @@ def _v1alpha_databases_database_key_parameters_get_with_http_info( def v1alpha_databases_database_key_parameters_parameter_guid_delete( self, *, database_key: "str", parameter_guid: "str" - ) -> "Union[GrantaServerApiExceptionsParameterDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None]": """Delete a parameter. This method makes a synchronous HTTP request. @@ -122,7 +122,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_delete( Returns ------- - Union[GrantaServerApiExceptionsParameterDeletionException, None] + Union[GrantaServerApiExceptionsDeletionParameterDeletionException, None] """ data = self._v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_info( database_key, parameter_guid, _return_http_data_only=True @@ -181,7 +181,7 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_delete_with_http_i ) response_type_map = { - 400: "GrantaServerApiExceptionsParameterDeletionException", + 400: "GrantaServerApiExceptionsDeletionParameterDeletionException", 200: None, 403: None, 404: None, @@ -298,7 +298,9 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_get_with_http_info def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete( self, *, database_key: "str", parameter_guid: "str", parameter_value_guid: "str" - ) -> "Union[GrantaServerApiExceptionsParameterValueDeletionException, None]": + ) -> ( + "Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None]" + ): """Delete a parameter value. This method makes a synchronous HTTP request. @@ -311,7 +313,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_pa Returns ------- - Union[GrantaServerApiExceptionsParameterValueDeletionException, None] + Union[GrantaServerApiExceptionsDeletionParameterValueDeletionException, None] """ data = self._v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_parameter_value_guid_delete_with_http_info( database_key, @@ -388,7 +390,7 @@ def _v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_p ) response_type_map = { - 400: "GrantaServerApiExceptionsParameterValueDeletionException", + 400: "GrantaServerApiExceptionsDeletionParameterValueDeletionException", 200: None, 403: None, 404: 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 dbb6d489..edc9c23b 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 @@ -609,3 +609,249 @@ def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_ collection_formats=collection_formats, response_type_map=response_type_map, ) + + def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post( + self, + *, + database_key: "str", + table_guid: "str", + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, + ) -> "None": + """Add a record history to a subset. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + subset_guid: str + body: GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset + + Returns + ------- + None + """ + 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] + + def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "subset_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + ) + # verify the required parameter "subset_guid" is set + if "subset_guid" not in params or params["subset_guid"] is None: + raise ValueError( + "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidadd_to_subset_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "subset_guid" in params and subset_guid is not None: + path_params["subset-guid"] = params["subset_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 200: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:add-to-subset", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post( + self, + *, + database_key: "str", + table_guid: "str", + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, + ) -> "None": + """Remove a record history, and all of its descendants, from a subset. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + subset_guid: str + body: GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset + + Returns + ------- + None + """ + 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] + + def _v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post_with_http_info( + self, + database_key: "str", + table_guid: "str", + subset_guid: "str", + body: "Optional[GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset]" = None, + **kwargs, + ): + all_params = [ + "database_key", + "table_guid", + "subset_guid", + "body", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + ) + # verify the required parameter "subset_guid" is set + if "subset_guid" not in params or params["subset_guid"] is None: + raise ValueError( + "Missing the required parameter 'subset_guid' when calling 'v1alpha_databases_database_key_tables_table_guid_subsets_subset_guidremove_from_subset_post'" + ) + + collection_formats = {} + + path_params = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "subset_guid" in params and subset_guid is not None: + path_params["subset-guid"] = params["subset_guid"] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + [ + "application/json-patch+json", + "application/json", + "text/json", + "application/*+json", + ] + ) + + response_type_map = { + 200: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:remove-from-subset", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___tables_api.py index 9a865e7a..73ab748d 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 @@ -234,7 +234,7 @@ def _v1alpha_databases_database_key_tables_post_with_http_info( def v1alpha_databases_database_key_tables_table_guid_delete( self, *, database_key: "str", table_guid: "str" - ) -> "Union[GrantaServerApiExceptionsTableDeletionException, None]": + ) -> "Union[GrantaServerApiExceptionsDeletionTableDeletionException, None]": """Delete a table. This method makes a synchronous HTTP request. @@ -246,7 +246,7 @@ def v1alpha_databases_database_key_tables_table_guid_delete( Returns ------- - Union[GrantaServerApiExceptionsTableDeletionException, None] + Union[GrantaServerApiExceptionsDeletionTableDeletionException, None] """ data = self._v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( database_key, table_guid, _return_http_data_only=True @@ -305,7 +305,7 @@ def _v1alpha_databases_database_key_tables_table_guid_delete_with_http_info( ) response_type_map = { - 400: "GrantaServerApiExceptionsTableDeletionException", + 400: "GrantaServerApiExceptionsDeletionTableDeletionException", 200: None, 403: None, 404: None, @@ -564,3 +564,193 @@ def _v1alpha_databases_database_key_tables_table_guid_patch_with_http_info( collection_formats=collection_formats, response_type_map=response_type_map, ) + + def v1alpha_databases_database_key_tables_table_guidenable_version_control_post( + self, *, database_key: "str", table_guid: "str" + ) -> "Union[GrantaServerApiSchemaTablesTable, None]": + """Enable version control on the table. This cannot be undone. After this method has been called all records and data in the table are in an unreleased state. This means that read users will not be able to see any records unless they are subsequently released. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + + Returns + ------- + Union[GrantaServerApiSchemaTablesTable, None] + """ + 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] + + def _v1alpha_databases_database_key_tables_table_guidenable_version_control_post_with_http_info( + self, database_key: "str", table_guid: "str", **kwargs + ): + all_params = [ + "database_key", + "table_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidenable_version_control_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guidenable_version_control_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidenable_version_control_post'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiSchemaTablesTable", + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}:enable-version-control", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def v1alpha_databases_database_key_tables_table_guidrelease_post( + self, *, database_key: "str", table_guid: "str" + ) -> "Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None]": + """Releases the table. Table must be version-controlled and unreleased. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + + Returns + ------- + Union[GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, GrantaServerApiSchemaTablesTable, None] + """ + 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] + + def _v1alpha_databases_database_key_tables_table_guidrelease_post_with_http_info( + self, database_key: "str", table_guid: "str", **kwargs + ): + all_params = [ + "database_key", + "table_guid", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method v1alpha_databases_database_key_tables_table_guidrelease_post" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'v1alpha_databases_database_key_tables_table_guidrelease_post'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'v1alpha_databases_database_key_tables_table_guidrelease_post'" + ) + + collection_formats = {} + + path_params = {} + 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 = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept( + ["application/json"] + ) + + response_type_map = { + 200: "GrantaServerApiSchemaTablesTable", + 400: "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException", + 403: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}:release", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) 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 bffba720..1d087937 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 @@ -223,6 +223,9 @@ from .granta_server_api_async_jobs_create_job_request import ( GrantaServerApiAsyncJobsCreateJobRequest, ) +from .granta_server_api_async_jobs_current_user import ( + GrantaServerApiAsyncJobsCurrentUser, +) from .granta_server_api_async_jobs_get_jobs_response import ( GrantaServerApiAsyncJobsGetJobsResponse, ) @@ -238,6 +241,11 @@ GrantaServerApiAsyncJobsUpdateJobRequest, ) from .granta_server_api_attribute_type import GrantaServerApiAttributeType +from .granta_server_api_data_applicable_datum import GrantaServerApiDataApplicableDatum +from .granta_server_api_data_date_time_datum import GrantaServerApiDataDateTimeDatum +from .granta_server_api_data_datum import GrantaServerApiDataDatum +from .granta_server_api_data_datum_type import GrantaServerApiDataDatumType +from .granta_server_api_data_discrete_datum import GrantaServerApiDataDiscreteDatum from .granta_server_api_data_export_attribute_to_export import ( GrantaServerApiDataExportAttributeToExport, ) @@ -484,31 +492,88 @@ from .granta_server_api_data_export_tabular_row_export_behaviour import ( GrantaServerApiDataExportTabularRowExportBehaviour, ) +from .granta_server_api_data_hyperlink_datum import GrantaServerApiDataHyperlinkDatum +from .granta_server_api_data_hyperlink_target import GrantaServerApiDataHyperlinkTarget +from .granta_server_api_data_integer_datum import GrantaServerApiDataIntegerDatum +from .granta_server_api_data_logical_datum import GrantaServerApiDataLogicalDatum +from .granta_server_api_data_long_text_datum import GrantaServerApiDataLongTextDatum +from .granta_server_api_data_not_applicable_datum import ( + GrantaServerApiDataNotApplicableDatum, +) +from .granta_server_api_data_range_datum import GrantaServerApiDataRangeDatum +from .granta_server_api_data_rich_text_type import GrantaServerApiDataRichTextType +from .granta_server_api_data_rich_text_value import GrantaServerApiDataRichTextValue +from .granta_server_api_data_short_text_datum import GrantaServerApiDataShortTextDatum +from .granta_server_api_data_significant_figures_info import ( + GrantaServerApiDataSignificantFiguresInfo, +) from .granta_server_api_discrete_value import GrantaServerApiDiscreteValue from .granta_server_api_disk_status import GrantaServerApiDiskStatus -from .granta_server_api_exceptions_attribute_deletion_exception import ( - GrantaServerApiExceptionsAttributeDeletionException, +from .granta_server_api_exceptions_data_modification_data_modification_error_detail import ( + GrantaServerApiExceptionsDataModificationDataModificationErrorDetail, +) +from .granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail import ( + GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail, +) +from .granta_server_api_exceptions_data_modification_referenced_by_type import ( + GrantaServerApiExceptionsDataModificationReferencedByType, +) +from .granta_server_api_exceptions_deletion_attribute_deletion_exception import ( + GrantaServerApiExceptionsDeletionAttributeDeletionException, ) -from .granta_server_api_exceptions_constant_deletion_exception import ( - GrantaServerApiExceptionsConstantDeletionException, +from .granta_server_api_exceptions_deletion_constant_deletion_exception import ( + GrantaServerApiExceptionsDeletionConstantDeletionException, ) -from .granta_server_api_exceptions_discrete_type_deletion_exception import ( - GrantaServerApiExceptionsDiscreteTypeDeletionException, +from .granta_server_api_exceptions_deletion_discrete_type_deletion_exception import ( + GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException, ) -from .granta_server_api_exceptions_discrete_value_deletion_exception import ( - GrantaServerApiExceptionsDiscreteValueDeletionException, +from .granta_server_api_exceptions_deletion_discrete_value_deletion_exception import ( + GrantaServerApiExceptionsDeletionDiscreteValueDeletionException, +) +from .granta_server_api_exceptions_deletion_parameter_deletion_exception import ( + GrantaServerApiExceptionsDeletionParameterDeletionException, +) +from .granta_server_api_exceptions_deletion_parameter_value_deletion_exception import ( + GrantaServerApiExceptionsDeletionParameterValueDeletionException, +) +from .granta_server_api_exceptions_deletion_table_deletion_exception import ( + GrantaServerApiExceptionsDeletionTableDeletionException, ) from .granta_server_api_exceptions_error_detail import ( GrantaServerApiExceptionsErrorDetail, ) -from .granta_server_api_exceptions_parameter_deletion_exception import ( - GrantaServerApiExceptionsParameterDeletionException, +from .granta_server_api_exceptions_record_history_record_history_copy_exception import ( + GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException, +) +from .granta_server_api_exceptions_record_history_record_history_move_exception import ( + GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException, ) -from .granta_server_api_exceptions_parameter_value_deletion_exception import ( - GrantaServerApiExceptionsParameterValueDeletionException, +from .granta_server_api_exceptions_version_control_create_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, ) -from .granta_server_api_exceptions_table_deletion_exception import ( - GrantaServerApiExceptionsTableDeletionException, +from .granta_server_api_exceptions_version_control_invalid_parent_state_error_detail import ( + GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail, +) +from .granta_server_api_exceptions_version_control_invalid_version_state_error_detail import ( + GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail, +) +from .granta_server_api_exceptions_version_control_not_the_latest_version_error_detail import ( + GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail, +) +from .granta_server_api_exceptions_version_control_not_versioned_error_detail import ( + GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail, +) +from .granta_server_api_exceptions_version_control_release_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, +) +from .granta_server_api_exceptions_version_control_release_table_version_control_exception import ( + GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, +) +from .granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) +from .granta_server_api_exceptions_version_control_withdraw_record_version_control_exception import ( + GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, ) from .granta_server_api_exclude_values_specifier import ( GrantaServerApiExcludeValuesSpecifier, @@ -576,6 +641,21 @@ GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier, ) from .granta_server_api_link_attribute_type import GrantaServerApiLinkAttributeType +from .granta_server_api_lists_dto_create_list_item import ( + GrantaServerApiListsDtoCreateListItem, +) +from .granta_server_api_lists_dto_create_record_list import ( + GrantaServerApiListsDtoCreateRecordList, +) +from .granta_server_api_lists_dto_create_record_list_items_info import ( + GrantaServerApiListsDtoCreateRecordListItemsInfo, +) +from .granta_server_api_lists_dto_delete_record_list_item import ( + GrantaServerApiListsDtoDeleteRecordListItem, +) +from .granta_server_api_lists_dto_delete_record_list_items import ( + GrantaServerApiListsDtoDeleteRecordListItems, +) from .granta_server_api_lists_dto_list_boolean_criterion import ( GrantaServerApiListsDtoListBooleanCriterion, ) @@ -586,20 +666,17 @@ from .granta_server_api_lists_dto_paging_options import ( GrantaServerApiListsDtoPagingOptions, ) -from .granta_server_api_lists_dto_record_list_create import ( - GrantaServerApiListsDtoRecordListCreate, -) from .granta_server_api_lists_dto_record_list_header import ( GrantaServerApiListsDtoRecordListHeader, ) -from .granta_server_api_lists_dto_record_list_items import ( - GrantaServerApiListsDtoRecordListItems, +from .granta_server_api_lists_dto_record_list_headers_info import ( + GrantaServerApiListsDtoRecordListHeadersInfo, ) -from .granta_server_api_lists_dto_record_list_permission_flags_dto import ( - GrantaServerApiListsDtoRecordListPermissionFlagsDto, +from .granta_server_api_lists_dto_record_list_items_info import ( + GrantaServerApiListsDtoRecordListItemsInfo, ) -from .granta_server_api_lists_dto_record_list_properties import ( - GrantaServerApiListsDtoRecordListProperties, +from .granta_server_api_lists_dto_record_list_permission_flags import ( + GrantaServerApiListsDtoRecordListPermissionFlags, ) from .granta_server_api_lists_dto_record_list_search_criterion import ( GrantaServerApiListsDtoRecordListSearchCriterion, @@ -613,17 +690,32 @@ from .granta_server_api_lists_dto_record_list_search_result import ( GrantaServerApiListsDtoRecordListSearchResult, ) +from .granta_server_api_lists_dto_record_list_search_results_info import ( + GrantaServerApiListsDtoRecordListSearchResultsInfo, +) from .granta_server_api_lists_dto_response_options import ( GrantaServerApiListsDtoResponseOptions, ) +from .granta_server_api_lists_dto_update_record_list_permission_flags import ( + GrantaServerApiListsDtoUpdateRecordListPermissionFlags, +) +from .granta_server_api_lists_dto_update_record_list_properties import ( + GrantaServerApiListsDtoUpdateRecordListProperties, +) +from .granta_server_api_lists_dto_update_user_permission import ( + GrantaServerApiListsDtoUpdateUserPermission, +) +from .granta_server_api_lists_dto_update_user_permissions_info import ( + GrantaServerApiListsDtoUpdateUserPermissionsInfo, +) from .granta_server_api_lists_dto_user_or_group import ( GrantaServerApiListsDtoUserOrGroup, ) -from .granta_server_api_lists_dto_user_permission_dto import ( - GrantaServerApiListsDtoUserPermissionDto, +from .granta_server_api_lists_dto_user_permission import ( + GrantaServerApiListsDtoUserPermission, ) -from .granta_server_api_lists_dto_user_permission_input_dto import ( - GrantaServerApiListsDtoUserPermissionInputDto, +from .granta_server_api_lists_dto_user_permissions_info import ( + GrantaServerApiListsDtoUserPermissionsInfo, ) from .granta_server_api_lists_dto_user_role import GrantaServerApiListsDtoUserRole from .granta_server_api_no_values_specifier import GrantaServerApiNoValuesSpecifier @@ -641,6 +733,15 @@ from .granta_server_api_record_color import GrantaServerApiRecordColor from .granta_server_api_record_property import GrantaServerApiRecordProperty from .granta_server_api_record_type import GrantaServerApiRecordType +from .granta_server_api_records_record_histories_copy_record_history import ( + GrantaServerApiRecordsRecordHistoriesCopyRecordHistory, +) +from .granta_server_api_records_record_histories_create_record_history import ( + GrantaServerApiRecordsRecordHistoriesCreateRecordHistory, +) +from .granta_server_api_records_record_histories_move_record_history import ( + GrantaServerApiRecordsRecordHistoriesMoveRecordHistory, +) from .granta_server_api_records_record_histories_record_history import ( GrantaServerApiRecordsRecordHistoriesRecordHistory, ) @@ -1273,9 +1374,15 @@ from .granta_server_api_schema_standard_names_update_standard_name import ( GrantaServerApiSchemaStandardNamesUpdateStandardName, ) +from .granta_server_api_schema_subsets_add_record_history_to_subset import ( + GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset, +) from .granta_server_api_schema_subsets_create_subset import ( GrantaServerApiSchemaSubsetsCreateSubset, ) +from .granta_server_api_schema_subsets_remove_record_history_from_subset import ( + GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset, +) from .granta_server_api_schema_subsets_subset import GrantaServerApiSchemaSubsetsSubset from .granta_server_api_schema_subsets_subsets_info import ( GrantaServerApiSchemaSubsetsSubsetsInfo, @@ -1591,6 +1698,18 @@ from .granta_server_api_search_linking_value_match_behaviour import ( GrantaServerApiSearchLinkingValueMatchBehaviour, ) +from .granta_server_api_search_local_column_criterion import ( + GrantaServerApiSearchLocalColumnCriterion, +) +from .granta_server_api_search_local_column_exists_criterion import ( + GrantaServerApiSearchLocalColumnExistsCriterion, +) +from .granta_server_api_search_local_column_matches_criterion import ( + GrantaServerApiSearchLocalColumnMatchesCriterion, +) +from .granta_server_api_search_local_column_not_applicable_criterion import ( + GrantaServerApiSearchLocalColumnNotApplicableCriterion, +) from .granta_server_api_search_local_rows_behaviour import ( GrantaServerApiSearchLocalRowsBehaviour, ) 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 new file mode 100644 index 00000000..6149e4b3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_async_jobs_current_user.py @@ -0,0 +1,176 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiAsyncJobsCurrentUser(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "has_write_access": "bool", + "is_admin": "bool", + "username": "str", + } + + attribute_map = { + "has_write_access": "hasWriteAccess", + "is_admin": "isAdmin", + "username": "username", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + has_write_access: "Optional[bool]" = None, + is_admin: "Optional[bool]" = None, + username: "Optional[str]" = None, + ) -> None: + """GrantaServerApiAsyncJobsCurrentUser - a model defined in Swagger + + Parameters + ---------- + has_write_access: bool, optional + is_admin: bool, optional + username: str, optional + """ + self._is_admin = None + self._username = None + self._has_write_access = None + + if is_admin is not None: + self.is_admin = is_admin + if username is not None: + self.username = username + if has_write_access is not None: + self.has_write_access = has_write_access + + @property + def is_admin(self) -> "bool": + """Gets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. + + Returns + ------- + bool + The is_admin of this GrantaServerApiAsyncJobsCurrentUser. + """ + return self._is_admin + + @is_admin.setter + def is_admin(self, is_admin: "bool") -> None: + """Sets the is_admin of this GrantaServerApiAsyncJobsCurrentUser. + + Parameters + ---------- + is_admin: bool + The is_admin of this GrantaServerApiAsyncJobsCurrentUser. + """ + self._is_admin = is_admin + + @property + def username(self) -> "str": + """Gets the username of this GrantaServerApiAsyncJobsCurrentUser. + + Returns + ------- + str + The username of this GrantaServerApiAsyncJobsCurrentUser. + """ + return self._username + + @username.setter + def username(self, username: "str") -> None: + """Sets the username of this GrantaServerApiAsyncJobsCurrentUser. + + Parameters + ---------- + username: str + The username of this GrantaServerApiAsyncJobsCurrentUser. + """ + self._username = username + + @property + def has_write_access(self) -> "bool": + """Gets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. + + Returns + ------- + bool + The has_write_access of this GrantaServerApiAsyncJobsCurrentUser. + """ + return self._has_write_access + + @has_write_access.setter + def has_write_access(self, has_write_access: "bool") -> None: + """Sets the has_write_access of this GrantaServerApiAsyncJobsCurrentUser. + + Parameters + ---------- + has_write_access: bool + The has_write_access of this GrantaServerApiAsyncJobsCurrentUser. + """ + self._has_write_access = has_write_access + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAsyncJobsCurrentUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py new file mode 100644 index 00000000..d0509a02 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_applicable_datum.py @@ -0,0 +1,142 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( + GrantaServerApiDataDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataApplicableDatum(GrantaServerApiDataDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator_class_map: Dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "not_applicable": "str", + } + + attribute_map = { + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator_value_class_map = { + "integer".lower(): "#/components/schemas/GrantaServerApiDataIntegerDatum", + "logical".lower(): "#/components/schemas/GrantaServerApiDataLogicalDatum", + "shortText".lower(): "#/components/schemas/GrantaServerApiDataShortTextDatum", + "longText".lower(): "#/components/schemas/GrantaServerApiDataLongTextDatum", + "hyperlink".lower(): "#/components/schemas/GrantaServerApiDataHyperlinkDatum", + "dateTime".lower(): "#/components/schemas/GrantaServerApiDataDateTimeDatum", + "discrete".lower(): "#/components/schemas/GrantaServerApiDataDiscreteDatum", + "range".lower(): "#/components/schemas/GrantaServerApiDataRangeDatum", + } + + discriminator = "datum_type" + + def __init__( + self, + *, + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataApplicableDatum - a model defined in Swagger + + Parameters + ---------- + not_applicable: str + """ + super().__init__() + self._not_applicable = None + + self.not_applicable = not_applicable + + @property + def not_applicable(self) -> "str": + """Gets the not_applicable of this GrantaServerApiDataApplicableDatum. + + Returns + ------- + str + The not_applicable of this GrantaServerApiDataApplicableDatum. + """ + return self._not_applicable + + @not_applicable.setter + def not_applicable(self, not_applicable: "str") -> None: + """Sets the not_applicable of this GrantaServerApiDataApplicableDatum. + + Parameters + ---------- + not_applicable: str + The not_applicable of this GrantaServerApiDataApplicableDatum. + """ + if not_applicable is None: + raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + self._not_applicable = not_applicable + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map.get(discriminator_value).rsplit( + "/", 1 + )[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataApplicableDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py new file mode 100644 index 00000000..e214eb24 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_date_time_datum.py @@ -0,0 +1,157 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataDateTimeDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "date_time": "datetime", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "date_time": "dateTime", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + date_time: "datetime", + datum_type: "str" = "dateTime", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataDateTimeDatum - a model defined in Swagger + + Parameters + ---------- + date_time: datetime + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._date_time = None + + self.datum_type = datum_type + self.date_time = date_time + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataDateTimeDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataDateTimeDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataDateTimeDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataDateTimeDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def date_time(self) -> "datetime": + """Gets the date_time of this GrantaServerApiDataDateTimeDatum. + + Returns + ------- + datetime + The date_time of this GrantaServerApiDataDateTimeDatum. + """ + return self._date_time + + @date_time.setter + def date_time(self, date_time: "datetime") -> None: + """Sets the date_time of this GrantaServerApiDataDateTimeDatum. + + Parameters + ---------- + date_time: datetime + The date_time of this GrantaServerApiDataDateTimeDatum. + """ + if date_time is None: + raise ValueError("Invalid value for 'date_time', must not be 'None'") + self._date_time = date_time + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataDateTimeDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py new file mode 100644 index 00000000..d12b7044 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum.py @@ -0,0 +1,94 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataDatum(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator_class_map: Dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = {} + + attribute_map = {} + + subtype_mapping = {} + + discriminator_value_class_map = { + "applicable".lower(): "#/components/schemas/GrantaServerApiDataApplicableDatum", + "notApplicable".lower(): "#/components/schemas/GrantaServerApiDataNotApplicableDatum", + } + + discriminator = "not_applicable" + + def __init__( + self, + ) -> None: + """GrantaServerApiDataDatum - a model defined in Swagger""" + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map.get(discriminator_value).rsplit( + "/", 1 + )[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py new file mode 100644 index 00000000..8c5fef9d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_datum_type.py @@ -0,0 +1,30 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from enum import Enum + + +class GrantaServerApiDataDatumType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + INTEGER = "integer" + LOGICAL = "logical" + SHORTTEXT = "shortText" + LONGTEXT = "longText" + HYPERLINK = "hyperlink" + DATETIME = "dateTime" + DISCRETE = "discrete" + RANGE = "range" 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 new file mode 100644 index 00000000..f786ab3e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_discrete_datum.py @@ -0,0 +1,163 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataDiscreteDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "discrete_values": "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "discrete_values": "discreteValues", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = { + "discreteValues": "GrantaServerApiSchemaDiscreteValuesDiscreteValue", + } + + discriminator = None + + def __init__( + self, + *, + discrete_values: "List[GrantaServerApiSchemaDiscreteValuesDiscreteValue]", + datum_type: "str" = "discrete", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataDiscreteDatum - a model defined in Swagger + + Parameters + ---------- + discrete_values: List[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._discrete_values = None + + self.datum_type = datum_type + self.discrete_values = discrete_values + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataDiscreteDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataDiscreteDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataDiscreteDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataDiscreteDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def discrete_values( + self, + ) -> "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]": + """Gets the discrete_values of this GrantaServerApiDataDiscreteDatum. + + Returns + ------- + list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + The discrete_values of this GrantaServerApiDataDiscreteDatum. + """ + return self._discrete_values + + @discrete_values.setter + def discrete_values( + self, discrete_values: "list[GrantaServerApiSchemaDiscreteValuesDiscreteValue]" + ) -> None: + """Sets the discrete_values of this GrantaServerApiDataDiscreteDatum. + + Parameters + ---------- + discrete_values: list[GrantaServerApiSchemaDiscreteValuesDiscreteValue] + The discrete_values of this GrantaServerApiDataDiscreteDatum. + """ + if discrete_values is None: + raise ValueError("Invalid value for 'discrete_values', must not be 'None'") + self._discrete_values = discrete_values + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataDiscreteDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py new file mode 100644 index 00000000..ae8d6eda --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_datum.py @@ -0,0 +1,219 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataHyperlinkDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "address": "str", + "description": "str", + "target": "GrantaServerApiDataHyperlinkTarget", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "address": "address", + "description": "description", + "target": "target", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = { + "target": "GrantaServerApiDataHyperlinkTarget", + } + + discriminator = None + + def __init__( + self, + *, + address: "str", + description: "str", + target: "GrantaServerApiDataHyperlinkTarget", + datum_type: "str" = "hyperlink", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataHyperlinkDatum - a model defined in Swagger + + Parameters + ---------- + address: str + description: str + target: GrantaServerApiDataHyperlinkTarget + datum_type: str + 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 = datum_type + self.address = address + self.description = description + self.target = target + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataHyperlinkDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataHyperlinkDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataHyperlinkDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataHyperlinkDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def address(self) -> "str": + """Gets the address of this GrantaServerApiDataHyperlinkDatum. + + Returns + ------- + str + The address of this GrantaServerApiDataHyperlinkDatum. + """ + return self._address + + @address.setter + def address(self, address: "str") -> None: + """Sets the address of this GrantaServerApiDataHyperlinkDatum. + + Parameters + ---------- + address: str + The address of this GrantaServerApiDataHyperlinkDatum. + """ + if address is None: + raise ValueError("Invalid value for 'address', must not be 'None'") + self._address = address + + @property + def description(self) -> "str": + """Gets the description of this GrantaServerApiDataHyperlinkDatum. + + Returns + ------- + str + The description of this GrantaServerApiDataHyperlinkDatum. + """ + return self._description + + @description.setter + def description(self, description: "str") -> None: + """Sets the description of this GrantaServerApiDataHyperlinkDatum. + + Parameters + ---------- + description: str + The description of this GrantaServerApiDataHyperlinkDatum. + """ + if description is None: + raise ValueError("Invalid value for 'description', must not be 'None'") + self._description = description + + @property + def target(self) -> "GrantaServerApiDataHyperlinkTarget": + """Gets the target of this GrantaServerApiDataHyperlinkDatum. + + Returns + ------- + GrantaServerApiDataHyperlinkTarget + The target of this GrantaServerApiDataHyperlinkDatum. + """ + return self._target + + @target.setter + def target(self, target: "GrantaServerApiDataHyperlinkTarget") -> None: + """Sets the target of this GrantaServerApiDataHyperlinkDatum. + + Parameters + ---------- + target: GrantaServerApiDataHyperlinkTarget + The target of this GrantaServerApiDataHyperlinkDatum. + """ + if target is None: + raise ValueError("Invalid value for 'target', must not be 'None'") + self._target = target + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataHyperlinkDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py new file mode 100644 index 00000000..c44be81b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_hyperlink_target.py @@ -0,0 +1,28 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from enum import Enum + + +class GrantaServerApiDataHyperlinkTarget(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + NEWWINDOW = "newWindow" + TOP = "top" + PARENT = "parent" + TREE = "tree" + CONTENT = "content" + CURRENTFRAME = "currentFrame" 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 new file mode 100644 index 00000000..ca1013c8 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_integer_datum.py @@ -0,0 +1,157 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataIntegerDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "value": "int", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "value": "value", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + value: "int", + datum_type: "str" = "integer", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataIntegerDatum - a model defined in Swagger + + Parameters + ---------- + value: int + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._value = None + + self.datum_type = datum_type + self.value = value + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataIntegerDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataIntegerDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataIntegerDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataIntegerDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def value(self) -> "int": + """Gets the value of this GrantaServerApiDataIntegerDatum. + + Returns + ------- + int + The value of this GrantaServerApiDataIntegerDatum. + """ + return self._value + + @value.setter + def value(self, value: "int") -> None: + """Sets the value of this GrantaServerApiDataIntegerDatum. + + Parameters + ---------- + value: int + The value of this GrantaServerApiDataIntegerDatum. + """ + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") + self._value = value + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataIntegerDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py new file mode 100644 index 00000000..456d4fce --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_logical_datum.py @@ -0,0 +1,157 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataLogicalDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "value": "bool", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "value": "value", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + value: "bool", + datum_type: "str" = "logical", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataLogicalDatum - a model defined in Swagger + + Parameters + ---------- + value: bool + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._value = None + + self.datum_type = datum_type + self.value = value + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataLogicalDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataLogicalDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataLogicalDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataLogicalDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def value(self) -> "bool": + """Gets the value of this GrantaServerApiDataLogicalDatum. + + Returns + ------- + bool + The value of this GrantaServerApiDataLogicalDatum. + """ + return self._value + + @value.setter + def value(self, value: "bool") -> None: + """Sets the value of this GrantaServerApiDataLogicalDatum. + + Parameters + ---------- + value: bool + The value of this GrantaServerApiDataLogicalDatum. + """ + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") + self._value = value + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataLogicalDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py new file mode 100644 index 00000000..fa08d954 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_long_text_datum.py @@ -0,0 +1,161 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataLongTextDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "rich_text_value": "GrantaServerApiDataRichTextValue", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "rich_text_value": "richTextValue", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = { + "richTextValue": "GrantaServerApiDataRichTextValue", + } + + discriminator = None + + def __init__( + self, + *, + rich_text_value: "GrantaServerApiDataRichTextValue", + datum_type: "str" = "longText", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataLongTextDatum - a model defined in Swagger + + Parameters + ---------- + rich_text_value: GrantaServerApiDataRichTextValue + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._rich_text_value = None + + self.datum_type = datum_type + self.rich_text_value = rich_text_value + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataLongTextDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataLongTextDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataLongTextDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataLongTextDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def rich_text_value(self) -> "GrantaServerApiDataRichTextValue": + """Gets the rich_text_value of this GrantaServerApiDataLongTextDatum. + + Returns + ------- + GrantaServerApiDataRichTextValue + The rich_text_value of this GrantaServerApiDataLongTextDatum. + """ + return self._rich_text_value + + @rich_text_value.setter + def rich_text_value( + self, rich_text_value: "GrantaServerApiDataRichTextValue" + ) -> None: + """Sets the rich_text_value of this GrantaServerApiDataLongTextDatum. + + Parameters + ---------- + rich_text_value: GrantaServerApiDataRichTextValue + The rich_text_value of this GrantaServerApiDataLongTextDatum. + """ + if rich_text_value is None: + raise ValueError("Invalid value for 'rich_text_value', must not be 'None'") + self._rich_text_value = rich_text_value + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataLongTextDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py new file mode 100644 index 00000000..47acb1cc --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_not_applicable_datum.py @@ -0,0 +1,123 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_datum import ( + GrantaServerApiDataDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataNotApplicableDatum(GrantaServerApiDataDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "not_applicable": "str", + } + + attribute_map = { + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + not_applicable: "str" = "notApplicable", + ) -> None: + """GrantaServerApiDataNotApplicableDatum - a model defined in Swagger + + Parameters + ---------- + not_applicable: str + """ + super().__init__() + self._not_applicable = None + + self.not_applicable = not_applicable + + @property + def not_applicable(self) -> "str": + """Gets the not_applicable of this GrantaServerApiDataNotApplicableDatum. + + Returns + ------- + str + The not_applicable of this GrantaServerApiDataNotApplicableDatum. + """ + return self._not_applicable + + @not_applicable.setter + def not_applicable(self, not_applicable: "str") -> None: + """Sets the not_applicable of this GrantaServerApiDataNotApplicableDatum. + + Parameters + ---------- + not_applicable: str + The not_applicable of this GrantaServerApiDataNotApplicableDatum. + """ + if not_applicable is None: + raise ValueError("Invalid value for 'not_applicable', must not be 'None'") + self._not_applicable = not_applicable + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataNotApplicableDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py new file mode 100644 index 00000000..c8cd3a54 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_range_datum.py @@ -0,0 +1,384 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataRangeDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "estimated": "bool", + "high_value": "float", + "high_value_is_inclusive": "bool", + "low_value": "float", + "low_value_is_inclusive": "bool", + "datum_type": "str", + "high_value_significant_figures_info": "GrantaServerApiDataSignificantFiguresInfo", + "low_value_significant_figures_info": "GrantaServerApiDataSignificantFiguresInfo", + "not_applicable": "str", + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + attribute_map = { + "estimated": "estimated", + "high_value": "highValue", + "high_value_is_inclusive": "highValueIsInclusive", + "low_value": "lowValue", + "low_value_is_inclusive": "lowValueIsInclusive", + "datum_type": "datumType", + "high_value_significant_figures_info": "highValueSignificantFiguresInfo", + "low_value_significant_figures_info": "lowValueSignificantFiguresInfo", + "not_applicable": "notApplicable", + "unit": "unit", + } + + subtype_mapping = { + "lowValueSignificantFiguresInfo": "GrantaServerApiDataSignificantFiguresInfo", + "highValueSignificantFiguresInfo": "GrantaServerApiDataSignificantFiguresInfo", + "unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + discriminator = None + + def __init__( + self, + *, + estimated: "bool", + high_value: "float", + high_value_is_inclusive: "bool", + low_value: "float", + low_value_is_inclusive: "bool", + datum_type: "str" = "range", + high_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, + low_value_significant_figures_info: "Optional[GrantaServerApiDataSignificantFiguresInfo]" = None, + not_applicable: "str" = "applicable", + unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + ) -> None: + """GrantaServerApiDataRangeDatum - a model defined in Swagger + + Parameters + ---------- + estimated: bool + high_value: float + high_value_is_inclusive: bool + low_value: float + low_value_is_inclusive: bool + datum_type: str + high_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + low_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo, optional + not_applicable: str + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + """ + 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._low_value_significant_figures_info = None + self._high_value_significant_figures_info = None + self._estimated = None + self._unit = None + + self.datum_type = datum_type + self.low_value = low_value + self.high_value = high_value + self.low_value_is_inclusive = low_value_is_inclusive + self.high_value_is_inclusive = high_value_is_inclusive + if low_value_significant_figures_info is not None: + self.low_value_significant_figures_info = low_value_significant_figures_info + if high_value_significant_figures_info is not None: + self.high_value_significant_figures_info = ( + high_value_significant_figures_info + ) + self.estimated = estimated + if unit is not None: + self.unit = unit + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataRangeDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataRangeDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataRangeDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def low_value(self) -> "float": + """Gets the low_value of this GrantaServerApiDataRangeDatum. + + Returns + ------- + float + The low_value of this GrantaServerApiDataRangeDatum. + """ + return self._low_value + + @low_value.setter + def low_value(self, low_value: "float") -> None: + """Sets the low_value of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + low_value: float + The low_value of this GrantaServerApiDataRangeDatum. + """ + if low_value is None: + raise ValueError("Invalid value for 'low_value', must not be 'None'") + self._low_value = low_value + + @property + def high_value(self) -> "float": + """Gets the high_value of this GrantaServerApiDataRangeDatum. + + Returns + ------- + float + The high_value of this GrantaServerApiDataRangeDatum. + """ + return self._high_value + + @high_value.setter + def high_value(self, high_value: "float") -> None: + """Sets the high_value of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + high_value: float + The high_value of this GrantaServerApiDataRangeDatum. + """ + if high_value is None: + raise ValueError("Invalid value for 'high_value', must not be 'None'") + self._high_value = high_value + + @property + def low_value_is_inclusive(self) -> "bool": + """Gets the low_value_is_inclusive of this GrantaServerApiDataRangeDatum. + + Returns + ------- + bool + The low_value_is_inclusive of this GrantaServerApiDataRangeDatum. + """ + return self._low_value_is_inclusive + + @low_value_is_inclusive.setter + def low_value_is_inclusive(self, low_value_is_inclusive: "bool") -> None: + """Sets the low_value_is_inclusive of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + low_value_is_inclusive: bool + The low_value_is_inclusive of this GrantaServerApiDataRangeDatum. + """ + if low_value_is_inclusive is None: + raise ValueError( + "Invalid value for 'low_value_is_inclusive', must not be 'None'" + ) + self._low_value_is_inclusive = low_value_is_inclusive + + @property + def high_value_is_inclusive(self) -> "bool": + """Gets the high_value_is_inclusive of this GrantaServerApiDataRangeDatum. + + Returns + ------- + bool + The high_value_is_inclusive of this GrantaServerApiDataRangeDatum. + """ + return self._high_value_is_inclusive + + @high_value_is_inclusive.setter + def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: + """Sets the high_value_is_inclusive of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + high_value_is_inclusive: bool + The high_value_is_inclusive of this GrantaServerApiDataRangeDatum. + """ + if high_value_is_inclusive is None: + raise ValueError( + "Invalid value for 'high_value_is_inclusive', must not be 'None'" + ) + self._high_value_is_inclusive = high_value_is_inclusive + + @property + def low_value_significant_figures_info( + self, + ) -> "GrantaServerApiDataSignificantFiguresInfo": + """Gets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + + Returns + ------- + GrantaServerApiDataSignificantFiguresInfo + The low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + """ + return self._low_value_significant_figures_info + + @low_value_significant_figures_info.setter + def low_value_significant_figures_info( + self, + low_value_significant_figures_info: "GrantaServerApiDataSignificantFiguresInfo", + ) -> None: + """Sets the low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + low_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + The low_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + """ + self._low_value_significant_figures_info = low_value_significant_figures_info + + @property + def high_value_significant_figures_info( + self, + ) -> "GrantaServerApiDataSignificantFiguresInfo": + """Gets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + + Returns + ------- + GrantaServerApiDataSignificantFiguresInfo + The high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + """ + return self._high_value_significant_figures_info + + @high_value_significant_figures_info.setter + def high_value_significant_figures_info( + self, + high_value_significant_figures_info: "GrantaServerApiDataSignificantFiguresInfo", + ) -> None: + """Sets the high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + high_value_significant_figures_info: GrantaServerApiDataSignificantFiguresInfo + The high_value_significant_figures_info of this GrantaServerApiDataRangeDatum. + """ + self._high_value_significant_figures_info = high_value_significant_figures_info + + @property + def estimated(self) -> "bool": + """Gets the estimated of this GrantaServerApiDataRangeDatum. + + Returns + ------- + bool + The estimated of this GrantaServerApiDataRangeDatum. + """ + return self._estimated + + @estimated.setter + def estimated(self, estimated: "bool") -> None: + """Sets the estimated of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + estimated: bool + The estimated of this GrantaServerApiDataRangeDatum. + """ + if estimated is None: + raise ValueError("Invalid value for 'estimated', must not be 'None'") + self._estimated = estimated + + @property + def unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + """Gets the unit of this GrantaServerApiDataRangeDatum. + + Returns + ------- + GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataRangeDatum. + """ + return self._unit + + @unit.setter + def unit(self, unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit") -> None: + """Sets the unit of this GrantaServerApiDataRangeDatum. + + Parameters + ---------- + unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + The unit of this GrantaServerApiDataRangeDatum. + """ + self._unit = unit + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataRangeDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py new file mode 100644 index 00000000..454054e0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_type.py @@ -0,0 +1,24 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from enum import Enum + + +class GrantaServerApiDataRichTextType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + PLAIN = "plain" + MARKDOWN = "markdown" 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 new file mode 100644 index 00000000..69d0fb06 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_rich_text_value.py @@ -0,0 +1,151 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataRichTextValue(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "text": "str", + "type": "GrantaServerApiDataRichTextType", + } + + attribute_map = { + "text": "text", + "type": "type", + } + + subtype_mapping = { + "type": "GrantaServerApiDataRichTextType", + } + + discriminator = None + + def __init__( + self, + *, + text: "str", + type: "GrantaServerApiDataRichTextType", + ) -> None: + """GrantaServerApiDataRichTextValue - a model defined in Swagger + + Parameters + ---------- + text: str + type: GrantaServerApiDataRichTextType + """ + self._text = None + self._type = None + + self.text = text + self.type = type + + @property + def text(self) -> "str": + """Gets the text of this GrantaServerApiDataRichTextValue. + + Returns + ------- + str + The text of this GrantaServerApiDataRichTextValue. + """ + return self._text + + @text.setter + def text(self, text: "str") -> None: + """Sets the text of this GrantaServerApiDataRichTextValue. + + Parameters + ---------- + text: str + The text of this GrantaServerApiDataRichTextValue. + """ + if text is None: + raise ValueError("Invalid value for 'text', must not be 'None'") + self._text = text + + @property + def type(self) -> "GrantaServerApiDataRichTextType": + """Gets the type of this GrantaServerApiDataRichTextValue. + + Returns + ------- + GrantaServerApiDataRichTextType + The type of this GrantaServerApiDataRichTextValue. + """ + return self._type + + @type.setter + def type(self, type: "GrantaServerApiDataRichTextType") -> None: + """Sets the type of this GrantaServerApiDataRichTextValue. + + Parameters + ---------- + type: GrantaServerApiDataRichTextType + The type of this GrantaServerApiDataRichTextValue. + """ + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + self._type = type + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataRichTextValue): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py new file mode 100644 index 00000000..449a65c8 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_short_text_datum.py @@ -0,0 +1,157 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_applicable_datum import ( + GrantaServerApiDataApplicableDatum, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataShortTextDatum(GrantaServerApiDataApplicableDatum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "value": "str", + "datum_type": "str", + "not_applicable": "str", + } + + attribute_map = { + "value": "value", + "datum_type": "datumType", + "not_applicable": "notApplicable", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + value: "str", + datum_type: "str" = "shortText", + not_applicable: "str" = "applicable", + ) -> None: + """GrantaServerApiDataShortTextDatum - a model defined in Swagger + + Parameters + ---------- + value: str + datum_type: str + not_applicable: str + """ + super().__init__(not_applicable=not_applicable) + self._datum_type = None + self._value = None + + self.datum_type = datum_type + self.value = value + + @property + def datum_type(self) -> "str": + """Gets the datum_type of this GrantaServerApiDataShortTextDatum. + + Returns + ------- + str + The datum_type of this GrantaServerApiDataShortTextDatum. + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type: "str") -> None: + """Sets the datum_type of this GrantaServerApiDataShortTextDatum. + + Parameters + ---------- + datum_type: str + The datum_type of this GrantaServerApiDataShortTextDatum. + """ + if datum_type is None: + raise ValueError("Invalid value for 'datum_type', must not be 'None'") + self._datum_type = datum_type + + @property + def value(self) -> "str": + """Gets the value of this GrantaServerApiDataShortTextDatum. + + Returns + ------- + str + The value of this GrantaServerApiDataShortTextDatum. + """ + return self._value + + @value.setter + def value(self, value: "str") -> None: + """Sets the value of this GrantaServerApiDataShortTextDatum. + + Parameters + ---------- + value: str + The value of this GrantaServerApiDataShortTextDatum. + """ + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") + self._value = value + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataShortTextDatum): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py new file mode 100644 index 00000000..32b726ea --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_significant_figures_info.py @@ -0,0 +1,184 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiDataSignificantFiguresInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "entered_value": "float", + "significant_figures": "int", + "entered_unit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + attribute_map = { + "entered_value": "enteredValue", + "significant_figures": "significantFigures", + "entered_unit": "enteredUnit", + } + + subtype_mapping = { + "enteredUnit": "GrantaServerApiSchemaSlimEntitiesSlimUnit", + } + + discriminator = None + + def __init__( + self, + *, + entered_value: "float", + significant_figures: "int", + entered_unit: "Optional[GrantaServerApiSchemaSlimEntitiesSlimUnit]" = None, + ) -> None: + """GrantaServerApiDataSignificantFiguresInfo - a model defined in Swagger + + Parameters + ---------- + entered_value: float + significant_figures: int + entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit, optional + """ + self._significant_figures = None + self._entered_value = None + self._entered_unit = None + + self.significant_figures = significant_figures + self.entered_value = entered_value + if entered_unit is not None: + self.entered_unit = entered_unit + + @property + def significant_figures(self) -> "int": + """Gets the significant_figures of this GrantaServerApiDataSignificantFiguresInfo. + + Returns + ------- + int + The significant_figures of this GrantaServerApiDataSignificantFiguresInfo. + """ + return self._significant_figures + + @significant_figures.setter + def significant_figures(self, significant_figures: "int") -> None: + """Sets the significant_figures of this GrantaServerApiDataSignificantFiguresInfo. + + Parameters + ---------- + significant_figures: int + The significant_figures of this GrantaServerApiDataSignificantFiguresInfo. + """ + if significant_figures is None: + raise ValueError( + "Invalid value for 'significant_figures', must not be 'None'" + ) + self._significant_figures = significant_figures + + @property + def entered_value(self) -> "float": + """Gets the entered_value of this GrantaServerApiDataSignificantFiguresInfo. + + Returns + ------- + float + The entered_value of this GrantaServerApiDataSignificantFiguresInfo. + """ + return self._entered_value + + @entered_value.setter + def entered_value(self, entered_value: "float") -> None: + """Sets the entered_value of this GrantaServerApiDataSignificantFiguresInfo. + + Parameters + ---------- + entered_value: float + The entered_value of this GrantaServerApiDataSignificantFiguresInfo. + """ + if entered_value is None: + raise ValueError("Invalid value for 'entered_value', must not be 'None'") + self._entered_value = entered_value + + @property + def entered_unit(self) -> "GrantaServerApiSchemaSlimEntitiesSlimUnit": + """Gets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. + + Returns + ------- + GrantaServerApiSchemaSlimEntitiesSlimUnit + The entered_unit of this GrantaServerApiDataSignificantFiguresInfo. + """ + return self._entered_unit + + @entered_unit.setter + def entered_unit( + self, entered_unit: "GrantaServerApiSchemaSlimEntitiesSlimUnit" + ) -> None: + """Sets the entered_unit of this GrantaServerApiDataSignificantFiguresInfo. + + Parameters + ---------- + entered_unit: GrantaServerApiSchemaSlimEntitiesSlimUnit + The entered_unit of this GrantaServerApiDataSignificantFiguresInfo. + """ + self._entered_unit = entered_unit + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataSignificantFiguresInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_attribute_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_attribute_deletion_exception.py deleted file mode 100644 index 0bdd95d8..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_attribute_deletion_exception.py +++ /dev/null @@ -1,179 +0,0 @@ -""" - MI Server API - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 - -from . import ModelBase - - -if TYPE_CHECKING: - from . import * - - -class GrantaServerApiExceptionsAttributeDeletionException(ModelBase): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes - ---------- - swagger_types: Dict[str, str] - The key is attribute name and the value is attribute type. - attribute_map: Dict[str, str] - The key is attribute name and the value is json key in definition. - subtype_mapping: Dict[str, str] - The key is the unmangled property name and the value is the corresponding type. - discriminator: Optional[str] - Name of the property used as discriminator for subtypes. - """ - swagger_types = { - "code": "SystemNetHttpStatusCode", - "errors": "list[GrantaServerApiExceptionsErrorDetail]", - "message": "str", - } - - attribute_map = { - "code": "code", - "errors": "errors", - "message": "message", - } - - subtype_mapping = { - "code": "SystemNetHttpStatusCode", - "errors": "GrantaServerApiExceptionsErrorDetail", - } - - discriminator = None - - def __init__( - self, - *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, - message: "Optional[str]" = None, - ) -> None: - """GrantaServerApiExceptionsAttributeDeletionException - a model defined in Swagger - - Parameters - ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional - message: str, optional - """ - self._message = None - self._code = None - self._errors = None - - if message is not None: - self.message = message - if code is not None: - self.code = code - if errors is not None: - self.errors = errors - - @property - def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsAttributeDeletionException. - - Returns - ------- - str - The message of this GrantaServerApiExceptionsAttributeDeletionException. - """ - return self._message - - @message.setter - def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsAttributeDeletionException. - - Parameters - ---------- - message: str - The message of this GrantaServerApiExceptionsAttributeDeletionException. - """ - self._message = message - - @property - def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsAttributeDeletionException. - - Returns - ------- - SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsAttributeDeletionException. - """ - return self._code - - @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsAttributeDeletionException. - - Parameters - ---------- - code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsAttributeDeletionException. - """ - self._code = code - - @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsAttributeDeletionException. - - Returns - ------- - list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsAttributeDeletionException. - """ - return self._errors - - @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsAttributeDeletionException. - - Parameters - ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsAttributeDeletionException. - """ - self._errors = errors - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: - """Raises a NotImplementedError for a type without a discriminator defined. - - Parameters - ---------- - data: ModelBase - Object representing a subclass of this class - - Raises - ------ - NotImplementedError - This class has no discriminator, and hence no subclasses - """ - raise NotImplementedError() - - def __repr__(self) -> str: - """For 'print' and 'pprint'""" - return self.to_str() - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiExceptionsAttributeDeletionException): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other: Any) -> bool: - """Returns true if both objects are not equal""" - return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_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 new file mode 100644 index 00000000..617442e4 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_data_modification_error_detail.py @@ -0,0 +1,133 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDataModificationDataModificationErrorDetail(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator_class_map: Dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + } + + attribute_map = { + "message": "message", + } + + subtype_mapping = {} + + discriminator_value_class_map = { + "inUse".lower(): "#/components/schemas/GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail", + } + + discriminator = "reason" + + def __init__( + self, + *, + message: "str", + ) -> None: + """GrantaServerApiExceptionsDataModificationDataModificationErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + """ + self._message = None + + self.message = message + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDataModificationDataModificationErrorDetail. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDataModificationDataModificationErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDataModificationDataModificationErrorDetail. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDataModificationDataModificationErrorDetail. + """ + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + self._message = message + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map.get(discriminator_value).rsplit( + "/", 1 + )[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDataModificationDataModificationErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_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 new file mode 100644 index 00000000..41ea3d77 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_in_use_data_modification_error_detail.py @@ -0,0 +1,200 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_data_modification_data_modification_error_detail import ( + GrantaServerApiExceptionsDataModificationDataModificationErrorDetail, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail( + GrantaServerApiExceptionsDataModificationDataModificationErrorDetail +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + "reason": "str", + "referenced_by": "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]", + "referenced_by_type": "GrantaServerApiExceptionsDataModificationReferencedByType", + } + + attribute_map = { + "message": "message", + "reason": "reason", + "referenced_by": "referencedBy", + "referenced_by_type": "referencedByType", + } + + subtype_mapping = { + "referencedByType": "GrantaServerApiExceptionsDataModificationReferencedByType", + "referencedBy": "GrantaServerApiSchemaSlimEntitiesSlimNamedEntity", + } + + discriminator = None + + def __init__( + self, + *, + message: "str", + reason: "str" = "inUse", + referenced_by: "Optional[List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]]" = None, + referenced_by_type: "Optional[GrantaServerApiExceptionsDataModificationReferencedByType]" = None, + ) -> None: + """GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: str + referenced_by: List[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity], optional + referenced_by_type: GrantaServerApiExceptionsDataModificationReferencedByType, optional + """ + super().__init__(message=message) + self._referenced_by_type = None + self._referenced_by = None + self._reason = None + + if referenced_by_type is not None: + self.referenced_by_type = referenced_by_type + if referenced_by is not None: + self.referenced_by = referenced_by + self.reason = reason + + @property + def referenced_by_type( + self, + ) -> "GrantaServerApiExceptionsDataModificationReferencedByType": + """Gets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Returns + ------- + GrantaServerApiExceptionsDataModificationReferencedByType + The referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + return self._referenced_by_type + + @referenced_by_type.setter + def referenced_by_type( + self, + referenced_by_type: "GrantaServerApiExceptionsDataModificationReferencedByType", + ) -> None: + """Sets the referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Parameters + ---------- + referenced_by_type: GrantaServerApiExceptionsDataModificationReferencedByType + The referenced_by_type of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + self._referenced_by_type = referenced_by_type + + @property + def referenced_by(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]": + """Gets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Returns + ------- + list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + The referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + return self._referenced_by + + @referenced_by.setter + def referenced_by( + self, referenced_by: "list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]" + ) -> None: + """Sets the referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Parameters + ---------- + referenced_by: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + The referenced_by of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + self._referenced_by = referenced_by + + @property + def reason(self) -> "str": + """Gets the reason of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail. + """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, + GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail, + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py new file mode 100644 index 00000000..f94b021a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_data_modification_referenced_by_type.py @@ -0,0 +1,33 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from enum import Enum + + +class GrantaServerApiExceptionsDataModificationReferencedByType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + UNKNOWN = "unknown" + EXPRESSION = "expression" + VERSIONCONTROLLEDDATA = "versionControlledData" + DYNAMICLINKGROUP = "dynamicLinkGroup" + TABULARATTRIBUTE = "tabularAttribute" + XYCHARTTEMPLATE = "xyChartTemplate" + SEARCHMASK = "searchMask" + SECURITYATTRIBUTE = "securityAttribute" + ATTRIBUTE = "attribute" + DATA = "data" + DEFAULTPARAMETERVALUE = "defaultParameterValue" 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 new file mode 100644 index 00000000..baecb63d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_attribute_deletion_exception.py @@ -0,0 +1,186 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDeletionAttributeDeletionException(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsDeletionAttributeDeletionException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Returns + ------- + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionAttributeDeletionException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDeletionAttributeDeletionException + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_constant_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py similarity index 61% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_constant_deletion_exception.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py index 94f0aaea..b0c8f721 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_constant_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_constant_deletion_exception.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiExceptionsConstantDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionConstantDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class GrantaServerApiExceptionsConstantDeletionException(ModelBase): """ swagger_types = { "code": "SystemNetHttpStatusCode", - "errors": "list[GrantaServerApiExceptionsErrorDetail]", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } @@ -50,7 +50,7 @@ class GrantaServerApiExceptionsConstantDeletionException(ModelBase): subtype_mapping = { "code": "SystemNetHttpStatusCode", - "errors": "GrantaServerApiExceptionsErrorDetail", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } discriminator = None @@ -59,15 +59,15 @@ def __init__( self, *, code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, message: "Optional[str]" = None, ) -> None: - """GrantaServerApiExceptionsConstantDeletionException - a model defined in Swagger + """GrantaServerApiExceptionsDeletionConstantDeletionException - a model defined in Swagger Parameters ---------- code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional message: str, optional """ self._message = None @@ -83,67 +83,72 @@ def __init__( @property def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsConstantDeletionException. + """Gets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- str - The message of this GrantaServerApiExceptionsConstantDeletionException. + The message of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._message @message.setter def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsConstantDeletionException. + """Sets the message of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- message: str - The message of this GrantaServerApiExceptionsConstantDeletionException. + The message of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._message = message @property def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsConstantDeletionException. + """Gets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsConstantDeletionException. + The code of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._code @code.setter def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsConstantDeletionException. + """Sets the code of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsConstantDeletionException. + The code of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._code = code @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsConstantDeletionException. + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Returns ------- - list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsConstantDeletionException. + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ return self._errors @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsConstantDeletionException. + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsConstantDeletionException. + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionConstantDeletionException. """ self._errors = errors @@ -169,7 +174,9 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiExceptionsConstantDeletionException): + if not isinstance( + other, GrantaServerApiExceptionsDeletionConstantDeletionException + ): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py new file mode 100644 index 00000000..614ef20f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_type_deletion_exception.py @@ -0,0 +1,186 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Returns + ------- + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_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 new file mode 100644 index 00000000..89a9fe73 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_discrete_value_deletion_exception.py @@ -0,0 +1,186 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDeletionDiscreteValueDeletionException(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsDeletionDiscreteValueDeletionException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Returns + ------- + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionDiscreteValueDeletionException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDeletionDiscreteValueDeletionException + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_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 new file mode 100644 index 00000000..265799d3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_deletion_exception.py @@ -0,0 +1,186 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDeletionParameterDeletionException(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsDeletionParameterDeletionException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Returns + ------- + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionParameterDeletionException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDeletionParameterDeletionException + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_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 new file mode 100644 index 00000000..c3dbadfd --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_parameter_value_deletion_exception.py @@ -0,0 +1,186 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsDeletionParameterValueDeletionException(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsDeletionParameterValueDeletionException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Returns + ------- + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionParameterValueDeletionException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsDeletionParameterValueDeletionException + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py similarity index 63% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_value_deletion_exception.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py index 18ea81c8..d1bcbc31 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_deletion_table_deletion_exception.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiExceptionsDiscreteValueDeletionException(ModelBase): +class GrantaServerApiExceptionsDeletionTableDeletionException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,7 +38,7 @@ class GrantaServerApiExceptionsDiscreteValueDeletionException(ModelBase): """ swagger_types = { "code": "SystemNetHttpStatusCode", - "errors": "list[GrantaServerApiExceptionsErrorDetail]", + "errors": "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", "message": "str", } @@ -50,7 +50,7 @@ class GrantaServerApiExceptionsDiscreteValueDeletionException(ModelBase): subtype_mapping = { "code": "SystemNetHttpStatusCode", - "errors": "GrantaServerApiExceptionsErrorDetail", + "errors": "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", } discriminator = None @@ -59,15 +59,15 @@ def __init__( self, *, code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, + errors: "Optional[List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]]" = None, message: "Optional[str]" = None, ) -> None: - """GrantaServerApiExceptionsDiscreteValueDeletionException - a model defined in Swagger + """GrantaServerApiExceptionsDeletionTableDeletionException - a model defined in Swagger Parameters ---------- code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional + errors: List[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail], optional message: str, optional """ self._message = None @@ -83,67 +83,72 @@ def __init__( @property def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsDiscreteValueDeletionException. + """Gets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- str - The message of this GrantaServerApiExceptionsDiscreteValueDeletionException. + The message of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._message @message.setter def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsDiscreteValueDeletionException. + """Sets the message of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- message: str - The message of this GrantaServerApiExceptionsDiscreteValueDeletionException. + The message of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._message = message @property def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsDiscreteValueDeletionException. + """Gets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsDiscreteValueDeletionException. + The code of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._code @code.setter def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsDiscreteValueDeletionException. + """Sets the code of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsDiscreteValueDeletionException. + The code of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._code = code @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsDiscreteValueDeletionException. + def errors( + self, + ) -> "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Returns ------- - list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsDiscreteValueDeletionException. + list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionTableDeletionException. """ return self._errors @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsDiscreteValueDeletionException. + def errors( + self, + errors: "list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsDeletionTableDeletionException. Parameters ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsDiscreteValueDeletionException. + errors: list[GrantaServerApiExceptionsDataModificationDataModificationErrorDetail] + The errors of this GrantaServerApiExceptionsDeletionTableDeletionException. """ self._errors = errors @@ -170,7 +175,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, GrantaServerApiExceptionsDiscreteValueDeletionException + other, GrantaServerApiExceptionsDeletionTableDeletionException ): return False 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 65f8603c..e8616ccf 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 @@ -53,23 +53,21 @@ class GrantaServerApiExceptionsErrorDetail(ModelBase): def __init__( self, *, - message: "Optional[str]" = None, - reason: "Optional[str]" = None, + message: "str", + reason: "str", ) -> None: """GrantaServerApiExceptionsErrorDetail - a model defined in Swagger Parameters ---------- - message: str, optional - reason: str, optional + message: str + reason: str """ self._message = None self._reason = None - if message is not None: - self.message = message - if reason is not None: - self.reason = reason + self.message = message + self.reason = reason @property def message(self) -> "str": @@ -91,6 +89,8 @@ def message(self, message: "str") -> None: message: str The message of this GrantaServerApiExceptionsErrorDetail. """ + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") self._message = message @property @@ -113,6 +113,8 @@ def reason(self, reason: "str") -> None: reason: str The reason of this GrantaServerApiExceptionsErrorDetail. """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") self._reason = reason @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_deletion_exception.py deleted file mode 100644 index e83aef85..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_deletion_exception.py +++ /dev/null @@ -1,179 +0,0 @@ -""" - MI Server API - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 - -from . import ModelBase - - -if TYPE_CHECKING: - from . import * - - -class GrantaServerApiExceptionsParameterDeletionException(ModelBase): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes - ---------- - swagger_types: Dict[str, str] - The key is attribute name and the value is attribute type. - attribute_map: Dict[str, str] - The key is attribute name and the value is json key in definition. - subtype_mapping: Dict[str, str] - The key is the unmangled property name and the value is the corresponding type. - discriminator: Optional[str] - Name of the property used as discriminator for subtypes. - """ - swagger_types = { - "code": "SystemNetHttpStatusCode", - "errors": "list[GrantaServerApiExceptionsErrorDetail]", - "message": "str", - } - - attribute_map = { - "code": "code", - "errors": "errors", - "message": "message", - } - - subtype_mapping = { - "code": "SystemNetHttpStatusCode", - "errors": "GrantaServerApiExceptionsErrorDetail", - } - - discriminator = None - - def __init__( - self, - *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, - message: "Optional[str]" = None, - ) -> None: - """GrantaServerApiExceptionsParameterDeletionException - a model defined in Swagger - - Parameters - ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional - message: str, optional - """ - self._message = None - self._code = None - self._errors = None - - if message is not None: - self.message = message - if code is not None: - self.code = code - if errors is not None: - self.errors = errors - - @property - def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsParameterDeletionException. - - Returns - ------- - str - The message of this GrantaServerApiExceptionsParameterDeletionException. - """ - return self._message - - @message.setter - def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsParameterDeletionException. - - Parameters - ---------- - message: str - The message of this GrantaServerApiExceptionsParameterDeletionException. - """ - self._message = message - - @property - def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsParameterDeletionException. - - Returns - ------- - SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsParameterDeletionException. - """ - return self._code - - @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsParameterDeletionException. - - Parameters - ---------- - code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsParameterDeletionException. - """ - self._code = code - - @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsParameterDeletionException. - - Returns - ------- - list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsParameterDeletionException. - """ - return self._errors - - @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsParameterDeletionException. - - Parameters - ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsParameterDeletionException. - """ - self._errors = errors - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: - """Raises a NotImplementedError for a type without a discriminator defined. - - Parameters - ---------- - data: ModelBase - Object representing a subclass of this class - - Raises - ------ - NotImplementedError - This class has no discriminator, and hence no subclasses - """ - raise NotImplementedError() - - def __repr__(self) -> str: - """For 'print' and 'pprint'""" - return self.to_str() - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiExceptionsParameterDeletionException): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other: Any) -> bool: - """Returns true if both objects are not equal""" - return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_value_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py similarity index 74% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_value_deletion_exception.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py index 397ba420..83935649 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_parameter_value_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_copy_exception.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiExceptionsParameterValueDeletionException(ModelBase): +class GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -62,7 +62,7 @@ def __init__( errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, message: "Optional[str]" = None, ) -> None: - """GrantaServerApiExceptionsParameterValueDeletionException - a model defined in Swagger + """GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException - a model defined in Swagger Parameters ---------- @@ -83,67 +83,67 @@ def __init__( @property def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsParameterValueDeletionException. + """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- str - The message of this GrantaServerApiExceptionsParameterValueDeletionException. + The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._message @message.setter def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsParameterValueDeletionException. + """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- message: str - The message of this GrantaServerApiExceptionsParameterValueDeletionException. + The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._message = message @property def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsParameterValueDeletionException. + """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsParameterValueDeletionException. + The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._code @code.setter def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsParameterValueDeletionException. + """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsParameterValueDeletionException. + The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._code = code @property def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsParameterValueDeletionException. + """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Returns ------- list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsParameterValueDeletionException. + The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ return self._errors @errors.setter def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsParameterValueDeletionException. + """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. Parameters ---------- errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsParameterValueDeletionException. + The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException. """ self._errors = errors @@ -170,7 +170,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, GrantaServerApiExceptionsParameterValueDeletionException + other, GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_type_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py similarity index 74% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_type_deletion_exception.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py index a1b1e932..83eca034 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_discrete_type_deletion_exception.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_record_history_record_history_move_exception.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiExceptionsDiscreteTypeDeletionException(ModelBase): +class GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -62,7 +62,7 @@ def __init__( errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, message: "Optional[str]" = None, ) -> None: - """GrantaServerApiExceptionsDiscreteTypeDeletionException - a model defined in Swagger + """GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException - a model defined in Swagger Parameters ---------- @@ -83,67 +83,67 @@ def __init__( @property def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Gets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- str - The message of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._message @message.setter def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Sets the message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- message: str - The message of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The message of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._message = message @property def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Gets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._code @code.setter def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Sets the code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The code of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._code = code @property def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Gets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Returns ------- list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ return self._errors @errors.setter def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + """Sets the errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. Parameters ---------- errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsDiscreteTypeDeletionException. + The errors of this GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException. """ self._errors = errors @@ -170,7 +170,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" if not isinstance( - other, GrantaServerApiExceptionsDiscreteTypeDeletionException + other, GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException ): return False diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_table_deletion_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_table_deletion_exception.py deleted file mode 100644 index e781874c..00000000 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_table_deletion_exception.py +++ /dev/null @@ -1,179 +0,0 @@ -""" - MI Server API - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - - OpenAPI spec version: v1 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -import re # noqa: F401 -from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 - -from . import ModelBase - - -if TYPE_CHECKING: - from . import * - - -class GrantaServerApiExceptionsTableDeletionException(ModelBase): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes - ---------- - swagger_types: Dict[str, str] - The key is attribute name and the value is attribute type. - attribute_map: Dict[str, str] - The key is attribute name and the value is json key in definition. - subtype_mapping: Dict[str, str] - The key is the unmangled property name and the value is the corresponding type. - discriminator: Optional[str] - Name of the property used as discriminator for subtypes. - """ - swagger_types = { - "code": "SystemNetHttpStatusCode", - "errors": "list[GrantaServerApiExceptionsErrorDetail]", - "message": "str", - } - - attribute_map = { - "code": "code", - "errors": "errors", - "message": "message", - } - - subtype_mapping = { - "code": "SystemNetHttpStatusCode", - "errors": "GrantaServerApiExceptionsErrorDetail", - } - - discriminator = None - - def __init__( - self, - *, - code: "Optional[SystemNetHttpStatusCode]" = None, - errors: "Optional[List[GrantaServerApiExceptionsErrorDetail]]" = None, - message: "Optional[str]" = None, - ) -> None: - """GrantaServerApiExceptionsTableDeletionException - a model defined in Swagger - - Parameters - ---------- - code: SystemNetHttpStatusCode, optional - errors: List[GrantaServerApiExceptionsErrorDetail], optional - message: str, optional - """ - self._message = None - self._code = None - self._errors = None - - if message is not None: - self.message = message - if code is not None: - self.code = code - if errors is not None: - self.errors = errors - - @property - def message(self) -> "str": - """Gets the message of this GrantaServerApiExceptionsTableDeletionException. - - Returns - ------- - str - The message of this GrantaServerApiExceptionsTableDeletionException. - """ - return self._message - - @message.setter - def message(self, message: "str") -> None: - """Sets the message of this GrantaServerApiExceptionsTableDeletionException. - - Parameters - ---------- - message: str - The message of this GrantaServerApiExceptionsTableDeletionException. - """ - self._message = message - - @property - def code(self) -> "SystemNetHttpStatusCode": - """Gets the code of this GrantaServerApiExceptionsTableDeletionException. - - Returns - ------- - SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsTableDeletionException. - """ - return self._code - - @code.setter - def code(self, code: "SystemNetHttpStatusCode") -> None: - """Sets the code of this GrantaServerApiExceptionsTableDeletionException. - - Parameters - ---------- - code: SystemNetHttpStatusCode - The code of this GrantaServerApiExceptionsTableDeletionException. - """ - self._code = code - - @property - def errors(self) -> "list[GrantaServerApiExceptionsErrorDetail]": - """Gets the errors of this GrantaServerApiExceptionsTableDeletionException. - - Returns - ------- - list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsTableDeletionException. - """ - return self._errors - - @errors.setter - def errors(self, errors: "list[GrantaServerApiExceptionsErrorDetail]") -> None: - """Sets the errors of this GrantaServerApiExceptionsTableDeletionException. - - Parameters - ---------- - errors: list[GrantaServerApiExceptionsErrorDetail] - The errors of this GrantaServerApiExceptionsTableDeletionException. - """ - self._errors = errors - - @classmethod - def get_real_child_model(cls, data: ModelBase) -> str: - """Raises a NotImplementedError for a type without a discriminator defined. - - Parameters - ---------- - data: ModelBase - Object representing a subclass of this class - - Raises - ------ - NotImplementedError - This class has no discriminator, and hence no subclasses - """ - raise NotImplementedError() - - def __repr__(self) -> str: - """For 'print' and 'pprint'""" - return self.to_str() - - def __eq__(self, other: Any) -> bool: - """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiExceptionsTableDeletionException): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other: Any) -> bool: - """Returns true if both objects are not equal""" - return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py new file mode 100644 index 00000000..54ec1646 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_create_record_version_control_exception.py @@ -0,0 +1,189 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException( + ModelBase +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Returns + ------- + list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, + GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException, + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..52941d27 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_parent_state_error_detail.py @@ -0,0 +1,131 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + "reason": "str", + } + + attribute_map = { + "message": "message", + "reason": "reason", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + message: "str", + reason: "str" = "invalidParentState", + ) -> None: + """GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: str + """ + super().__init__(message=message) + self._reason = None + + self.reason = reason + + @property + def reason(self) -> "str": + """Gets the reason of this GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail. + """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..2c65c2fe --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_invalid_version_state_error_detail.py @@ -0,0 +1,162 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + "reason": "str", + "version_state": "GrantaServerApiVersionState", + } + + attribute_map = { + "message": "message", + "reason": "reason", + "version_state": "versionState", + } + + subtype_mapping = { + "versionState": "GrantaServerApiVersionState", + } + + discriminator = None + + def __init__( + self, + *, + message: "str", + reason: "str" = "invalidVersionState", + version_state: "Optional[GrantaServerApiVersionState]" = None, + ) -> None: + """GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: str + version_state: GrantaServerApiVersionState, optional + """ + super().__init__(message=message) + self._version_state = None + self._reason = None + + if version_state is not None: + self.version_state = version_state + self.reason = reason + + @property + def version_state(self) -> "GrantaServerApiVersionState": + """Gets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + + Returns + ------- + GrantaServerApiVersionState + The version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + """ + return self._version_state + + @version_state.setter + def version_state(self, version_state: "GrantaServerApiVersionState") -> None: + """Sets the version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + + Parameters + ---------- + version_state: GrantaServerApiVersionState + The version_state of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + """ + self._version_state = version_state + + @property + def reason(self) -> "str": + """Gets the reason of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail. + """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..718a968d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_the_latest_version_error_detail.py @@ -0,0 +1,164 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + "newer_version": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", + "reason": "str", + } + + attribute_map = { + "message": "message", + "newer_version": "newerVersion", + "reason": "reason", + } + + subtype_mapping = { + "newerVersion": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", + } + + discriminator = None + + def __init__( + self, + *, + message: "str", + newer_version: "Optional[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]" = None, + reason: "str" = "notTheLatestVersion", + ) -> None: + """GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + newer_version: GrantaServerApiRecordsRecordVersionsSlimRecordVersion, optional + reason: str + """ + super().__init__(message=message) + self._newer_version = None + self._reason = None + + if newer_version is not None: + self.newer_version = newer_version + self.reason = reason + + @property + def newer_version(self) -> "GrantaServerApiRecordsRecordVersionsSlimRecordVersion": + """Gets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + + Returns + ------- + GrantaServerApiRecordsRecordVersionsSlimRecordVersion + The newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + """ + return self._newer_version + + @newer_version.setter + def newer_version( + self, newer_version: "GrantaServerApiRecordsRecordVersionsSlimRecordVersion" + ) -> None: + """Sets the newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + + Parameters + ---------- + newer_version: GrantaServerApiRecordsRecordVersionsSlimRecordVersion + The newer_version of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + """ + self._newer_version = newer_version + + @property + def reason(self) -> "str": + """Gets the reason of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail. + """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..ac1d9e1d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_not_versioned_error_detail.py @@ -0,0 +1,131 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_exceptions_version_control_version_control_error_detail import ( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail( + GrantaServerApiExceptionsVersionControlVersionControlErrorDetail +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + "reason": "str", + } + + attribute_map = { + "message": "message", + "reason": "reason", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + message: "str", + reason: "str" = "notVersioned", + ) -> None: + """GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: str + """ + super().__init__(message=message) + self._reason = None + + self.reason = reason + + @property + def reason(self) -> "str": + """Gets the reason of this GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail. + + Returns + ------- + str + The reason of this GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "str") -> None: + """Sets the reason of this GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail. + + Parameters + ---------- + reason: str + The reason of this GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail. + """ + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..d5dd5686 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_record_version_control_exception.py @@ -0,0 +1,189 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException( + ModelBase +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Returns + ------- + list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, + GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException, + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..92e9fe8e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_release_table_version_control_exception.py @@ -0,0 +1,189 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException( + ModelBase +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Returns + ------- + list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, + GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException, + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..d57ec1d5 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_version_control_error_detail.py @@ -0,0 +1,136 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlVersionControlErrorDetail(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator_class_map: Dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "message": "str", + } + + attribute_map = { + "message": "message", + } + + subtype_mapping = {} + + discriminator_value_class_map = { + "invalidVersionState".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", + "notTheLatestVersion".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", + "invalidParentState".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", + "notVersioned".lower(): "#/components/schemas/GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail", + } + + discriminator = "reason" + + def __init__( + self, + *, + message: "str", + ) -> None: + """GrantaServerApiExceptionsVersionControlVersionControlErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + """ + self._message = None + + self.message = message + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsVersionControlVersionControlErrorDetail. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsVersionControlVersionControlErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsVersionControlVersionControlErrorDetail. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsVersionControlVersionControlErrorDetail. + """ + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + self._message = message + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map.get(discriminator_value).rsplit( + "/", 1 + )[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiExceptionsVersionControlVersionControlErrorDetail + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_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 new file mode 100644 index 00000000..0471b45d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_exceptions_version_control_withdraw_record_version_control_exception.py @@ -0,0 +1,189 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException( + ModelBase +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + "message": "str", + } + + attribute_map = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping = { + "code": "SystemNetHttpStatusCode", + "errors": "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + } + + discriminator = None + + def __init__( + self, + *, + code: "Optional[SystemNetHttpStatusCode]" = None, + errors: "Optional[List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]]" = None, + message: "Optional[str]" = None, + ) -> None: + """GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: List[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail], optional + message: str, optional + """ + self._message = None + self._code = None + self._errors = None + + if message is not None: + self.message = message + if code is not None: + self.code = code + if errors is not None: + self.errors = errors + + @property + def message(self) -> "str": + """Gets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Returns + ------- + str + The message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Parameters + ---------- + message: str + The message of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + self._message = message + + @property + def code(self) -> "SystemNetHttpStatusCode": + """Gets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Returns + ------- + SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + return self._code + + @code.setter + def code(self, code: "SystemNetHttpStatusCode") -> None: + """Sets the code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Parameters + ---------- + code: SystemNetHttpStatusCode + The code of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + self._code = code + + @property + def errors( + self, + ) -> "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]": + """Gets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Returns + ------- + list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + return self._errors + + @errors.setter + def errors( + self, + errors: "list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail]", + ) -> None: + """Sets the errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + + Parameters + ---------- + errors: list[GrantaServerApiExceptionsVersionControlVersionControlErrorDetail] + The errors of this GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException. + """ + self._errors = errors + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, + GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException, + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..55bea214 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_list_item.py @@ -0,0 +1,209 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoCreateListItem(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "database_guid": "str", + "record_history_guid": "str", + "record_version": "int", + "table_guid": "str", + } + + attribute_map = { + "database_guid": "databaseGuid", + "record_history_guid": "recordHistoryGuid", + "record_version": "recordVersion", + "table_guid": "tableGuid", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + database_guid: "str", + record_history_guid: "str", + record_version: "Optional[int]" = None, + table_guid: "Optional[str]" = None, + ) -> None: + """GrantaServerApiListsDtoCreateListItem - a model defined in Swagger + + Parameters + ---------- + database_guid: str + record_history_guid: str + record_version: int, optional + table_guid: str, optional + """ + self._database_guid = None + self._record_history_guid = None + self._record_version = None + self._table_guid = None + + self.database_guid = database_guid + self.record_history_guid = record_history_guid + if record_version is not None: + self.record_version = record_version + if table_guid is not None: + self.table_guid = table_guid + + @property + def database_guid(self) -> "str": + """Gets the database_guid of this GrantaServerApiListsDtoCreateListItem. + + Returns + ------- + str + The database_guid of this GrantaServerApiListsDtoCreateListItem. + """ + return self._database_guid + + @database_guid.setter + def database_guid(self, database_guid: "str") -> None: + """Sets the database_guid of this GrantaServerApiListsDtoCreateListItem. + + Parameters + ---------- + database_guid: str + The database_guid of this GrantaServerApiListsDtoCreateListItem. + """ + if database_guid is None: + raise ValueError("Invalid value for 'database_guid', must not be 'None'") + self._database_guid = database_guid + + @property + def record_history_guid(self) -> "str": + """Gets the record_history_guid of this GrantaServerApiListsDtoCreateListItem. + + Returns + ------- + str + The record_history_guid of this GrantaServerApiListsDtoCreateListItem. + """ + return self._record_history_guid + + @record_history_guid.setter + def record_history_guid(self, record_history_guid: "str") -> None: + """Sets the record_history_guid of this GrantaServerApiListsDtoCreateListItem. + + Parameters + ---------- + record_history_guid: str + The record_history_guid of this GrantaServerApiListsDtoCreateListItem. + """ + if record_history_guid is None: + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'None'" + ) + self._record_history_guid = record_history_guid + + @property + def record_version(self) -> "int": + """Gets the record_version of this GrantaServerApiListsDtoCreateListItem. + + Returns + ------- + int + The record_version of this GrantaServerApiListsDtoCreateListItem. + """ + return self._record_version + + @record_version.setter + def record_version(self, record_version: "int") -> None: + """Sets the record_version of this GrantaServerApiListsDtoCreateListItem. + + Parameters + ---------- + record_version: int + The record_version of this GrantaServerApiListsDtoCreateListItem. + """ + self._record_version = record_version + + @property + def table_guid(self) -> "str": + """Gets the table_guid of this GrantaServerApiListsDtoCreateListItem. + + Returns + ------- + str + The table_guid of this GrantaServerApiListsDtoCreateListItem. + """ + return self._table_guid + + @table_guid.setter + def table_guid(self, table_guid: "str") -> None: + """Sets the table_guid of this GrantaServerApiListsDtoCreateListItem. + + Parameters + ---------- + table_guid: str + The table_guid of this GrantaServerApiListsDtoCreateListItem. + """ + self._table_guid = table_guid + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoCreateListItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_create.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py similarity index 68% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_create.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py index ee487870..6c2b9ce9 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_create.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoRecordListCreate(ModelBase): +class GrantaServerApiListsDtoCreateRecordList(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,29 +37,29 @@ class GrantaServerApiListsDtoRecordListCreate(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types = { + "name": "str", "awaiting_approval": "bool", "description": "str", "identifier": "str", "internal_use": "bool", - "items": "GrantaServerApiListsDtoRecordListItems", - "name": "str", + "items": "GrantaServerApiListsDtoCreateRecordListItemsInfo", "notes": "str", "published": "bool", } attribute_map = { + "name": "name", "awaiting_approval": "awaitingApproval", "description": "description", "identifier": "identifier", "internal_use": "internalUse", "items": "items", - "name": "name", "notes": "notes", "published": "published", } subtype_mapping = { - "items": "GrantaServerApiListsDtoRecordListItems", + "items": "GrantaServerApiListsDtoCreateRecordListItemsInfo", } discriminator = None @@ -67,25 +67,25 @@ class GrantaServerApiListsDtoRecordListCreate(ModelBase): def __init__( self, *, + name: "str", awaiting_approval: "Optional[bool]" = None, description: "Optional[str]" = None, identifier: "Optional[str]" = None, internal_use: "Optional[bool]" = None, - items: "Optional[GrantaServerApiListsDtoRecordListItems]" = None, - name: "Optional[str]" = None, + items: "Optional[GrantaServerApiListsDtoCreateRecordListItemsInfo]" = None, notes: "Optional[str]" = None, published: "Optional[bool]" = None, ) -> None: - """GrantaServerApiListsDtoRecordListCreate - a model defined in Swagger + """GrantaServerApiListsDtoCreateRecordList - a model defined in Swagger Parameters ---------- + name: str awaiting_approval: bool, optional description: str, optional identifier: str, optional internal_use: bool, optional - items: GrantaServerApiListsDtoRecordListItems, optional - name: str, optional + items: GrantaServerApiListsDtoCreateRecordListItemsInfo, optional notes: str, optional published: bool, optional """ @@ -102,8 +102,7 @@ def __init__( self.items = items if identifier is not None: self.identifier = identifier - if name is not None: - self.name = name + self.name = name if description is not None: self.description = description if notes is not None: @@ -116,178 +115,180 @@ def __init__( self.internal_use = internal_use @property - def items(self) -> "GrantaServerApiListsDtoRecordListItems": - """Gets the items of this GrantaServerApiListsDtoRecordListCreate. + def items(self) -> "GrantaServerApiListsDtoCreateRecordListItemsInfo": + """Gets the items of this GrantaServerApiListsDtoCreateRecordList. Returns ------- - GrantaServerApiListsDtoRecordListItems - The items of this GrantaServerApiListsDtoRecordListCreate. + GrantaServerApiListsDtoCreateRecordListItemsInfo + The items of this GrantaServerApiListsDtoCreateRecordList. """ return self._items @items.setter - def items(self, items: "GrantaServerApiListsDtoRecordListItems") -> None: - """Sets the items of this GrantaServerApiListsDtoRecordListCreate. + def items(self, items: "GrantaServerApiListsDtoCreateRecordListItemsInfo") -> None: + """Sets the items of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- - items: GrantaServerApiListsDtoRecordListItems - The items of this GrantaServerApiListsDtoRecordListCreate. + items: GrantaServerApiListsDtoCreateRecordListItemsInfo + The items of this GrantaServerApiListsDtoCreateRecordList. """ self._items = items @property def identifier(self) -> "str": - """Gets the identifier of this GrantaServerApiListsDtoRecordListCreate. + """Gets the identifier of this GrantaServerApiListsDtoCreateRecordList. Returns ------- str - The identifier of this GrantaServerApiListsDtoRecordListCreate. + The identifier of this GrantaServerApiListsDtoCreateRecordList. """ return self._identifier @identifier.setter def identifier(self, identifier: "str") -> None: - """Sets the identifier of this GrantaServerApiListsDtoRecordListCreate. + """Sets the identifier of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- identifier: str - The identifier of this GrantaServerApiListsDtoRecordListCreate. + The identifier of this GrantaServerApiListsDtoCreateRecordList. """ self._identifier = identifier @property def name(self) -> "str": - """Gets the name of this GrantaServerApiListsDtoRecordListCreate. + """Gets the name of this GrantaServerApiListsDtoCreateRecordList. Returns ------- str - The name of this GrantaServerApiListsDtoRecordListCreate. + The name of this GrantaServerApiListsDtoCreateRecordList. """ return self._name @name.setter def name(self, name: "str") -> None: - """Sets the name of this GrantaServerApiListsDtoRecordListCreate. + """Sets the name of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- name: str - The name of this GrantaServerApiListsDtoRecordListCreate. + The name of this GrantaServerApiListsDtoCreateRecordList. """ + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property def description(self) -> "str": - """Gets the description of this GrantaServerApiListsDtoRecordListCreate. + """Gets the description of this GrantaServerApiListsDtoCreateRecordList. Returns ------- str - The description of this GrantaServerApiListsDtoRecordListCreate. + The description of this GrantaServerApiListsDtoCreateRecordList. """ return self._description @description.setter def description(self, description: "str") -> None: - """Sets the description of this GrantaServerApiListsDtoRecordListCreate. + """Sets the description of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- description: str - The description of this GrantaServerApiListsDtoRecordListCreate. + The description of this GrantaServerApiListsDtoCreateRecordList. """ self._description = description @property def notes(self) -> "str": - """Gets the notes of this GrantaServerApiListsDtoRecordListCreate. + """Gets the notes of this GrantaServerApiListsDtoCreateRecordList. Returns ------- str - The notes of this GrantaServerApiListsDtoRecordListCreate. + The notes of this GrantaServerApiListsDtoCreateRecordList. """ return self._notes @notes.setter def notes(self, notes: "str") -> None: - """Sets the notes of this GrantaServerApiListsDtoRecordListCreate. + """Sets the notes of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- notes: str - The notes of this GrantaServerApiListsDtoRecordListCreate. + The notes of this GrantaServerApiListsDtoCreateRecordList. """ self._notes = notes @property def published(self) -> "bool": - """Gets the published of this GrantaServerApiListsDtoRecordListCreate. + """Gets the published of this GrantaServerApiListsDtoCreateRecordList. Returns ------- bool - The published of this GrantaServerApiListsDtoRecordListCreate. + The published of this GrantaServerApiListsDtoCreateRecordList. """ return self._published @published.setter def published(self, published: "bool") -> None: - """Sets the published of this GrantaServerApiListsDtoRecordListCreate. + """Sets the published of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- published: bool - The published of this GrantaServerApiListsDtoRecordListCreate. + The published of this GrantaServerApiListsDtoCreateRecordList. """ self._published = published @property def awaiting_approval(self) -> "bool": - """Gets the awaiting_approval of this GrantaServerApiListsDtoRecordListCreate. + """Gets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Returns ------- bool - The awaiting_approval of this GrantaServerApiListsDtoRecordListCreate. + The awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. """ return self._awaiting_approval @awaiting_approval.setter def awaiting_approval(self, awaiting_approval: "bool") -> None: - """Sets the awaiting_approval of this GrantaServerApiListsDtoRecordListCreate. + """Sets the awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- awaiting_approval: bool - The awaiting_approval of this GrantaServerApiListsDtoRecordListCreate. + The awaiting_approval of this GrantaServerApiListsDtoCreateRecordList. """ self._awaiting_approval = awaiting_approval @property def internal_use(self) -> "bool": - """Gets the internal_use of this GrantaServerApiListsDtoRecordListCreate. + """Gets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Returns ------- bool - The internal_use of this GrantaServerApiListsDtoRecordListCreate. + The internal_use of this GrantaServerApiListsDtoCreateRecordList. """ return self._internal_use @internal_use.setter def internal_use(self, internal_use: "bool") -> None: - """Sets the internal_use of this GrantaServerApiListsDtoRecordListCreate. + """Sets the internal_use of this GrantaServerApiListsDtoCreateRecordList. Parameters ---------- internal_use: bool - The internal_use of this GrantaServerApiListsDtoRecordListCreate. + The internal_use of this GrantaServerApiListsDtoCreateRecordList. """ self._internal_use = internal_use @@ -313,7 +314,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoRecordListCreate): + if not isinstance(other, GrantaServerApiListsDtoCreateRecordList): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_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 new file mode 100644 index 00000000..5b1455d1 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_create_record_list_items_info.py @@ -0,0 +1,121 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoCreateRecordListItemsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "items": "list[GrantaServerApiListsDtoCreateListItem]", + } + + attribute_map = { + "items": "items", + } + + subtype_mapping = { + "items": "GrantaServerApiListsDtoCreateListItem", + } + + discriminator = None + + def __init__( + self, + *, + items: "List[GrantaServerApiListsDtoCreateListItem]", + ) -> None: + """GrantaServerApiListsDtoCreateRecordListItemsInfo - a model defined in Swagger + + Parameters + ---------- + items: List[GrantaServerApiListsDtoCreateListItem] + """ + self._items = None + + self.items = items + + @property + def items(self) -> "list[GrantaServerApiListsDtoCreateListItem]": + """Gets the items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. + + Returns + ------- + list[GrantaServerApiListsDtoCreateListItem] + The items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. + """ + return self._items + + @items.setter + def items(self, items: "list[GrantaServerApiListsDtoCreateListItem]") -> None: + """Sets the items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. + + Parameters + ---------- + items: list[GrantaServerApiListsDtoCreateListItem] + The items of this GrantaServerApiListsDtoCreateRecordListItemsInfo. + """ + if items is None: + raise ValueError("Invalid value for 'items', must not be 'None'") + self._items = items + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoCreateRecordListItemsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..c6f0271b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_item.py @@ -0,0 +1,180 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoDeleteRecordListItem(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "database_guid": "str", + "record_history_guid": "str", + "record_version": "int", + } + + attribute_map = { + "database_guid": "databaseGuid", + "record_history_guid": "recordHistoryGuid", + "record_version": "recordVersion", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + database_guid: "str", + record_history_guid: "str", + record_version: "Optional[int]" = None, + ) -> None: + """GrantaServerApiListsDtoDeleteRecordListItem - a model defined in Swagger + + Parameters + ---------- + database_guid: str + record_history_guid: str + record_version: int, optional + """ + self._database_guid = None + self._record_history_guid = None + self._record_version = None + + self.database_guid = database_guid + self.record_history_guid = record_history_guid + if record_version is not None: + self.record_version = record_version + + @property + def database_guid(self) -> "str": + """Gets the database_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + + Returns + ------- + str + The database_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + return self._database_guid + + @database_guid.setter + def database_guid(self, database_guid: "str") -> None: + """Sets the database_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + + Parameters + ---------- + database_guid: str + The database_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + if database_guid is None: + raise ValueError("Invalid value for 'database_guid', must not be 'None'") + self._database_guid = database_guid + + @property + def record_history_guid(self) -> "str": + """Gets the record_history_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + + Returns + ------- + str + The record_history_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + return self._record_history_guid + + @record_history_guid.setter + def record_history_guid(self, record_history_guid: "str") -> None: + """Sets the record_history_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + + Parameters + ---------- + record_history_guid: str + The record_history_guid of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + if record_history_guid is None: + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'None'" + ) + self._record_history_guid = record_history_guid + + @property + def record_version(self) -> "int": + """Gets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. + + Returns + ------- + int + The record_version of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + return self._record_version + + @record_version.setter + def record_version(self, record_version: "int") -> None: + """Sets the record_version of this GrantaServerApiListsDtoDeleteRecordListItem. + + Parameters + ---------- + record_version: int + The record_version of this GrantaServerApiListsDtoDeleteRecordListItem. + """ + self._record_version = record_version + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoDeleteRecordListItem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..dc44de7a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_delete_record_list_items.py @@ -0,0 +1,121 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoDeleteRecordListItems(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "items": "list[GrantaServerApiListsDtoDeleteRecordListItem]", + } + + attribute_map = { + "items": "items", + } + + subtype_mapping = { + "items": "GrantaServerApiListsDtoDeleteRecordListItem", + } + + discriminator = None + + def __init__( + self, + *, + items: "List[GrantaServerApiListsDtoDeleteRecordListItem]", + ) -> None: + """GrantaServerApiListsDtoDeleteRecordListItems - a model defined in Swagger + + Parameters + ---------- + items: List[GrantaServerApiListsDtoDeleteRecordListItem] + """ + self._items = None + + self.items = items + + @property + def items(self) -> "list[GrantaServerApiListsDtoDeleteRecordListItem]": + """Gets the items of this GrantaServerApiListsDtoDeleteRecordListItems. + + Returns + ------- + list[GrantaServerApiListsDtoDeleteRecordListItem] + The items of this GrantaServerApiListsDtoDeleteRecordListItems. + """ + return self._items + + @items.setter + def items(self, items: "list[GrantaServerApiListsDtoDeleteRecordListItem]") -> None: + """Sets the items of this GrantaServerApiListsDtoDeleteRecordListItems. + + Parameters + ---------- + items: list[GrantaServerApiListsDtoDeleteRecordListItem] + The items of this GrantaServerApiListsDtoDeleteRecordListItems. + """ + if items is None: + raise ValueError("Invalid value for 'items', must not be 'None'") + self._items = items + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoDeleteRecordListItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 447444f8..ce8a5e21 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 @@ -38,18 +38,18 @@ class GrantaServerApiListsDtoListItem(ModelBase): """ swagger_types = { "database_guid": "str", - "record_guid": "str", "record_history_guid": "str", - "record_version": "int", "table_guid": "str", + "record_guid": "str", + "record_version": "int", } attribute_map = { "database_guid": "databaseGuid", - "record_guid": "recordGuid", "record_history_guid": "recordHistoryGuid", - "record_version": "recordVersion", "table_guid": "tableGuid", + "record_guid": "recordGuid", + "record_version": "recordVersion", } subtype_mapping = {} @@ -59,21 +59,21 @@ class GrantaServerApiListsDtoListItem(ModelBase): def __init__( self, *, - database_guid: "Optional[str]" = None, + database_guid: "str", + record_history_guid: "str", + table_guid: "str", record_guid: "Optional[str]" = None, - record_history_guid: "Optional[str]" = None, record_version: "Optional[int]" = None, - table_guid: "Optional[str]" = None, ) -> None: """GrantaServerApiListsDtoListItem - a model defined in Swagger Parameters ---------- - database_guid: str, optional + database_guid: str + record_history_guid: str + table_guid: str record_guid: str, optional - record_history_guid: str, optional record_version: int, optional - table_guid: str, optional """ self._database_guid = None self._record_history_guid = None @@ -81,16 +81,13 @@ def __init__( self._record_version = None self._table_guid = None - if database_guid is not None: - self.database_guid = database_guid - if record_history_guid is not None: - self.record_history_guid = record_history_guid + self.database_guid = database_guid + self.record_history_guid = record_history_guid if record_guid is not None: self.record_guid = record_guid if record_version is not None: self.record_version = record_version - if table_guid is not None: - self.table_guid = table_guid + self.table_guid = table_guid @property def database_guid(self) -> "str": @@ -112,6 +109,8 @@ def database_guid(self, database_guid: "str") -> None: database_guid: str The database_guid of this GrantaServerApiListsDtoListItem. """ + if database_guid is None: + raise ValueError("Invalid value for 'database_guid', must not be 'None'") self._database_guid = database_guid @property @@ -134,6 +133,10 @@ def record_history_guid(self, record_history_guid: "str") -> None: record_history_guid: str The record_history_guid of this GrantaServerApiListsDtoListItem. """ + if record_history_guid is None: + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'None'" + ) self._record_history_guid = record_history_guid @property @@ -200,6 +203,8 @@ def table_guid(self, table_guid: "str") -> None: table_guid: str The table_guid of this GrantaServerApiListsDtoListItem. """ + if table_guid is None: + raise ValueError("Invalid value for 'table_guid', must not be 'None'") self._table_guid = table_guid @classmethod 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 c3c8a70c..1584f42a 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 @@ -40,7 +40,6 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "awaiting_approval": "bool", "created_timestamp": "datetime", "created_user": "GrantaServerApiListsDtoUserOrGroup", - "description": "str", "identifier": "str", "internal_use": "bool", "is_revision": "bool", @@ -48,9 +47,10 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "last_modified_user": "GrantaServerApiListsDtoUserOrGroup", "metadata": "dict(str, dict(str, object))", "name": "str", + "published": "bool", + "description": "str", "notes": "str", "parent_record_list_identifier": "str", - "published": "bool", "published_timestamp": "datetime", "published_user": "GrantaServerApiListsDtoUserOrGroup", } @@ -59,7 +59,6 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "awaiting_approval": "awaitingApproval", "created_timestamp": "createdTimestamp", "created_user": "createdUser", - "description": "description", "identifier": "identifier", "internal_use": "internalUse", "is_revision": "isRevision", @@ -67,9 +66,10 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): "last_modified_user": "lastModifiedUser", "metadata": "metadata", "name": "name", + "published": "published", + "description": "description", "notes": "notes", "parent_record_list_identifier": "parentRecordListIdentifier", - "published": "published", "published_timestamp": "publishedTimestamp", "published_user": "publishedUser", } @@ -85,20 +85,20 @@ class GrantaServerApiListsDtoRecordListHeader(ModelBase): def __init__( self, *, - awaiting_approval: "Optional[bool]" = None, - created_timestamp: "Optional[datetime]" = None, - created_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" = None, + awaiting_approval: "bool", + created_timestamp: "datetime", + created_user: "GrantaServerApiListsDtoUserOrGroup", + identifier: "str", + internal_use: "bool", + is_revision: "bool", + last_modified_timestamp: "datetime", + last_modified_user: "GrantaServerApiListsDtoUserOrGroup", + metadata: "Dict[str, Dict[str, object]]", + name: "str", + published: "bool", description: "Optional[str]" = None, - identifier: "Optional[str]" = None, - internal_use: "Optional[bool]" = None, - is_revision: "Optional[bool]" = None, - last_modified_timestamp: "Optional[datetime]" = None, - last_modified_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" = None, - metadata: "Optional[Dict[str, Dict[str, object]]]" = None, - name: "Optional[str]" = None, notes: "Optional[str]" = None, parent_record_list_identifier: "Optional[str]" = None, - published: "Optional[bool]" = None, published_timestamp: "Optional[datetime]" = None, published_user: "Optional[GrantaServerApiListsDtoUserOrGroup]" = None, ) -> None: @@ -106,20 +106,20 @@ def __init__( Parameters ---------- - awaiting_approval: bool, optional - created_timestamp: datetime, optional - created_user: GrantaServerApiListsDtoUserOrGroup, optional + awaiting_approval: bool + created_timestamp: datetime + created_user: GrantaServerApiListsDtoUserOrGroup + identifier: str + internal_use: bool + is_revision: bool + last_modified_timestamp: datetime + last_modified_user: GrantaServerApiListsDtoUserOrGroup + metadata: Dict[str, Dict[str, object]] + name: str + published: bool description: str, optional - identifier: str, optional - internal_use: bool, optional - is_revision: bool, optional - last_modified_timestamp: datetime, optional - last_modified_user: GrantaServerApiListsDtoUserOrGroup, optional - metadata: Dict[str, Dict[str, object]], optional - name: str, optional notes: str, optional parent_record_list_identifier: str, optional - published: bool, optional published_timestamp: datetime, optional published_user: GrantaServerApiListsDtoUserOrGroup, optional """ @@ -140,38 +140,27 @@ def __init__( self._awaiting_approval = None self._internal_use = None - if identifier is not None: - self.identifier = identifier - if metadata is not None: - self.metadata = metadata + self.identifier = identifier + self.metadata = metadata if parent_record_list_identifier is not None: self.parent_record_list_identifier = parent_record_list_identifier - if created_timestamp is not None: - self.created_timestamp = created_timestamp - if created_user is not None: - self.created_user = created_user - if last_modified_timestamp is not None: - self.last_modified_timestamp = last_modified_timestamp - if last_modified_user is not None: - self.last_modified_user = last_modified_user + self.created_timestamp = created_timestamp + self.created_user = created_user + self.last_modified_timestamp = last_modified_timestamp + self.last_modified_user = last_modified_user if published_timestamp is not None: self.published_timestamp = published_timestamp if published_user is not None: self.published_user = published_user - if is_revision is not None: - self.is_revision = is_revision - if name is not None: - self.name = name + self.is_revision = is_revision + self.name = name if description is not None: self.description = description if notes is not None: self.notes = notes - if published is not None: - self.published = published - if awaiting_approval is not None: - self.awaiting_approval = awaiting_approval - if internal_use is not None: - self.internal_use = internal_use + self.published = published + self.awaiting_approval = awaiting_approval + self.internal_use = internal_use @property def identifier(self) -> "str": @@ -193,6 +182,8 @@ def identifier(self, identifier: "str") -> None: identifier: str The identifier of this GrantaServerApiListsDtoRecordListHeader. """ + if identifier is None: + raise ValueError("Invalid value for 'identifier', must not be 'None'") self._identifier = identifier @property @@ -215,6 +206,8 @@ def metadata(self, metadata: "dict(str, dict(str, object))") -> None: metadata: dict(str, dict(str, object)) The metadata of this GrantaServerApiListsDtoRecordListHeader. """ + if metadata is None: + raise ValueError("Invalid value for 'metadata', must not be 'None'") self._metadata = metadata @property @@ -261,6 +254,10 @@ def created_timestamp(self, created_timestamp: "datetime") -> None: created_timestamp: datetime The created_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ + if created_timestamp is None: + raise ValueError( + "Invalid value for 'created_timestamp', must not be 'None'" + ) self._created_timestamp = created_timestamp @property @@ -283,6 +280,8 @@ def created_user(self, created_user: "GrantaServerApiListsDtoUserOrGroup") -> No created_user: GrantaServerApiListsDtoUserOrGroup The created_user of this GrantaServerApiListsDtoRecordListHeader. """ + if created_user is None: + raise ValueError("Invalid value for 'created_user', must not be 'None'") self._created_user = created_user @property @@ -305,6 +304,10 @@ def last_modified_timestamp(self, last_modified_timestamp: "datetime") -> None: last_modified_timestamp: datetime The last_modified_timestamp of this GrantaServerApiListsDtoRecordListHeader. """ + if last_modified_timestamp is None: + raise ValueError( + "Invalid value for 'last_modified_timestamp', must not be 'None'" + ) self._last_modified_timestamp = last_modified_timestamp @property @@ -329,6 +332,10 @@ def last_modified_user( last_modified_user: GrantaServerApiListsDtoUserOrGroup The last_modified_user of this GrantaServerApiListsDtoRecordListHeader. """ + if last_modified_user is None: + raise ValueError( + "Invalid value for 'last_modified_user', must not be 'None'" + ) self._last_modified_user = last_modified_user @property @@ -397,6 +404,8 @@ def is_revision(self, is_revision: "bool") -> None: is_revision: bool The is_revision of this GrantaServerApiListsDtoRecordListHeader. """ + if is_revision is None: + raise ValueError("Invalid value for 'is_revision', must not be 'None'") self._is_revision = is_revision @property @@ -419,6 +428,8 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiListsDtoRecordListHeader. """ + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @property @@ -485,6 +496,8 @@ def published(self, published: "bool") -> None: published: bool The published of this GrantaServerApiListsDtoRecordListHeader. """ + if published is None: + raise ValueError("Invalid value for 'published', must not be 'None'") self._published = published @property @@ -507,6 +520,10 @@ def awaiting_approval(self, awaiting_approval: "bool") -> None: awaiting_approval: bool The awaiting_approval of this GrantaServerApiListsDtoRecordListHeader. """ + if awaiting_approval is None: + raise ValueError( + "Invalid value for 'awaiting_approval', must not be 'None'" + ) self._awaiting_approval = awaiting_approval @property @@ -529,6 +546,8 @@ def internal_use(self, internal_use: "bool") -> None: internal_use: bool The internal_use of this GrantaServerApiListsDtoRecordListHeader. """ + if internal_use is None: + raise ValueError("Invalid value for 'internal_use', must not be 'None'") self._internal_use = internal_use @classmethod 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 new file mode 100644 index 00000000..8f441cd3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_headers_info.py @@ -0,0 +1,121 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoRecordListHeadersInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "lists": "list[GrantaServerApiListsDtoRecordListHeader]", + } + + attribute_map = { + "lists": "lists", + } + + subtype_mapping = { + "lists": "GrantaServerApiListsDtoRecordListHeader", + } + + discriminator = None + + def __init__( + self, + *, + lists: "List[GrantaServerApiListsDtoRecordListHeader]", + ) -> None: + """GrantaServerApiListsDtoRecordListHeadersInfo - a model defined in Swagger + + Parameters + ---------- + lists: List[GrantaServerApiListsDtoRecordListHeader] + """ + self._lists = None + + self.lists = lists + + @property + def lists(self) -> "list[GrantaServerApiListsDtoRecordListHeader]": + """Gets the lists of this GrantaServerApiListsDtoRecordListHeadersInfo. + + Returns + ------- + list[GrantaServerApiListsDtoRecordListHeader] + The lists of this GrantaServerApiListsDtoRecordListHeadersInfo. + """ + return self._lists + + @lists.setter + def lists(self, lists: "list[GrantaServerApiListsDtoRecordListHeader]") -> None: + """Sets the lists of this GrantaServerApiListsDtoRecordListHeadersInfo. + + Parameters + ---------- + lists: list[GrantaServerApiListsDtoRecordListHeader] + The lists of this GrantaServerApiListsDtoRecordListHeadersInfo. + """ + if lists is None: + raise ValueError("Invalid value for 'lists', must not be 'None'") + self._lists = lists + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoRecordListHeadersInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py similarity index 86% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py index 368a318c..3e1f3f3a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_items_info.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoRecordListItems(ModelBase): +class GrantaServerApiListsDtoRecordListItemsInfo(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -53,39 +53,40 @@ class GrantaServerApiListsDtoRecordListItems(ModelBase): def __init__( self, *, - items: "Optional[List[GrantaServerApiListsDtoListItem]]" = None, + items: "List[GrantaServerApiListsDtoListItem]", ) -> None: - """GrantaServerApiListsDtoRecordListItems - a model defined in Swagger + """GrantaServerApiListsDtoRecordListItemsInfo - a model defined in Swagger Parameters ---------- - items: List[GrantaServerApiListsDtoListItem], optional + items: List[GrantaServerApiListsDtoListItem] """ self._items = None - if items is not None: - self.items = items + self.items = items @property def items(self) -> "list[GrantaServerApiListsDtoListItem]": - """Gets the items of this GrantaServerApiListsDtoRecordListItems. + """Gets the items of this GrantaServerApiListsDtoRecordListItemsInfo. Returns ------- list[GrantaServerApiListsDtoListItem] - The items of this GrantaServerApiListsDtoRecordListItems. + The items of this GrantaServerApiListsDtoRecordListItemsInfo. """ return self._items @items.setter def items(self, items: "list[GrantaServerApiListsDtoListItem]") -> None: - """Sets the items of this GrantaServerApiListsDtoRecordListItems. + """Sets the items of this GrantaServerApiListsDtoRecordListItemsInfo. Parameters ---------- items: list[GrantaServerApiListsDtoListItem] - The items of this GrantaServerApiListsDtoRecordListItems. + The items of this GrantaServerApiListsDtoRecordListItemsInfo. """ + if items is None: + raise ValueError("Invalid value for 'items', must not be 'None'") self._items = items @classmethod @@ -110,7 +111,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoRecordListItems): + if not isinstance(other, GrantaServerApiListsDtoRecordListItemsInfo): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags_dto.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py similarity index 72% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags_dto.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py index 1613ed40..b9c1f4a0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags_dto.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_permission_flags.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoRecordListPermissionFlagsDto(ModelBase): +class GrantaServerApiListsDtoRecordListPermissionFlags(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -59,21 +59,21 @@ class GrantaServerApiListsDtoRecordListPermissionFlagsDto(ModelBase): def __init__( self, *, - is_administrator: "Optional[bool]" = None, - is_curator: "Optional[bool]" = None, - is_owner: "Optional[bool]" = None, - is_publisher: "Optional[bool]" = None, - is_subscribed: "Optional[bool]" = None, + is_administrator: "bool", + is_curator: "bool", + is_owner: "bool", + is_publisher: "bool", + is_subscribed: "bool", ) -> None: - """GrantaServerApiListsDtoRecordListPermissionFlagsDto - a model defined in Swagger + """GrantaServerApiListsDtoRecordListPermissionFlags - a model defined in Swagger Parameters ---------- - is_administrator: bool, optional - is_curator: bool, optional - is_owner: bool, optional - is_publisher: bool, optional - is_subscribed: bool, optional + is_administrator: bool + is_curator: bool + is_owner: bool + is_publisher: bool + is_subscribed: bool """ self._is_owner = None self._is_subscribed = None @@ -81,135 +81,140 @@ def __init__( self._is_administrator = None self._is_publisher = None - if is_owner is not None: - self.is_owner = is_owner - if is_subscribed is not None: - self.is_subscribed = is_subscribed - if is_curator is not None: - self.is_curator = is_curator - if is_administrator is not None: - self.is_administrator = is_administrator - if is_publisher is not None: - self.is_publisher = is_publisher + self.is_owner = is_owner + self.is_subscribed = is_subscribed + self.is_curator = is_curator + self.is_administrator = is_administrator + self.is_publisher = is_publisher @property def is_owner(self) -> "bool": - """Gets the is_owner of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is an owner of this list. Null means: do not change this flag's value when inserting into database. + """Gets the is_owner of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is an owner of this list. Returns ------- bool - The is_owner of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_owner of this GrantaServerApiListsDtoRecordListPermissionFlags. """ return self._is_owner @is_owner.setter def is_owner(self, is_owner: "bool") -> None: - """Sets the is_owner of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is an owner of this list. Null means: do not change this flag's value when inserting into database. + """Sets the is_owner of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is an owner of this list. Parameters ---------- is_owner: bool - The is_owner of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_owner of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + if is_owner is None: + raise ValueError("Invalid value for 'is_owner', must not be 'None'") self._is_owner = is_owner @property def is_subscribed(self) -> "bool": - """Gets the is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is subscribed to this list. Null means: do not change this flag's value when inserting into database. + """Gets the is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is subscribed to this list. Returns ------- bool - The is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlags. """ return self._is_subscribed @is_subscribed.setter def is_subscribed(self, is_subscribed: "bool") -> None: - """Sets the is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is subscribed to this list. Null means: do not change this flag's value when inserting into database. + """Sets the is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is subscribed to this list. Parameters ---------- is_subscribed: bool - The is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_subscribed of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + if is_subscribed is None: + raise ValueError("Invalid value for 'is_subscribed', must not be 'None'") self._is_subscribed = is_subscribed @property def is_curator(self) -> "bool": - """Gets the is_curator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is a curator of this list. Null means: do not change this flag's value when inserting into database. + """Gets the is_curator of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is a curator of this list. Returns ------- bool - The is_curator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_curator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ return self._is_curator @is_curator.setter def is_curator(self, is_curator: "bool") -> None: - """Sets the is_curator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is a curator of this list. Null means: do not change this flag's value when inserting into database. + """Sets the is_curator of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is a curator of this list. Parameters ---------- is_curator: bool - The is_curator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_curator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + if is_curator is None: + raise ValueError("Invalid value for 'is_curator', must not be 'None'") self._is_curator = is_curator @property def is_administrator(self) -> "bool": - """Gets the is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is an administrator of this list. Null means: do not change this flag's value when inserting into database. + """Gets the is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is an administrator of this list. Returns ------- bool - The is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ return self._is_administrator @is_administrator.setter def is_administrator(self, is_administrator: "bool") -> None: - """Sets the is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if the user or group is an administrator of this list. Null means: do not change this flag's value when inserting into database. + """Sets the is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if the user or group is an administrator of this list. Parameters ---------- is_administrator: bool - The is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_administrator of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + if is_administrator is None: + raise ValueError("Invalid value for 'is_administrator', must not be 'None'") self._is_administrator = is_administrator @property def is_publisher(self) -> "bool": - """Gets the is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if this user or group is a publisher of this list. Null means: do not change this flag's value when inserting into database. + """Gets the is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if this user or group is a publisher of this list. Returns ------- bool - The is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlags. """ return self._is_publisher @is_publisher.setter def is_publisher(self, is_publisher: "bool") -> None: - """Sets the is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. - Flag indicating if this user or group is a publisher of this list. Null means: do not change this flag's value when inserting into database. + """Sets the is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlags. + Flag indicating if this user or group is a publisher of this list. Parameters ---------- is_publisher: bool - The is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlagsDto. + The is_publisher of this GrantaServerApiListsDtoRecordListPermissionFlags. """ + if is_publisher is None: + raise ValueError("Invalid value for 'is_publisher', must not be 'None'") self._is_publisher = is_publisher @classmethod @@ -234,7 +239,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoRecordListPermissionFlagsDto): + if not isinstance(other, GrantaServerApiListsDtoRecordListPermissionFlags): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_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 7de0961b..3524489e 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 @@ -51,18 +51,17 @@ class GrantaServerApiListsDtoRecordListSearchInfo(ModelBase): def __init__( self, *, - search_result_identifier: "Optional[str]" = None, + search_result_identifier: "str", ) -> None: """GrantaServerApiListsDtoRecordListSearchInfo - a model defined in Swagger Parameters ---------- - search_result_identifier: str, optional + search_result_identifier: str """ self._search_result_identifier = None - if search_result_identifier is not None: - self.search_result_identifier = search_result_identifier + self.search_result_identifier = search_result_identifier @property def search_result_identifier(self) -> "str": @@ -84,6 +83,10 @@ def search_result_identifier(self, search_result_identifier: "str") -> None: search_result_identifier: str The search_result_identifier of this GrantaServerApiListsDtoRecordListSearchInfo. """ + if search_result_identifier is None: + raise ValueError( + "Invalid value for 'search_result_identifier', must not be 'None'" + ) self._search_result_identifier = search_result_identifier @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_request.py index f0a3d63e..c85cc5d2 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 @@ -37,15 +37,15 @@ class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types = { + "search_criterion": "GrantaServerApiListsDtoListCriterion", "paging_options": "GrantaServerApiListsDtoPagingOptions", "response_options": "GrantaServerApiListsDtoResponseOptions", - "search_criterion": "GrantaServerApiListsDtoListCriterion", } attribute_map = { + "search_criterion": "searchCriterion", "paging_options": "pagingOptions", "response_options": "responseOptions", - "search_criterion": "searchCriterion", } subtype_mapping = { @@ -59,24 +59,23 @@ class GrantaServerApiListsDtoRecordListSearchRequest(ModelBase): def __init__( self, *, + search_criterion: "GrantaServerApiListsDtoListCriterion", paging_options: "Optional[GrantaServerApiListsDtoPagingOptions]" = None, response_options: "Optional[GrantaServerApiListsDtoResponseOptions]" = None, - search_criterion: "Optional[GrantaServerApiListsDtoListCriterion]" = None, ) -> None: """GrantaServerApiListsDtoRecordListSearchRequest - a model defined in Swagger Parameters ---------- + search_criterion: GrantaServerApiListsDtoListCriterion paging_options: GrantaServerApiListsDtoPagingOptions, optional response_options: GrantaServerApiListsDtoResponseOptions, optional - search_criterion: GrantaServerApiListsDtoListCriterion, optional """ self._search_criterion = None self._paging_options = None self._response_options = None - if search_criterion is not None: - self.search_criterion = search_criterion + self.search_criterion = search_criterion if paging_options is not None: self.paging_options = paging_options if response_options is not None: @@ -104,6 +103,8 @@ def search_criterion( search_criterion: GrantaServerApiListsDtoListCriterion The search_criterion of this GrantaServerApiListsDtoRecordListSearchRequest. """ + if search_criterion is None: + raise ValueError("Invalid value for 'search_criterion', must not be 'None'") self._search_criterion = search_criterion @property 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 c37e4405..ad4877ab 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 @@ -56,23 +56,21 @@ class GrantaServerApiListsDtoRecordListSearchResult(ModelBase): def __init__( self, *, - header: "Optional[GrantaServerApiListsDtoRecordListHeader]" = None, - items: "Optional[List[GrantaServerApiListsDtoListItem]]" = None, + header: "GrantaServerApiListsDtoRecordListHeader", + items: "List[GrantaServerApiListsDtoListItem]", ) -> None: """GrantaServerApiListsDtoRecordListSearchResult - a model defined in Swagger Parameters ---------- - header: GrantaServerApiListsDtoRecordListHeader, optional - items: List[GrantaServerApiListsDtoListItem], optional + header: GrantaServerApiListsDtoRecordListHeader + items: List[GrantaServerApiListsDtoListItem] """ self._header = None self._items = None - if header is not None: - self.header = header - if items is not None: - self.items = items + self.header = header + self.items = items @property def header(self) -> "GrantaServerApiListsDtoRecordListHeader": @@ -94,6 +92,8 @@ def header(self, header: "GrantaServerApiListsDtoRecordListHeader") -> None: header: GrantaServerApiListsDtoRecordListHeader The header of this GrantaServerApiListsDtoRecordListSearchResult. """ + if header is None: + raise ValueError("Invalid value for 'header', must not be 'None'") self._header = header @property @@ -116,6 +116,8 @@ def items(self, items: "list[GrantaServerApiListsDtoListItem]") -> None: items: list[GrantaServerApiListsDtoListItem] The items of this GrantaServerApiListsDtoRecordListSearchResult. """ + if items is None: + raise ValueError("Invalid value for 'items', must not be 'None'") self._items = items @classmethod 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 new file mode 100644 index 00000000..3df31c9e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_search_results_info.py @@ -0,0 +1,123 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoRecordListSearchResultsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "search_results": "list[GrantaServerApiListsDtoRecordListSearchResult]", + } + + attribute_map = { + "search_results": "searchResults", + } + + subtype_mapping = { + "searchResults": "GrantaServerApiListsDtoRecordListSearchResult", + } + + discriminator = None + + def __init__( + self, + *, + search_results: "List[GrantaServerApiListsDtoRecordListSearchResult]", + ) -> None: + """GrantaServerApiListsDtoRecordListSearchResultsInfo - a model defined in Swagger + + Parameters + ---------- + search_results: List[GrantaServerApiListsDtoRecordListSearchResult] + """ + self._search_results = None + + self.search_results = search_results + + @property + def search_results(self) -> "list[GrantaServerApiListsDtoRecordListSearchResult]": + """Gets the search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. + + Returns + ------- + list[GrantaServerApiListsDtoRecordListSearchResult] + The search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. + """ + return self._search_results + + @search_results.setter + def search_results( + self, search_results: "list[GrantaServerApiListsDtoRecordListSearchResult]" + ) -> None: + """Sets the search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. + + Parameters + ---------- + search_results: list[GrantaServerApiListsDtoRecordListSearchResult] + The search_results of this GrantaServerApiListsDtoRecordListSearchResultsInfo. + """ + if search_results is None: + raise ValueError("Invalid value for 'search_results', must not be 'None'") + self._search_results = search_results + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoRecordListSearchResultsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..ead0ff1c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_permission_flags.py @@ -0,0 +1,219 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoUpdateRecordListPermissionFlags(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "is_administrator": "bool", + "is_curator": "bool", + "is_publisher": "bool", + "is_subscribed": "bool", + } + + attribute_map = { + "is_administrator": "isAdministrator", + "is_curator": "isCurator", + "is_publisher": "isPublisher", + "is_subscribed": "isSubscribed", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + is_administrator: "bool", + is_curator: "bool", + is_publisher: "bool", + is_subscribed: "bool", + ) -> None: + """GrantaServerApiListsDtoUpdateRecordListPermissionFlags - a model defined in Swagger + + Parameters + ---------- + is_administrator: bool + is_curator: bool + 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 = is_subscribed + self.is_curator = is_curator + self.is_administrator = is_administrator + self.is_publisher = is_publisher + + @property + def is_subscribed(self) -> "bool": + """Gets the is_subscribed of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is subscribed to this list. + + Returns + ------- + bool + The is_subscribed of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + return self._is_subscribed + + @is_subscribed.setter + def is_subscribed(self, is_subscribed: "bool") -> None: + """Sets the is_subscribed of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is subscribed to this list. + + Parameters + ---------- + is_subscribed: bool + The is_subscribed of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + if is_subscribed is None: + raise ValueError("Invalid value for 'is_subscribed', must not be 'None'") + self._is_subscribed = is_subscribed + + @property + def is_curator(self) -> "bool": + """Gets the is_curator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is a curator of this list. + + Returns + ------- + bool + The is_curator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + return self._is_curator + + @is_curator.setter + def is_curator(self, is_curator: "bool") -> None: + """Sets the is_curator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is a curator of this list. + + Parameters + ---------- + is_curator: bool + The is_curator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + if is_curator is None: + raise ValueError("Invalid value for 'is_curator', must not be 'None'") + self._is_curator = is_curator + + @property + def is_administrator(self) -> "bool": + """Gets the is_administrator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is an administrator of this list. + + Returns + ------- + bool + The is_administrator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + return self._is_administrator + + @is_administrator.setter + def is_administrator(self, is_administrator: "bool") -> None: + """Sets the is_administrator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if the user or group is an administrator of this list. + + Parameters + ---------- + is_administrator: bool + The is_administrator of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + if is_administrator is None: + raise ValueError("Invalid value for 'is_administrator', must not be 'None'") + self._is_administrator = is_administrator + + @property + def is_publisher(self) -> "bool": + """Gets the is_publisher of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if this user or group is a publisher of this list. + + Returns + ------- + bool + The is_publisher of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + return self._is_publisher + + @is_publisher.setter + def is_publisher(self, is_publisher: "bool") -> None: + """Sets the is_publisher of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + Flag indicating if this user or group is a publisher of this list. + + Parameters + ---------- + is_publisher: bool + The is_publisher of this GrantaServerApiListsDtoUpdateRecordListPermissionFlags. + """ + if is_publisher is None: + raise ValueError("Invalid value for 'is_publisher', must not be 'None'") + self._is_publisher = is_publisher + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiListsDtoUpdateRecordListPermissionFlags + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_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 similarity index 76% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_record_list_properties.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_record_list_properties.py index 95601313..637a7bd0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_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 @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoRecordListProperties(ModelBase): +class GrantaServerApiListsDtoUpdateRecordListProperties(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -68,7 +68,7 @@ def __init__( notes: "Optional[str]" = None, published: "Optional[bool]" = None, ) -> None: - """GrantaServerApiListsDtoRecordListProperties - a model defined in Swagger + """GrantaServerApiListsDtoUpdateRecordListProperties - a model defined in Swagger Parameters ---------- @@ -101,133 +101,133 @@ def __init__( @property def name(self) -> "str": - """Gets the name of this GrantaServerApiListsDtoRecordListProperties. + """Gets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- str - The name of this GrantaServerApiListsDtoRecordListProperties. + The name of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._name @name.setter def name(self, name: "str") -> None: - """Sets the name of this GrantaServerApiListsDtoRecordListProperties. + """Sets the name of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- name: str - The name of this GrantaServerApiListsDtoRecordListProperties. + The name of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._name = name @property def description(self) -> "str": - """Gets the description of this GrantaServerApiListsDtoRecordListProperties. + """Gets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- str - The description of this GrantaServerApiListsDtoRecordListProperties. + The description of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._description @description.setter def description(self, description: "str") -> None: - """Sets the description of this GrantaServerApiListsDtoRecordListProperties. + """Sets the description of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- description: str - The description of this GrantaServerApiListsDtoRecordListProperties. + The description of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._description = description @property def notes(self) -> "str": - """Gets the notes of this GrantaServerApiListsDtoRecordListProperties. + """Gets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- str - The notes of this GrantaServerApiListsDtoRecordListProperties. + The notes of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._notes @notes.setter def notes(self, notes: "str") -> None: - """Sets the notes of this GrantaServerApiListsDtoRecordListProperties. + """Sets the notes of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- notes: str - The notes of this GrantaServerApiListsDtoRecordListProperties. + The notes of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._notes = notes @property def published(self) -> "bool": - """Gets the published of this GrantaServerApiListsDtoRecordListProperties. + """Gets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- bool - The published of this GrantaServerApiListsDtoRecordListProperties. + The published of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._published @published.setter def published(self, published: "bool") -> None: - """Sets the published of this GrantaServerApiListsDtoRecordListProperties. + """Sets the published of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- published: bool - The published of this GrantaServerApiListsDtoRecordListProperties. + The published of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._published = published @property def awaiting_approval(self) -> "bool": - """Gets the awaiting_approval of this GrantaServerApiListsDtoRecordListProperties. + """Gets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- bool - The awaiting_approval of this GrantaServerApiListsDtoRecordListProperties. + The awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._awaiting_approval @awaiting_approval.setter def awaiting_approval(self, awaiting_approval: "bool") -> None: - """Sets the awaiting_approval of this GrantaServerApiListsDtoRecordListProperties. + """Sets the awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- awaiting_approval: bool - The awaiting_approval of this GrantaServerApiListsDtoRecordListProperties. + The awaiting_approval of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._awaiting_approval = awaiting_approval @property def internal_use(self) -> "bool": - """Gets the internal_use of this GrantaServerApiListsDtoRecordListProperties. + """Gets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Returns ------- bool - The internal_use of this GrantaServerApiListsDtoRecordListProperties. + The internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. """ return self._internal_use @internal_use.setter def internal_use(self, internal_use: "bool") -> None: - """Sets the internal_use of this GrantaServerApiListsDtoRecordListProperties. + """Sets the internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. Parameters ---------- internal_use: bool - The internal_use of this GrantaServerApiListsDtoRecordListProperties. + The internal_use of this GrantaServerApiListsDtoUpdateRecordListProperties. """ self._internal_use = internal_use @@ -253,7 +253,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoRecordListProperties): + if not isinstance(other, GrantaServerApiListsDtoUpdateRecordListProperties): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_input_dto.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py similarity index 65% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_input_dto.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py index 4de9eb6e..ce8edfd0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_input_dto.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permission.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoUserPermissionInputDto(ModelBase): +class GrantaServerApiListsDtoUpdateUserPermission(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,7 +37,7 @@ class GrantaServerApiListsDtoUserPermissionInputDto(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types = { - "flags": "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + "flags": "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", "user_or_group_identifier": "str", } @@ -47,7 +47,7 @@ class GrantaServerApiListsDtoUserPermissionInputDto(ModelBase): } subtype_mapping = { - "flags": "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + "flags": "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", } discriminator = None @@ -55,70 +55,74 @@ class GrantaServerApiListsDtoUserPermissionInputDto(ModelBase): def __init__( self, *, - flags: "Optional[GrantaServerApiListsDtoRecordListPermissionFlagsDto]" = None, - user_or_group_identifier: "Optional[str]" = None, + flags: "GrantaServerApiListsDtoUpdateRecordListPermissionFlags", + user_or_group_identifier: "str", ) -> None: - """GrantaServerApiListsDtoUserPermissionInputDto - a model defined in Swagger + """GrantaServerApiListsDtoUpdateUserPermission - a model defined in Swagger Parameters ---------- - flags: GrantaServerApiListsDtoRecordListPermissionFlagsDto, optional - user_or_group_identifier: str, optional + flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags + user_or_group_identifier: str """ self._user_or_group_identifier = None self._flags = None - if user_or_group_identifier is not None: - self.user_or_group_identifier = user_or_group_identifier - if flags is not None: - self.flags = flags + self.user_or_group_identifier = user_or_group_identifier + self.flags = flags @property def user_or_group_identifier(self) -> "str": - """Gets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionInputDto. + """Gets the user_or_group_identifier of this GrantaServerApiListsDtoUpdateUserPermission. The user or group identifier Returns ------- str - The user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionInputDto. + The user_or_group_identifier of this GrantaServerApiListsDtoUpdateUserPermission. """ return self._user_or_group_identifier @user_or_group_identifier.setter def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: - """Sets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionInputDto. + """Sets the user_or_group_identifier of this GrantaServerApiListsDtoUpdateUserPermission. The user or group identifier Parameters ---------- user_or_group_identifier: str - The user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionInputDto. + The user_or_group_identifier of this GrantaServerApiListsDtoUpdateUserPermission. """ + if user_or_group_identifier is None: + raise ValueError( + "Invalid value for 'user_or_group_identifier', must not be 'None'" + ) self._user_or_group_identifier = user_or_group_identifier @property - def flags(self) -> "GrantaServerApiListsDtoRecordListPermissionFlagsDto": - """Gets the flags of this GrantaServerApiListsDtoUserPermissionInputDto. + def flags(self) -> "GrantaServerApiListsDtoUpdateRecordListPermissionFlags": + """Gets the flags of this GrantaServerApiListsDtoUpdateUserPermission. Returns ------- - GrantaServerApiListsDtoRecordListPermissionFlagsDto - The flags of this GrantaServerApiListsDtoUserPermissionInputDto. + GrantaServerApiListsDtoUpdateRecordListPermissionFlags + The flags of this GrantaServerApiListsDtoUpdateUserPermission. """ return self._flags @flags.setter def flags( - self, flags: "GrantaServerApiListsDtoRecordListPermissionFlagsDto" + self, flags: "GrantaServerApiListsDtoUpdateRecordListPermissionFlags" ) -> None: - """Sets the flags of this GrantaServerApiListsDtoUserPermissionInputDto. + """Sets the flags of this GrantaServerApiListsDtoUpdateUserPermission. Parameters ---------- - flags: GrantaServerApiListsDtoRecordListPermissionFlagsDto - The flags of this GrantaServerApiListsDtoUserPermissionInputDto. + flags: GrantaServerApiListsDtoUpdateRecordListPermissionFlags + The flags of this GrantaServerApiListsDtoUpdateUserPermission. """ + if flags is None: + raise ValueError("Invalid value for 'flags', must not be 'None'") self._flags = flags @classmethod @@ -143,7 +147,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoUserPermissionInputDto): + if not isinstance(other, GrantaServerApiListsDtoUpdateUserPermission): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_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 new file mode 100644 index 00000000..94cdbf40 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_update_user_permissions_info.py @@ -0,0 +1,123 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoUpdateUserPermissionsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "user_permissions": "list[GrantaServerApiListsDtoUpdateUserPermission]", + } + + attribute_map = { + "user_permissions": "userPermissions", + } + + subtype_mapping = { + "userPermissions": "GrantaServerApiListsDtoUpdateUserPermission", + } + + discriminator = None + + def __init__( + self, + *, + user_permissions: "List[GrantaServerApiListsDtoUpdateUserPermission]", + ) -> None: + """GrantaServerApiListsDtoUpdateUserPermissionsInfo - a model defined in Swagger + + Parameters + ---------- + user_permissions: List[GrantaServerApiListsDtoUpdateUserPermission] + """ + self._user_permissions = None + + self.user_permissions = user_permissions + + @property + def user_permissions(self) -> "list[GrantaServerApiListsDtoUpdateUserPermission]": + """Gets the user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. + + Returns + ------- + list[GrantaServerApiListsDtoUpdateUserPermission] + The user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. + """ + return self._user_permissions + + @user_permissions.setter + def user_permissions( + self, user_permissions: "list[GrantaServerApiListsDtoUpdateUserPermission]" + ) -> None: + """Sets the user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. + + Parameters + ---------- + user_permissions: list[GrantaServerApiListsDtoUpdateUserPermission] + The user_permissions of this GrantaServerApiListsDtoUpdateUserPermissionsInfo. + """ + if user_permissions is None: + raise ValueError("Invalid value for 'user_permissions', must not be 'None'") + self._user_permissions = user_permissions + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoUpdateUserPermissionsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 c41340ef..5846369c 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 @@ -55,28 +55,25 @@ class GrantaServerApiListsDtoUserOrGroup(ModelBase): def __init__( self, *, - display_name: "Optional[str]" = None, - identifier: "Optional[str]" = None, - name: "Optional[str]" = None, + display_name: "str", + identifier: "str", + name: "str", ) -> None: """GrantaServerApiListsDtoUserOrGroup - a model defined in Swagger Parameters ---------- - display_name: str, optional - identifier: str, optional - name: str, optional + display_name: str + identifier: str + name: str """ self._identifier = None self._display_name = None self._name = None - if identifier is not None: - self.identifier = identifier - if display_name is not None: - self.display_name = display_name - if name is not None: - self.name = name + self.identifier = identifier + self.display_name = display_name + self.name = name @property def identifier(self) -> "str": @@ -98,6 +95,8 @@ def identifier(self, identifier: "str") -> None: identifier: str The identifier of this GrantaServerApiListsDtoUserOrGroup. """ + if identifier is None: + raise ValueError("Invalid value for 'identifier', must not be 'None'") self._identifier = identifier @property @@ -120,6 +119,8 @@ def display_name(self, display_name: "str") -> None: display_name: str The display_name of this GrantaServerApiListsDtoUserOrGroup. """ + if display_name is None: + raise ValueError("Invalid value for 'display_name', must not be 'None'") self._display_name = display_name @property @@ -142,6 +143,8 @@ def name(self, name: "str") -> None: name: str The name of this GrantaServerApiListsDtoUserOrGroup. """ + if name is None: + raise ValueError("Invalid value for 'name', must not be 'None'") self._name = name @classmethod diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_dto.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py similarity index 77% rename from ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_dto.py rename to ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py index 07655626..8afecff4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission_dto.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permission.py @@ -18,7 +18,7 @@ from . import * -class GrantaServerApiListsDtoUserPermissionDto(ModelBase): +class GrantaServerApiListsDtoUserPermission(ModelBase): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,7 +37,7 @@ class GrantaServerApiListsDtoUserPermissionDto(ModelBase): Name of the property used as discriminator for subtypes. """ swagger_types = { - "flags": "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + "flags": "GrantaServerApiListsDtoRecordListPermissionFlags", "user_or_group_identifier": "str", "user_or_group_name": "str", } @@ -49,7 +49,7 @@ class GrantaServerApiListsDtoUserPermissionDto(ModelBase): } subtype_mapping = { - "flags": "GrantaServerApiListsDtoRecordListPermissionFlagsDto", + "flags": "GrantaServerApiListsDtoRecordListPermissionFlags", } discriminator = None @@ -57,99 +57,104 @@ class GrantaServerApiListsDtoUserPermissionDto(ModelBase): def __init__( self, *, - flags: "Optional[GrantaServerApiListsDtoRecordListPermissionFlagsDto]" = None, - user_or_group_identifier: "Optional[str]" = None, - user_or_group_name: "Optional[str]" = None, + flags: "GrantaServerApiListsDtoRecordListPermissionFlags", + user_or_group_identifier: "str", + user_or_group_name: "str", ) -> None: - """GrantaServerApiListsDtoUserPermissionDto - a model defined in Swagger + """GrantaServerApiListsDtoUserPermission - a model defined in Swagger Parameters ---------- - flags: GrantaServerApiListsDtoRecordListPermissionFlagsDto, optional - user_or_group_identifier: str, optional - user_or_group_name: str, optional + flags: GrantaServerApiListsDtoRecordListPermissionFlags + 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 - if user_or_group_name is not None: - self.user_or_group_name = user_or_group_name - if user_or_group_identifier is not None: - self.user_or_group_identifier = user_or_group_identifier - if flags is not None: - self.flags = flags + self.user_or_group_name = user_or_group_name + self.user_or_group_identifier = user_or_group_identifier + self.flags = flags @property def user_or_group_name(self) -> "str": - """Gets the user_or_group_name of this GrantaServerApiListsDtoUserPermissionDto. + """Gets the user_or_group_name of this GrantaServerApiListsDtoUserPermission. The user or group name. Returns ------- str - The user_or_group_name of this GrantaServerApiListsDtoUserPermissionDto. + The user_or_group_name of this GrantaServerApiListsDtoUserPermission. """ return self._user_or_group_name @user_or_group_name.setter def user_or_group_name(self, user_or_group_name: "str") -> None: - """Sets the user_or_group_name of this GrantaServerApiListsDtoUserPermissionDto. + """Sets the user_or_group_name of this GrantaServerApiListsDtoUserPermission. The user or group name. Parameters ---------- user_or_group_name: str - The user_or_group_name of this GrantaServerApiListsDtoUserPermissionDto. + The user_or_group_name of this GrantaServerApiListsDtoUserPermission. """ + if user_or_group_name is None: + raise ValueError( + "Invalid value for 'user_or_group_name', must not be 'None'" + ) self._user_or_group_name = user_or_group_name @property def user_or_group_identifier(self) -> "str": - """Gets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionDto. + """Gets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermission. The user or group identifier Returns ------- str - The user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionDto. + The user_or_group_identifier of this GrantaServerApiListsDtoUserPermission. """ return self._user_or_group_identifier @user_or_group_identifier.setter def user_or_group_identifier(self, user_or_group_identifier: "str") -> None: - """Sets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionDto. + """Sets the user_or_group_identifier of this GrantaServerApiListsDtoUserPermission. The user or group identifier Parameters ---------- user_or_group_identifier: str - The user_or_group_identifier of this GrantaServerApiListsDtoUserPermissionDto. + The user_or_group_identifier of this GrantaServerApiListsDtoUserPermission. """ + if user_or_group_identifier is None: + raise ValueError( + "Invalid value for 'user_or_group_identifier', must not be 'None'" + ) self._user_or_group_identifier = user_or_group_identifier @property - def flags(self) -> "GrantaServerApiListsDtoRecordListPermissionFlagsDto": - """Gets the flags of this GrantaServerApiListsDtoUserPermissionDto. + def flags(self) -> "GrantaServerApiListsDtoRecordListPermissionFlags": + """Gets the flags of this GrantaServerApiListsDtoUserPermission. Returns ------- - GrantaServerApiListsDtoRecordListPermissionFlagsDto - The flags of this GrantaServerApiListsDtoUserPermissionDto. + GrantaServerApiListsDtoRecordListPermissionFlags + The flags of this GrantaServerApiListsDtoUserPermission. """ return self._flags @flags.setter - def flags( - self, flags: "GrantaServerApiListsDtoRecordListPermissionFlagsDto" - ) -> None: - """Sets the flags of this GrantaServerApiListsDtoUserPermissionDto. + def flags(self, flags: "GrantaServerApiListsDtoRecordListPermissionFlags") -> None: + """Sets the flags of this GrantaServerApiListsDtoUserPermission. Parameters ---------- - flags: GrantaServerApiListsDtoRecordListPermissionFlagsDto - The flags of this GrantaServerApiListsDtoUserPermissionDto. + flags: GrantaServerApiListsDtoRecordListPermissionFlags + The flags of this GrantaServerApiListsDtoUserPermission. """ + if flags is None: + raise ValueError("Invalid value for 'flags', must not be 'None'") self._flags = flags @classmethod @@ -174,7 +179,7 @@ def __repr__(self) -> str: def __eq__(self, other: Any) -> bool: """Returns true if both objects are equal""" - if not isinstance(other, GrantaServerApiListsDtoUserPermissionDto): + if not isinstance(other, GrantaServerApiListsDtoUserPermission): return False return self.__dict__ == other.__dict__ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py new file mode 100644 index 00000000..237d8619 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_lists_dto_user_permissions_info.py @@ -0,0 +1,123 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiListsDtoUserPermissionsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "user_permissions": "list[GrantaServerApiListsDtoUserPermission]", + } + + attribute_map = { + "user_permissions": "userPermissions", + } + + subtype_mapping = { + "userPermissions": "GrantaServerApiListsDtoUserPermission", + } + + discriminator = None + + def __init__( + self, + *, + user_permissions: "List[GrantaServerApiListsDtoUserPermission]", + ) -> None: + """GrantaServerApiListsDtoUserPermissionsInfo - a model defined in Swagger + + Parameters + ---------- + user_permissions: List[GrantaServerApiListsDtoUserPermission] + """ + self._user_permissions = None + + self.user_permissions = user_permissions + + @property + def user_permissions(self) -> "list[GrantaServerApiListsDtoUserPermission]": + """Gets the user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. + + Returns + ------- + list[GrantaServerApiListsDtoUserPermission] + The user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. + """ + return self._user_permissions + + @user_permissions.setter + def user_permissions( + self, user_permissions: "list[GrantaServerApiListsDtoUserPermission]" + ) -> None: + """Sets the user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. + + Parameters + ---------- + user_permissions: list[GrantaServerApiListsDtoUserPermission] + The user_permissions of this GrantaServerApiListsDtoUserPermissionsInfo. + """ + if user_permissions is None: + raise ValueError("Invalid value for 'user_permissions', must not be 'None'") + self._user_permissions = user_permissions + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiListsDtoUserPermissionsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..3f2a3774 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_copy_record_history.py @@ -0,0 +1,150 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiRecordsRecordHistoriesCopyRecordHistory(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "parent_guid": "str", + "new_short_name": "str", + } + + attribute_map = { + "parent_guid": "parentGuid", + "new_short_name": "newShortName", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + parent_guid: "str", + new_short_name: "Optional[str]" = None, + ) -> None: + """GrantaServerApiRecordsRecordHistoriesCopyRecordHistory - a model defined in Swagger + + Parameters + ---------- + parent_guid: str + new_short_name: str, optional + """ + self._parent_guid = None + self._new_short_name = None + + self.parent_guid = parent_guid + if new_short_name is not None: + self.new_short_name = new_short_name + + @property + def parent_guid(self) -> "str": + """Gets the parent_guid of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Returns + ------- + str + The parent_guid of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + return self._parent_guid + + @parent_guid.setter + def parent_guid(self, parent_guid: "str") -> None: + """Sets the parent_guid of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Parameters + ---------- + parent_guid: str + The parent_guid of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + if parent_guid is None: + raise ValueError("Invalid value for 'parent_guid', must not be 'None'") + self._parent_guid = parent_guid + + @property + def new_short_name(self) -> "str": + """Gets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Returns + ------- + str + The new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + return self._new_short_name + + @new_short_name.setter + def new_short_name(self, new_short_name: "str") -> None: + """Sets the new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + + Parameters + ---------- + new_short_name: str + The new_short_name of this GrantaServerApiRecordsRecordHistoriesCopyRecordHistory. + """ + self._new_short_name = new_short_name + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiRecordsRecordHistoriesCopyRecordHistory + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..7177542b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_create_record_history.py @@ -0,0 +1,243 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiRecordsRecordHistoriesCreateRecordHistory(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "full_name": "str", + "record_type": "GrantaServerApiRecordType", + "guid": "str", + "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + "tree_name": "str", + } + + attribute_map = { + "full_name": "fullName", + "record_type": "recordType", + "guid": "guid", + "parent": "parent", + "tree_name": "treeName", + } + + subtype_mapping = { + "recordType": "GrantaServerApiRecordType", + "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", + } + + discriminator = None + + def __init__( + self, + *, + full_name: "str", + record_type: "GrantaServerApiRecordType", + guid: "Optional[str]" = None, + parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, + tree_name: "Optional[str]" = None, + ) -> None: + """GrantaServerApiRecordsRecordHistoriesCreateRecordHistory - a model defined in Swagger + + Parameters + ---------- + full_name: str + record_type: GrantaServerApiRecordType + guid: str, optional + parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional + tree_name: str, optional + """ + self._record_type = None + self._full_name = None + self._tree_name = None + self._parent = None + self._guid = None + + self.record_type = record_type + self.full_name = full_name + if tree_name is not None: + self.tree_name = tree_name + if parent is not None: + self.parent = parent + if guid is not None: + self.guid = guid + + @property + def record_type(self) -> "GrantaServerApiRecordType": + """Gets the record_type of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + GrantaServerApiRecordType + The record_type of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._record_type + + @record_type.setter + def record_type(self, record_type: "GrantaServerApiRecordType") -> None: + """Sets the record_type of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + record_type: GrantaServerApiRecordType + The record_type of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + if record_type is None: + raise ValueError("Invalid value for 'record_type', must not be 'None'") + self._record_type = record_type + + @property + def full_name(self) -> "str": + """Gets the full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + str + The full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._full_name + + @full_name.setter + def full_name(self, full_name: "str") -> None: + """Sets the full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + full_name: str + The full_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + if full_name is None: + raise ValueError("Invalid value for 'full_name', must not be 'None'") + self._full_name = full_name + + @property + def tree_name(self) -> "str": + """Gets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + str + The tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._tree_name + + @tree_name.setter + def tree_name(self, tree_name: "str") -> None: + """Sets the tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + tree_name: str + The tree_name of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + self._tree_name = tree_name + + @property + def parent(self) -> "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory": + """Gets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + The parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._parent + + @parent.setter + def parent( + self, parent: "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + ) -> None: + """Sets the parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory + The parent of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + self._parent = parent + + @property + def guid(self) -> "str": + """Gets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Returns + ------- + str + The guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + return self._guid + + @guid.setter + def guid(self, guid: "str") -> None: + """Sets the guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + + Parameters + ---------- + guid: str + The guid of this GrantaServerApiRecordsRecordHistoriesCreateRecordHistory. + """ + self._guid = guid + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiRecordsRecordHistoriesCreateRecordHistory + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 new file mode 100644 index 00000000..a7aee36e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_records_record_histories_move_record_history.py @@ -0,0 +1,121 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiRecordsRecordHistoriesMoveRecordHistory(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "parent_guid": "str", + } + + attribute_map = { + "parent_guid": "parentGuid", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + parent_guid: "str", + ) -> None: + """GrantaServerApiRecordsRecordHistoriesMoveRecordHistory - a model defined in Swagger + + Parameters + ---------- + parent_guid: str + """ + self._parent_guid = None + + self.parent_guid = parent_guid + + @property + def parent_guid(self) -> "str": + """Gets the parent_guid of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. + + Returns + ------- + str + The parent_guid of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. + """ + return self._parent_guid + + @parent_guid.setter + def parent_guid(self, parent_guid: "str") -> None: + """Sets the parent_guid of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. + + Parameters + ---------- + parent_guid: str + The parent_guid of this GrantaServerApiRecordsRecordHistoriesMoveRecordHistory. + """ + if parent_guid is None: + raise ValueError("Invalid value for 'parent_guid', must not be 'None'") + self._parent_guid = parent_guid + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiRecordsRecordHistoriesMoveRecordHistory + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_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 d2357122..e449f841 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 @@ -40,6 +40,7 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): "guid": "str", "is_folder": "bool", "record_versions": "list[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", + "subsets": "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]", "table": "GrantaServerApiSchemaSlimEntitiesSlimTable", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", } @@ -48,6 +49,7 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): "guid": "guid", "is_folder": "isFolder", "record_versions": "recordVersions", + "subsets": "subsets", "table": "table", "parent": "parent", } @@ -56,6 +58,7 @@ class GrantaServerApiRecordsRecordHistoriesRecordHistory(ModelBase): "table": "GrantaServerApiSchemaSlimEntitiesSlimTable", "parent": "GrantaServerApiRecordsRecordHistoriesSlimRecordHistory", "recordVersions": "GrantaServerApiRecordsRecordVersionsSlimRecordVersion", + "subsets": "GrantaServerApiSchemaSlimEntitiesSlimSubset", } discriminator = None @@ -66,6 +69,7 @@ def __init__( guid: "str", is_folder: "bool", record_versions: "List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion]", + subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]", table: "GrantaServerApiSchemaSlimEntitiesSlimTable", parent: "Optional[GrantaServerApiRecordsRecordHistoriesSlimRecordHistory]" = None, ) -> None: @@ -76,6 +80,7 @@ def __init__( guid: str is_folder: bool record_versions: List[GrantaServerApiRecordsRecordVersionsSlimRecordVersion] + subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] table: GrantaServerApiSchemaSlimEntitiesSlimTable parent: GrantaServerApiRecordsRecordHistoriesSlimRecordHistory, optional """ @@ -83,6 +88,7 @@ def __init__( self._table = None self._parent = None self._record_versions = None + self._subsets = None self._guid = None self.is_folder = is_folder @@ -90,6 +96,7 @@ def __init__( if parent is not None: self.parent = parent self.record_versions = record_versions + self.subsets = subsets self.guid = guid @property @@ -193,6 +200,32 @@ def record_versions( raise ValueError("Invalid value for 'record_versions', must not be 'None'") self._record_versions = record_versions + @property + def subsets(self) -> "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]": + """Gets the subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. + + Returns + ------- + list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + The subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. + """ + return self._subsets + + @subsets.setter + def subsets( + self, subsets: "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]" + ) -> None: + """Sets the subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. + + Parameters + ---------- + subsets: list[GrantaServerApiSchemaSlimEntitiesSlimSubset] + The subsets of this GrantaServerApiRecordsRecordHistoriesRecordHistory. + """ + if subsets is None: + raise ValueError("Invalid value for 'subsets', must not be 'None'") + self._subsets = subsets + @property def guid(self) -> "str": """Gets the guid of this GrantaServerApiRecordsRecordHistoriesRecordHistory. 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 new file mode 100644 index 00000000..22d13f7a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_add_record_history_to_subset.py @@ -0,0 +1,150 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "record_history_guid": "str", + "recurse_children": "bool", + } + + attribute_map = { + "record_history_guid": "recordHistoryGuid", + "recurse_children": "recurseChildren", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + record_history_guid: "str", + recurse_children: "Optional[bool]" = None, + ) -> None: + """GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset - a model defined in Swagger + + Parameters + ---------- + record_history_guid: str + recurse_children: bool, optional + """ + self._record_history_guid = None + self._recurse_children = None + + self.record_history_guid = record_history_guid + if recurse_children is not None: + self.recurse_children = recurse_children + + @property + def record_history_guid(self) -> "str": + """Gets the record_history_guid of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + + Returns + ------- + str + The record_history_guid of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + """ + return self._record_history_guid + + @record_history_guid.setter + def record_history_guid(self, record_history_guid: "str") -> None: + """Sets the record_history_guid of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + + Parameters + ---------- + record_history_guid: str + The record_history_guid of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + """ + if record_history_guid is None: + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'None'" + ) + self._record_history_guid = record_history_guid + + @property + def recurse_children(self) -> "bool": + """Gets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + + Returns + ------- + bool + The recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + """ + return self._recurse_children + + @recurse_children.setter + def recurse_children(self, recurse_children: "bool") -> None: + """Sets the recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + + Parameters + ---------- + recurse_children: bool + The recurse_children of this GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset. + """ + self._recurse_children = recurse_children + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_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 new file mode 100644 index 00000000..12ea4d3c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_subsets_remove_record_history_from_subset.py @@ -0,0 +1,123 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "record_history_guid": "str", + } + + attribute_map = { + "record_history_guid": "recordHistoryGuid", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + record_history_guid: "str", + ) -> None: + """GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset - a model defined in Swagger + + Parameters + ---------- + record_history_guid: str + """ + self._record_history_guid = None + + self.record_history_guid = record_history_guid + + @property + def record_history_guid(self) -> "str": + """Gets the record_history_guid of this GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset. + + Returns + ------- + str + The record_history_guid of this GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset. + """ + return self._record_history_guid + + @record_history_guid.setter + def record_history_guid(self, record_history_guid: "str") -> None: + """Sets the record_history_guid of this GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset. + + Parameters + ---------- + record_history_guid: str + The record_history_guid of this GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset. + """ + if record_history_guid is None: + raise ValueError( + "Invalid value for 'record_history_guid', must not be 'None'" + ) + self._record_history_guid = record_history_guid + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tables_table.py index 31c0fbb7..8588a060 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 @@ -45,6 +45,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "layouts": "list[GrantaServerApiSchemaSlimEntitiesSlimLayout]", "name": "str", "subsets": "list[GrantaServerApiSchemaSlimEntitiesSlimSubset]", + "version_state": "GrantaServerApiVersionState", "default_layout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", "default_subset": "GrantaServerApiSchemaSlimEntitiesSlimSubset", } @@ -58,6 +59,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "layouts": "layouts", "name": "name", "subsets": "subsets", + "version_state": "versionState", "default_layout": "defaultLayout", "default_subset": "defaultSubset", } @@ -67,6 +69,7 @@ class GrantaServerApiSchemaTablesTable(ModelBase): "subsets": "GrantaServerApiSchemaSlimEntitiesSlimSubset", "defaultLayout": "GrantaServerApiSchemaSlimEntitiesSlimLayout", "layouts": "GrantaServerApiSchemaSlimEntitiesSlimLayout", + "versionState": "GrantaServerApiVersionState", } discriminator = None @@ -82,6 +85,7 @@ def __init__( layouts: "List[GrantaServerApiSchemaSlimEntitiesSlimLayout]", name: "str", subsets: "List[GrantaServerApiSchemaSlimEntitiesSlimSubset]", + version_state: "GrantaServerApiVersionState", default_layout: "Optional[GrantaServerApiSchemaSlimEntitiesSlimLayout]" = None, default_subset: "Optional[GrantaServerApiSchemaSlimEntitiesSlimSubset]" = None, ) -> None: @@ -97,6 +101,7 @@ def __init__( layouts: List[GrantaServerApiSchemaSlimEntitiesSlimLayout] name: str subsets: List[GrantaServerApiSchemaSlimEntitiesSlimSubset] + version_state: GrantaServerApiVersionState default_layout: GrantaServerApiSchemaSlimEntitiesSlimLayout, optional default_subset: GrantaServerApiSchemaSlimEntitiesSlimSubset, optional """ @@ -104,6 +109,7 @@ def __init__( self._subsets = None 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 @@ -117,6 +123,7 @@ def __init__( if default_layout is not None: self.default_layout = default_layout self.layouts = layouts + self.version_state = version_state self.is_hidden_from_browse = is_hidden_from_browse self.is_hidden_from_search = is_hidden_from_search self.is_versioned = is_versioned @@ -224,6 +231,30 @@ def layouts( raise ValueError("Invalid value for 'layouts', must not be 'None'") self._layouts = layouts + @property + def version_state(self) -> "GrantaServerApiVersionState": + """Gets the version_state of this GrantaServerApiSchemaTablesTable. + + Returns + ------- + GrantaServerApiVersionState + The version_state of this GrantaServerApiSchemaTablesTable. + """ + return self._version_state + + @version_state.setter + def version_state(self, version_state: "GrantaServerApiVersionState") -> None: + """Sets the version_state of this GrantaServerApiSchemaTablesTable. + + Parameters + ---------- + version_state: GrantaServerApiVersionState + The version_state of this GrantaServerApiSchemaTablesTable. + """ + if version_state is None: + raise ValueError("Invalid value for 'version_state', must not be 'None'") + self._version_state = version_state + @property def is_hidden_from_browse(self) -> "bool": """Gets the is_hidden_from_browse of this GrantaServerApiSchemaTablesTable. 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 5f93cbc6..3c8eeb24 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 @@ -55,6 +55,7 @@ class GrantaServerApiSearchCriterion(ModelBase): "subset".lower(): "#/components/schemas/GrantaServerApiSearchRecordSubsetCriterion", "tabularLinkingValue".lower(): "#/components/schemas/GrantaServerApiSearchTabularLinkingValueCriterion", "attribute".lower(): "#/components/schemas/GrantaServerApiSearchAttributeCriterion", + "localColumn".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion", } discriminator = "type" 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 new file mode 100644 index 00000000..dbc94ce8 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_criterion.py @@ -0,0 +1,195 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_criterion import ( + GrantaServerApiSearchCriterion, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSearchLocalColumnCriterion(GrantaServerApiSearchCriterion): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator_class_map: Dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "guid": "str", + "identity": "int", + "type": "str", + } + + attribute_map = { + "guid": "guid", + "identity": "identity", + "type": "type", + } + + subtype_mapping = {} + + discriminator_value_class_map = { + "matches".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnMatchesCriterion", + "exists".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnExistsCriterion", + "notApplicable".lower(): "#/components/schemas/GrantaServerApiSearchLocalColumnNotApplicableCriterion", + } + + discriminator = "local_column_criterion_type" + + def __init__( + self, + *, + guid: "Optional[str]" = None, + identity: "Optional[int]" = None, + type: "str" = "localColumn", + ) -> None: + """GrantaServerApiSearchLocalColumnCriterion - a model defined in Swagger + + Parameters + ---------- + guid: str, optional + identity: int, optional + type: str + """ + super().__init__() + self._identity = None + self._guid = None + self._type = None + + if identity is not None: + self.identity = identity + if guid is not None: + self.guid = guid + self.type = type + + @property + def identity(self) -> "int": + """Gets the identity of this GrantaServerApiSearchLocalColumnCriterion. + + Returns + ------- + int + The identity of this GrantaServerApiSearchLocalColumnCriterion. + """ + return self._identity + + @identity.setter + def identity(self, identity: "int") -> None: + """Sets the identity of this GrantaServerApiSearchLocalColumnCriterion. + + Parameters + ---------- + identity: int + The identity of this GrantaServerApiSearchLocalColumnCriterion. + """ + self._identity = identity + + @property + def guid(self) -> "str": + """Gets the guid of this GrantaServerApiSearchLocalColumnCriterion. + + Returns + ------- + str + The guid of this GrantaServerApiSearchLocalColumnCriterion. + """ + return self._guid + + @guid.setter + def guid(self, guid: "str") -> None: + """Sets the guid of this GrantaServerApiSearchLocalColumnCriterion. + + Parameters + ---------- + guid: str + The guid of this GrantaServerApiSearchLocalColumnCriterion. + """ + self._guid = guid + + @property + def type(self) -> "str": + """Gets the type of this GrantaServerApiSearchLocalColumnCriterion. + + Returns + ------- + str + The type of this GrantaServerApiSearchLocalColumnCriterion. + """ + return self._type + + @type.setter + def type(self, type: "str") -> None: + """Sets the type of this GrantaServerApiSearchLocalColumnCriterion. + + Parameters + ---------- + type: str + The type of this GrantaServerApiSearchLocalColumnCriterion. + """ + if type is None: + raise ValueError("Invalid value for 'type', must not be 'None'") + self._type = type + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map.get(discriminator_value).rsplit( + "/", 1 + )[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchLocalColumnCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_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 new file mode 100644 index 00000000..7320c762 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_exists_criterion.py @@ -0,0 +1,173 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( + GrantaServerApiSearchLocalColumnCriterion, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSearchLocalColumnExistsCriterion( + GrantaServerApiSearchLocalColumnCriterion +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "inner_criterion": "GrantaServerApiSearchDatumExistsCriterion", + "guid": "str", + "identity": "int", + "local_column_criterion_type": "str", + "type": "str", + } + + attribute_map = { + "inner_criterion": "innerCriterion", + "guid": "guid", + "identity": "identity", + "local_column_criterion_type": "localColumnCriterionType", + "type": "type", + } + + subtype_mapping = { + "innerCriterion": "GrantaServerApiSearchDatumExistsCriterion", + } + + discriminator = None + + def __init__( + self, + *, + inner_criterion: "GrantaServerApiSearchDatumExistsCriterion", + guid: "Optional[str]" = None, + identity: "Optional[int]" = None, + local_column_criterion_type: "str" = "exists", + type: "str" = "localColumn", + ) -> None: + """GrantaServerApiSearchLocalColumnExistsCriterion - a model defined in Swagger + + Parameters + ---------- + inner_criterion: GrantaServerApiSearchDatumExistsCriterion + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str + """ + super().__init__(guid=guid, identity=identity, type=type) + self._inner_criterion = None + self._local_column_criterion_type = None + + self.inner_criterion = inner_criterion + self.local_column_criterion_type = local_column_criterion_type + + @property + def inner_criterion(self) -> "GrantaServerApiSearchDatumExistsCriterion": + """Gets the inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. + + Returns + ------- + GrantaServerApiSearchDatumExistsCriterion + The inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. + """ + return self._inner_criterion + + @inner_criterion.setter + def inner_criterion( + self, inner_criterion: "GrantaServerApiSearchDatumExistsCriterion" + ) -> None: + """Sets the inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. + + Parameters + ---------- + inner_criterion: GrantaServerApiSearchDatumExistsCriterion + The inner_criterion of this GrantaServerApiSearchLocalColumnExistsCriterion. + """ + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") + self._inner_criterion = inner_criterion + + @property + def local_column_criterion_type(self) -> "str": + """Gets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnExistsCriterion. + + Returns + ------- + str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnExistsCriterion. + """ + return self._local_column_criterion_type + + @local_column_criterion_type.setter + def local_column_criterion_type(self, local_column_criterion_type: "str") -> None: + """Sets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnExistsCriterion. + + Parameters + ---------- + local_column_criterion_type: str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnExistsCriterion. + """ + if local_column_criterion_type is None: + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'None'" + ) + self._local_column_criterion_type = local_column_criterion_type + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchLocalColumnExistsCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_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 new file mode 100644 index 00000000..4e8981a5 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_matches_criterion.py @@ -0,0 +1,173 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( + GrantaServerApiSearchLocalColumnCriterion, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSearchLocalColumnMatchesCriterion( + GrantaServerApiSearchLocalColumnCriterion +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "inner_criterion": "GrantaServerApiSearchDatumCriterion", + "guid": "str", + "identity": "int", + "local_column_criterion_type": "str", + "type": "str", + } + + attribute_map = { + "inner_criterion": "innerCriterion", + "guid": "guid", + "identity": "identity", + "local_column_criterion_type": "localColumnCriterionType", + "type": "type", + } + + subtype_mapping = { + "innerCriterion": "GrantaServerApiSearchDatumCriterion", + } + + discriminator = None + + def __init__( + self, + *, + inner_criterion: "GrantaServerApiSearchDatumCriterion", + guid: "Optional[str]" = None, + identity: "Optional[int]" = None, + local_column_criterion_type: "str" = "matches", + type: "str" = "localColumn", + ) -> None: + """GrantaServerApiSearchLocalColumnMatchesCriterion - a model defined in Swagger + + Parameters + ---------- + inner_criterion: GrantaServerApiSearchDatumCriterion + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str + """ + super().__init__(guid=guid, identity=identity, type=type) + self._inner_criterion = None + self._local_column_criterion_type = None + + self.inner_criterion = inner_criterion + self.local_column_criterion_type = local_column_criterion_type + + @property + def inner_criterion(self) -> "GrantaServerApiSearchDatumCriterion": + """Gets the inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. + + Returns + ------- + GrantaServerApiSearchDatumCriterion + The inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. + """ + return self._inner_criterion + + @inner_criterion.setter + def inner_criterion( + self, inner_criterion: "GrantaServerApiSearchDatumCriterion" + ) -> None: + """Sets the inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. + + Parameters + ---------- + inner_criterion: GrantaServerApiSearchDatumCriterion + The inner_criterion of this GrantaServerApiSearchLocalColumnMatchesCriterion. + """ + if inner_criterion is None: + raise ValueError("Invalid value for 'inner_criterion', must not be 'None'") + self._inner_criterion = inner_criterion + + @property + def local_column_criterion_type(self) -> "str": + """Gets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnMatchesCriterion. + + Returns + ------- + str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnMatchesCriterion. + """ + return self._local_column_criterion_type + + @local_column_criterion_type.setter + def local_column_criterion_type(self, local_column_criterion_type: "str") -> None: + """Sets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnMatchesCriterion. + + Parameters + ---------- + local_column_criterion_type: str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnMatchesCriterion. + """ + if local_column_criterion_type is None: + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'None'" + ) + self._local_column_criterion_type = local_column_criterion_type + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchLocalColumnMatchesCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_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 new file mode 100644 index 00000000..5ebac932 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_local_column_not_applicable_criterion.py @@ -0,0 +1,141 @@ +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from typing import TYPE_CHECKING, Any, Dict, List, Optional # noqa: F401 + +from . import ModelBase +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_local_column_criterion import ( + GrantaServerApiSearchLocalColumnCriterion, +) # noqa: F401 + + +if TYPE_CHECKING: + from . import * + + +class GrantaServerApiSearchLocalColumnNotApplicableCriterion( + GrantaServerApiSearchLocalColumnCriterion +): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes + ---------- + swagger_types: Dict[str, str] + The key is attribute name and the value is attribute type. + attribute_map: Dict[str, str] + The key is attribute name and the value is json key in definition. + subtype_mapping: Dict[str, str] + The key is the unmangled property name and the value is the corresponding type. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types = { + "guid": "str", + "identity": "int", + "local_column_criterion_type": "str", + "type": "str", + } + + attribute_map = { + "guid": "guid", + "identity": "identity", + "local_column_criterion_type": "localColumnCriterionType", + "type": "type", + } + + subtype_mapping = {} + + discriminator = None + + def __init__( + self, + *, + guid: "Optional[str]" = None, + identity: "Optional[int]" = None, + local_column_criterion_type: "str" = "notApplicable", + type: "str" = "localColumn", + ) -> None: + """GrantaServerApiSearchLocalColumnNotApplicableCriterion - a model defined in Swagger + + Parameters + ---------- + guid: str, optional + identity: int, optional + local_column_criterion_type: str + type: str + """ + super().__init__(guid=guid, identity=identity, type=type) + self._local_column_criterion_type = None + + self.local_column_criterion_type = local_column_criterion_type + + @property + def local_column_criterion_type(self) -> "str": + """Gets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnNotApplicableCriterion. + + Returns + ------- + str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnNotApplicableCriterion. + """ + return self._local_column_criterion_type + + @local_column_criterion_type.setter + def local_column_criterion_type(self, local_column_criterion_type: "str") -> None: + """Sets the local_column_criterion_type of this GrantaServerApiSearchLocalColumnNotApplicableCriterion. + + Parameters + ---------- + local_column_criterion_type: str + The local_column_criterion_type of this GrantaServerApiSearchLocalColumnNotApplicableCriterion. + """ + if local_column_criterion_type is None: + raise ValueError( + "Invalid value for 'local_column_criterion_type', must not be 'None'" + ) + self._local_column_criterion_type = local_column_criterion_type + + @classmethod + def get_real_child_model(cls, data: ModelBase) -> str: + """Raises a NotImplementedError for a type without a discriminator defined. + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + + Raises + ------ + NotImplementedError + This class has no discriminator, and hence no subclasses + """ + raise NotImplementedError() + + def __repr__(self) -> str: + """For 'print' and 'pprint'""" + return self.to_str() + + def __eq__(self, other: Any) -> bool: + """Returns true if both objects are equal""" + if not isinstance( + other, GrantaServerApiSearchLocalColumnNotApplicableCriterion + ): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other: Any) -> bool: + """Returns true if both objects are not equal""" + return not self == other diff --git a/pom.xml b/pom.xml index 65f17119..3e64b5ce 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 io.swagger AnsysPython-swagger-codegen - 2.0.0 + 3.0.0 jar AnsysPython-swagger-codegen diff --git a/yaml/server-api.json b/yaml/server-api.json index 421d097d..e412b054 100644 --- a/yaml/server-api.json +++ b/yaml/server-api.json @@ -169,7 +169,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "91cb9dcc-6582-4afa-86ff-d36b2bdb38d6", + "criterionGuid": "fd01bf25-d236-427e-bc49-1d36f34c7715", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -195,7 +195,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "cb98c22d-8c2b-4254-a52b-45d4e4209ff5", + "criterionGuid": "f5bbd9dd-1ad3-449b-9cdb-248e284c843f", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -227,7 +227,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "28adea0d-d1de-408c-b993-c02d8f2197a7", + "criterionGuid": "95e6ff81-caea-402e-94ca-8a74b5d49aec", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -389,7 +389,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "91cb9dcc-6582-4afa-86ff-d36b2bdb38d6", + "criterionGuid": "fd01bf25-d236-427e-bc49-1d36f34c7715", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -415,7 +415,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "cb98c22d-8c2b-4254-a52b-45d4e4209ff5", + "criterionGuid": "f5bbd9dd-1ad3-449b-9cdb-248e284c843f", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -447,7 +447,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "28adea0d-d1de-408c-b993-c02d8f2197a7", + "criterionGuid": "95e6ff81-caea-402e-94ca-8a74b5d49aec", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -609,7 +609,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "91cb9dcc-6582-4afa-86ff-d36b2bdb38d6", + "criterionGuid": "fd01bf25-d236-427e-bc49-1d36f34c7715", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -635,7 +635,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "cb98c22d-8c2b-4254-a52b-45d4e4209ff5", + "criterionGuid": "f5bbd9dd-1ad3-449b-9cdb-248e284c843f", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -667,7 +667,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "28adea0d-d1de-408c-b993-c02d8f2197a7", + "criterionGuid": "95e6ff81-caea-402e-94ca-8a74b5d49aec", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -829,7 +829,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "91cb9dcc-6582-4afa-86ff-d36b2bdb38d6", + "criterionGuid": "fd01bf25-d236-427e-bc49-1d36f34c7715", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -855,7 +855,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "cb98c22d-8c2b-4254-a52b-45d4e4209ff5", + "criterionGuid": "f5bbd9dd-1ad3-449b-9cdb-248e284c843f", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -887,7 +887,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "28adea0d-d1de-408c-b993-c02d8f2197a7", + "criterionGuid": "95e6ff81-caea-402e-94ca-8a74b5d49aec", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1129,7 +1129,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "ee67fb48-4793-40c4-bedb-675647ca8b3f", + "criterionGuid": "340dccf8-2515-4b23-86e5-5e3fd2fed9a1", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1155,7 +1155,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "3e480cb5-ae72-4c26-b45e-823d0fc4f763", + "criterionGuid": "7e8f0d93-9d52-4ffc-b6bc-279282f60166", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1187,7 +1187,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "a971ff0e-4ea3-4e53-86fc-07c74d1d66c3", + "criterionGuid": "84180d44-8269-4ff0-b472-15f1b1ad866b", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1349,7 +1349,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "ee67fb48-4793-40c4-bedb-675647ca8b3f", + "criterionGuid": "340dccf8-2515-4b23-86e5-5e3fd2fed9a1", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1375,7 +1375,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "3e480cb5-ae72-4c26-b45e-823d0fc4f763", + "criterionGuid": "7e8f0d93-9d52-4ffc-b6bc-279282f60166", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1407,7 +1407,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "a971ff0e-4ea3-4e53-86fc-07c74d1d66c3", + "criterionGuid": "84180d44-8269-4ff0-b472-15f1b1ad866b", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1569,7 +1569,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "ee67fb48-4793-40c4-bedb-675647ca8b3f", + "criterionGuid": "340dccf8-2515-4b23-86e5-5e3fd2fed9a1", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1595,7 +1595,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "3e480cb5-ae72-4c26-b45e-823d0fc4f763", + "criterionGuid": "7e8f0d93-9d52-4ffc-b6bc-279282f60166", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1627,7 +1627,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "a971ff0e-4ea3-4e53-86fc-07c74d1d66c3", + "criterionGuid": "84180d44-8269-4ff0-b472-15f1b1ad866b", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1789,7 +1789,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "ee67fb48-4793-40c4-bedb-675647ca8b3f", + "criterionGuid": "340dccf8-2515-4b23-86e5-5e3fd2fed9a1", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1815,7 +1815,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "3e480cb5-ae72-4c26-b45e-823d0fc4f763", + "criterionGuid": "7e8f0d93-9d52-4ffc-b6bc-279282f60166", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -1847,7 +1847,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "a971ff0e-4ea3-4e53-86fc-07c74d1d66c3", + "criterionGuid": "84180d44-8269-4ff0-b472-15f1b1ad866b", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2080,7 +2080,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "d611b61a-f4c9-44bb-9871-1530964fae95", + "criterionGuid": "9bb838fc-b386-44d1-9f1f-4163520006ca", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2106,7 +2106,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "e920f7dc-30b6-45ff-bdfb-98bc4b64eb8c", + "criterionGuid": "7a941fb0-9532-4760-91a5-485e19564da5", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2138,7 +2138,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "71afe7d0-2e3f-4daf-b0a8-6028886e10ba", + "criterionGuid": "b62b27e4-870a-4246-9659-0d26e9af6991", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2300,7 +2300,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "d611b61a-f4c9-44bb-9871-1530964fae95", + "criterionGuid": "9bb838fc-b386-44d1-9f1f-4163520006ca", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2326,7 +2326,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "e920f7dc-30b6-45ff-bdfb-98bc4b64eb8c", + "criterionGuid": "7a941fb0-9532-4760-91a5-485e19564da5", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2358,7 +2358,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "71afe7d0-2e3f-4daf-b0a8-6028886e10ba", + "criterionGuid": "b62b27e4-870a-4246-9659-0d26e9af6991", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2520,7 +2520,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "d611b61a-f4c9-44bb-9871-1530964fae95", + "criterionGuid": "9bb838fc-b386-44d1-9f1f-4163520006ca", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2546,7 +2546,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "e920f7dc-30b6-45ff-bdfb-98bc4b64eb8c", + "criterionGuid": "7a941fb0-9532-4760-91a5-485e19564da5", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2578,7 +2578,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "71afe7d0-2e3f-4daf-b0a8-6028886e10ba", + "criterionGuid": "b62b27e4-870a-4246-9659-0d26e9af6991", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2740,7 +2740,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "d611b61a-f4c9-44bb-9871-1530964fae95", + "criterionGuid": "9bb838fc-b386-44d1-9f1f-4163520006ca", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2766,7 +2766,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "e920f7dc-30b6-45ff-bdfb-98bc4b64eb8c", + "criterionGuid": "7a941fb0-9532-4760-91a5-485e19564da5", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -2798,7 +2798,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "71afe7d0-2e3f-4daf-b0a8-6028886e10ba", + "criterionGuid": "b62b27e4-870a-4246-9659-0d26e9af6991", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3007,7 +3007,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "4d9c6035-6255-4395-a1ee-d0c01d5fb20c", + "criterionGuid": "bcab0cc1-7989-422d-aab4-15a36e1769a4", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3033,7 +3033,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "1cd588b0-fa2f-410b-9619-8354da53978b", + "criterionGuid": "fdd51315-320a-4fdb-8bdc-2162b0046c36", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3065,7 +3065,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "40567803-e3a9-41ec-98fc-9ca096bd5685", + "criterionGuid": "4ad189fa-a18a-4e4f-ba19-323c9179af28", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3227,7 +3227,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "4d9c6035-6255-4395-a1ee-d0c01d5fb20c", + "criterionGuid": "bcab0cc1-7989-422d-aab4-15a36e1769a4", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3253,7 +3253,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "1cd588b0-fa2f-410b-9619-8354da53978b", + "criterionGuid": "fdd51315-320a-4fdb-8bdc-2162b0046c36", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3285,7 +3285,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "40567803-e3a9-41ec-98fc-9ca096bd5685", + "criterionGuid": "4ad189fa-a18a-4e4f-ba19-323c9179af28", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3447,7 +3447,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "4d9c6035-6255-4395-a1ee-d0c01d5fb20c", + "criterionGuid": "bcab0cc1-7989-422d-aab4-15a36e1769a4", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3473,7 +3473,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "1cd588b0-fa2f-410b-9619-8354da53978b", + "criterionGuid": "fdd51315-320a-4fdb-8bdc-2162b0046c36", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3505,7 +3505,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "40567803-e3a9-41ec-98fc-9ca096bd5685", + "criterionGuid": "4ad189fa-a18a-4e4f-ba19-323c9179af28", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3667,7 +3667,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "4d9c6035-6255-4395-a1ee-d0c01d5fb20c", + "criterionGuid": "bcab0cc1-7989-422d-aab4-15a36e1769a4", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3693,7 +3693,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "1cd588b0-fa2f-410b-9619-8354da53978b", + "criterionGuid": "fdd51315-320a-4fdb-8bdc-2162b0046c36", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3725,7 +3725,7 @@ }, "aggregationCriteria": [ { - "criterionGuid": "40567803-e3a9-41ec-98fc-9ca096bd5685", + "criterionGuid": "4ad189fa-a18a-4e4f-ba19-323c9179af28", "numberOfTerms": 10, "prefix": "st", "attributes": { @@ -3803,6 +3803,422 @@ } } }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get a datum for a given database, table, record history, record version and attribute.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 1": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } + }, + "Example 2": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } + } + } + } + } + }, + "404": { + "description": "Database, table, record history, record version, attribute or datum not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get a datum for a given attribute and the latest version of a record history in given database and table.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 3": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } + }, + "Example 4": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } + } + } + } + } + }, + "404": { + "description": "Database, table, record history, attribute or datum not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get a datum for a given database, record history, record version and attribute.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 5": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } + }, + "Example 6": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } + } + } + } + } + }, + "404": { + "description": "Database, record history, record version, attribute or datum not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}": { + "get": { + "tags": [ + "Data" + ], + "summary": "Get a datum for a given attribute and the latest version of a record history in given database.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "attribute-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + "examples": { + "Example 7": { + "summary": "Integer datum.", + "description": "Example response for an integer datum with a value of 7.", + "value": { + "datumType": "integer", + "value": 7, + "notApplicable": "applicable" + } + }, + "Example 8": { + "summary": "Logical datum.", + "description": "Example response for a logical datum with a value of 'true'", + "value": { + "datumType": "logical", + "value": true, + "notApplicable": "applicable" + } + } + } + } + } + }, + "404": { + "description": "Database, record history, attribute or datum not found" + } + } + } + }, "/v1alpha/databases/{database-key}:search-index-status": { "get": { "tags": [ @@ -6470,13 +6886,10 @@ } }, "400": { - "description": "Bad request. Schema not specified" + "description": "Bad request. Returns validation errors information" }, "403": { "description": "Forbidden. User is not a global administrator or an administrator for the schema" - }, - "422": { - "description": "Invalid schema. Returns a list of validation errors" } } } @@ -6637,13 +7050,10 @@ } }, "400": { - "description": "Bad request. Schema not specified" + "description": "Bad request. Returns validation errors information" }, "403": { "description": "Forbidden. User is not a global administrator or an administrator for the schema" - }, - "422": { - "description": "Invalid schema. Returns a list of validation errors" } } }, @@ -7549,6 +7959,36 @@ } } }, + "/v1alpha/job-queue/current-user": { + "get": { + "tags": [ + "JobQueue" + ], + "summary": "Get the current user.", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiAsyncJobsCurrentUser" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiAsyncJobsCurrentUser" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiAsyncJobsCurrentUser" + } + } + } + } + } + } + }, "/v1alpha/job-queue/processing-configuration": { "get": { "tags": [ @@ -7740,17 +8180,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } } } @@ -7785,22 +8225,22 @@ "content": { "application/json-patch+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordListItemsInfo" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordListItemsInfo" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordListItemsInfo" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordListItemsInfo" } } } @@ -7811,17 +8251,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } } } @@ -7859,22 +8299,22 @@ "content": { "application/json-patch+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoDeleteRecordListItems" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoDeleteRecordListItems" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoDeleteRecordListItems" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoDeleteRecordListItems" } } } @@ -7885,17 +8325,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItemsInfo" } } } @@ -7924,26 +8364,17 @@ "content": { "text/plain": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeadersInfo" } }, "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeadersInfo" } }, "text/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeadersInfo" } } } @@ -7962,22 +8393,22 @@ "content": { "application/json-patch+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListCreate" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordList" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListCreate" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordList" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListCreate" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordList" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListCreate" + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordList" } } } @@ -8095,26 +8526,17 @@ "content": { "text/plain": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResult" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResultsInfo" } }, "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResult" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResultsInfo" } }, "text/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResult" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResultsInfo" } } } @@ -8177,11 +8599,11 @@ } } }, - "put": { + "patch": { "tags": [ "ListManagement" ], - "summary": "If the list exists, updates the properties of the list. This will overwrite all current properties, but not the contents of the list.\r\nIf the list does not exist, returns '404 not found' response", + "summary": "Performs a partial update on the properties of a list.", "parameters": [ { "name": "listIdentifier", @@ -8197,22 +8619,118 @@ "content": { "application/json-patch+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListProperties" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" + }, + "examples": { + "Example 1": { + "summary": "Update the name of list", + "description": "Update the name of a list", + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } + }, + "Example 2": { + "summary": "Update everything for a list", + "description": "Update everything for a list", + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } + } } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListProperties" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" + }, + "examples": { + "Example 1": { + "summary": "Update the name of list", + "description": "Update the name of a list", + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } + }, + "Example 2": { + "summary": "Update everything for a list", + "description": "Update everything for a list", + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } + } } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListProperties" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" + }, + "examples": { + "Example 1": { + "summary": "Update the name of list", + "description": "Update the name of a list", + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } + }, + "Example 2": { + "summary": "Update everything for a list", + "description": "Update everything for a list", + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } + } } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListProperties" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListProperties" + }, + "examples": { + "Example 1": { + "summary": "Update the name of list", + "description": "Update the name of a list", + "value": { + "name": "new name", + "published": false, + "awaitingApproval": false, + "internalUse": false + } + }, + "Example 2": { + "summary": "Update everything for a list", + "description": "Update everything for a list", + "value": { + "name": "new name", + "description": "new description", + "notes": "new notes", + "published": false, + "awaitingApproval": true, + "internalUse": true + } + } } } } @@ -8249,11 +8767,11 @@ } } }, - "patch": { + "delete": { "tags": [ "ListManagement" ], - "summary": "Performs a partial update on the properties of a list. Only replace operations on name, description or notes are supported.", + "summary": "Delete an existing list.", "parameters": [ { "name": "listIdentifier", @@ -8265,94 +8783,86 @@ } } ], - "requestBody": { - "content": { - "application/json-patch+json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/JsonPatchDocument" - } - }, - "examples": { - "Example 1": { - "summary": "Update the name of list", - "description": "Update the name of a list", - "value": [ - { - "value": "new name", - "path": "/name", - "op": "replace" - } - ] - } - } - }, - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/JsonPatchDocument" - } - }, - "examples": { - "Example 1": { - "summary": "Update the name of list", - "description": "Update the name of a list", - "value": [ - { - "value": "new name", - "path": "/name", - "op": "replace" - } - ] - } - } - }, - "text/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/JsonPatchDocument" + "responses": { + "200": { + "description": "Ok" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Record list not found" + } + } + } + }, + "/api/v1/lists/list/{listIdentifier}/request-approval": { + "post": { + "tags": [ + "ListManagement" + ], + "summary": "Update the status of an existing list to \"awaiting approval\".", + "parameters": [ + { + "name": "listIdentifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" } }, - "examples": { - "Example 1": { - "summary": "Update the name of list", - "description": "Update the name of a list", - "value": [ - { - "value": "new name", - "path": "/name", - "op": "replace" - } - ] - } - } - }, - "application/*+json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/JsonPatchDocument" + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" } }, - "examples": { - "Example 1": { - "summary": "Update the name of list", - "description": "Update the name of a list", - "value": [ - { - "value": "new name", - "path": "/name", - "op": "replace" - } - ] + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" } } } + }, + "400": { + "description": "Bad request" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Record list not found" } - }, + } + } + }, + "/api/v1/lists/list/{listIdentifier}/reset": { + "post": { + "tags": [ + "ListManagement" + ], + "summary": "Update the status of an existing list to not be \"awaiting approval\".", + "parameters": [ + { + "name": "listIdentifier", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], "responses": { "200": { "description": "Ok", @@ -8384,12 +8894,14 @@ "description": "Record list not found" } } - }, - "delete": { + } + }, + "/api/v1/lists/list/{listIdentifier}/publish": { + "post": { "tags": [ "ListManagement" ], - "summary": "Delete an existing list.", + "summary": "Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published.\r\nThe \"awaiting approval\" flag will be reset to false.", "parameters": [ { "name": "listIdentifier", @@ -8403,7 +8915,27 @@ ], "responses": { "200": { - "description": "Ok" + "description": "Ok", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" + } + } + } + }, + "400": { + "description": "Bad request" }, "403": { "description": "Forbidden" @@ -8414,162 +8946,12 @@ } } }, - "/api/v1/lists/list/{listIdentifier}/request-approval": { + "/api/v1/lists/list/{listIdentifier}/unpublish": { "post": { "tags": [ "ListManagement" ], - "summary": "Update the status of an existing list to \"awaiting approval\".", - "parameters": [ - { - "name": "listIdentifier", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Ok", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - } - } - }, - "400": { - "description": "Bad request" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Record list not found" - } - } - } - }, - "/api/v1/lists/list/{listIdentifier}/reset": { - "post": { - "tags": [ - "ListManagement" - ], - "summary": "Update the status of an existing list to not be \"awaiting approval\".", - "parameters": [ - { - "name": "listIdentifier", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Ok", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - } - } - }, - "400": { - "description": "Bad request" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Record list not found" - } - } - } - }, - "/api/v1/lists/list/{listIdentifier}/publish": { - "post": { - "tags": [ - "ListManagement" - ], - "summary": "Update the status of an existing list to \"published\". The list must be awaiting approval, and not already published.\r\nThe \"awaiting approval\" flag will be reset to false.", - "parameters": [ - { - "name": "listIdentifier", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], - "responses": { - "200": { - "description": "Ok", - "content": { - "text/plain": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "application/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - }, - "text/json": { - "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" - } - } - } - }, - "400": { - "description": "Bad request" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Record list not found" - } - } - } - }, - "/api/v1/lists/list/{listIdentifier}/unpublish": { - "post": { - "tags": [ - "ListManagement" - ], - "summary": "Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval.\r\nThe \"awaiting approval\" flag will be reset to false.", + "summary": "Update the status of an existing list to \"unpublished\". The list must be published, and awaiting approval.\r\nThe \"awaiting approval\" flag will be reset to false.", "parameters": [ { "name": "listIdentifier", @@ -8734,17 +9116,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } } } @@ -8784,17 +9166,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" } } } @@ -8834,26 +9216,17 @@ "content": { "text/plain": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } }, "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } }, "text/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } } } @@ -8886,34 +9259,22 @@ "content": { "application/json-patch+json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionInputDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateUserPermissionsInfo" } }, "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionInputDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateUserPermissionsInfo" } }, "text/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionInputDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateUserPermissionsInfo" } }, "application/*+json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionInputDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateUserPermissionsInfo" } } } @@ -8924,26 +9285,17 @@ "content": { "text/plain": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } }, "application/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } }, "text/json": { "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionDto" - } + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermissionsInfo" } } } @@ -8992,17 +9344,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } } } @@ -9044,22 +9396,22 @@ "content": { "application/json-patch+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListPermissionFlags" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListPermissionFlags" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListPermissionFlags" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListPermissionFlags" } } } @@ -9070,17 +9422,17 @@ "content": { "text/plain": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } }, "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" } } } @@ -9183,6 +9535,12 @@ "guid": "00000026-000e-4fff-8fff-dd92ffff0000" } ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" } } @@ -9271,6 +9629,12 @@ "guid": "00000026-000e-4fff-8fff-dd92ffff0000" } ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" } } @@ -9282,12 +9646,1372 @@ } } }, - "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}": { - "get": { + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories": { + "post": { "tags": [ - "Records - Record Versions" + "Records - Record Histories" ], - "summary": "Get a record version with a specified guid for a given database, table and record history.", + "summary": "Create a new record history.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Record History", + "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordType": "record", + "fullName": "New Record Name" + } + }, + "Example 2": { + "summary": "Record History with Tree Name and Parent", + "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "record", + "fullName": "Alumino Silicate - 1756", + "treeName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + }, + "Example 3": { + "summary": "Record History for a 'folder' with specified guid", + "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "folder", + "fullName": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "79246242-f930-4e6c-8379-5bbea85aa650" + } + }, + "Example 4": { + "summary": "Record History for a 'generic'", + "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "generic", + "fullName": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Record History", + "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordType": "record", + "fullName": "New Record Name" + } + }, + "Example 2": { + "summary": "Record History with Tree Name and Parent", + "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "record", + "fullName": "Alumino Silicate - 1756", + "treeName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + }, + "Example 3": { + "summary": "Record History for a 'folder' with specified guid", + "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "folder", + "fullName": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "79246242-f930-4e6c-8379-5bbea85aa650" + } + }, + "Example 4": { + "summary": "Record History for a 'generic'", + "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "generic", + "fullName": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Record History", + "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordType": "record", + "fullName": "New Record Name" + } + }, + "Example 2": { + "summary": "Record History with Tree Name and Parent", + "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "record", + "fullName": "Alumino Silicate - 1756", + "treeName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + }, + "Example 3": { + "summary": "Record History for a 'folder' with specified guid", + "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "folder", + "fullName": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "79246242-f930-4e6c-8379-5bbea85aa650" + } + }, + "Example 4": { + "summary": "Record History for a 'generic'", + "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "generic", + "fullName": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCreateRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Record History", + "description": "This example demonstrates how to create a new record history at the root of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordType": "record", + "fullName": "New Record Name" + } + }, + "Example 2": { + "summary": "Record History with Tree Name and Parent", + "description": "This example demonstrates how to create a new record history with a specified tree name under the 'Alumino Silicate' folder (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "record", + "fullName": "Alumino Silicate - 1756", + "treeName": "1756", + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + }, + "Example 3": { + "summary": "Record History for a 'folder' with specified guid", + "description": "This example demonstrates how to create a new 'folder' with no 'tree name' (so is set to the 'full name') and a specified guid under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "folder", + "fullName": "Borosilicate", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "guid": "79246242-f930-4e6c-8379-5bbea85aa650" + } + }, + "Example 4": { + "summary": "Record History for a 'generic'", + "description": "This example demonstrates how to create a new 'generic' under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) in the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", + "value": { + "recordType": "generic", + "fullName": "Soda-zinc", + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" + }, + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "New Alumino Silicate Record", + "guid": "01dd4177-0a01-4217-9205-f6f1ddbc1f89" + } + ], + "subsets": [], + "guid": "be04e4b4-c56c-4354-9844-5a2e043d57b8" + } + } + } + }, + "400": { + "description": "Bad request" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database or table not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:move": { + "post": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Move a record history to be under a new parent.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" + }, + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" + }, + "examples": { + "Example 1": { + "summary": "New parent is not a folder.", + "value": { + "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } + }, + "Example 2": { + "summary": "New parent is not in the same table.", + "value": { + "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } + }, + "Example 3": { + "summary": "The 'short name' of the record to be moved is not unique under the new parent.", + "value": { + "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } + }, + "Example 4": { + "summary": "New parent is withdrawn.", + "value": { + "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } + }, + "Example 5": { + "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", + "value": { + "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", + "code": 400, + "errors": [ + { + "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", + "reason": "ParentIsADescendant" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:move": { + "post": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Move a record history to be under a new parent.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 2": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 2": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 2": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesMoveRecordHistory" + }, + "examples": { + "Example 2": { + "summary": "Move Record History", + "description": "This example demonstrates how to move an existing record history to under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" + }, + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException" + }, + "examples": { + "Example 6": { + "summary": "New parent is not a folder.", + "value": { + "message": "Cannot move record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } + }, + "Example 7": { + "summary": "New parent is not in the same table.", + "value": { + "message": "Cannot move record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } + }, + "Example 8": { + "summary": "The 'short name' of the record to be moved is not unique under the new parent.", + "value": { + "message": "Cannot move record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } + }, + "Example 9": { + "summary": "New parent is withdrawn.", + "value": { + "message": "Cannot move record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } + }, + "Example 10": { + "summary": "The new parent is a descendant of the record history to be moved so would cause a circular reference in the hierarchy.", + "value": { + "message": "Cannot move record history '5a842e54-e143-45f5-aec8-18fb84f4fe03'.", + "code": 400, + "errors": [ + { + "message": "New parent record history 'ba22491d-b470-42cf-80d7-531ff81b1583' is a descendant so will cause a circular reference.", + "reason": "ParentIsADescendant" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}:copy": { + "post": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Make a copy of a record history.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 2": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 2": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 2": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 1": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 2": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" + }, + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "10a4cd70-ba96-4c69-948b-2aa96ae1e797" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" + }, + "examples": { + "Example 1": { + "summary": "New parent is not a folder.", + "value": { + "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } + }, + "Example 2": { + "summary": "New parent is not in the same table.", + "value": { + "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } + }, + "Example 3": { + "summary": "The 'short name' of the record to be copied is not unique under the new parent.", + "value": { + "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } + }, + "Example 4": { + "summary": "New parent is withdrawn.", + "value": { + "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}:copy": { + "post": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Make a copy of a record history.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 3": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 4": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 3": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 4": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 3": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 4": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesCopyRecordHistory" + }, + "examples": { + "Example 3": { + "summary": "Copy Record History - no name change", + "description": "This example demonstrates how to copy an existing record history, by default the 'name' and 'short name' are not changed. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + } + }, + "Example 4": { + "summary": "Copy Record History - with name change", + "description": "This example demonstrates how to copy an existing record history and change the 'short name' of the newly created record version. The the new record history is created under the 'Glasses' folder (guid = f92315e2-f836-4c2e-aba1-6d8a1a49e8a3) of the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "parentGuid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3", + "newShortName": "Short name for new record" + } + } + } + } + } + }, + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesRecordHistory" + }, + "example": { + "isFolder": false, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "parent": { + "guid": "f92315e2-f836-4c2e-aba1-6d8a1a49e8a3" + }, + "recordVersions": [ + { + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + ], + "subsets": [ + { + "name": "Metals", + "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" + } + ], + "guid": "16b86aba-6b04-4c6f-9f48-a1d83f302714" + } + } + } + }, + "400": { + "description": "Bad request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException" + }, + "examples": { + "Example 5": { + "summary": "New parent is not a folder.", + "value": { + "message": "Cannot copy record history 'ba22491d-b470-42cf-80d7-531ff81b1583'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '17877254-3a26-4a28-94d6-9f6be164914c' is not a folder.", + "reason": "ParentNotAFolder" + } + ] + } + }, + "Example 6": { + "summary": "New parent is not in the same table.", + "value": { + "message": "Cannot copy record history '0a0a07f6-20d8-4292-a275-a7385398d8a2'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '5a842e54-e143-45f5-aec8-18fb84f4fe03' is not in the same table.", + "reason": "ParentNotInSameTable" + } + ] + } + }, + "Example 7": { + "summary": "The 'short name' of the record to be copied is not unique under the new parent.", + "value": { + "message": "Cannot copy record history 'b39060d9-ac86-48dc-9e75-7ea241b7a556'.", + "code": 400, + "errors": [ + { + "message": "A record with the short name 'Sheet' already exists in the parent folder.", + "reason": "ShortNameExistsInFolder" + } + ] + } + }, + "Example 8": { + "summary": "New parent is withdrawn.", + "value": { + "message": "Cannot copy record history 'ce294339-e59d-4be1-a96c-f9e92adb71ac'.", + "code": 400, + "errors": [ + { + "message": "New parent record history '4afa8a76-cd32-4835-be9d-31756bb9b7fb' is withdrawn or has a withdrawn ancestor.", + "reason": "ParentIsWithdrawn" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest": { + "get": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Get the latest record version for a record history for a given database and table.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" + }, + "example": { + "recordHistory": { + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Alumino silicate - 1720", + "recordColor": "fuchsia", + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + } + } + }, + "404": { + "description": "Database, table or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest": { + "get": { + "tags": [ + "Records - Record Histories" + ], + "summary": "Get the latest record version for a record history for a given database.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "mode", + "in": "query", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + }, + { + "name": "X-Ansys-VC-Mode", + "in": "header", + "description": "The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string.", + "schema": { + "enum": [ + "read", + "write" + ], + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" + }, + "example": { + "recordHistory": { + "guid": "ba22491d-b470-42cf-80d7-531ff81b1583" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": false, + "name": "MaterialUniverse", + "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Alumino silicate - 1720", + "recordColor": "fuchsia", + "versionNumber": 1, + "versionState": "unversioned", + "name": "Alumino silicate - 1720", + "guid": "00000026-000e-4fff-8fff-dd92ffff0000" + } + } + } + }, + "404": { + "description": "Database or record history not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}": { + "get": { + "tags": [ + "Records - Record Versions" + ], + "summary": "Get a record version with a specified guid for a given database, table and record history.", "parameters": [ { "name": "database-key", @@ -9388,6 +11112,470 @@ "description": "Database, table, record history or record version not found" } } + }, + "delete": { + "tags": [ + "Records - Record Versions" + ], + "summary": "Deletes the record version. If the table is version controlled, only the current unreleased record version can be deleted.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok" + }, + "400": { + "description": "Bad request. Table is version controlled and record version is not unreleased." + }, + "404": { + "description": "Database, table, record history or record version not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:release": { + "post": { + "tags": [ + "Records - Record Versions" + ], + "summary": "Releases the record version. Must be an unreleased record version.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" + }, + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 1, + "versionState": "released", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } + } + } + }, + "400": { + "description": "Bad request. Record version state is not unreleased, or table is not version controlled, or parent is not released.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException" + }, + "examples": { + "Example 1": { + "summary": "Invalid version state.", + "description": "Only unreleased record versions can be released.", + "value": { + "message": "Cannot release record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Released'.", + "reason": "invalidVersionState", + "versionState": "released" + } + ] + } + }, + "Example 2": { + "summary": "Table is not version controlled.", + "value": { + "message": "Cannot release record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } + }, + "Example 3": { + "summary": "Parent is not released.", + "value": { + "message": "Cannot release record version '512fbe5b-3836-462d-bb7a-0fa5d131dbd7'.", + "code": 400, + "errors": [ + { + "message": "Tree parent is not in a valid state to perform this operation.", + "reason": "invalidParentState" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table, record history or record version not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:create-new-version": { + "post": { + "tags": [ + "Records - Record Versions" + ], + "summary": "Create a new record version. The record version must be the latest version, and must be either released or withdrawn.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" + }, + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 2, + "versionState": "unreleased", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } + } + } + }, + "400": { + "description": "Bad request. Record version state is not the latest version, is not released or withdrawn, or table is not version controlled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException" + }, + "examples": { + "Example 1": { + "summary": "Invalid version state.", + "description": "A new version can only be created from the latest released or withdrawn record version.", + "value": { + "message": "Cannot create record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Superseded'.", + "reason": "invalidVersionState", + "versionState": "superseded" + } + ] + } + }, + "Example 2": { + "summary": "Table is not version controlled.", + "value": { + "message": "Cannot create record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } + }, + "Example 3": { + "summary": "Record version is not the latest version.", + "value": { + "message": "Cannot create record version '1871c012-5435-4d25-b091-f70bb8413ba1'.", + "code": 400, + "errors": [ + { + "message": "There is a newer version.", + "reason": "notTheLatestVersion", + "newerVersion": { + "versionNumber": 2, + "versionState": "unreleased", + "name": "Arsenic trioxide [1327-53-3] - new version", + "guid": "45392ac7-950e-4c6f-ad38-75d56caf0f4c" + } + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table, record history or record version not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}:withdraw": { + "post": { + "tags": [ + "Records - Record Versions" + ], + "summary": "Withdraws the record version. Must be a released record version.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-history-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "record-version-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsRecordVersion" + }, + "example": { + "recordHistory": { + "guid": "0a0a07f6-20d8-4292-a275-a7385398d8a2" + }, + "table": { + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + }, + "databaseKey": "MI_TRAINING", + "createdByUser": "A User", + "createdDate": "2018-01-01T00:00:00+00:00", + "lastModifiedByUser": "A User", + "lastModifiedDate": "2018-01-02T00:00:00+00:00", + "recordType": "record", + "shortName": "Arsenic trioxide [1327-53-3]", + "recordColor": "red", + "versionNumber": 1, + "versionState": "withdrawn", + "name": "Arsenic trioxide [1327-53-3]", + "guid": "e1a72a7e-155e-47f9-b6c9-285fd5d3288a" + } + } + } + }, + "400": { + "description": "Bad request. Record version state is not released, or table is not version controlled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException" + }, + "examples": { + "Example 1": { + "summary": "Invalid version state.", + "description": "Only released record versions can be withdrawn.", + "value": { + "message": "Cannot withdraw record version 'e1a72a7e-155e-47f9-b6c9-285fd5d3288a'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Unreleased'.", + "reason": "invalidVersionState", + "versionState": "unreleased" + } + ] + } + }, + "Example 2": { + "summary": "Table is not version controlled.", + "value": { + "message": "Cannot withdraw record version '00000026-000e-4fff-8fff-dd92ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } + } + } + } + } + }, + "404": { + "description": "Database, table, record history or record version not found" + } + } } }, "/v1alpha/schema/mi-version": { @@ -9522,7 +11710,7 @@ "type": "dateTime", "defaultThresholdType": "atMost", "name": "Delivery date (guid)", - "guid": "c200490f-56d1-47d0-ae96-9939663d1872" + "guid": "d3e4ac08-67aa-4952-a147-7b7f573ca711" } }, "Example 3": { @@ -9866,7 +12054,7 @@ "type": "dateTime", "defaultThresholdType": "atMost", "name": "Delivery date (guid)", - "guid": "c200490f-56d1-47d0-ae96-9939663d1872" + "guid": "d3e4ac08-67aa-4952-a147-7b7f573ca711" } }, "Example 3": { @@ -10210,7 +12398,7 @@ "type": "dateTime", "defaultThresholdType": "atMost", "name": "Delivery date (guid)", - "guid": "c200490f-56d1-47d0-ae96-9939663d1872" + "guid": "d3e4ac08-67aa-4952-a147-7b7f573ca711" } }, "Example 3": { @@ -10554,7 +12742,7 @@ "type": "dateTime", "defaultThresholdType": "atMost", "name": "Delivery date (guid)", - "guid": "c200490f-56d1-47d0-ae96-9939663d1872" + "guid": "d3e4ac08-67aa-4952-a147-7b7f573ca711" } }, "Example 3": { @@ -10977,7 +13165,7 @@ "foreignDataLinkGroups": [ { "name": "Source of data (MaterialUniverse)", - "guid": "07cf9158-419f-4b68-b8b4-4b06fa633a35" + "guid": "19dbf143-1be5-4a15-ab26-57ec55fab6d6" } ], "primaryDynamicLinkGroups": [], @@ -11253,7 +13441,7 @@ "foreignDataLinkGroups": [ { "name": "Source of data (MaterialUniverse)", - "guid": "f692e0ca-276f-4727-9914-5f9da77c5ca6" + "guid": "197aabf1-4a69-4106-98cc-0f973bac3057" } ], "primaryDynamicLinkGroups": [], @@ -12449,7 +14637,7 @@ "foreignDataLinkGroups": [ { "name": "Source of data (MaterialUniverse)", - "guid": "75ae767c-42cc-43cf-a1e5-4c783465f500" + "guid": "b01293bf-5772-4eb1-ae4d-7ca3a92fe121" } ], "primaryDynamicLinkGroups": [], @@ -12607,7 +14795,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsAttributeDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, "example": { "message": "Cannot delete attribute 'Tensile strength' (GUID = '000000e3-0001-4fff-8fff-dd92ffff0000').", @@ -12615,13 +14803,13 @@ "errors": [ { "message": "It is being used in version controlled data.", - "reason": "InUse", - "referencedByType": "VersionControlledData" + "reason": "inUse", + "referencedByType": "versionControlledData" }, { "message": "It is being used in one or more expressions.", - "reason": "InUse", - "referencedByType": "Expression", + "reason": "inUse", + "referencedByType": "expression", "referencedBy": [ { "name": "Fatigue Model", @@ -12868,7 +15056,7 @@ "foreignDataLinkGroups": [ { "name": "Source of data (MaterialUniverse)", - "guid": "479f5b0e-13af-4cc8-bdea-9d847abd50c0" + "guid": "5a22237c-9556-4491-9603-fe51f7f4c4ec" } ], "primaryDynamicLinkGroups": [], @@ -13272,7 +15460,7 @@ "foreignDataLinkGroups": [ { "name": "Source of data (MaterialUniverse)", - "guid": "7cbd6d25-bd3e-4aa7-8912-605d063fc517" + "guid": "75d8e416-6872-43bf-8c64-4ccbc63a2daf" } ], "primaryDynamicLinkGroups": [], @@ -13430,25 +15618,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsAttributeDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionAttributeDeletionException" }, "example": { - "message": "Cannot delete attribute 'Notes' (GUID = '6663b3e0-0b2b-445b-ab96-e24f1825ed44').", + "message": "Cannot delete attribute 'Notes' (GUID = '0064ca8c-d72e-4770-afbf-05deaeaa45c9').", "code": 400, "errors": [ { "message": "It is being used in version controlled data.", - "reason": "InUse", - "referencedByType": "VersionControlledData" + "reason": "inUse", + "referencedByType": "versionControlledData" }, { "message": "It is being used in one or more search masks.", - "reason": "InUse", - "referencedByType": "SearchMask", + "reason": "inUse", + "referencedByType": "searchMask", "referencedBy": [ { "name": "Search mask that searches in Notes", - "guid": "a94d830d-fc3d-42d2-916e-e4a3c67fac54" + "guid": "6f4a47bb-7d12-4014-ac16-70f4e498ae62" } ] } @@ -13812,7 +16000,7 @@ "description": "Basic configuration that can be used in explore.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "basic configuration", - "guid": "ec70f73f-b796-44c9-875c-aece5cb3c979" + "guid": "d6c657dc-f7e0-4525-b979-a60cd9503974" } } } @@ -13838,7 +16026,7 @@ "description": "Basic configuration that can be used in explore.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "basic configuration", - "guid": "ec70f73f-b796-44c9-875c-aece5cb3c979" + "guid": "d6c657dc-f7e0-4525-b979-a60cd9503974" } } } @@ -13864,7 +16052,7 @@ "description": "Basic configuration that can be used in explore.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "basic configuration", - "guid": "ec70f73f-b796-44c9-875c-aece5cb3c979" + "guid": "d6c657dc-f7e0-4525-b979-a60cd9503974" } } } @@ -13890,7 +16078,7 @@ "description": "Basic configuration that can be used in explore.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "basic configuration", - "guid": "ec70f73f-b796-44c9-875c-aece5cb3c979" + "guid": "d6c657dc-f7e0-4525-b979-a60cd9503974" } } } @@ -14037,7 +16225,7 @@ "description": "Updated description for MI_Training Explore 'examples' configuration.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "examples (updated)", - "guid": "ccc5c330-2bac-442c-8745-fd61913860e0" + "guid": "41fa2c5e-d532-44d0-971e-a996fcecead6" } }, "Example 2": { @@ -14061,7 +16249,7 @@ "description": "Updated description for MI_Training Explore 'examples' configuration.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "examples (updated)", - "guid": "ccc5c330-2bac-442c-8745-fd61913860e0" + "guid": "41fa2c5e-d532-44d0-971e-a996fcecead6" } }, "Example 2": { @@ -14085,7 +16273,7 @@ "description": "Updated description for MI_Training Explore 'examples' configuration.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "examples (updated)", - "guid": "ccc5c330-2bac-442c-8745-fd61913860e0" + "guid": "41fa2c5e-d532-44d0-971e-a996fcecead6" } }, "Example 2": { @@ -14109,7 +16297,7 @@ "description": "Updated description for MI_Training Explore 'examples' configuration.", "value": "{\n\t\"configurations\": [\n\t{\n\t\t\t\"key\": \"training-materials\",\n\t\t\t\"displayName\": \"MI Training Materials\",\n\t\t\t\"default\": true,\n\t\t\t\"groups\": [\n\t\t\t\t\"MI Training examples\"\n\t\t\t],\n\t\t\t\"table\": \"MaterialUniverse\",\n\t\t\t\"loadDataOnDemand\": false,\n\t\t\t\"description\": \"Explore MaterialUniverse data in the MI Training database\",\n\t\t\t\"searchLayout\": \"All bulk materials\",\n\t\t\t\"dataSheetLayout\": \"All bulk materials\",\n\t\t\t\"editableDatasheetLayout\": \"All bulk materials\",\n\t\t\t\"searchListLayout\": \"Explore list layout Materials\",\n\t\t\t\"newRecordLocation\": \"NEW RECORDS/{Base}\",\n\t\t\t\"subset\": \"All bulk materials\",\n\t\t\t\"logsliders\": true,\n\t\t\t\"xyChart\": {\n\t\t\t\t\"colorAttribute\": \"UV radiation (sunlight)\",\n\t\t\t\t\"colorAttribute2\": \"Flammability\",\n\t\t\t\t\"colorAttribute3\": \"Food contact\",\n\t\t\t\t\"colorAttribute4\": \"Material form\",\n\t\t\t\t\"colorAttribute5\": \"Organic solvents\",\n\t\t\t\t\"colorAttribute6\": \"Oxidation at 500C\",\n\t\t\t\t\"colorAttribute7\": \"Strong acids\",\n\t\t\t\t\"colorAttribute8\": \"Strong alkalis\",\n\t\t\t\t\"colorAttribute9\": \"Weak acids\",\n\t\t\t\t\"colorAttribute10\": \"Weak alkalis\",\n\t\t\t\t\"colorAttribute11\": \"Water (fresh)\",\n\t\t\t\t\"colorAttribute12\": \"Water (salt)\",\n\t\t\t\t\"colorAttribute13\": \"Transparency\",\n\t\t\t\t\"colorAttribute14\": \"Wear resistance\",\n\t\t\t\t\"xAttribute\": \"Density\",\n\t\t\t\t\"yAttribute\": \"Yield strength (elastic limit)\",\n\t\t\t\t\"preventAxisChange\": false,\n\t\t\t\t\"xAxisLogarithmic\": true,\n\t\t\t\t\"yAxisLogarithmic\": true\n\t\t\t},\n\t\t\t\"showBlanks\": false,\n\t\t\t\"reportsDisabled\": false,\n\t\t\t\"exportersDisabled\": false,\n\t\t\t\"tabularEditingEnabled\": true,\n\t\t\t\"configSwitching\": \"keyOnly\",\n\t\t\t\"workflowEnabled\": true,\n\t\t\t\"useCustomFormatters\": {\n\t\t\t\t\"Recycle fraction in current supply\": \"recyclingPercent\",\n\t\t\t\t\"Recycle\": \"recyclingBool\",\n\t\t\t\t\"Biodegrade\": \"biodegradeBool\",\n\t\t\t\t\"UV radiation (sunlight)\": \"uvradiationsunlightDiscrete\",\n\t\t\t\t\"Flammability\": \"flammabilityDiscrete\",\n\t\t\t\t\"Food contact\": \"foodcontactDiscrete\",\n\t\t\t\t\"Material form\": \"materialformDiscrete\",\n\t\t\t\t\"Organic solvents\": \"organicsolventsDiscrete\",\n\t\t\t\t\"Oxidation at 500C\": \"oxidationat500cDiscrete\",\n\t\t\t\t\"Strong acids\": \"strongacidsDiscrete\",\n\t\t\t\t\"Strong alkalis\": \"strongalkalisDiscrete\",\n\t\t\t\t\"Weak acids\": \"weakacidsDiscrete\",\n\t\t\t\t\"Weak alkalis\": \"weakalkalisDiscrete\",\n\t\t\t\t\"Water (fresh)\": \"waterfreshDiscrete\",\n\t\t\t\t\"Water (salt)\": \"watersaltDiscrete\",\n\t\t\t\t\"Transparency\": \"transparencyDiscrete\",\n\t\t\t\t\"Wear resistance\": \"wearresistanceDiscrete\",\n\t\t\t\t\"A renewable resource?\": \"arenewableresourceBool\",\n\t\t\t\t\"Combust for energy recovery\": \"combustforenergyrecoveryBool\",\n\t\t\t\t\"Downcycle\": \"downcycleBool\",\n\t\t\t\t\"Flame retardant additive\": \"flameretardantadditiveBool\",\n\t\t\t\t\"Landfill\": \"landfillBool\",\n\t\t\t\t\"RoHS (EU) compliant grades?\": \"rohseucompliantgradesBool\",\n\t\t\t\t\"Substance declaration available?\": \"substancedeclarationavailableBool\"\n\t\t\t}\n\t\t}\n\t],\n\t\"customFormatterDefinitions\": {\n\t\t\"recyclingBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleYes.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/RecycleNo.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be recycled\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t},\n\t\t\"biodegradeBool\": {\n\t\t\t\"attributeFormatter\": {\n\t\t\t\t\"list\": {\n\t\t\t\t\t\"columnHeader\": false,\n\t\t\t\t\t\"columnWidth\": 40\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"valueFormatters\": [{\n\t\t\t\t\t\"match\": true,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafGreen.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"green\"\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"match\": false,\n\t\t\t\t\t\"list\": {\n\t\t\t\t\t\t\"iconUrl\": \"/mi_servicelayer/Assets/v1.svc/HelpPageFiles/MI_Training/ExploreImages/LeafRed.png\",\n\t\t\t\t\t\t\"tooltipValue\": \"Can not be biodegraded\"\n\t\t\t\t\t},\n\t\t\t\t\t\"chart\": {\n\t\t\t\t\t\t\"renderColor\": \"red\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t}\n}", "name": "examples (updated)", - "guid": "ccc5c330-2bac-442c-8745-fd61913860e0" + "guid": "41fa2c5e-d532-44d0-971e-a996fcecead6" } }, "Example 2": { @@ -14332,7 +16520,7 @@ "value": { "value": 0.0072973525693, "name": "fine-structure constant (guid)", - "guid": "c75c072c-7ef9-4725-877a-9c44328b32fb" + "guid": "0b77fe45-b31c-47cb-9bc7-06bd2e2abeac" } }, "Example 3": { @@ -14365,7 +16553,7 @@ "value": { "value": 0.0072973525693, "name": "fine-structure constant (guid)", - "guid": "c75c072c-7ef9-4725-877a-9c44328b32fb" + "guid": "0b77fe45-b31c-47cb-9bc7-06bd2e2abeac" } }, "Example 3": { @@ -14398,7 +16586,7 @@ "value": { "value": 0.0072973525693, "name": "fine-structure constant (guid)", - "guid": "c75c072c-7ef9-4725-877a-9c44328b32fb" + "guid": "0b77fe45-b31c-47cb-9bc7-06bd2e2abeac" } }, "Example 3": { @@ -14431,7 +16619,7 @@ "value": { "value": 0.0072973525693, "name": "fine-structure constant (guid)", - "guid": "c75c072c-7ef9-4725-877a-9c44328b32fb" + "guid": "0b77fe45-b31c-47cb-9bc7-06bd2e2abeac" } }, "Example 3": { @@ -14572,7 +16760,7 @@ "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", "value": 376.730313668, "name": "characteristic impedance of vacuum", - "guid": "7a042123-718a-438c-9304-8a3026ddaac1" + "guid": "b3530993-f98c-469d-9f94-572fd2e3346e" } }, "Example 2": { @@ -14587,7 +16775,7 @@ "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", "value": { "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "8977fbc7-dc15-47cd-8a53-5436ee055126" + "guid": "515bc546-3bed-4d93-a480-4d5f84a4fd85" } } } @@ -14604,7 +16792,7 @@ "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", "value": 376.730313668, "name": "characteristic impedance of vacuum", - "guid": "7a042123-718a-438c-9304-8a3026ddaac1" + "guid": "b3530993-f98c-469d-9f94-572fd2e3346e" } }, "Example 2": { @@ -14619,7 +16807,7 @@ "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", "value": { "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "8977fbc7-dc15-47cd-8a53-5436ee055126" + "guid": "515bc546-3bed-4d93-a480-4d5f84a4fd85" } } } @@ -14636,7 +16824,7 @@ "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", "value": 376.730313668, "name": "characteristic impedance of vacuum", - "guid": "7a042123-718a-438c-9304-8a3026ddaac1" + "guid": "b3530993-f98c-469d-9f94-572fd2e3346e" } }, "Example 2": { @@ -14651,7 +16839,7 @@ "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", "value": { "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "8977fbc7-dc15-47cd-8a53-5436ee055126" + "guid": "515bc546-3bed-4d93-a480-4d5f84a4fd85" } } } @@ -14668,7 +16856,7 @@ "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", "value": 376.730313668, "name": "characteristic impedance of vacuum", - "guid": "7a042123-718a-438c-9304-8a3026ddaac1" + "guid": "b3530993-f98c-469d-9f94-572fd2e3346e" } }, "Example 2": { @@ -14683,7 +16871,7 @@ "description": "This example shows how to update the 'Guid' and 'Unit' properties of the 'Speed of light in Vacuum' constant (guid = 0000000f-0004-4fff-8fff-0000ffff0000) from the MI_Training database. Its unit is changed to 'Ohm'", "value": { "unitGuid": "00000059-0013-4fff-8fff-0000ffff0000", - "guid": "8977fbc7-dc15-47cd-8a53-5436ee055126" + "guid": "515bc546-3bed-4d93-a480-4d5f84a4fd85" } } } @@ -14753,7 +16941,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsConstantDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionConstantDeletionException" }, "example": { "message": "Cannot delete constant 'PI' (GUID = '00000001-0004-4fff-8fff-0000ffff0000').", @@ -14761,8 +16949,8 @@ "errors": [ { "message": "It is being used in one or more expressions.", - "reason": "InUse", - "referencedByType": "Expression", + "reason": "inUse", + "referencedByType": "expression", "referencedBy": [ { "name": "Fatigue Model", @@ -15173,9 +17361,9 @@ "company": "ANSYS, Inc. (updated)", "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", "currencyCode": "PLN", - "versionGuid": "c6d12b2d-0bd6-40ee-8a93-9334c0a8ece6", + "versionGuid": "6928aacc-053a-4f8b-990f-00970c740ebe", "name": "MI Training (Updated)", - "guid": "751af45d-9863-494d-8b7e-3a856296756d" + "guid": "922f71c4-5d4e-46e9-b458-826a455f97a9" } }, "Update the author": { @@ -15199,9 +17387,9 @@ "company": "ANSYS, Inc. (updated)", "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", "currencyCode": "PLN", - "versionGuid": "c6d12b2d-0bd6-40ee-8a93-9334c0a8ece6", + "versionGuid": "6928aacc-053a-4f8b-990f-00970c740ebe", "name": "MI Training (Updated)", - "guid": "751af45d-9863-494d-8b7e-3a856296756d" + "guid": "922f71c4-5d4e-46e9-b458-826a455f97a9" } }, "Update the author": { @@ -15225,9 +17413,9 @@ "company": "ANSYS, Inc. (updated)", "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", "currencyCode": "PLN", - "versionGuid": "c6d12b2d-0bd6-40ee-8a93-9334c0a8ece6", + "versionGuid": "6928aacc-053a-4f8b-990f-00970c740ebe", "name": "MI Training (Updated)", - "guid": "751af45d-9863-494d-8b7e-3a856296756d" + "guid": "922f71c4-5d4e-46e9-b458-826a455f97a9" } }, "Update the author": { @@ -15251,9 +17439,9 @@ "company": "ANSYS, Inc. (updated)", "notes": "MI Training Database for Granta MI v2022R2 and above.\r\n\r\n\nThis database has been developed to support training classes. Any other use of this database will not be supported by Ansys Granta. (Updated)", "currencyCode": "PLN", - "versionGuid": "c6d12b2d-0bd6-40ee-8a93-9334c0a8ece6", + "versionGuid": "6928aacc-053a-4f8b-990f-00970c740ebe", "name": "MI Training (Updated)", - "guid": "751af45d-9863-494d-8b7e-3a856296756d" + "guid": "922f71c4-5d4e-46e9-b458-826a455f97a9" } }, "Update the author": { @@ -15679,7 +17867,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsDiscreteTypeDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException" }, "example": { "message": "Cannot delete discrete type 'MU Durability' (GUID = '00000083-0006-4fff-8fff-0000ffff0000').", @@ -15687,8 +17875,8 @@ "errors": [ { "message": "It is being used in one or more attributes.", - "reason": "InUse", - "referencedByType": "Attribute", + "reason": "inUse", + "referencedByType": "attribute", "referencedBy": [ { "name": "Metals", @@ -15842,7 +18030,7 @@ "description": "This example demonstrates how to create a new discrete value with a specified guid value.", "value": { "name": "New Discrete Value 2", - "guid": "8115abea-39bf-421e-ac78-83f4fca05d74" + "guid": "20a10010-53ab-4b66-ae03-67885b45eea7" } } } @@ -15864,7 +18052,7 @@ "description": "This example demonstrates how to create a new discrete value with a specified guid value.", "value": { "name": "New Discrete Value 2", - "guid": "8115abea-39bf-421e-ac78-83f4fca05d74" + "guid": "20a10010-53ab-4b66-ae03-67885b45eea7" } } } @@ -15886,7 +18074,7 @@ "description": "This example demonstrates how to create a new discrete value with a specified guid value.", "value": { "name": "New Discrete Value 2", - "guid": "8115abea-39bf-421e-ac78-83f4fca05d74" + "guid": "20a10010-53ab-4b66-ae03-67885b45eea7" } } } @@ -15908,7 +18096,7 @@ "description": "This example demonstrates how to create a new discrete value with a specified guid value.", "value": { "name": "New Discrete Value 2", - "guid": "8115abea-39bf-421e-ac78-83f4fca05d74" + "guid": "20a10010-53ab-4b66-ae03-67885b45eea7" } } } @@ -16176,7 +18364,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsDiscreteValueDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionDiscreteValueDeletionException" }, "example": { "message": "Cannot delete discrete value 'Unacceptable' (GUID = '00000583-0007-4fff-8fff-0083ffff0000').", @@ -16184,8 +18372,8 @@ "errors": [ { "message": "It is being used in one or more data items.", - "reason": "InUse", - "referencedByType": "Data" + "reason": "inUse", + "referencedByType": "data" } ] } @@ -16647,7 +18835,7 @@ "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", "value": { - "guid": "699a6d9e-570e-413d-9440-46384e8b8bf8" + "guid": "3cd9d9d6-bfbf-4563-945e-c84cbdcab95d" } } } @@ -16668,7 +18856,7 @@ "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", "value": { - "guid": "699a6d9e-570e-413d-9440-46384e8b8bf8" + "guid": "3cd9d9d6-bfbf-4563-945e-c84cbdcab95d" } } } @@ -16689,7 +18877,7 @@ "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", "value": { - "guid": "699a6d9e-570e-413d-9440-46384e8b8bf8" + "guid": "3cd9d9d6-bfbf-4563-945e-c84cbdcab95d" } } } @@ -16710,7 +18898,7 @@ "summary": "Change guid for Exporter Folder", "description": "This example demonstrates how to modify the guid of an existing Exporter folder.", "value": { - "guid": "699a6d9e-570e-413d-9440-46384e8b8bf8" + "guid": "3cd9d9d6-bfbf-4563-945e-c84cbdcab95d" } } } @@ -17108,11 +19296,11 @@ "files": [ { "name": "exporter-1.exp", - "guid": "35f395ac-72d5-40f1-a097-812e3a4160ed" + "guid": "0fba8139-acdf-4655-90d4-46bf5d6dec1a" }, { "name": "no-transform.xslt", - "guid": "366dba35-d6f9-4911-9224-506106e1bc78" + "guid": "f632e500-5ac6-41dc-8de3-3d1ee82ed37f" } ] } @@ -17125,11 +19313,11 @@ "files": [ { "name": "exporter-1.exp", - "guid": "35f395ac-72d5-40f1-a097-812e3a4160ed" + "guid": "0fba8139-acdf-4655-90d4-46bf5d6dec1a" }, { "name": "no-transform.xslt", - "guid": "366dba35-d6f9-4911-9224-506106e1bc78" + "guid": "f632e500-5ac6-41dc-8de3-3d1ee82ed37f" } ] } @@ -17142,11 +19330,11 @@ "files": [ { "name": "exporter-1.exp", - "guid": "35f395ac-72d5-40f1-a097-812e3a4160ed" + "guid": "0fba8139-acdf-4655-90d4-46bf5d6dec1a" }, { "name": "no-transform.xslt", - "guid": "366dba35-d6f9-4911-9224-506106e1bc78" + "guid": "f632e500-5ac6-41dc-8de3-3d1ee82ed37f" } ] } @@ -17259,7 +19447,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "be761a09-3bba-4d77-8d7f-4f2dd84801b5" + "guid": "e31394a4-ecd9-4af9-94dc-8107ce065c38" } }, "application/json": { @@ -17273,7 +19461,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "be761a09-3bba-4d77-8d7f-4f2dd84801b5" + "guid": "e31394a4-ecd9-4af9-94dc-8107ce065c38" } }, "text/json": { @@ -17287,7 +19475,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "be761a09-3bba-4d77-8d7f-4f2dd84801b5" + "guid": "e31394a4-ecd9-4af9-94dc-8107ce065c38" } } } @@ -17353,7 +19541,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "5c376893-88e2-49cf-ae8c-a5e49a014b87" + "guid": "ee953844-778b-4896-af7c-1baa72bfbf8d" } }, "application/json": { @@ -17367,7 +19555,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "5c376893-88e2-49cf-ae8c-a5e49a014b87" + "guid": "ee953844-778b-4896-af7c-1baa72bfbf8d" } }, "text/json": { @@ -17381,7 +19569,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "5c376893-88e2-49cf-ae8c-a5e49a014b87" + "guid": "ee953844-778b-4896-af7c-1baa72bfbf8d" } } } @@ -17449,7 +19637,7 @@ "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", "value": { - "guid": "6bbfe237-386f-40e5-ac08-0fa840b16c8b" + "guid": "16dbf6aa-33fc-44af-acbd-a49fc777c86b" } } } @@ -17477,7 +19665,7 @@ "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", "value": { - "guid": "6bbfe237-386f-40e5-ac08-0fa840b16c8b" + "guid": "16dbf6aa-33fc-44af-acbd-a49fc777c86b" } } } @@ -17505,7 +19693,7 @@ "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", "value": { - "guid": "6bbfe237-386f-40e5-ac08-0fa840b16c8b" + "guid": "16dbf6aa-33fc-44af-acbd-a49fc777c86b" } } } @@ -17533,7 +19721,7 @@ "summary": "Change guid for Exporter File", "description": "This example demonstrates how to modify the guid of an existing Exporter file.", "value": { - "guid": "6bbfe237-386f-40e5-ac08-0fa840b16c8b" + "guid": "16dbf6aa-33fc-44af-acbd-a49fc777c86b" } } } @@ -17555,7 +19743,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "a97eee89-7d00-4445-8826-c62d44592d21" + "guid": "54f63f26-d867-4917-827a-593e45c7cbf8" } }, "application/json": { @@ -17569,7 +19757,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "a97eee89-7d00-4445-8826-c62d44592d21" + "guid": "54f63f26-d867-4917-827a-593e45c7cbf8" } }, "text/json": { @@ -17583,7 +19771,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "a97eee89-7d00-4445-8826-c62d44592d21" + "guid": "54f63f26-d867-4917-827a-593e45c7cbf8" } } } @@ -17798,7 +19986,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ceda7662-d4a6-467c-9279-dc4199b03664" + "guid": "eecbeef0-7405-48cd-bc32-128373813568" } }, "application/json": { @@ -17812,7 +20000,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ceda7662-d4a6-467c-9279-dc4199b03664" + "guid": "eecbeef0-7405-48cd-bc32-128373813568" } }, "text/json": { @@ -17826,7 +20014,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ceda7662-d4a6-467c-9279-dc4199b03664" + "guid": "eecbeef0-7405-48cd-bc32-128373813568" } } } @@ -17967,7 +20155,7 @@ "value": { "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", "name": "Simple expression with specified guid", - "guid": "df4aab58-b523-45ce-8c63-284dae992942" + "guid": "bb185e66-7f02-49db-a6ef-77e02e8ae211" } }, "Example 3": { @@ -18002,7 +20190,7 @@ "value": { "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", "name": "Simple expression with specified guid", - "guid": "df4aab58-b523-45ce-8c63-284dae992942" + "guid": "bb185e66-7f02-49db-a6ef-77e02e8ae211" } }, "Example 3": { @@ -18037,7 +20225,7 @@ "value": { "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", "name": "Simple expression with specified guid", - "guid": "df4aab58-b523-45ce-8c63-284dae992942" + "guid": "bb185e66-7f02-49db-a6ef-77e02e8ae211" } }, "Example 3": { @@ -18072,7 +20260,7 @@ "value": { "value": "[A:Tensile strength] + [P:Stress Ratio] * [A:Yield strength (elastic limit)] / log10(20000000) + 5", "name": "Simple expression with specified guid", - "guid": "df4aab58-b523-45ce-8c63-284dae992942" + "guid": "bb185e66-7f02-49db-a6ef-77e02e8ae211" } }, "Example 3": { @@ -18332,7 +20520,7 @@ "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, "name": "Fatigue Model (Updated)", - "guid": "858db00a-ef17-49a7-bcc9-3e5b59c76436" + "guid": "a915626b-e242-4e18-b3bb-d8d0081cab93" } }, "Example 2": { @@ -18358,7 +20546,7 @@ "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, "name": "Fatigue Model (Updated)", - "guid": "858db00a-ef17-49a7-bcc9-3e5b59c76436" + "guid": "a915626b-e242-4e18-b3bb-d8d0081cab93" } }, "Example 2": { @@ -18384,7 +20572,7 @@ "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, "name": "Fatigue Model (Updated)", - "guid": "858db00a-ef17-49a7-bcc9-3e5b59c76436" + "guid": "a915626b-e242-4e18-b3bb-d8d0081cab93" } }, "Example 2": { @@ -18410,7 +20598,7 @@ "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, "name": "Fatigue Model (Updated)", - "guid": "858db00a-ef17-49a7-bcc9-3e5b59c76436" + "guid": "a915626b-e242-4e18-b3bb-d8d0081cab93" } }, "Example 2": { @@ -18941,7 +21129,7 @@ "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", "value": { - "guid": "983f11e3-45f4-412b-9206-c829f02e0572" + "guid": "7e9c7638-2e48-4f8a-94cf-e2e3600ef313" } } } @@ -18962,7 +21150,7 @@ "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", "value": { - "guid": "983f11e3-45f4-412b-9206-c829f02e0572" + "guid": "7e9c7638-2e48-4f8a-94cf-e2e3600ef313" } } } @@ -18983,7 +21171,7 @@ "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", "value": { - "guid": "983f11e3-45f4-412b-9206-c829f02e0572" + "guid": "7e9c7638-2e48-4f8a-94cf-e2e3600ef313" } } } @@ -19004,7 +21192,7 @@ "summary": "Change guid for Help File Folder", "description": "This example demonstrates how to modify the guid of an existing help file folder.", "value": { - "guid": "983f11e3-45f4-412b-9206-c829f02e0572" + "guid": "7e9c7638-2e48-4f8a-94cf-e2e3600ef313" } } } @@ -19504,7 +21692,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "15aecb7f-c97e-495f-9f73-4fa150d8734b" + "guid": "46193562-dcd9-4046-bf02-b09885af71e5" } }, "application/json": { @@ -19518,7 +21706,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "15aecb7f-c97e-495f-9f73-4fa150d8734b" + "guid": "46193562-dcd9-4046-bf02-b09885af71e5" } }, "text/json": { @@ -19532,7 +21720,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "15aecb7f-c97e-495f-9f73-4fa150d8734b" + "guid": "46193562-dcd9-4046-bf02-b09885af71e5" } } } @@ -19694,7 +21882,7 @@ "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", "value": { - "guid": "4d59153c-1a0f-4893-8c48-1f78ac2f826e" + "guid": "f470ed42-6a1e-414a-ad30-71b4ec22c899" } } } @@ -19722,7 +21910,7 @@ "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", "value": { - "guid": "4d59153c-1a0f-4893-8c48-1f78ac2f826e" + "guid": "f470ed42-6a1e-414a-ad30-71b4ec22c899" } } } @@ -19750,7 +21938,7 @@ "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", "value": { - "guid": "4d59153c-1a0f-4893-8c48-1f78ac2f826e" + "guid": "f470ed42-6a1e-414a-ad30-71b4ec22c899" } } } @@ -19778,7 +21966,7 @@ "summary": "Change guid for Help File", "description": "This example demonstrates how to modify the guid of an existing help file.", "value": { - "guid": "4d59153c-1a0f-4893-8c48-1f78ac2f826e" + "guid": "f470ed42-6a1e-414a-ad30-71b4ec22c899" } } } @@ -19800,7 +21988,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "4832a1c8-087d-4428-9125-94f19c317cea" + "guid": "aab814fb-c36f-4a83-b202-2625ed0af575" } }, "application/json": { @@ -19814,7 +22002,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "4832a1c8-087d-4428-9125-94f19c317cea" + "guid": "aab814fb-c36f-4a83-b202-2625ed0af575" } }, "text/json": { @@ -19828,7 +22016,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "4832a1c8-087d-4428-9125-94f19c317cea" + "guid": "aab814fb-c36f-4a83-b202-2625ed0af575" } } } @@ -20043,7 +22231,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ca97323e-89a5-49d4-b716-79b5c2bfa07e" + "guid": "f7d7173d-5a05-4166-a2fa-35c306d71e97" } }, "application/json": { @@ -20057,7 +22245,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ca97323e-89a5-49d4-b716-79b5c2bfa07e" + "guid": "f7d7173d-5a05-4166-a2fa-35c306d71e97" } }, "text/json": { @@ -20071,7 +22259,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "ca97323e-89a5-49d4-b716-79b5c2bfa07e" + "guid": "f7d7173d-5a05-4166-a2fa-35c306d71e97" } } } @@ -20121,7 +22309,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "a3763edf-dfc4-4720-af74-4d8bb07d2783" + "guid": "47f51b4a-475c-48bf-b545-e691d7b6cd86" } ] } @@ -20139,7 +22327,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "a3763edf-dfc4-4720-af74-4d8bb07d2783" + "guid": "47f51b4a-475c-48bf-b545-e691d7b6cd86" } ] } @@ -20157,7 +22345,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "a3763edf-dfc4-4720-af74-4d8bb07d2783" + "guid": "47f51b4a-475c-48bf-b545-e691d7b6cd86" } ] } @@ -20384,7 +22572,7 @@ "example": { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "fc13b7c3-de48-4b9f-ac90-3a160d7c7483" + "guid": "7b408fb6-25e3-43e6-a8b9-1574d322f103" } }, "application/json": { @@ -20394,7 +22582,7 @@ "example": { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "fc13b7c3-de48-4b9f-ac90-3a160d7c7483" + "guid": "7b408fb6-25e3-43e6-a8b9-1574d322f103" } }, "text/json": { @@ -20404,7 +22592,7 @@ "example": { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "fc13b7c3-de48-4b9f-ac90-3a160d7c7483" + "guid": "7b408fb6-25e3-43e6-a8b9-1574d322f103" } } } @@ -20456,7 +22644,7 @@ "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", "value": { - "guid": "3b5c6fc3-12c3-4a03-95bf-1c624e114191" + "guid": "e38e3979-6662-4a6e-8bd4-0bc305ddf981" } } } @@ -20477,7 +22665,7 @@ "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", "value": { - "guid": "3b5c6fc3-12c3-4a03-95bf-1c624e114191" + "guid": "e38e3979-6662-4a6e-8bd4-0bc305ddf981" } } } @@ -20498,7 +22686,7 @@ "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", "value": { - "guid": "3b5c6fc3-12c3-4a03-95bf-1c624e114191" + "guid": "e38e3979-6662-4a6e-8bd4-0bc305ddf981" } } } @@ -20519,7 +22707,7 @@ "summary": "Change guid for Home Page Folder", "description": "This example demonstrates how to modify the guid of an existing home page folder.", "value": { - "guid": "3b5c6fc3-12c3-4a03-95bf-1c624e114191" + "guid": "e38e3979-6662-4a6e-8bd4-0bc305ddf981" } } } @@ -20645,7 +22833,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "75050096-d31b-4a78-b4c8-eda756767d08" + "guid": "c45e3a5c-1e34-425b-a270-8ea007ea63d4" } ] } @@ -20659,7 +22847,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "75050096-d31b-4a78-b4c8-eda756767d08" + "guid": "c45e3a5c-1e34-425b-a270-8ea007ea63d4" } ] } @@ -20673,7 +22861,7 @@ { "parentGuid": "c13eb185-2558-4b4a-8395-33c031663925", "name": "images", - "guid": "75050096-d31b-4a78-b4c8-eda756767d08" + "guid": "c45e3a5c-1e34-425b-a270-8ea007ea63d4" } ] } @@ -20853,11 +23041,11 @@ "files": [ { "name": "home-page-1.html", - "guid": "4daf9431-36b8-4ac8-8234-d9f319e93c92" + "guid": "cbac8c8b-d75c-459b-a1c4-fef7f5fc181d" }, { "name": "home-page-2.html", - "guid": "aab470b4-741b-45c8-97e3-7889856d9e5e" + "guid": "059d6815-33df-4954-a35d-e5d07c1beb46" } ] } @@ -20870,11 +23058,11 @@ "files": [ { "name": "home-page-1.html", - "guid": "4daf9431-36b8-4ac8-8234-d9f319e93c92" + "guid": "cbac8c8b-d75c-459b-a1c4-fef7f5fc181d" }, { "name": "home-page-2.html", - "guid": "aab470b4-741b-45c8-97e3-7889856d9e5e" + "guid": "059d6815-33df-4954-a35d-e5d07c1beb46" } ] } @@ -20887,11 +23075,11 @@ "files": [ { "name": "home-page-1.html", - "guid": "4daf9431-36b8-4ac8-8234-d9f319e93c92" + "guid": "cbac8c8b-d75c-459b-a1c4-fef7f5fc181d" }, { "name": "home-page-2.html", - "guid": "aab470b4-741b-45c8-97e3-7889856d9e5e" + "guid": "059d6815-33df-4954-a35d-e5d07c1beb46" } ] } @@ -21004,7 +23192,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "e5717cb3-98eb-4fdb-aec4-e82fbcad49db" + "guid": "c5b70cea-28ef-4f9d-859b-ded470bee797" } }, "application/json": { @@ -21018,7 +23206,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "e5717cb3-98eb-4fdb-aec4-e82fbcad49db" + "guid": "c5b70cea-28ef-4f9d-859b-ded470bee797" } }, "text/json": { @@ -21032,7 +23220,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "e5717cb3-98eb-4fdb-aec4-e82fbcad49db" + "guid": "c5b70cea-28ef-4f9d-859b-ded470bee797" } } } @@ -21098,7 +23286,7 @@ "dataLength": 12895, "path": "HomePages", "name": "home-page.html", - "guid": "c7010f47-f622-4533-9156-f6a18d598a67" + "guid": "e4aed96d-510a-47c8-bc1b-0cce97a7a0b3" } }, "application/json": { @@ -21112,7 +23300,7 @@ "dataLength": 12895, "path": "HomePages", "name": "home-page.html", - "guid": "c7010f47-f622-4533-9156-f6a18d598a67" + "guid": "e4aed96d-510a-47c8-bc1b-0cce97a7a0b3" } }, "text/json": { @@ -21126,7 +23314,7 @@ "dataLength": 12895, "path": "HomePages", "name": "home-page.html", - "guid": "c7010f47-f622-4533-9156-f6a18d598a67" + "guid": "e4aed96d-510a-47c8-bc1b-0cce97a7a0b3" } } } @@ -21194,7 +23382,7 @@ "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", "value": { - "guid": "34337dce-1421-4264-b6e4-b7bb91ef2b77" + "guid": "4adc186e-1506-4578-a31d-e9018e7c0393" } } } @@ -21222,7 +23410,7 @@ "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", "value": { - "guid": "34337dce-1421-4264-b6e4-b7bb91ef2b77" + "guid": "4adc186e-1506-4578-a31d-e9018e7c0393" } } } @@ -21250,7 +23438,7 @@ "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", "value": { - "guid": "34337dce-1421-4264-b6e4-b7bb91ef2b77" + "guid": "4adc186e-1506-4578-a31d-e9018e7c0393" } } } @@ -21278,7 +23466,7 @@ "summary": "Change guid for Home Page File", "description": "This example demonstrates how to modify the guid of an existing home page file.", "value": { - "guid": "34337dce-1421-4264-b6e4-b7bb91ef2b77" + "guid": "4adc186e-1506-4578-a31d-e9018e7c0393" } } } @@ -21300,7 +23488,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "9538c313-cd56-474f-b040-64f4419f92d8" + "guid": "7e206c0d-cc47-40b5-9cda-d6d9824f5b21" } }, "application/json": { @@ -21314,7 +23502,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "9538c313-cd56-474f-b040-64f4419f92d8" + "guid": "7e206c0d-cc47-40b5-9cda-d6d9824f5b21" } }, "text/json": { @@ -21328,7 +23516,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "9538c313-cd56-474f-b040-64f4419f92d8" + "guid": "7e206c0d-cc47-40b5-9cda-d6d9824f5b21" } } } @@ -21543,7 +23731,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "31d97e7d-818a-45ef-a8f0-9c5ff80fb3b2" + "guid": "f30cf4f4-7c62-41c8-96d5-141dc403fa13" } }, "application/json": { @@ -21557,7 +23745,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "31d97e7d-818a-45ef-a8f0-9c5ff80fb3b2" + "guid": "f30cf4f4-7c62-41c8-96d5-141dc403fa13" } }, "text/json": { @@ -21571,7 +23759,7 @@ "dataLength": 12895, "path": "Exporters", "name": "exporter-1.exp", - "guid": "31d97e7d-818a-45ef-a8f0-9c5ff80fb3b2" + "guid": "f30cf4f4-7c62-41c8-96d5-141dc403fa13" } } } @@ -21702,9 +23890,9 @@ "required": false, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "f02b0ff2-e000-48ef-9e36-627dd4673705", + "underlyingEntityGuid": "28868132-3136-4598-96ea-70ce40e4a4b1", "name": "Price", - "guid": "68759db1-4e7b-4387-9671-e4e6dea9c921" + "guid": "0460d089-29b9-40fd-ac47-a008e253749e" }, { "itemType": "attribute", @@ -21712,9 +23900,9 @@ "required": false, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "ec545fa9-3f37-4fe2-9bec-0710c30fe18a", + "underlyingEntityGuid": "30a6b33a-095b-42cb-99ac-b81ebc4ca3f3", "name": "Density", - "guid": "4c1e933b-7f6f-4ad7-b02b-a16e7c9ba7c7" + "guid": "00840575-18af-45cd-9624-291e9421b0a3" } ], "displayNames": { @@ -21733,9 +23921,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "718dc4c6-5930-48d8-bcc9-e6d5eaca4c01", + "underlyingEntityGuid": "fea457c4-5722-4fd4-b206-ddba48516d02", "name": "Young's modulus", - "guid": "a7944acf-3b5a-4dbd-ae72-6545a1fc82b7" + "guid": "8e285927-1dea-413d-8d28-2d475ccf1c0d" }, { "itemType": "attribute", @@ -21743,9 +23931,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "ea684bc2-bb25-4278-b42d-60526ddf8372", + "underlyingEntityGuid": "41bb23cc-027c-4b85-909d-4788b7d56de4", "name": "Tensile strength", - "guid": "28cbae22-521b-41df-8c76-b724d758b872" + "guid": "47808ae3-0024-46ba-8613-baf9cbb4629a" }, { "itemType": "attribute", @@ -21753,9 +23941,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "1597566e-9622-4bc4-864e-43d13118772a", + "underlyingEntityGuid": "d867bad6-0be6-4d81-9849-f89f1dcae6dc", "name": "Shape factor", - "guid": "df8aedaa-216c-4021-beaa-526c58cac01a" + "guid": "f7348b8e-acc4-4ca9-8235-3df064abfe27" } ], "displayNames": { @@ -21829,7 +24017,7 @@ "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "Additional Properties (Guid)", - "guid": "fc13b82c-9657-4662-b205-5bc76794c4d2" + "guid": "ab684a7f-868a-4de0-bd34-b4dac1214c17" } } } @@ -21851,7 +24039,7 @@ "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "Additional Properties (Guid)", - "guid": "fc13b82c-9657-4662-b205-5bc76794c4d2" + "guid": "ab684a7f-868a-4de0-bd34-b4dac1214c17" } } } @@ -21873,7 +24061,7 @@ "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "Additional Properties (Guid)", - "guid": "fc13b82c-9657-4662-b205-5bc76794c4d2" + "guid": "ab684a7f-868a-4de0-bd34-b4dac1214c17" } } } @@ -21895,7 +24083,7 @@ "description": "This example demonstrates how to create a new layout section with a specified guid value in the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "Additional Properties (Guid)", - "guid": "fc13b82c-9657-4662-b205-5bc76794c4d2" + "guid": "ab684a7f-868a-4de0-bd34-b4dac1214c17" } } } @@ -21914,7 +24102,7 @@ "sectionDetailType": "slim", "displayNames": {}, "name": "Additional Properties", - "guid": "b5e02901-9fce-431b-a53f-f44959e4c26a" + "guid": "708c0da2-cd39-4428-985b-c33935433c98" } } } @@ -22555,7 +24743,7 @@ "fr": "Testing Information French Display Name" }, "name": "Testing Information", - "guid": "ac7b9e65-9cd8-495d-8976-50a43124f617" + "guid": "482e11d9-c6f3-4955-95c5-0f754c6eeed6" } }, "Example 2": { @@ -22570,9 +24758,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "9d6b0e5e-7b73-497b-b275-5f0d49d54fef", + "underlyingEntityGuid": "ddeb8d6c-e79b-4643-8cc6-6d4c303bb5e0", "name": "Form", - "guid": "5b0c2aa9-a608-4c70-becb-af025be192a9" + "guid": "bd7816d1-2916-4e8c-80df-14528e828172" }, { "itemType": "attribute", @@ -22585,34 +24773,34 @@ "attributeType": "longText", "required": true, "readOnly": false, - "underlyingEntityGuid": "36286f12-e2c9-47e7-8104-966725d4426b", + "underlyingEntityGuid": "c336e856-7b28-40b9-8912-0ddb82d3377c", "name": "Sources", - "guid": "b8d0440a-eb7a-4313-9039-8c2cf16afb12" + "guid": "3f7b8a9a-c8d7-4c5b-94e6-33eebb8735bf" }, { "itemType": "attribute", "attributeType": "shortText", "required": true, "readOnly": false, - "underlyingEntityGuid": "dfcafd20-e1c9-46bc-a4a5-f605a823d207", + "underlyingEntityGuid": "981f7b29-63cf-41b9-9b09-0fe891ecfb66", "name": "Notes", - "guid": "b4e2935e-b5b8-447c-b038-72ed3f231b9e" + "guid": "e74fd785-0a8d-4152-8a3b-ad20fc0b0f98" } ], - "underlyingEntityGuid": "f8249386-8741-4d54-98d1-ded4860fb45e", + "underlyingEntityGuid": "4947de34-efed-49c6-9963-67e19e42eca8", "name": "Chemical resistance", - "guid": "f5386b03-7451-4123-9911-e0fee3748c6b" + "guid": "ffc5a04b-dcf3-40ef-a391-cfb68704fc14" }, { "itemType": "link", "linkType": "recordLink", - "targetDatabase": "a84e5321-98f7-4879-9a68-ac01cc54f0ef", - "targetDatabaseVersion": "c53904c5-d690-44e5-9f37-93d8c9167af3", - "targetTable": "7551fe76-8acf-4083-8b23-da4139c7c71e", + "targetDatabase": "49085793-5f6b-422c-b35a-f5d539b4aba3", + "targetDatabaseVersion": "53cda9b3-9cff-434e-8535-8145865ca6eb", + "targetTable": "300efa0b-30f7-43ea-9a90-05d44f5a806f", "forwards": true, - "underlyingEntityGuid": "0d37e0f0-e840-4eb0-92d7-21adcdf5cdac", + "underlyingEntityGuid": "2b823e25-0035-41be-9961-5da258d15f3e", "name": "Material Pedigree", - "guid": "aab10ddf-84f0-4919-b92f-3ccb368b5d99" + "guid": "f1d860b4-828c-4011-a039-c76d499bf6f1" }, { "itemType": "attribute", @@ -22623,42 +24811,42 @@ "tabularColumns": [ { "columnType": "linkedAttribute", - "tabularColumnGuid": "bdb7d25e-7107-41a9-9f04-3258c2f7b710", + "tabularColumnGuid": "29425619-fdfc-419a-95fe-b24bd5074806", "name": "Offset Yield Stress", - "guid": "911b7297-4421-4412-8fa0-7ebe6e1d3ed1" + "guid": "0b6cc61a-f8ad-4ed7-aa57-fe1d2ed9f46b" }, { "columnType": "localShortText", - "tabularColumnGuid": "fc5383c7-693d-4c3b-93f7-00fc9fbab3d9", + "tabularColumnGuid": "f1061631-d5af-4496-b4c7-22de8ee88074", "name": "Young's Modulus Notes", - "guid": "dc22043f-5f6c-4a34-9c7f-89589834715a" + "guid": "c9168a93-a394-4203-a19f-72a712d23d9b" } ], - "underlyingEntityGuid": "48ce2b5b-4808-4d88-a584-feff87ed832a", + "underlyingEntityGuid": "d21bbd71-ad3c-4b25-b14e-fdc474f31d3c", "name": "Reference Characteristics", - "guid": "d885b2af-8ed5-43c3-9bf0-5636c9f2a1f3" + "guid": "4ce6539e-2eac-4621-8a19-a6f3d7bda09d" }, { "itemType": "link", "linkType": "associationChain", - "targetDatabase": "a84e5321-98f7-4879-9a68-ac01cc54f0ef", - "targetDatabaseVersion": "c53904c5-d690-44e5-9f37-93d8c9167af3", - "targetTable": "b7f54afb-816a-445b-81d3-bc9d14043ce1", + "targetDatabase": "49085793-5f6b-422c-b35a-f5d539b4aba3", + "targetDatabaseVersion": "53cda9b3-9cff-434e-8535-8145865ca6eb", + "targetTable": "f92f7f43-0030-40fa-9bb2-efd77f5df590", "forwards": true, "nextLink": { "itemType": "link", "linkType": "associationChain", - "targetDatabase": "a84e5321-98f7-4879-9a68-ac01cc54f0ef", - "targetDatabaseVersion": "c53904c5-d690-44e5-9f37-93d8c9167af3", - "targetTable": "6c2e7e98-8d88-40d3-8964-5d1dc7b92781", + "targetDatabase": "49085793-5f6b-422c-b35a-f5d539b4aba3", + "targetDatabaseVersion": "53cda9b3-9cff-434e-8535-8145865ca6eb", + "targetTable": "4b2bbceb-6aa9-4116-83be-732d18f1db5a", "forwards": false, - "underlyingEntityGuid": "3a04f334-5eb7-423b-b4de-e00c2dd2ae7a", + "underlyingEntityGuid": "ec671854-4cad-4cb3-93cb-edaded296f95", "name": "Pedigree information", - "guid": "a56730f7-315a-4232-b516-19a886533817" + "guid": "5df5c661-b416-48bf-9835-3aa5d02aaa48" }, - "underlyingEntityGuid": "ce5b2d86-f41b-4b3c-9548-7cbcf1dac05a", + "underlyingEntityGuid": "f9bc8444-8c0c-4ab0-ae15-4388bcb6caa7", "name": "To Pedigree from Producers", - "guid": "27136493-b83a-435d-b871-6fb9ac5c4974" + "guid": "369164f4-725c-4976-a1e1-db025a904d02" } ], "displayNames": { @@ -22666,7 +24854,7 @@ "fr": "Testing Information French Display Name" }, "name": "Testing Information", - "guid": "8b9ea8a4-07d8-45ad-94e4-a5f602a233f9" + "guid": "92e4d56d-cd64-491a-9afb-c488437098a7" } } } @@ -22854,9 +25042,9 @@ "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "33514a10-4695-4a1f-bfda-f8ef95a429d4", - "sourceTableGuid": "d143c4e2-7871-4064-bb51-b5c1805f9a7c", - "linkGroupGuid": "95dfca47-f537-4aba-9cd8-0105567584b5" + "sourceDatabaseGuid": "f37851e5-4922-4390-b270-762219f4262c", + "sourceTableGuid": "0cdcc76a-ce52-40ae-a649-1286dd08bcdb", + "linkGroupGuid": "b155ea43-4202-48c5-965b-6a485c8a70f7" } }, "Example 8": { @@ -22868,13 +25056,13 @@ "associationChainLinks": [ { "forwards": true, - "sourceDatabaseVersionGuid": "f87c00ea-23b4-4bda-a690-11bfd33b5dde", - "tabularAttributeGuid": "bc335102-0256-4dd5-872a-7992873693de" + "sourceDatabaseVersionGuid": "f89be2bf-ef01-4529-8f92-f5bf2fcb8d31", + "tabularAttributeGuid": "7e3a4f57-ce38-44a1-94fc-b1b961600aa1" }, { "forwards": false, - "sourceDatabaseVersionGuid": "b9960217-4cac-44c2-a5c7-7d50ebcb4ab7", - "tabularAttributeGuid": "41bcb745-64ca-42da-a55a-b05dc7d866da" + "sourceDatabaseVersionGuid": "4cde09c4-fac9-46a5-b602-eda9498762ff", + "tabularAttributeGuid": "db5e8f28-15d1-4fa0-acb2-96341132649a" } ] } @@ -22954,9 +25142,9 @@ "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "33514a10-4695-4a1f-bfda-f8ef95a429d4", - "sourceTableGuid": "d143c4e2-7871-4064-bb51-b5c1805f9a7c", - "linkGroupGuid": "95dfca47-f537-4aba-9cd8-0105567584b5" + "sourceDatabaseGuid": "f37851e5-4922-4390-b270-762219f4262c", + "sourceTableGuid": "0cdcc76a-ce52-40ae-a649-1286dd08bcdb", + "linkGroupGuid": "b155ea43-4202-48c5-965b-6a485c8a70f7" } }, "Example 8": { @@ -22968,13 +25156,13 @@ "associationChainLinks": [ { "forwards": true, - "sourceDatabaseVersionGuid": "f87c00ea-23b4-4bda-a690-11bfd33b5dde", - "tabularAttributeGuid": "bc335102-0256-4dd5-872a-7992873693de" + "sourceDatabaseVersionGuid": "f89be2bf-ef01-4529-8f92-f5bf2fcb8d31", + "tabularAttributeGuid": "7e3a4f57-ce38-44a1-94fc-b1b961600aa1" }, { "forwards": false, - "sourceDatabaseVersionGuid": "b9960217-4cac-44c2-a5c7-7d50ebcb4ab7", - "tabularAttributeGuid": "41bcb745-64ca-42da-a55a-b05dc7d866da" + "sourceDatabaseVersionGuid": "4cde09c4-fac9-46a5-b602-eda9498762ff", + "tabularAttributeGuid": "db5e8f28-15d1-4fa0-acb2-96341132649a" } ] } @@ -23054,9 +25242,9 @@ "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "33514a10-4695-4a1f-bfda-f8ef95a429d4", - "sourceTableGuid": "d143c4e2-7871-4064-bb51-b5c1805f9a7c", - "linkGroupGuid": "95dfca47-f537-4aba-9cd8-0105567584b5" + "sourceDatabaseGuid": "f37851e5-4922-4390-b270-762219f4262c", + "sourceTableGuid": "0cdcc76a-ce52-40ae-a649-1286dd08bcdb", + "linkGroupGuid": "b155ea43-4202-48c5-965b-6a485c8a70f7" } }, "Example 8": { @@ -23068,13 +25256,13 @@ "associationChainLinks": [ { "forwards": true, - "sourceDatabaseVersionGuid": "f87c00ea-23b4-4bda-a690-11bfd33b5dde", - "tabularAttributeGuid": "bc335102-0256-4dd5-872a-7992873693de" + "sourceDatabaseVersionGuid": "f89be2bf-ef01-4529-8f92-f5bf2fcb8d31", + "tabularAttributeGuid": "7e3a4f57-ce38-44a1-94fc-b1b961600aa1" }, { "forwards": false, - "sourceDatabaseVersionGuid": "b9960217-4cac-44c2-a5c7-7d50ebcb4ab7", - "tabularAttributeGuid": "41bcb745-64ca-42da-a55a-b05dc7d866da" + "sourceDatabaseVersionGuid": "4cde09c4-fac9-46a5-b602-eda9498762ff", + "tabularAttributeGuid": "db5e8f28-15d1-4fa0-acb2-96341132649a" } ] } @@ -23154,9 +25342,9 @@ "description": "This example demonstrates how to add a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "33514a10-4695-4a1f-bfda-f8ef95a429d4", - "sourceTableGuid": "d143c4e2-7871-4064-bb51-b5c1805f9a7c", - "linkGroupGuid": "95dfca47-f537-4aba-9cd8-0105567584b5" + "sourceDatabaseGuid": "f37851e5-4922-4390-b270-762219f4262c", + "sourceTableGuid": "0cdcc76a-ce52-40ae-a649-1286dd08bcdb", + "linkGroupGuid": "b155ea43-4202-48c5-965b-6a485c8a70f7" } }, "Example 8": { @@ -23168,13 +25356,13 @@ "associationChainLinks": [ { "forwards": true, - "sourceDatabaseVersionGuid": "f87c00ea-23b4-4bda-a690-11bfd33b5dde", - "tabularAttributeGuid": "bc335102-0256-4dd5-872a-7992873693de" + "sourceDatabaseVersionGuid": "f89be2bf-ef01-4529-8f92-f5bf2fcb8d31", + "tabularAttributeGuid": "7e3a4f57-ce38-44a1-94fc-b1b961600aa1" }, { "forwards": false, - "sourceDatabaseVersionGuid": "b9960217-4cac-44c2-a5c7-7d50ebcb4ab7", - "tabularAttributeGuid": "41bcb745-64ca-42da-a55a-b05dc7d866da" + "sourceDatabaseVersionGuid": "4cde09c4-fac9-46a5-b602-eda9498762ff", + "tabularAttributeGuid": "db5e8f28-15d1-4fa0-acb2-96341132649a" } ] } @@ -23202,7 +25390,7 @@ "readOnly": false, "metaAttributes": null, "tabularColumnGuids": null, - "guid": "19a70a82-91d2-4164-a150-2fecadfc6cd1" + "guid": "889008a6-f337-4291-bfb6-2c14bf3884f1" } }, "Example 2": { @@ -23222,7 +25410,7 @@ } ], "tabularColumnGuids": null, - "guid": "7d26ff51-b7e3-4ba3-b78a-82ac396f08e7" + "guid": "e84d804b-971a-4670-bee3-48724a871124" } }, "Example 3": { @@ -23265,9 +25453,9 @@ "description": "This example demonstrates the response to creating a new cross database link group layout item. It was created by adding a cross database link group to the 'General Properties' layout section (guid = b10170ab-ff56-4828-81b8-c4427674ed2f) of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "itemType": "crossDatabaseLink", - "sourceDatabaseGuid": "e5d0e51e-669f-438d-bc8f-375628509f4b", - "sourceTableGuid": "ef3ec0ca-717d-4c31-bcd0-5abd2884fc03", - "linkGroupGuid": "39956be3-595e-4647-82ed-7acd6eb66d56", + "sourceDatabaseGuid": "bbb97d16-56ca-4878-ae97-ffddff7443b8", + "sourceTableGuid": "31f309a2-2048-4d82-855d-7236416fcd7f", + "linkGroupGuid": "61e9d9ab-008e-4860-b27e-4d283756f2be", "guid": null } }, @@ -23281,12 +25469,12 @@ { "forwards": true, "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", - "tabularAttributeGuid": "e1cfe4be-5874-4ba6-99bc-457dfe98888f" + "tabularAttributeGuid": "884af8ba-65d1-4ad0-b1bb-3c2d3131b867" }, { "forwards": false, "sourceDatabaseVersionGuid": "00000000-0000-0000-0000-000000000000", - "tabularAttributeGuid": "d7986cc8-387e-4ade-889e-0eaf4c0ad78e" + "tabularAttributeGuid": "6614d385-9a2c-429e-b395-73d89fbdc308" } ], "guid": null @@ -23506,7 +25694,7 @@ "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Composite materials (guid)", - "guid": "235aeb76-86ea-4dfa-9604-b6cdcae92668" + "guid": "44546ce1-3e5c-4e72-900e-4d4287b6f8d4" } } } @@ -23528,7 +25716,7 @@ "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Composite materials (guid)", - "guid": "235aeb76-86ea-4dfa-9604-b6cdcae92668" + "guid": "44546ce1-3e5c-4e72-900e-4d4287b6f8d4" } } } @@ -23550,7 +25738,7 @@ "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Composite materials (guid)", - "guid": "235aeb76-86ea-4dfa-9604-b6cdcae92668" + "guid": "44546ce1-3e5c-4e72-900e-4d4287b6f8d4" } } } @@ -23572,7 +25760,7 @@ "description": "This example demonstrates how to create a new layout for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database with a specified guid value. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Composite materials (guid)", - "guid": "235aeb76-86ea-4dfa-9604-b6cdcae92668" + "guid": "44546ce1-3e5c-4e72-900e-4d4287b6f8d4" } } } @@ -23590,7 +25778,7 @@ "example": { "displayNames": {}, "name": "Ceramics", - "guid": "01ee6720-afb2-4b1e-8e32-2c599fc6a23b" + "guid": "1ecd5b69-d9b2-4097-8414-f3362cdd5878" } } } @@ -23727,9 +25915,9 @@ "required": false, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "3c1ab286-0dfc-4fec-a93a-7867613fd05b", + "underlyingEntityGuid": "92cfd5ad-ed39-47bb-9140-36fc8a8339b0", "name": "Price", - "guid": "3d0d7ebf-4c40-46f6-98e8-1a03d746e115" + "guid": "0aa07412-886e-432d-9b20-10108d4ae452" }, { "itemType": "attribute", @@ -23737,9 +25925,9 @@ "required": false, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "dbcca29f-0f67-43fd-a96d-9bc0b8a8e07f", + "underlyingEntityGuid": "a1d6f530-81a3-4cf0-a35e-f4760910391e", "name": "Density", - "guid": "9977da56-bd0e-4616-a253-489156b3fffa" + "guid": "d8b08ba2-d1f7-47c9-a4fb-72ed4373bf68" } ], "displayNames": { @@ -23758,9 +25946,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "43deadda-42b6-46d6-b3bd-f15f45b0b958", + "underlyingEntityGuid": "ca919fec-1fb7-41f0-a07b-420395a13a71", "name": "Young's modulus", - "guid": "f599dfc4-7feb-4f09-b126-d16d780c01dc" + "guid": "6b132555-0662-4e13-bc5b-843262a7bef5" }, { "itemType": "attribute", @@ -23768,9 +25956,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "83e3b050-08e0-408f-90f7-9ed226f420af", + "underlyingEntityGuid": "119fbdbd-5e04-4146-8308-5b1b7c6e3e44", "name": "Tensile strength", - "guid": "22a4365f-58cf-462e-9fa8-9448c29aeea4" + "guid": "5ca69923-920b-4fdd-a463-8bcf4851e53c" }, { "itemType": "attribute", @@ -23778,9 +25966,9 @@ "required": true, "readOnly": false, "metaAttributes": [], - "underlyingEntityGuid": "b0d6afc0-e80c-4c3b-a75d-b90ecd8d5968", + "underlyingEntityGuid": "b3916d47-8eae-46a1-95e8-805c1a6f167f", "name": "Shape factor", - "guid": "ac62cb63-96fc-455d-b45c-a48e7262ae71" + "guid": "fc946d0d-ffb1-4bd8-bceb-fbb08b2b9a54" } ], "displayNames": { @@ -23853,7 +26041,7 @@ "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "Ceramics (Updated)", - "guid": "8c7ff197-481d-470e-ab47-9a6aa807aad5" + "guid": "8c003fb6-27ab-4e14-9087-b3ef79461234" } }, "Example 2": { @@ -23875,7 +26063,7 @@ "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "Ceramics (Updated)", - "guid": "8c7ff197-481d-470e-ab47-9a6aa807aad5" + "guid": "8c003fb6-27ab-4e14-9087-b3ef79461234" } }, "Example 2": { @@ -23897,7 +26085,7 @@ "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "Ceramics (Updated)", - "guid": "8c7ff197-481d-470e-ab47-9a6aa807aad5" + "guid": "8c003fb6-27ab-4e14-9087-b3ef79461234" } }, "Example 2": { @@ -23919,7 +26107,7 @@ "description": "This example demonstrates how to update all properties of the 'Ceramics' layout (guid = 00000b36-0009-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "Ceramics (Updated)", - "guid": "8c7ff197-481d-470e-ab47-9a6aa807aad5" + "guid": "8c003fb6-27ab-4e14-9087-b3ef79461234" } }, "Example 2": { @@ -24179,7 +26367,7 @@ { "type": "discrete", "name": "Red", - "guid": "29793224-fedc-46d3-9b11-17e05bcb30ba" + "guid": "a312060b-8acd-4919-b583-568b830f4a14" }, { "type": "discrete", @@ -24189,7 +26377,7 @@ "type": "discrete", "defaultParameterValueIndex": 1, "name": "Colour (guid)", - "guid": "7cf17074-37fa-4c17-95f3-6613c59cef84" + "guid": "8d819665-2e0c-4e55-a4a5-ded7e69edeff" } }, "Example 3": { @@ -24317,7 +26505,7 @@ { "type": "discrete", "name": "Red", - "guid": "29793224-fedc-46d3-9b11-17e05bcb30ba" + "guid": "a312060b-8acd-4919-b583-568b830f4a14" }, { "type": "discrete", @@ -24327,7 +26515,7 @@ "type": "discrete", "defaultParameterValueIndex": 1, "name": "Colour (guid)", - "guid": "7cf17074-37fa-4c17-95f3-6613c59cef84" + "guid": "8d819665-2e0c-4e55-a4a5-ded7e69edeff" } }, "Example 3": { @@ -24455,7 +26643,7 @@ { "type": "discrete", "name": "Red", - "guid": "29793224-fedc-46d3-9b11-17e05bcb30ba" + "guid": "a312060b-8acd-4919-b583-568b830f4a14" }, { "type": "discrete", @@ -24465,7 +26653,7 @@ "type": "discrete", "defaultParameterValueIndex": 1, "name": "Colour (guid)", - "guid": "7cf17074-37fa-4c17-95f3-6613c59cef84" + "guid": "8d819665-2e0c-4e55-a4a5-ded7e69edeff" } }, "Example 3": { @@ -24593,7 +26781,7 @@ { "type": "discrete", "name": "Red", - "guid": "29793224-fedc-46d3-9b11-17e05bcb30ba" + "guid": "a312060b-8acd-4919-b583-568b830f4a14" }, { "type": "discrete", @@ -24603,7 +26791,7 @@ "type": "discrete", "defaultParameterValueIndex": 1, "name": "Colour (guid)", - "guid": "7cf17074-37fa-4c17-95f3-6613c59cef84" + "guid": "8d819665-2e0c-4e55-a4a5-ded7e69edeff" } }, "Example 3": { @@ -24869,7 +27057,7 @@ "helpPath": "help/strain-updated.html", "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", "name": "Strain (Updated)", - "guid": "7efab770-3e90-4970-8428-39e4fa9501ae" + "guid": "f7e10890-1bc1-4a54-a949-0c6abc1a5211" } }, "Example 2": { @@ -24880,7 +27068,7 @@ "helpPath": "help/basis-updated.html", "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", "name": "Basis (Updated)", - "guid": "384a9216-2591-4dae-b8f6-5ddb73bee83c" + "guid": "cc106e23-b81c-482d-bdcf-14f3be98232c" } }, "Example 3": { @@ -24888,7 +27076,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", "value": { "type": "numeric", - "guid": "04d07f13-8ea7-4e14-992c-751f62609a2f" + "guid": "1d767969-11f5-4b64-ba34-d07cf3cdf476" } }, "Example 4": { @@ -24907,7 +27095,7 @@ "unit": { "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, - "guid": "47da86ed-f8c2-4859-8f56-7d100b34db36" + "guid": "307579f0-4c87-46d3-a499-3c7b81239b41" } }, "Example 6": { @@ -24947,7 +27135,7 @@ "helpPath": "help/strain-updated.html", "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", "name": "Strain (Updated)", - "guid": "7efab770-3e90-4970-8428-39e4fa9501ae" + "guid": "f7e10890-1bc1-4a54-a949-0c6abc1a5211" } }, "Example 2": { @@ -24958,7 +27146,7 @@ "helpPath": "help/basis-updated.html", "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", "name": "Basis (Updated)", - "guid": "384a9216-2591-4dae-b8f6-5ddb73bee83c" + "guid": "cc106e23-b81c-482d-bdcf-14f3be98232c" } }, "Example 3": { @@ -24966,7 +27154,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", "value": { "type": "numeric", - "guid": "04d07f13-8ea7-4e14-992c-751f62609a2f" + "guid": "1d767969-11f5-4b64-ba34-d07cf3cdf476" } }, "Example 4": { @@ -24985,7 +27173,7 @@ "unit": { "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, - "guid": "47da86ed-f8c2-4859-8f56-7d100b34db36" + "guid": "307579f0-4c87-46d3-a499-3c7b81239b41" } }, "Example 6": { @@ -25025,7 +27213,7 @@ "helpPath": "help/strain-updated.html", "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", "name": "Strain (Updated)", - "guid": "7efab770-3e90-4970-8428-39e4fa9501ae" + "guid": "f7e10890-1bc1-4a54-a949-0c6abc1a5211" } }, "Example 2": { @@ -25036,7 +27224,7 @@ "helpPath": "help/basis-updated.html", "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", "name": "Basis (Updated)", - "guid": "384a9216-2591-4dae-b8f6-5ddb73bee83c" + "guid": "cc106e23-b81c-482d-bdcf-14f3be98232c" } }, "Example 3": { @@ -25044,7 +27232,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", "value": { "type": "numeric", - "guid": "04d07f13-8ea7-4e14-992c-751f62609a2f" + "guid": "1d767969-11f5-4b64-ba34-d07cf3cdf476" } }, "Example 4": { @@ -25063,7 +27251,7 @@ "unit": { "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, - "guid": "47da86ed-f8c2-4859-8f56-7d100b34db36" + "guid": "307579f0-4c87-46d3-a499-3c7b81239b41" } }, "Example 6": { @@ -25103,7 +27291,7 @@ "helpPath": "help/strain-updated.html", "defaultParameterValueGuid": "173284fb-e557-406f-a7eb-f4e75f1d48a9", "name": "Strain (Updated)", - "guid": "7efab770-3e90-4970-8428-39e4fa9501ae" + "guid": "f7e10890-1bc1-4a54-a949-0c6abc1a5211" } }, "Example 2": { @@ -25114,7 +27302,7 @@ "helpPath": "help/basis-updated.html", "defaultParameterValueGuid": "505b5d32-0a4a-48af-9a7a-90c4caacd35c", "name": "Basis (Updated)", - "guid": "384a9216-2591-4dae-b8f6-5ddb73bee83c" + "guid": "cc106e23-b81c-482d-bdcf-14f3be98232c" } }, "Example 3": { @@ -25122,7 +27310,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Strain' parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database. Guid can be updated for both kinds of parameters.", "value": { "type": "numeric", - "guid": "04d07f13-8ea7-4e14-992c-751f62609a2f" + "guid": "1d767969-11f5-4b64-ba34-d07cf3cdf476" } }, "Example 4": { @@ -25141,7 +27329,7 @@ "unit": { "guid": "0000007a-0013-4fff-8fff-0000ffff0000" }, - "guid": "47da86ed-f8c2-4859-8f56-7d100b34db36" + "guid": "307579f0-4c87-46d3-a499-3c7b81239b41" } }, "Example 6": { @@ -25247,7 +27435,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsParameterDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterDeletionException" }, "example": { "message": "Cannot delete parameter 'Strain' (GUID = '00000005-000a-4fff-8fff-0000ffff0000').", @@ -25255,8 +27443,8 @@ "errors": [ { "message": "It is being used in one or more attributes.", - "reason": "InUse", - "referencedByType": "Attribute", + "reason": "inUse", + "referencedByType": "attribute", "referencedBy": [ { "name": "Stress", @@ -25425,7 +27613,7 @@ "value": 10.0, "type": "numeric", "name": "Strain 0.1 (Updated)", - "guid": "95c39b27-7e09-413d-9dac-5adc2f16f0aa" + "guid": "b1a5841e-d364-451a-8c41-dfbe82359ce8" } }, "Example 2": { @@ -25434,7 +27622,7 @@ "value": { "type": "discrete", "name": "Mean (Updated)", - "guid": "ec69b279-3983-4abe-ba00-dd0db036a6a1" + "guid": "5ad37dea-3700-4eb5-b023-44bf503af09b" } }, "Example 3": { @@ -25442,7 +27630,7 @@ "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", "value": { "type": "numeric", - "guid": "e1cd23f4-5ce3-49b7-9504-7b6e6bc46b95" + "guid": "7fddddef-f3bb-4891-87ac-eebd92c6289c" } } } @@ -25459,7 +27647,7 @@ "value": 10.0, "type": "numeric", "name": "Strain 0.1 (Updated)", - "guid": "95c39b27-7e09-413d-9dac-5adc2f16f0aa" + "guid": "b1a5841e-d364-451a-8c41-dfbe82359ce8" } }, "Example 2": { @@ -25468,7 +27656,7 @@ "value": { "type": "discrete", "name": "Mean (Updated)", - "guid": "ec69b279-3983-4abe-ba00-dd0db036a6a1" + "guid": "5ad37dea-3700-4eb5-b023-44bf503af09b" } }, "Example 3": { @@ -25476,7 +27664,7 @@ "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", "value": { "type": "numeric", - "guid": "e1cd23f4-5ce3-49b7-9504-7b6e6bc46b95" + "guid": "7fddddef-f3bb-4891-87ac-eebd92c6289c" } } } @@ -25493,7 +27681,7 @@ "value": 10.0, "type": "numeric", "name": "Strain 0.1 (Updated)", - "guid": "95c39b27-7e09-413d-9dac-5adc2f16f0aa" + "guid": "b1a5841e-d364-451a-8c41-dfbe82359ce8" } }, "Example 2": { @@ -25502,7 +27690,7 @@ "value": { "type": "discrete", "name": "Mean (Updated)", - "guid": "ec69b279-3983-4abe-ba00-dd0db036a6a1" + "guid": "5ad37dea-3700-4eb5-b023-44bf503af09b" } }, "Example 3": { @@ -25510,7 +27698,7 @@ "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", "value": { "type": "numeric", - "guid": "e1cd23f4-5ce3-49b7-9504-7b6e6bc46b95" + "guid": "7fddddef-f3bb-4891-87ac-eebd92c6289c" } } } @@ -25527,7 +27715,7 @@ "value": 10.0, "type": "numeric", "name": "Strain 0.1 (Updated)", - "guid": "95c39b27-7e09-413d-9dac-5adc2f16f0aa" + "guid": "b1a5841e-d364-451a-8c41-dfbe82359ce8" } }, "Example 2": { @@ -25536,7 +27724,7 @@ "value": { "type": "discrete", "name": "Mean (Updated)", - "guid": "ec69b279-3983-4abe-ba00-dd0db036a6a1" + "guid": "5ad37dea-3700-4eb5-b023-44bf503af09b" } }, "Example 3": { @@ -25544,7 +27732,7 @@ "description": "This example demonstrates how to update guid of the 'Strain 0.1' numeric parameter value (guid = 173284fb-e557-406f-a7eb-f4e75f1d48a9) from the 'Strain' numeric parameter (guid = 00000005-000a-4fff-8fff-0000ffff0000) from the MI_Training database using a PATCH request.", "value": { "type": "numeric", - "guid": "e1cd23f4-5ce3-49b7-9504-7b6e6bc46b95" + "guid": "7fddddef-f3bb-4891-87ac-eebd92c6289c" } } } @@ -25617,7 +27805,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsParameterValueDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionParameterValueDeletionException" }, "example": { "message": "Cannot delete parameter value 'Mean' (GUID = '21a27377-12eb-413c-bac4-d4ffceda39d1').", @@ -25625,8 +27813,8 @@ "errors": [ { "message": "It is being used in one or more parameters as a default value.", - "reason": "InUse", - "referencedByType": "DefaultParameterValue", + "reason": "inUse", + "referencedByType": "defaultParameterValue", "referencedBy": [ { "name": "Basis", @@ -26195,7 +28383,7 @@ "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "MI:Training Processes", - "guid": "37f86ed6-0810-4d6b-b936-9a5e828a0485" + "guid": "56e9411b-0876-4d9d-adbe-234d202ac349" } }, "Example 3": { @@ -26206,7 +28394,7 @@ "homepageUrl": "TrainingProfiles/TrainingProcesses", "groupName": "MI:Training Profiles", "name": "MI:Training Processes", - "guid": "4c852cd4-ec2a-48d1-b3e4-c4c3706f8d09" + "guid": "ae0c9621-fdd0-479f-a9bb-724b01c9b48a" } } } @@ -26228,7 +28416,7 @@ "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "MI:Training Processes", - "guid": "37f86ed6-0810-4d6b-b936-9a5e828a0485" + "guid": "56e9411b-0876-4d9d-adbe-234d202ac349" } }, "Example 3": { @@ -26239,7 +28427,7 @@ "homepageUrl": "TrainingProfiles/TrainingProcesses", "groupName": "MI:Training Profiles", "name": "MI:Training Processes", - "guid": "4c852cd4-ec2a-48d1-b3e4-c4c3706f8d09" + "guid": "ae0c9621-fdd0-479f-a9bb-724b01c9b48a" } } } @@ -26261,7 +28449,7 @@ "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "MI:Training Processes", - "guid": "37f86ed6-0810-4d6b-b936-9a5e828a0485" + "guid": "56e9411b-0876-4d9d-adbe-234d202ac349" } }, "Example 3": { @@ -26272,7 +28460,7 @@ "homepageUrl": "TrainingProfiles/TrainingProcesses", "groupName": "MI:Training Profiles", "name": "MI:Training Processes", - "guid": "4c852cd4-ec2a-48d1-b3e4-c4c3706f8d09" + "guid": "ae0c9621-fdd0-479f-a9bb-724b01c9b48a" } } } @@ -26294,7 +28482,7 @@ "description": "This example demonstrates how to create a new profile with a specified guid. Normally, if the guid is not specified, a random new Guid will be generated.", "value": { "name": "MI:Training Processes", - "guid": "37f86ed6-0810-4d6b-b936-9a5e828a0485" + "guid": "56e9411b-0876-4d9d-adbe-234d202ac349" } }, "Example 3": { @@ -26305,7 +28493,7 @@ "homepageUrl": "TrainingProfiles/TrainingProcesses", "groupName": "MI:Training Profiles", "name": "MI:Training Processes", - "guid": "4c852cd4-ec2a-48d1-b3e4-c4c3706f8d09" + "guid": "ae0c9621-fdd0-479f-a9bb-724b01c9b48a" } } } @@ -26445,7 +28633,7 @@ "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "8db7298e-f735-484c-a1f4-4c3d56b8eac7" + "guid": "73f5edeb-0182-48f0-954b-ac226c50c0ca" } }, "Example 2": { @@ -26465,7 +28653,7 @@ "81bb4607-e2a3-4c78-81fc-a18a09979c72", "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" ], - "guid": "f37633b5-1c84-47a1-ac67-ee3c6bd2a2a0", + "guid": "41779253-c7f7-4e2d-95ce-95c4cdbe8a24", "groupName": "MI:Training Profiles (Updated)", "name": "MI:Training Metals" } @@ -26481,7 +28669,7 @@ "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "8db7298e-f735-484c-a1f4-4c3d56b8eac7" + "guid": "73f5edeb-0182-48f0-954b-ac226c50c0ca" } }, "Example 2": { @@ -26501,7 +28689,7 @@ "81bb4607-e2a3-4c78-81fc-a18a09979c72", "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" ], - "guid": "f37633b5-1c84-47a1-ac67-ee3c6bd2a2a0", + "guid": "41779253-c7f7-4e2d-95ce-95c4cdbe8a24", "groupName": "MI:Training Profiles (Updated)", "name": "MI:Training Metals" } @@ -26517,7 +28705,7 @@ "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "8db7298e-f735-484c-a1f4-4c3d56b8eac7" + "guid": "73f5edeb-0182-48f0-954b-ac226c50c0ca" } }, "Example 2": { @@ -26537,7 +28725,7 @@ "81bb4607-e2a3-4c78-81fc-a18a09979c72", "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" ], - "guid": "f37633b5-1c84-47a1-ac67-ee3c6bd2a2a0", + "guid": "41779253-c7f7-4e2d-95ce-95c4cdbe8a24", "groupName": "MI:Training Profiles (Updated)", "name": "MI:Training Metals" } @@ -26553,7 +28741,7 @@ "summary": "Update a guid", "description": "This example demonstrates how to update the 'Guid' property of the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "8db7298e-f735-484c-a1f4-4c3d56b8eac7" + "guid": "73f5edeb-0182-48f0-954b-ac226c50c0ca" } }, "Example 2": { @@ -26573,7 +28761,7 @@ "81bb4607-e2a3-4c78-81fc-a18a09979c72", "a7cb2018-8410-42fd-ac6a-8bc1b441ba6e" ], - "guid": "f37633b5-1c84-47a1-ac67-ee3c6bd2a2a0", + "guid": "41779253-c7f7-4e2d-95ce-95c4cdbe8a24", "groupName": "MI:Training Profiles (Updated)", "name": "MI:Training Metals" } @@ -26752,7 +28940,7 @@ "value": { "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "e7e502d8-fa88-4642-a27b-8be620f9a5c9" + "guid": "a217d621-0a98-43cf-bfe6-8387ee5bed6b" } }, "Example 3": { @@ -26763,7 +28951,7 @@ "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "211aad31-a8fb-4453-aeb4-1cbd0a37d366" + "guid": "2ccc2ac6-ff75-4fd3-8026-90c3430e1afc" } } } @@ -26787,7 +28975,7 @@ "value": { "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "e7e502d8-fa88-4642-a27b-8be620f9a5c9" + "guid": "a217d621-0a98-43cf-bfe6-8387ee5bed6b" } }, "Example 3": { @@ -26798,7 +28986,7 @@ "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "211aad31-a8fb-4453-aeb4-1cbd0a37d366" + "guid": "2ccc2ac6-ff75-4fd3-8026-90c3430e1afc" } } } @@ -26822,7 +29010,7 @@ "value": { "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "e7e502d8-fa88-4642-a27b-8be620f9a5c9" + "guid": "a217d621-0a98-43cf-bfe6-8387ee5bed6b" } }, "Example 3": { @@ -26833,7 +29021,7 @@ "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "211aad31-a8fb-4453-aeb4-1cbd0a37d366" + "guid": "2ccc2ac6-ff75-4fd3-8026-90c3430e1afc" } } } @@ -26857,7 +29045,7 @@ "value": { "databaseGuid": "43a43640-4919-428a-bac9-16efbc4ce6ed", "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", - "guid": "e7e502d8-fa88-4642-a27b-8be620f9a5c9" + "guid": "a217d621-0a98-43cf-bfe6-8387ee5bed6b" } }, "Example 3": { @@ -26868,7 +29056,7 @@ "tableGuid": "bc666ac6-8ac6-482b-9a16-502e6ab3730e", "subsetGuid": "c2a6b6d0-540c-4927-b861-840644fc3968", "layoutGuid": "f8379ae4-a8a8-4329-b9b5-cd0b2d285fd0", - "guid": "211aad31-a8fb-4453-aeb4-1cbd0a37d366" + "guid": "2ccc2ac6-ff75-4fd3-8026-90c3430e1afc" } } } @@ -27003,7 +29191,7 @@ "value": { "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "5d4493c1-a128-4d37-8673-fff30f64d887" + "guid": "20402329-0a3b-48c7-b7b4-08015f3edc41" } }, "Example 2": { @@ -27018,7 +29206,7 @@ "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "69ab9448-739c-49e5-8304-8398c85ddb1d" + "guid": "a3d389eb-2d46-4be1-84dc-79e4e2abcf69" } } } @@ -27034,7 +29222,7 @@ "value": { "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "5d4493c1-a128-4d37-8673-fff30f64d887" + "guid": "20402329-0a3b-48c7-b7b4-08015f3edc41" } }, "Example 2": { @@ -27049,7 +29237,7 @@ "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "69ab9448-739c-49e5-8304-8398c85ddb1d" + "guid": "a3d389eb-2d46-4be1-84dc-79e4e2abcf69" } } } @@ -27065,7 +29253,7 @@ "value": { "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "5d4493c1-a128-4d37-8673-fff30f64d887" + "guid": "20402329-0a3b-48c7-b7b4-08015f3edc41" } }, "Example 2": { @@ -27080,7 +29268,7 @@ "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "69ab9448-739c-49e5-8304-8398c85ddb1d" + "guid": "a3d389eb-2d46-4be1-84dc-79e4e2abcf69" } } } @@ -27096,7 +29284,7 @@ "value": { "subsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "layoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", - "guid": "5d4493c1-a128-4d37-8673-fff30f64d887" + "guid": "20402329-0a3b-48c7-b7b4-08015f3edc41" } }, "Example 2": { @@ -27111,7 +29299,7 @@ "summary": "Just guid", "description": "This example shows how to update the 'Guid' property of the 'MaterialUniverse' profile table (guid = a7cb2018-8410-42fd-ac6a-8bc1b441ba6e) from the 'MI:Training Metals' profile (guid = f76e3ce8-608a-42da-8d99-f0009dac966f).", "value": { - "guid": "69ab9448-739c-49e5-8304-8398c85ddb1d" + "guid": "a3d389eb-2d46-4be1-84dc-79e4e2abcf69" } } } @@ -27279,7 +29467,7 @@ "reverseDisplayNames": {}, "displayNames": {}, "name": "MI Training Exercise for Import - Second Training Database And Table", - "guid": "91b899c7-af04-4cd0-a23a-5d97b1ec826f" + "guid": "f72227a7-d035-438a-8cf1-75f8a96fdde5" } ] } @@ -27348,7 +29536,7 @@ }, "reverseName": "Material Universe static link", "name": "Process Universe static link", - "guid": "bd98b85f-34fe-4152-a82f-7c7ae4f0ddf0" + "guid": "47921954-71e8-45a4-8c32-364a5254e685" } }, "Example 3": { @@ -27358,7 +29546,7 @@ "type": "crossDatabase", "includeIndirectLinks": false, "linkTarget": { - "tableGuid": "a05ef407-3c99-4e31-b6a3-b262680702b4" + "tableGuid": "f11b4989-c38e-4603-b804-3908eb465420" }, "reverseName": "Cross database link to Material Universe", "name": "Cross database link from Material Universe" @@ -27371,12 +29559,12 @@ "type": "crossDatabase", "includeIndirectLinks": true, "linkTarget": { - "databaseGuid": "b320d43f-d946-4ca9-bf10-ad816173f8f0", - "tableGuid": "eab63460-d9a2-4bb9-90d1-049ec7376927" + "databaseGuid": "446ff32f-3085-483e-b83b-578b4ef9b620", + "tableGuid": "a547e9f8-cc65-43bc-babe-3854493e3de3" }, "reverseName": "Cross database link to MI Training - Material Universe", "name": "Cross database link from MI Training - Material Universe", - "guid": "6aea5177-2c6f-471c-a71a-2ba5bd66755b" + "guid": "8115a186-0040-4331-ad9c-2245eabd6e0b" } }, "Example 5": { @@ -27423,7 +29611,7 @@ }, "reverseName": "Material Universe dynamic link", "name": "Process Universe dynamic link", - "guid": "a7ad066c-39ae-4fe0-9e70-4fa327ea8206" + "guid": "988bd8bc-3be6-4f02-b19a-ac9cd12e9695" } } } @@ -27459,7 +29647,7 @@ }, "reverseName": "Material Universe static link", "name": "Process Universe static link", - "guid": "bd98b85f-34fe-4152-a82f-7c7ae4f0ddf0" + "guid": "47921954-71e8-45a4-8c32-364a5254e685" } }, "Example 3": { @@ -27469,7 +29657,7 @@ "type": "crossDatabase", "includeIndirectLinks": false, "linkTarget": { - "tableGuid": "a05ef407-3c99-4e31-b6a3-b262680702b4" + "tableGuid": "f11b4989-c38e-4603-b804-3908eb465420" }, "reverseName": "Cross database link to Material Universe", "name": "Cross database link from Material Universe" @@ -27482,12 +29670,12 @@ "type": "crossDatabase", "includeIndirectLinks": true, "linkTarget": { - "databaseGuid": "b320d43f-d946-4ca9-bf10-ad816173f8f0", - "tableGuid": "eab63460-d9a2-4bb9-90d1-049ec7376927" + "databaseGuid": "446ff32f-3085-483e-b83b-578b4ef9b620", + "tableGuid": "a547e9f8-cc65-43bc-babe-3854493e3de3" }, "reverseName": "Cross database link to MI Training - Material Universe", "name": "Cross database link from MI Training - Material Universe", - "guid": "6aea5177-2c6f-471c-a71a-2ba5bd66755b" + "guid": "8115a186-0040-4331-ad9c-2245eabd6e0b" } }, "Example 5": { @@ -27534,7 +29722,7 @@ }, "reverseName": "Material Universe dynamic link", "name": "Process Universe dynamic link", - "guid": "a7ad066c-39ae-4fe0-9e70-4fa327ea8206" + "guid": "988bd8bc-3be6-4f02-b19a-ac9cd12e9695" } } } @@ -27570,7 +29758,7 @@ }, "reverseName": "Material Universe static link", "name": "Process Universe static link", - "guid": "bd98b85f-34fe-4152-a82f-7c7ae4f0ddf0" + "guid": "47921954-71e8-45a4-8c32-364a5254e685" } }, "Example 3": { @@ -27580,7 +29768,7 @@ "type": "crossDatabase", "includeIndirectLinks": false, "linkTarget": { - "tableGuid": "a05ef407-3c99-4e31-b6a3-b262680702b4" + "tableGuid": "f11b4989-c38e-4603-b804-3908eb465420" }, "reverseName": "Cross database link to Material Universe", "name": "Cross database link from Material Universe" @@ -27593,12 +29781,12 @@ "type": "crossDatabase", "includeIndirectLinks": true, "linkTarget": { - "databaseGuid": "b320d43f-d946-4ca9-bf10-ad816173f8f0", - "tableGuid": "eab63460-d9a2-4bb9-90d1-049ec7376927" + "databaseGuid": "446ff32f-3085-483e-b83b-578b4ef9b620", + "tableGuid": "a547e9f8-cc65-43bc-babe-3854493e3de3" }, "reverseName": "Cross database link to MI Training - Material Universe", "name": "Cross database link from MI Training - Material Universe", - "guid": "6aea5177-2c6f-471c-a71a-2ba5bd66755b" + "guid": "8115a186-0040-4331-ad9c-2245eabd6e0b" } }, "Example 5": { @@ -27645,7 +29833,7 @@ }, "reverseName": "Material Universe dynamic link", "name": "Process Universe dynamic link", - "guid": "a7ad066c-39ae-4fe0-9e70-4fa327ea8206" + "guid": "988bd8bc-3be6-4f02-b19a-ac9cd12e9695" } } } @@ -27681,7 +29869,7 @@ }, "reverseName": "Material Universe static link", "name": "Process Universe static link", - "guid": "bd98b85f-34fe-4152-a82f-7c7ae4f0ddf0" + "guid": "47921954-71e8-45a4-8c32-364a5254e685" } }, "Example 3": { @@ -27691,7 +29879,7 @@ "type": "crossDatabase", "includeIndirectLinks": false, "linkTarget": { - "tableGuid": "a05ef407-3c99-4e31-b6a3-b262680702b4" + "tableGuid": "f11b4989-c38e-4603-b804-3908eb465420" }, "reverseName": "Cross database link to Material Universe", "name": "Cross database link from Material Universe" @@ -27704,12 +29892,12 @@ "type": "crossDatabase", "includeIndirectLinks": true, "linkTarget": { - "databaseGuid": "b320d43f-d946-4ca9-bf10-ad816173f8f0", - "tableGuid": "eab63460-d9a2-4bb9-90d1-049ec7376927" + "databaseGuid": "446ff32f-3085-483e-b83b-578b4ef9b620", + "tableGuid": "a547e9f8-cc65-43bc-babe-3854493e3de3" }, "reverseName": "Cross database link to MI Training - Material Universe", "name": "Cross database link from MI Training - Material Universe", - "guid": "6aea5177-2c6f-471c-a71a-2ba5bd66755b" + "guid": "8115a186-0040-4331-ad9c-2245eabd6e0b" } }, "Example 5": { @@ -27756,7 +29944,7 @@ }, "reverseName": "Material Universe dynamic link", "name": "Process Universe dynamic link", - "guid": "a7ad066c-39ae-4fe0-9e70-4fa327ea8206" + "guid": "988bd8bc-3be6-4f02-b19a-ac9cd12e9695" } } } @@ -27811,8 +29999,8 @@ "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" }, "linkTarget": { - "databaseGuid": "f300d783-26ab-4973-8c2f-c468addd4953", - "tableGuid": "5f59a449-4fa1-4dfc-b9ae-6078fcccd122" + "databaseGuid": "f6efde59-9077-4699-b5c3-97c7ae01fb4e", + "tableGuid": "a0773697-4830-4f30-9050-97d03f32b763" } }, "identity": 1, @@ -27820,7 +30008,7 @@ "reverseDisplayNames": {}, "displayNames": {}, "name": "Different database - different table", - "guid": "96558529-ee92-42dd-a077-39552ec4466b" + "guid": "d0ade96d-c137-4fd7-9660-8978b518b4c5" } }, "Example 6": { @@ -27972,7 +30160,7 @@ "reverseDisplayNames": {}, "displayNames": {}, "name": "Second Training Database And Table - MI Training MaterialUniverse", - "guid": "419330c7-d983-426d-8054-9c12c02d5a7c" + "guid": "a38b9708-e923-419e-b3a3-68abf78ad9ba" } ] } @@ -28105,8 +30293,8 @@ "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" }, "linkTarget": { - "databaseGuid": "f05f1724-440a-4790-9dd1-4b2f90266b6a", - "tableGuid": "f092fc42-f573-4841-913b-9260265b2cd9" + "databaseGuid": "8221e99b-870a-4438-a384-4f82204fa1fb", + "tableGuid": "9410cce4-3681-49f8-8717-3b2726621b84" } }, "identity": 1, @@ -28114,7 +30302,7 @@ "reverseDisplayNames": {}, "displayNames": {}, "name": "Different database - different table", - "guid": "15cafa63-71a1-4513-8fe6-ac87ecf2db7a" + "guid": "0f4dac71-c4a1-415f-b57d-a5a60f891e56" } }, "Example 3": { @@ -28275,7 +30463,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": { "type": "static", - "guid": "891610a8-5972-4e5d-a92c-494531e22f47" + "guid": "acb3c0be-a8e9-459d-91a4-8e43fe792b61" } }, "Example 2": { @@ -28295,7 +30483,7 @@ "type": "static", "reverseName": "Fatigue Statistical Data (updated)", "name": "Fatigue Test Data (updated)", - "guid": "f51933c2-d448-487a-805c-3612e24a0278" + "guid": "cd95be0c-50ce-482b-a5c5-ddafefe5cfc3" } }, "Example 4": { @@ -28306,7 +30494,7 @@ "type": "crossDatabase", "reverseName": "Link To MI Training - Material Universe (Updated)", "name": "Link From MI Training - Material Universe (Updated)", - "guid": "b438784d-be4e-4632-b189-84f5ee6fee2b" + "guid": "1c9f39f2-c69a-4b38-b715-496d8a2f7afa" } }, "Example 5": { @@ -28328,7 +30516,7 @@ "type": "dynamic", "reverseName": "Further panel information (Updated)", "name": "Tensile test data (Updated)", - "guid": "0e5ea2b7-951b-4c78-affa-0f66442d725e" + "guid": "418db505-654d-4369-901a-1171d54725e5" } } } @@ -28343,7 +30531,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": { "type": "static", - "guid": "891610a8-5972-4e5d-a92c-494531e22f47" + "guid": "acb3c0be-a8e9-459d-91a4-8e43fe792b61" } }, "Example 2": { @@ -28363,7 +30551,7 @@ "type": "static", "reverseName": "Fatigue Statistical Data (updated)", "name": "Fatigue Test Data (updated)", - "guid": "f51933c2-d448-487a-805c-3612e24a0278" + "guid": "cd95be0c-50ce-482b-a5c5-ddafefe5cfc3" } }, "Example 4": { @@ -28374,7 +30562,7 @@ "type": "crossDatabase", "reverseName": "Link To MI Training - Material Universe (Updated)", "name": "Link From MI Training - Material Universe (Updated)", - "guid": "b438784d-be4e-4632-b189-84f5ee6fee2b" + "guid": "1c9f39f2-c69a-4b38-b715-496d8a2f7afa" } }, "Example 5": { @@ -28396,7 +30584,7 @@ "type": "dynamic", "reverseName": "Further panel information (Updated)", "name": "Tensile test data (Updated)", - "guid": "0e5ea2b7-951b-4c78-affa-0f66442d725e" + "guid": "418db505-654d-4369-901a-1171d54725e5" } } } @@ -28411,7 +30599,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": { "type": "static", - "guid": "891610a8-5972-4e5d-a92c-494531e22f47" + "guid": "acb3c0be-a8e9-459d-91a4-8e43fe792b61" } }, "Example 2": { @@ -28431,7 +30619,7 @@ "type": "static", "reverseName": "Fatigue Statistical Data (updated)", "name": "Fatigue Test Data (updated)", - "guid": "f51933c2-d448-487a-805c-3612e24a0278" + "guid": "cd95be0c-50ce-482b-a5c5-ddafefe5cfc3" } }, "Example 4": { @@ -28442,7 +30630,7 @@ "type": "crossDatabase", "reverseName": "Link To MI Training - Material Universe (Updated)", "name": "Link From MI Training - Material Universe (Updated)", - "guid": "b438784d-be4e-4632-b189-84f5ee6fee2b" + "guid": "1c9f39f2-c69a-4b38-b715-496d8a2f7afa" } }, "Example 5": { @@ -28464,7 +30652,7 @@ "type": "dynamic", "reverseName": "Further panel information (Updated)", "name": "Tensile test data (Updated)", - "guid": "0e5ea2b7-951b-4c78-affa-0f66442d725e" + "guid": "418db505-654d-4369-901a-1171d54725e5" } } } @@ -28479,7 +30667,7 @@ "description": "This example demonstrates how to update the 'Guid' property of the 'Fatigue Test Data' static record link group (GUID = '485da78d-d094-4edb-a5a9-077fe1bc02f2') from the 'Fatigue Statistical Data' table (GUID = 'c9954321-b4d4-4443-949e-f9b161e2c8fb') from the MI_Training database.", "value": { "type": "static", - "guid": "891610a8-5972-4e5d-a92c-494531e22f47" + "guid": "acb3c0be-a8e9-459d-91a4-8e43fe792b61" } }, "Example 2": { @@ -28499,7 +30687,7 @@ "type": "static", "reverseName": "Fatigue Statistical Data (updated)", "name": "Fatigue Test Data (updated)", - "guid": "f51933c2-d448-487a-805c-3612e24a0278" + "guid": "cd95be0c-50ce-482b-a5c5-ddafefe5cfc3" } }, "Example 4": { @@ -28510,7 +30698,7 @@ "type": "crossDatabase", "reverseName": "Link To MI Training - Material Universe (Updated)", "name": "Link From MI Training - Material Universe (Updated)", - "guid": "b438784d-be4e-4632-b189-84f5ee6fee2b" + "guid": "1c9f39f2-c69a-4b38-b715-496d8a2f7afa" } }, "Example 5": { @@ -28532,7 +30720,7 @@ "type": "dynamic", "reverseName": "Further panel information (Updated)", "name": "Tensile test data (Updated)", - "guid": "0e5ea2b7-951b-4c78-affa-0f66442d725e" + "guid": "418db505-654d-4369-901a-1171d54725e5" } } } @@ -28587,8 +30775,8 @@ "tableGuid": "0000dd92-0011-4fff-8fff-0000ffff0000" }, "linkTarget": { - "databaseGuid": "f3ae8575-d182-4cbf-8c0e-7a725bd1fdce", - "tableGuid": "a8f888d3-6853-4326-89f0-9a6075a740e6" + "databaseGuid": "3c572c12-8ef0-4196-b02f-472160f46017", + "tableGuid": "41a9b373-dc2b-434a-9f68-dddb8aa4f0cf" } }, "identity": 1, @@ -28596,7 +30784,7 @@ "reverseDisplayNames": {}, "displayNames": {}, "name": "Different database - different table", - "guid": "2d82f293-ef68-46c4-9caa-cfa1ec732746" + "guid": "ac44ae7f-6d8d-404f-94f0-2674ad1bf410" } }, "Example 9": { @@ -28760,7 +30948,7 @@ "value": { "mappedCrossDatabaseRecordLinkGroups": [ { - "guid": "34b82f5f-cb3e-4ff6-8740-06a91f523184" + "guid": "583e74e2-e634-441a-8419-1cbc593ffcca" } ], "name": "Unification" @@ -28841,7 +31029,7 @@ "value": { "mappedCrossDatabaseRecordLinkGroups": [ { - "guid": "34b82f5f-cb3e-4ff6-8740-06a91f523184" + "guid": "583e74e2-e634-441a-8419-1cbc593ffcca" } ], "name": "Unification" @@ -28922,7 +31110,7 @@ "value": { "mappedCrossDatabaseRecordLinkGroups": [ { - "guid": "34b82f5f-cb3e-4ff6-8740-06a91f523184" + "guid": "583e74e2-e634-441a-8419-1cbc593ffcca" } ], "name": "Unification" @@ -29003,7 +31191,7 @@ "value": { "mappedCrossDatabaseRecordLinkGroups": [ { - "guid": "34b82f5f-cb3e-4ff6-8740-06a91f523184" + "guid": "583e74e2-e634-441a-8419-1cbc593ffcca" } ], "name": "Unification" @@ -29139,7 +31327,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": { - "guid": "162c36bf-26c1-4463-9661-6988c1cb2da7" + "guid": "a137ea9e-1cff-4f8a-a6c2-646509dcbef5" } }, "Example 3": { @@ -29189,7 +31377,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": { - "guid": "162c36bf-26c1-4463-9661-6988c1cb2da7" + "guid": "a137ea9e-1cff-4f8a-a6c2-646509dcbef5" } }, "Example 3": { @@ -29239,7 +31427,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": { - "guid": "162c36bf-26c1-4463-9661-6988c1cb2da7" + "guid": "a137ea9e-1cff-4f8a-a6c2-646509dcbef5" } }, "Example 3": { @@ -29289,7 +31477,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' property of the 'Density' standard name (guid = 5f5b89f7-da4e-4ae2-8c65-485e3c1a98fd) from the MI_Training database.", "value": { - "guid": "162c36bf-26c1-4463-9661-6988c1cb2da7" + "guid": "a137ea9e-1cff-4f8a-a6c2-646509dcbef5" } }, "Example 3": { @@ -29517,7 +31705,7 @@ "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Alloys (guid)", - "guid": "10dcab9f-2426-4b76-83c9-4e2ab845e249" + "guid": "6ef99b86-8aa4-469a-9243-0dcb4e0c68ce" } }, "Example 3": { @@ -29549,7 +31737,7 @@ "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Alloys (guid)", - "guid": "10dcab9f-2426-4b76-83c9-4e2ab845e249" + "guid": "6ef99b86-8aa4-469a-9243-0dcb4e0c68ce" } }, "Example 3": { @@ -29581,7 +31769,7 @@ "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Alloys (guid)", - "guid": "10dcab9f-2426-4b76-83c9-4e2ab845e249" + "guid": "6ef99b86-8aa4-469a-9243-0dcb4e0c68ce" } }, "Example 3": { @@ -29613,7 +31801,7 @@ "description": "This example demonstrates how to create a new subset with a specified guid value for the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database. Normally, if the guid is not specified, a random new Guid will be generated. ", "value": { "name": "Alloys (guid)", - "guid": "10dcab9f-2426-4b76-83c9-4e2ab845e249" + "guid": "6ef99b86-8aa4-469a-9243-0dcb4e0c68ce" } }, "Example 3": { @@ -29800,7 +31988,7 @@ "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" }, "name": "Ceramics (Updated)", - "guid": "b8accbc0-3733-4391-8634-819d61f31457" + "guid": "82897cf4-4010-45ab-a7d3-8f4c4965a62e" } }, "Example 2": { @@ -29841,7 +32029,7 @@ "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" }, "name": "Ceramics (Updated)", - "guid": "b8accbc0-3733-4391-8634-819d61f31457" + "guid": "82897cf4-4010-45ab-a7d3-8f4c4965a62e" } }, "Example 2": { @@ -29882,7 +32070,7 @@ "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" }, "name": "Ceramics (Updated)", - "guid": "b8accbc0-3733-4391-8634-819d61f31457" + "guid": "82897cf4-4010-45ab-a7d3-8f4c4965a62e" } }, "Example 2": { @@ -29923,7 +32111,7 @@ "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" }, "name": "Ceramics (Updated)", - "guid": "b8accbc0-3733-4391-8634-819d61f31457" + "guid": "82897cf4-4010-45ab-a7d3-8f4c4965a62e" } }, "Example 2": { @@ -30040,6 +32228,262 @@ } } }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:add-to-subset": { + "post": { + "tags": [ + "Schema - Subsets" + ], + "summary": "Add a record history to a subset.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "subset-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" + }, + "examples": { + "Example 1": { + "summary": "Add a Record History to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } + }, + "Example 2": { + "summary": "Add a Record History and its descendants to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" + }, + "examples": { + "Example 1": { + "summary": "Add a Record History to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } + }, + "Example 2": { + "summary": "Add a Record History and its descendants to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" + }, + "examples": { + "Example 1": { + "summary": "Add a Record History to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } + }, + "Example 2": { + "summary": "Add a Record History and its descendants to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset" + }, + "examples": { + "Example 1": { + "summary": "Add a Record History to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History only (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": false + } + }, + "Example 2": { + "summary": "Add a Record History and its descendants to a Subset", + "description": "This example demonstrates how to add the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) and all of its descendants to the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03", + "recurseChildren": true + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad request" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table or subset not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}/subsets/{subset-guid}:remove-from-subset": { + "post": { + "tags": [ + "Schema - Subsets" + ], + "summary": "Remove a record history, and all of its descendants, from a subset.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + }, + { + "name": "subset-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" + }, + "examples": { + "Example 1": { + "summary": "Remove a Record History from a Subset", + "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" + }, + "examples": { + "Example 1": { + "summary": "Remove a Record History from a Subset", + "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" + }, + "examples": { + "Example 1": { + "summary": "Remove a Record History from a Subset", + "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset" + }, + "examples": { + "Example 1": { + "summary": "Remove a Record History from a Subset", + "description": "This example demonstrates how to remove the 'Alumino Silicate' Record History (guid = 5a842e54-e143-45f5-aec8-18fb84f4fe03) from the 'All Bulk Materials' subset (guid = 0000b1c5-0010-4fff-8fff-dd92ffff0000) from the 'MaterialUniverse' table (guid = 0000dd92-0011-4fff-8fff-0000ffff0000) from the MI_Training database.", + "value": { + "recordHistoryGuid": "5a842e54-e143-45f5-aec8-18fb84f4fe03" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad request" + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database, table or subset not found" + } + } + } + }, "/v1alpha/databases/{database-key}/tables": { "get": { "tags": [ @@ -30157,7 +32601,7 @@ "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "name": "Coatings (Guid)", - "guid": "6272c7cd-cf47-4603-aea7-aacc7bff61b1" + "guid": "b2e513e9-b5b2-4159-9574-a4f91f6406d7" } }, "Example 3": { @@ -30192,7 +32636,7 @@ "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "name": "Coatings (Guid)", - "guid": "6272c7cd-cf47-4603-aea7-aacc7bff61b1" + "guid": "b2e513e9-b5b2-4159-9574-a4f91f6406d7" } }, "Example 3": { @@ -30227,7 +32671,7 @@ "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "name": "Coatings (Guid)", - "guid": "6272c7cd-cf47-4603-aea7-aacc7bff61b1" + "guid": "b2e513e9-b5b2-4159-9574-a4f91f6406d7" } }, "Example 3": { @@ -30262,7 +32706,7 @@ "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "name": "Coatings (Guid)", - "guid": "6272c7cd-cf47-4603-aea7-aacc7bff61b1" + "guid": "b2e513e9-b5b2-4159-9574-a4f91f6406d7" } }, "Example 3": { @@ -30287,6 +32731,7 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" }, "example": { + "versionState": "unversioned", "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "isVersioned": false, @@ -30431,6 +32876,7 @@ "guid": "00007645-0009-4fff-8fff-dd92ffff0000" } ], + "versionState": "unversioned", "isHiddenFromBrowse": false, "isHiddenFromSearch": false, "isVersioned": false, @@ -30489,7 +32935,7 @@ "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", "name": "MaterialUniverse (Updated)", - "guid": "4a633f2a-0df4-4409-8c33-18746a64e6db" + "guid": "4b8f6cca-12db-42a4-8532-3fc420a3575a" } }, "Example 2": { @@ -30550,7 +32996,7 @@ "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", "name": "MaterialUniverse (Updated)", - "guid": "4a633f2a-0df4-4409-8c33-18746a64e6db" + "guid": "4b8f6cca-12db-42a4-8532-3fc420a3575a" } }, "Example 2": { @@ -30611,7 +33057,7 @@ "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", "name": "MaterialUniverse (Updated)", - "guid": "4a633f2a-0df4-4409-8c33-18746a64e6db" + "guid": "4b8f6cca-12db-42a4-8532-3fc420a3575a" } }, "Example 2": { @@ -30672,7 +33118,7 @@ "defaultSubsetGuid": "00000b36-0010-4fff-8fff-dd92ffff0000", "defaultLayoutGuid": "00000b36-0009-4fff-8fff-dd92ffff0000", "name": "MaterialUniverse (Updated)", - "guid": "4a633f2a-0df4-4409-8c33-18746a64e6db" + "guid": "4b8f6cca-12db-42a4-8532-3fc420a3575a" } }, "Example 2": { @@ -30731,78 +33177,31 @@ }, "example": { "defaultSubset": { - "name": "All bulk materials", - "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" }, "subsets": [ { - "name": "Aerospace materials", - "guid": "0000fc72-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "All bulk materials", - "guid": "0000b1c5-0010-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "Metals", - "guid": "0000b135-0010-4fff-8fff-dd92ffff0000" - }, - { - "name": "Polymers", - "guid": "00007645-0010-4fff-8fff-dd92ffff0000" + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" } ], "defaultLayout": { - "name": "All Attributes", - "guid": "384f9abe-0581-434d-a976-86952282207a" + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" }, "layouts": [ { - "name": "Aerospace materials", - "guid": "0000fc72-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "All Attributes", - "guid": "384f9abe-0581-434d-a976-86952282207a" - }, - { - "name": "All bulk materials", - "guid": "0000b1c5-0009-4fff-8fff-dd92ffff0000" - }, - { - "displayNames": { - "en": "Ceramics English Display Name", - "fr": "Ceramics French Display Name" - }, - "name": "Ceramics", - "guid": "00000b36-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "Metals", - "guid": "0000b135-0009-4fff-8fff-dd92ffff0000" - }, - { - "name": "Polymers", - "guid": "00007645-0009-4fff-8fff-dd92ffff0000" + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" } ], + "versionState": "unreleased", "isHiddenFromBrowse": false, "isHiddenFromSearch": false, - "isVersioned": false, - "displayNames": { - "en": "MaterialUniverse English Display Name", - "fr": "MaterialUniverse French Display Name" - }, - "name": "MaterialUniverse", - "guid": "0000dd92-0011-4fff-8fff-0000ffff0000" + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" } } } @@ -30848,7 +33247,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsTableDeletionException" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDeletionTableDeletionException" }, "example": { "message": "Cannot delete table 'Restricted Substances' (GUID = 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f').", @@ -30856,8 +33255,8 @@ "errors": [ { "message": "It is being used in one or more tabular attributes.", - "reason": "InUse", - "referencedByType": "TabularAttribute", + "reason": "inUse", + "referencedByType": "tabularAttribute", "referencedBy": [ { "name": "Restricted substances associated with this material", @@ -30882,6 +33281,195 @@ } } }, + "/v1alpha/databases/{database-key}/tables/{table-guid}:release": { + "post": { + "tags": [ + "Schema - Tables" + ], + "summary": "Releases the table. Table must be version-controlled and unreleased.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" + }, + "example": { + "defaultSubset": { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + }, + "subsets": [ + { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + } + ], + "defaultLayout": { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + }, + "layouts": [ + { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + } + ], + "versionState": "released", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + } + } + } + }, + "400": { + "description": "Bad request. Table is not unreleased, or table is not version controlled.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException" + }, + "examples": { + "Example 1": { + "summary": "Invalid version state.", + "description": "A table can only be released if it is currently unreleased.", + "value": { + "message": "Cannot release table 'fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f'.", + "code": 400, + "errors": [ + { + "message": "Invalid version state 'Released'.", + "reason": "invalidVersionState", + "versionState": "released" + } + ] + } + }, + "Example 2": { + "summary": "Table is not version controlled.", + "value": { + "message": "Cannot release table '0000dd92-0011-4fff-8fff-0000ffff0000'.", + "code": 400, + "errors": [ + { + "message": "Table is not version controlled.", + "reason": "notVersioned" + } + ] + } + } + } + } + } + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database or table not found" + } + } + } + }, + "/v1alpha/databases/{database-key}/tables/{table-guid}:enable-version-control": { + "post": { + "tags": [ + "Schema - Tables" + ], + "summary": "Enable version control on the table. This cannot be undone.\r\nAfter this method has been called all records and data in the table are in an unreleased state.\r\nThis means that read users will not be able to see any records unless they are subsequently released.", + "parameters": [ + { + "name": "database-key", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "table-guid", + "in": "path", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GrantaServerApiSchemaTablesTable" + }, + "example": { + "defaultSubset": { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + }, + "subsets": [ + { + "name": "All substances", + "guid": "883ab52b-01b6-4a15-a89a-2bfa17c8d0e9" + } + ], + "defaultLayout": { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + }, + "layouts": [ + { + "name": "All substances", + "guid": "bdd30b01-f9bc-4024-a1de-55956c8f2e5c" + } + ], + "versionState": "unreleased", + "isHiddenFromBrowse": false, + "isHiddenFromSearch": false, + "isVersioned": true, + "name": "Restricted Substances", + "guid": "fa7aff0f-cac8-4c1d-be1f-d3b83f0ed74f" + } + } + } + }, + "400": { + "description": "Bad request. Table is already versioned." + }, + "403": { + "description": "Forbidden" + }, + "404": { + "description": "Database or table not found" + } + } + } + }, "/v1alpha/databases/{database-key}/units/{unit-guid}/equivalent-units": { "get": { "tags": [ @@ -31365,7 +33953,7 @@ "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", "value": { "name": "Hawaiian common", - "guid": "4373114c-7622-4b95-9941-3cf41c44d220" + "guid": "73b7c0c3-371c-4f04-acb6-08b21a78b733" } } } @@ -31380,7 +33968,7 @@ "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", "value": { "name": "Hawaiian common", - "guid": "4373114c-7622-4b95-9941-3cf41c44d220" + "guid": "73b7c0c3-371c-4f04-acb6-08b21a78b733" } } } @@ -31395,7 +33983,7 @@ "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", "value": { "name": "Hawaiian common", - "guid": "4373114c-7622-4b95-9941-3cf41c44d220" + "guid": "73b7c0c3-371c-4f04-acb6-08b21a78b733" } } } @@ -31410,7 +33998,7 @@ "description": "This example demonstrates how to create a new unit system for the MI_Training database. Only guid and name can be set as the rest of fields is backend generated and changes via equivalents endpoints.", "value": { "name": "Hawaiian common", - "guid": "4373114c-7622-4b95-9941-3cf41c44d220" + "guid": "73b7c0c3-371c-4f04-acb6-08b21a78b733" } } } @@ -31517,7 +34105,7 @@ "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "UK Imperial (Updated)", - "guid": "f3040c7f-dad7-46bb-bad7-6f1bbd82df46" + "guid": "5463da4e-4233-40ba-bff0-b291650d67f2" } }, "Example 2": { @@ -31531,7 +34119,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { - "guid": "f8f55071-13d5-4281-af64-826c74db3844" + "guid": "c5f6dd2c-f2f2-4c64-9b9a-2e4689edd644" } } } @@ -31546,7 +34134,7 @@ "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "UK Imperial (Updated)", - "guid": "f3040c7f-dad7-46bb-bad7-6f1bbd82df46" + "guid": "5463da4e-4233-40ba-bff0-b291650d67f2" } }, "Example 2": { @@ -31560,7 +34148,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { - "guid": "f8f55071-13d5-4281-af64-826c74db3844" + "guid": "c5f6dd2c-f2f2-4c64-9b9a-2e4689edd644" } } } @@ -31575,7 +34163,7 @@ "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "UK Imperial (Updated)", - "guid": "f3040c7f-dad7-46bb-bad7-6f1bbd82df46" + "guid": "5463da4e-4233-40ba-bff0-b291650d67f2" } }, "Example 2": { @@ -31589,7 +34177,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { - "guid": "f8f55071-13d5-4281-af64-826c74db3844" + "guid": "c5f6dd2c-f2f2-4c64-9b9a-2e4689edd644" } } } @@ -31604,7 +34192,7 @@ "description": "This example demonstrates how to update all properties of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { "name": "UK Imperial (Updated)", - "guid": "f3040c7f-dad7-46bb-bad7-6f1bbd82df46" + "guid": "5463da4e-4233-40ba-bff0-b291650d67f2" } }, "Example 2": { @@ -31618,7 +34206,7 @@ "summary": "Update guid", "description": "This example demonstrates how to update the 'Guid' of the 'UK Imperial' unit system (guid = 00000007-0014-4fff-8fff-0000ffff0000) from the MI_Training database.", "value": { - "guid": "f8f55071-13d5-4281-af64-826c74db3844" + "guid": "c5f6dd2c-f2f2-4c64-9b9a-2e4689edd644" } } } @@ -32020,8 +34608,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "d5f8f82c-3ff9-4913-8f7b-30c437d2dbad", - "17bc7ad4-1680-4579-8273-a9f1c3292090" + "42a3a5ea-ce9e-44e5-99fc-45115da2d98b", + "f503ce82-1ef8-4137-82a2-24fd712feaa4" ], "type": "recordListMember" }, @@ -32106,10 +34694,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -32752,8 +35339,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "d5f8f82c-3ff9-4913-8f7b-30c437d2dbad", - "17bc7ad4-1680-4579-8273-a9f1c3292090" + "42a3a5ea-ce9e-44e5-99fc-45115da2d98b", + "f503ce82-1ef8-4137-82a2-24fd712feaa4" ], "type": "recordListMember" }, @@ -32838,10 +35425,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -33484,8 +36070,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "d5f8f82c-3ff9-4913-8f7b-30c437d2dbad", - "17bc7ad4-1680-4579-8273-a9f1c3292090" + "42a3a5ea-ce9e-44e5-99fc-45115da2d98b", + "f503ce82-1ef8-4137-82a2-24fd712feaa4" ], "type": "recordListMember" }, @@ -33570,10 +36156,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -34216,8 +36801,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "d5f8f82c-3ff9-4913-8f7b-30c437d2dbad", - "17bc7ad4-1680-4579-8273-a9f1c3292090" + "42a3a5ea-ce9e-44e5-99fc-45115da2d98b", + "f503ce82-1ef8-4137-82a2-24fd712feaa4" ], "type": "recordListMember" }, @@ -34302,10 +36887,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -35024,8 +37608,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "4c0c3fc1-a79d-4665-9e79-efc87bfd7b4c", - "7a1786c7-9f6b-4caf-ad2d-0ab6f6ced60d" + "09fb666d-5731-4fab-a6d7-6eea4a3dd089", + "43f242d1-b547-4b04-b1d1-05d4567b2b1c" ], "type": "recordListMember" }, @@ -35110,10 +37694,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -35756,8 +38339,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "4c0c3fc1-a79d-4665-9e79-efc87bfd7b4c", - "7a1786c7-9f6b-4caf-ad2d-0ab6f6ced60d" + "09fb666d-5731-4fab-a6d7-6eea4a3dd089", + "43f242d1-b547-4b04-b1d1-05d4567b2b1c" ], "type": "recordListMember" }, @@ -35842,10 +38425,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -36488,8 +39070,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "4c0c3fc1-a79d-4665-9e79-efc87bfd7b4c", - "7a1786c7-9f6b-4caf-ad2d-0ab6f6ced60d" + "09fb666d-5731-4fab-a6d7-6eea4a3dd089", + "43f242d1-b547-4b04-b1d1-05d4567b2b1c" ], "type": "recordListMember" }, @@ -36574,10 +39156,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -37220,8 +39801,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "4c0c3fc1-a79d-4665-9e79-efc87bfd7b4c", - "7a1786c7-9f6b-4caf-ad2d-0ab6f6ced60d" + "09fb666d-5731-4fab-a6d7-6eea4a3dd089", + "43f242d1-b547-4b04-b1d1-05d4567b2b1c" ], "type": "recordListMember" }, @@ -37306,10 +39887,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -38019,8 +40599,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "29465445-aac2-4293-82ec-cad39dde2d01", - "9ec0b6d1-c55f-496e-b035-ba3787c76af8" + "219e6460-a24a-4009-995f-bdacb8daebc6", + "1ac9487e-42ab-427e-ac90-df358d0f7132" ], "type": "recordListMember" }, @@ -38105,10 +40685,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -38751,8 +41330,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "29465445-aac2-4293-82ec-cad39dde2d01", - "9ec0b6d1-c55f-496e-b035-ba3787c76af8" + "219e6460-a24a-4009-995f-bdacb8daebc6", + "1ac9487e-42ab-427e-ac90-df358d0f7132" ], "type": "recordListMember" }, @@ -38837,10 +41416,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -39483,8 +42061,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "29465445-aac2-4293-82ec-cad39dde2d01", - "9ec0b6d1-c55f-496e-b035-ba3787c76af8" + "219e6460-a24a-4009-995f-bdacb8daebc6", + "1ac9487e-42ab-427e-ac90-df358d0f7132" ], "type": "recordListMember" }, @@ -39569,10 +42147,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -40215,8 +42792,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "29465445-aac2-4293-82ec-cad39dde2d01", - "9ec0b6d1-c55f-496e-b035-ba3787c76af8" + "219e6460-a24a-4009-995f-bdacb8daebc6", + "1ac9487e-42ab-427e-ac90-df358d0f7132" ], "type": "recordListMember" }, @@ -40301,10 +42878,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -40991,8 +43567,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "6437dedf-d2f8-4948-b90c-5415b643f76e", - "f6fa6ff9-e247-4159-9d62-036863b2aa69" + "4e613372-2fac-466f-9aef-5145b43c13c7", + "5ed252f3-1376-4400-ab5f-06b6c28ad5e5" ], "type": "recordListMember" }, @@ -41077,10 +43653,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -41723,8 +44298,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "6437dedf-d2f8-4948-b90c-5415b643f76e", - "f6fa6ff9-e247-4159-9d62-036863b2aa69" + "4e613372-2fac-466f-9aef-5145b43c13c7", + "5ed252f3-1376-4400-ab5f-06b6c28ad5e5" ], "type": "recordListMember" }, @@ -41809,10 +44384,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -42455,8 +45029,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "6437dedf-d2f8-4948-b90c-5415b643f76e", - "f6fa6ff9-e247-4159-9d62-036863b2aa69" + "4e613372-2fac-466f-9aef-5145b43c13c7", + "5ed252f3-1376-4400-ab5f-06b6c28ad5e5" ], "type": "recordListMember" }, @@ -42541,10 +45115,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -43187,8 +45760,8 @@ "value": { "criterion": { "recordListIdentifiers": [ - "6437dedf-d2f8-4948-b90c-5415b643f76e", - "f6fa6ff9-e247-4159-9d62-036863b2aa69" + "4e613372-2fac-466f-9aef-5145b43c13c7", + "5ed252f3-1376-4400-ab5f-06b6c28ad5e5" ], "type": "recordListMember" }, @@ -43273,10 +45846,9 @@ "gte": 10.0, "type": "range" }, - "attributeCriterionType": "matches", + "localColumnCriterionType": "matches", "guid": "1f1e5808-5a10-4b70-9ff6-8b832bf561d8", - "isMetaAttribute": false, - "type": "attribute" + "type": "localColumn" }, "linkDatumType": "tabularAttribute", "indirectLinks": "fromLinkDefinition", @@ -44445,7 +47017,8 @@ "quarter", "year" ], - "type": "string" + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • Minute: Minute
  • \r\n
  • Hour: Hour
  • \r\n
  • Day: Day
  • \r\n
  • Week: Week
  • \r\n
  • Month: Month
  • \r\n
  • Quarter: Quarter
  • \r\n
  • Year: Year
  • \r\n
\r\n" }, "GrantaServerApiAggregationsDateTimeAggregation": { "required": [ @@ -45887,6 +48460,22 @@ }, "additionalProperties": false }, + "GrantaServerApiAsyncJobsCurrentUser": { + "type": "object", + "properties": { + "isAdmin": { + "type": "boolean" + }, + "username": { + "type": "string", + "nullable": true + }, + "hasWriteAccess": { + "type": "boolean" + } + }, + "additionalProperties": false + }, "GrantaServerApiAsyncJobsGetJobsResponse": { "type": "object", "properties": { @@ -45994,7 +48583,8 @@ "Failed", "Cancelled" ], - "type": "string" + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • Pending: Pending
  • \r\n
  • Running: Running
  • \r\n
  • Succeeded: Succeeded
  • \r\n
  • Failed: Failed
  • \r\n
  • Cancelled: Cancelled
  • \r\n
\r\n" }, "GrantaServerApiAsyncJobsProcessingConfig": { "type": "object", @@ -46079,7 +48669,125 @@ "tabular" ], "type": "string", - "description": "The types of attribute that are supported by the API." + "description": "The types of attribute that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Point: Point
  • \r\n
  • Range: Range
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Long Text
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete Value
  • \r\n
  • Hyperlink: Hyperlink
  • \r\n
  • File: File
  • \r\n
  • Picture: Picture
  • \r\n
  • Link: Link
  • \r\n
  • FloatFunctional: Float functional
  • \r\n
  • DiscreteFunctional: Discrete functional
  • \r\n
  • MathsFunctional: Maths functional. Also known as Embedded Equations and Logic (EEL).
  • \r\n
  • Tabular: Tabular data
  • \r\n
\r\n" + }, + "GrantaServerApiDataApplicableDatum": { + "required": [ + "datumType", + "notApplicable" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + } + ], + "properties": { + "notApplicable": { + "type": "string", + "default": "applicable" + } + }, + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum\r\n\r\nThis is one of: \r\n * GrantaServerApiDataIntegerDatum\r\n * GrantaServerApiDataLogicalDatum\r\n * GrantaServerApiDataShortTextDatum\r\n * GrantaServerApiDataLongTextDatum\r\n * GrantaServerApiDataHyperlinkDatum\r\n * GrantaServerApiDataDateTimeDatum\r\n * GrantaServerApiDataDiscreteDatum\r\n * GrantaServerApiDataRangeDatum", + "discriminator": { + "propertyName": "datumType", + "mapping": { + "integer": "#/components/schemas/GrantaServerApiDataIntegerDatum", + "logical": "#/components/schemas/GrantaServerApiDataLogicalDatum", + "shortText": "#/components/schemas/GrantaServerApiDataShortTextDatum", + "longText": "#/components/schemas/GrantaServerApiDataLongTextDatum", + "hyperlink": "#/components/schemas/GrantaServerApiDataHyperlinkDatum", + "dateTime": "#/components/schemas/GrantaServerApiDataDateTimeDatum", + "discrete": "#/components/schemas/GrantaServerApiDataDiscreteDatum", + "range": "#/components/schemas/GrantaServerApiDataRangeDatum" + } + }, + "x-discriminator-value": "applicable" + }, + "GrantaServerApiDataDateTimeDatum": { + "required": [ + "dateTime", + "datumType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "dateTime" + }, + "dateTime": { + "type": "string", + "format": "date-time" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "dateTime" + }, + "GrantaServerApiDataDatum": { + "type": "object", + "additionalProperties": false, + "description": "\r\n\r\nThis is one of: \r\n * GrantaServerApiDataApplicableDatum\r\n * GrantaServerApiDataNotApplicableDatum", + "discriminator": { + "propertyName": "notApplicable", + "mapping": { + "applicable": "#/components/schemas/GrantaServerApiDataApplicableDatum", + "notApplicable": "#/components/schemas/GrantaServerApiDataNotApplicableDatum" + } + } + }, + "GrantaServerApiDataDatumType": { + "enum": [ + "integer", + "logical", + "shortText", + "longText", + "hyperlink", + "dateTime", + "discrete", + "range" + ], + "type": "string", + "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Integer: Integer
  • \r\n
  • Logical: Logical
  • \r\n
  • ShortText: Short Text
  • \r\n
  • LongText: Integer
  • \r\n
  • Hyperlink: Integer
  • \r\n
  • DateTime: Date and Time
  • \r\n
  • Discrete: Discrete
  • \r\n
  • Range: Range
  • \r\n
\r\n" + }, + "GrantaServerApiDataDiscreteDatum": { + "required": [ + "datumType", + "discreteValues" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "discrete" + }, + "discreteValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiSchemaDiscreteValuesDiscreteValue" + } + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "discrete" }, "GrantaServerApiDataExportAttributeToExport": { "type": "object", @@ -46628,7 +49336,7 @@ "LinesAndMarkers" ], "type": "string", - "description": "Indicates how a graphical representation of a graph should be rendered" + "description": "Indicates how a graphical representation of a graph should be rendered

Possible values:

\r\n
    \r\n
  • Lines: Lines
  • \r\n
  • Markers: Markers
  • \r\n
  • LinesAndMarkers: Lines and Markers
  • \r\n
\r\n" }, "GrantaServerApiDataExportDatumsGridPoint": { "type": "object", @@ -47510,7 +50218,8 @@ "datum", "rollup" ], - "type": "string" + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • Record: Record
  • \r\n
  • Link: Link
  • \r\n
  • Attribute: Attribute
  • \r\n
  • Datum: Datum
  • \r\n
  • Rollup: The rollup specified is not supported by the attribute data being exported
  • \r\n
\r\n" }, "GrantaServerApiDataExportExportFailuresLinkExportFailure": { "required": [ @@ -47754,7 +50463,8 @@ "attribute", "datum" ], - "type": "string" + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • ParameterLevel: Parameter Level
  • \r\n
  • AttributeLevel: Attribute Level
  • \r\n
  • DatumLevel: Datum Level
  • \r\n
\r\n" }, "GrantaServerApiDataExportPropertiesCreatedByUserProperty": { "required": [ @@ -48358,7 +51068,286 @@ "allRows", "onlyRowsWithVisibleLinkedRecords" ], - "type": "string" + "type": "string", + "description": "

Possible values:

\r\n
    \r\n
  • AllRows: Export all rows - including rows with no visible linked records
  • \r\n
  • OnlyRowsWithVisibleLinkedRecords: Export only rows with visible linked records
  • \r\n
\r\n" + }, + "GrantaServerApiDataHyperlinkDatum": { + "required": [ + "address", + "datumType", + "description", + "target" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "hyperlink" + }, + "address": { + "type": "string" + }, + "description": { + "type": "string" + }, + "target": { + "$ref": "#/components/schemas/GrantaServerApiDataHyperlinkTarget" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "hyperlink" + }, + "GrantaServerApiDataHyperlinkTarget": { + "enum": [ + "newWindow", + "top", + "parent", + "tree", + "content", + "currentFrame" + ], + "type": "string", + "description": "A target for a `HyperlinkDatum`

Possible values:

\r\n
    \r\n
  • NewWindow: Target a new window (equivalent to \"_blank\").
  • \r\n
  • Top: Target the topmost frame of the current frameset (equivalent to \"_top\").
  • \r\n
  • Parent: Target the parent frame of the current frame (equivalent to \"_parent\").
  • \r\n
  • Tree: Target the left-hand side frame.
  • \r\n
  • Content: Target the right-hand side frame.
  • \r\n
  • CurrentFrame: Target the current frame (equivalent to \"_self\").
  • \r\n
\r\n" + }, + "GrantaServerApiDataIntegerDatum": { + "required": [ + "datumType", + "value" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "integer" + }, + "value": { + "type": "integer", + "format": "int32" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "integer" + }, + "GrantaServerApiDataLogicalDatum": { + "required": [ + "datumType", + "value" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "logical" + }, + "value": { + "type": "boolean" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "logical" + }, + "GrantaServerApiDataLongTextDatum": { + "required": [ + "datumType", + "richTextValue" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "longText" + }, + "richTextValue": { + "$ref": "#/components/schemas/GrantaServerApiDataRichTextValue" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "longText" + }, + "GrantaServerApiDataNotApplicableDatum": { + "required": [ + "notApplicable" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataDatum" + }, + { + "type": "object", + "properties": { + "notApplicable": { + "type": "string", + "default": "notApplicable" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataDatum", + "x-discriminator-value": "notApplicable" + }, + "GrantaServerApiDataRangeDatum": { + "required": [ + "datumType", + "estimated", + "highValue", + "highValueIsInclusive", + "lowValue", + "lowValueIsInclusive" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "range" + }, + "lowValue": { + "type": "number", + "format": "double" + }, + "highValue": { + "type": "number", + "format": "double" + }, + "lowValueIsInclusive": { + "type": "boolean" + }, + "highValueIsInclusive": { + "type": "boolean" + }, + "lowValueSignificantFiguresInfo": { + "$ref": "#/components/schemas/GrantaServerApiDataSignificantFiguresInfo" + }, + "highValueSignificantFiguresInfo": { + "$ref": "#/components/schemas/GrantaServerApiDataSignificantFiguresInfo" + }, + "estimated": { + "type": "boolean" + }, + "unit": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimUnit" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "range" + }, + "GrantaServerApiDataRichTextType": { + "enum": [ + "plain", + "markdown" + ], + "type": "string", + "description": "The types of datum that are supported by the API.

Possible values:

\r\n
    \r\n
  • Plain: Represents plain text.
  • \r\n
  • Markdown: (no description available)
  • \r\n
\r\n" + }, + "GrantaServerApiDataRichTextValue": { + "required": [ + "text", + "type" + ], + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/GrantaServerApiDataRichTextType" + } + }, + "additionalProperties": false + }, + "GrantaServerApiDataShortTextDatum": { + "required": [ + "datumType", + "value" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiDataApplicableDatum" + }, + { + "type": "object", + "properties": { + "datumType": { + "type": "string", + "default": "shortText" + }, + "value": { + "type": "string" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiDataApplicableDatum", + "x-discriminator-value": "shortText" + }, + "GrantaServerApiDataSignificantFiguresInfo": { + "required": [ + "enteredValue", + "significantFigures" + ], + "type": "object", + "properties": { + "significantFigures": { + "type": "integer", + "format": "int32" + }, + "enteredValue": { + "type": "number", + "format": "double" + }, + "enteredUnit": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimUnit" + } + }, + "additionalProperties": false }, "GrantaServerApiDiscreteValue": { "type": "object", @@ -48385,7 +51374,77 @@ "type": "string", "description": "The status of the amount of space remaining on the disk.

Possible values:

\r\n
    \r\n
  • Ok: There is enough space.
  • \r\n
  • LowWatermarkReached: Once the disk reaches this point, Elasticsearch will not allocate any more shards to this node.
  • \r\n
  • HighWatermarkReached: At this point, Elasticsearch will attempt to relocate shards away from this node.
  • \r\n
  • FloodStageReached: At this point, Elastic search will enforce a read only block on the index.
  • \r\n
\r\n" }, - "GrantaServerApiExceptionsAttributeDeletionException": { + "GrantaServerApiExceptionsDataModificationDataModificationErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "\r\n\r\nThis is one of: \r\n * GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail", + "discriminator": { + "propertyName": "reason", + "mapping": { + "inUse": "#/components/schemas/GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail" + } + } + }, + "GrantaServerApiExceptionsDataModificationInUseDataModificationErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + { + "type": "object", + "properties": { + "referencedByType": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationReferencedByType" + }, + "referencedBy": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimNamedEntity" + }, + "nullable": true + }, + "reason": { + "type": "string", + "default": "inUse" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiExceptionsDataModificationDataModificationErrorDetail", + "x-discriminator-value": "inUse" + }, + "GrantaServerApiExceptionsDataModificationReferencedByType": { + "enum": [ + "unknown", + "expression", + "versionControlledData", + "dynamicLinkGroup", + "tabularAttribute", + "xyChartTemplate", + "searchMask", + "securityAttribute", + "attribute", + "data", + "defaultParameterValue" + ], + "type": "string" + }, + "GrantaServerApiExceptionsDeletionAttributeDeletionException": { "type": "object", "properties": { "message": { @@ -48398,14 +51457,150 @@ "errors": { "type": "array", "items": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsErrorDetail" + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsDeletionConstantDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsDeletionDiscreteTypeDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsDeletionDiscreteValueDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsDeletionParameterDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsDeletionParameterValueDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" }, "nullable": true } }, "additionalProperties": false }, - "GrantaServerApiExceptionsConstantDeletionException": { + "GrantaServerApiExceptionsDeletionTableDeletionException": { + "type": "object", + "properties": { + "message": { + "type": "string", + "nullable": true + }, + "code": { + "$ref": "#/components/schemas/SystemNetHttpStatusCode" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiExceptionsDataModificationDataModificationErrorDetail" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "additionalProperties": false + }, + "GrantaServerApiExceptionsRecordHistoryRecordHistoryCopyException": { "type": "object", "properties": { "message": { @@ -48425,7 +51620,7 @@ }, "additionalProperties": false }, - "GrantaServerApiExceptionsDiscreteTypeDeletionException": { + "GrantaServerApiExceptionsRecordHistoryRecordHistoryMoveException": { "type": "object", "properties": { "message": { @@ -48445,7 +51640,7 @@ }, "additionalProperties": false }, - "GrantaServerApiExceptionsDiscreteValueDeletionException": { + "GrantaServerApiExceptionsVersionControlCreateRecordVersionControlException": { "type": "object", "properties": { "message": { @@ -48458,28 +51653,116 @@ "errors": { "type": "array", "items": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsErrorDetail" + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" }, "nullable": true } }, "additionalProperties": false }, - "GrantaServerApiExceptionsErrorDetail": { + "GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail": { + "required": [ + "message", + "reason" + ], "type": "object", - "properties": { - "message": { - "type": "string", - "nullable": true + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" }, - "reason": { - "type": "string", - "nullable": true + { + "type": "object", + "properties": { + "reason": { + "type": "string", + "default": "invalidParentState" + } + } } - }, - "additionalProperties": false + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "x-discriminator-value": "invalidParentState" + }, + "GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" + }, + { + "type": "object", + "properties": { + "versionState": { + "$ref": "#/components/schemas/GrantaServerApiVersionState" + }, + "reason": { + "type": "string", + "default": "invalidVersionState" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "x-discriminator-value": "invalidVersionState" }, - "GrantaServerApiExceptionsParameterDeletionException": { + "GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" + }, + { + "type": "object", + "properties": { + "newerVersion": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsSlimRecordVersion" + }, + "reason": { + "type": "string", + "default": "notTheLatestVersion" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "x-discriminator-value": "notTheLatestVersion" + }, + "GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" + }, + { + "type": "object", + "properties": { + "reason": { + "type": "string", + "default": "notVersioned" + } + } + } + ], + "additionalProperties": false, + "description": "\r\n\r\nThis extends: GrantaServerApiExceptionsVersionControlVersionControlErrorDetail", + "x-discriminator-value": "notVersioned" + }, + "GrantaServerApiExceptionsVersionControlReleaseRecordVersionControlException": { "type": "object", "properties": { "message": { @@ -48492,14 +51775,14 @@ "errors": { "type": "array", "items": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsErrorDetail" + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" }, "nullable": true } }, "additionalProperties": false }, - "GrantaServerApiExceptionsParameterValueDeletionException": { + "GrantaServerApiExceptionsVersionControlReleaseTableVersionControlException": { "type": "object", "properties": { "message": { @@ -48512,14 +51795,37 @@ "errors": { "type": "array", "items": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsErrorDetail" + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" }, "nullable": true } }, "additionalProperties": false }, - "GrantaServerApiExceptionsTableDeletionException": { + "GrantaServerApiExceptionsVersionControlVersionControlErrorDetail": { + "required": [ + "message", + "reason" + ], + "type": "object", + "properties": { + "message": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "\r\n\r\nThis is one of: \r\n * GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail\r\n * GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail\r\n * GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail\r\n * GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail", + "discriminator": { + "propertyName": "reason", + "mapping": { + "invalidVersionState": "#/components/schemas/GrantaServerApiExceptionsVersionControlInvalidVersionStateErrorDetail", + "notTheLatestVersion": "#/components/schemas/GrantaServerApiExceptionsVersionControlNotTheLatestVersionErrorDetail", + "invalidParentState": "#/components/schemas/GrantaServerApiExceptionsVersionControlInvalidParentStateErrorDetail", + "notVersioned": "#/components/schemas/GrantaServerApiExceptionsVersionControlNotVersionedErrorDetail" + } + } + }, + "GrantaServerApiExceptionsVersionControlWithdrawRecordVersionControlException": { "type": "object", "properties": { "message": { @@ -48532,7 +51838,7 @@ "errors": { "type": "array", "items": { - "$ref": "#/components/schemas/GrantaServerApiExceptionsErrorDetail" + "$ref": "#/components/schemas/GrantaServerApiExceptionsVersionControlVersionControlErrorDetail" }, "nullable": true } @@ -49342,6 +52648,124 @@ ], "type": "string" }, + "GrantaServerApiListsDtoCreateListItem": { + "required": [ + "databaseGuid", + "recordHistoryGuid" + ], + "type": "object", + "properties": { + "databaseGuid": { + "type": "string", + "format": "uuid" + }, + "recordHistoryGuid": { + "type": "string", + "format": "uuid" + }, + "recordVersion": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "tableGuid": { + "type": "string", + "format": "uuid", + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoCreateRecordList": { + "required": [ + "name" + ], + "type": "object", + "properties": { + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateRecordListItemsInfo" + }, + "identifier": { + "type": "string", + "format": "uuid", + "nullable": true + }, + "name": { + "type": "string" + }, + "description": { + "type": "string", + "nullable": true + }, + "notes": { + "type": "string", + "nullable": true + }, + "published": { + "type": "boolean" + }, + "awaitingApproval": { + "type": "boolean" + }, + "internalUse": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoCreateRecordListItemsInfo": { + "required": [ + "items" + ], + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoCreateListItem" + } + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoDeleteRecordListItem": { + "required": [ + "databaseGuid", + "recordHistoryGuid" + ], + "type": "object", + "properties": { + "databaseGuid": { + "type": "string", + "format": "uuid" + }, + "recordHistoryGuid": { + "type": "string", + "format": "uuid" + }, + "recordVersion": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoDeleteRecordListItems": { + "required": [ + "items" + ], + "type": "object", + "properties": { + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoDeleteRecordListItem" + } + } + }, + "additionalProperties": false + }, "GrantaServerApiListsDtoListBooleanCriterion": { "required": [ "type" @@ -49392,6 +52816,11 @@ } }, "GrantaServerApiListsDtoListItem": { + "required": [ + "databaseGuid", + "recordHistoryGuid", + "tableGuid" + ], "type": "object", "properties": { "databaseGuid": { @@ -49437,42 +52866,20 @@ }, "additionalProperties": false }, - "GrantaServerApiListsDtoRecordListCreate": { - "type": "object", - "properties": { - "items": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListItems" - }, - "identifier": { - "type": "string", - "format": "uuid", - "nullable": true - }, - "name": { - "type": "string", - "nullable": true - }, - "description": { - "type": "string", - "nullable": true - }, - "notes": { - "type": "string", - "nullable": true - }, - "published": { - "type": "boolean" - }, - "awaitingApproval": { - "type": "boolean" - }, - "internalUse": { - "type": "boolean" - } - }, - "additionalProperties": false - }, "GrantaServerApiListsDtoRecordListHeader": { + "required": [ + "awaitingApproval", + "createdTimestamp", + "createdUser", + "identifier", + "internalUse", + "isRevision", + "lastModifiedTimestamp", + "lastModifiedUser", + "metadata", + "name", + "published" + ], "type": "object", "properties": { "identifier": { @@ -49486,8 +52893,7 @@ "additionalProperties": { "type": "object" } - }, - "nullable": true + } }, "parentRecordListIdentifier": { "type": "string", @@ -49520,8 +52926,7 @@ "type": "boolean" }, "name": { - "type": "string", - "nullable": true + "type": "string" }, "description": { "type": "string", @@ -49543,73 +52948,65 @@ }, "additionalProperties": false }, - "GrantaServerApiListsDtoRecordListItems": { + "GrantaServerApiListsDtoRecordListHeadersInfo": { + "required": [ + "lists" + ], + "type": "object", + "properties": { + "lists": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListHeader" + } + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoRecordListItemsInfo": { + "required": [ + "items" + ], "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/GrantaServerApiListsDtoListItem" - }, - "nullable": true + } } }, "additionalProperties": false }, - "GrantaServerApiListsDtoRecordListPermissionFlagsDto": { + "GrantaServerApiListsDtoRecordListPermissionFlags": { + "required": [ + "isAdministrator", + "isCurator", + "isOwner", + "isPublisher", + "isSubscribed" + ], "type": "object", "properties": { "isOwner": { "type": "boolean", - "description": "Flag indicating if the user or group is an owner of this list.\r\nNull means: do not change this flag's value when inserting into database.", - "nullable": true + "description": "Flag indicating if the user or group is an owner of this list." }, "isSubscribed": { "type": "boolean", - "description": "Flag indicating if the user or group is subscribed to this list.\r\nNull means: do not change this flag's value when inserting into database.", - "nullable": true + "description": "Flag indicating if the user or group is subscribed to this list." }, "isCurator": { "type": "boolean", - "description": "Flag indicating if the user or group is a curator of this list.\r\nNull means: do not change this flag's value when inserting into database.", - "nullable": true + "description": "Flag indicating if the user or group is a curator of this list." }, "isAdministrator": { "type": "boolean", - "description": "Flag indicating if the user or group is an administrator of this list.\r\nNull means: do not change this flag's value when inserting into database.", - "nullable": true + "description": "Flag indicating if the user or group is an administrator of this list." }, "isPublisher": { "type": "boolean", - "description": "Flag indicating if this user or group is a publisher of this list.\r\nNull means: do not change this flag's value when inserting into database.", - "nullable": true - } - }, - "additionalProperties": false - }, - "GrantaServerApiListsDtoRecordListProperties": { - "type": "object", - "properties": { - "name": { - "type": "string", - "nullable": true - }, - "description": { - "type": "string", - "nullable": true - }, - "notes": { - "type": "string", - "nullable": true - }, - "published": { - "type": "boolean" - }, - "awaitingApproval": { - "type": "boolean" - }, - "internalUse": { - "type": "boolean" + "description": "Flag indicating if this user or group is a publisher of this list." } }, "additionalProperties": false @@ -49702,6 +53099,9 @@ "x-discriminator-value": "recordList" }, "GrantaServerApiListsDtoRecordListSearchInfo": { + "required": [ + "searchResultIdentifier" + ], "type": "object", "properties": { "searchResultIdentifier": { @@ -49712,6 +53112,9 @@ "additionalProperties": false }, "GrantaServerApiListsDtoRecordListSearchRequest": { + "required": [ + "searchCriterion" + ], "type": "object", "properties": { "searchCriterion": { @@ -49727,6 +53130,10 @@ "additionalProperties": false }, "GrantaServerApiListsDtoRecordListSearchResult": { + "required": [ + "header", + "items" + ], "type": "object", "properties": { "header": { @@ -49736,8 +53143,22 @@ "type": "array", "items": { "$ref": "#/components/schemas/GrantaServerApiListsDtoListItem" - }, - "nullable": true + } + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoRecordListSearchResultsInfo": { + "required": [ + "searchResults" + ], + "type": "object", + "properties": { + "searchResults": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListSearchResult" + } } }, "additionalProperties": false @@ -49757,53 +53178,149 @@ }, "additionalProperties": false }, - "GrantaServerApiListsDtoUserOrGroup": { + "GrantaServerApiListsDtoUpdateRecordListPermissionFlags": { + "required": [ + "isAdministrator", + "isCurator", + "isPublisher", + "isSubscribed" + ], "type": "object", "properties": { - "identifier": { + "isSubscribed": { + "type": "boolean", + "description": "Flag indicating if the user or group is subscribed to this list." + }, + "isCurator": { + "type": "boolean", + "description": "Flag indicating if the user or group is a curator of this list." + }, + "isAdministrator": { + "type": "boolean", + "description": "Flag indicating if the user or group is an administrator of this list." + }, + "isPublisher": { + "type": "boolean", + "description": "Flag indicating if this user or group is a publisher of this list." + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoUpdateRecordListProperties": { + "type": "object", + "properties": { + "name": { "type": "string", - "format": "uuid" + "nullable": true }, - "displayName": { + "description": { "type": "string", "nullable": true }, - "name": { + "notes": { "type": "string", "nullable": true + }, + "published": { + "type": "boolean" + }, + "awaitingApproval": { + "type": "boolean" + }, + "internalUse": { + "type": "boolean" } }, "additionalProperties": false }, - "GrantaServerApiListsDtoUserPermissionDto": { + "GrantaServerApiListsDtoUpdateUserPermission": { + "required": [ + "flags", + "userOrGroupIdentifier" + ], "type": "object", "properties": { - "userOrGroupName": { - "type": "string", - "description": "The user or group name.", - "nullable": true - }, "userOrGroupIdentifier": { "type": "string", "description": "The user or group identifier", "format": "uuid" }, "flags": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateRecordListPermissionFlags" + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoUpdateUserPermissionsInfo": { + "required": [ + "userPermissions" + ], + "type": "object", + "properties": { + "userPermissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoUpdateUserPermission" + } + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoUserOrGroup": { + "required": [ + "displayName", + "identifier", + "name" + ], + "type": "object", + "properties": { + "identifier": { + "type": "string", + "format": "uuid" + }, + "displayName": { + "type": "string" + }, + "name": { + "type": "string" } }, "additionalProperties": false }, - "GrantaServerApiListsDtoUserPermissionInputDto": { + "GrantaServerApiListsDtoUserPermission": { + "required": [ + "flags", + "userOrGroupIdentifier", + "userOrGroupName" + ], "type": "object", "properties": { + "userOrGroupName": { + "type": "string", + "description": "The user or group name." + }, "userOrGroupIdentifier": { "type": "string", "description": "The user or group identifier", "format": "uuid" }, "flags": { - "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlagsDto" + "$ref": "#/components/schemas/GrantaServerApiListsDtoRecordListPermissionFlags" + } + }, + "additionalProperties": false + }, + "GrantaServerApiListsDtoUserPermissionsInfo": { + "required": [ + "userPermissions" + ], + "type": "object", + "properties": { + "userPermissions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiListsDtoUserPermission" + } } }, "additionalProperties": false @@ -49979,11 +53496,69 @@ "type": "string", "description": "An API-level enum for the supported record types." }, + "GrantaServerApiRecordsRecordHistoriesCopyRecordHistory": { + "required": [ + "parentGuid" + ], + "type": "object", + "properties": { + "parentGuid": { + "type": "string", + "format": "uuid" + }, + "newShortName": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "GrantaServerApiRecordsRecordHistoriesCreateRecordHistory": { + "required": [ + "fullName", + "recordType" + ], + "type": "object", + "properties": { + "recordType": { + "$ref": "#/components/schemas/GrantaServerApiRecordType" + }, + "fullName": { + "type": "string" + }, + "treeName": { + "type": "string", + "nullable": true + }, + "parent": { + "$ref": "#/components/schemas/GrantaServerApiRecordsRecordHistoriesSlimRecordHistory" + }, + "guid": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, + "GrantaServerApiRecordsRecordHistoriesMoveRecordHistory": { + "required": [ + "parentGuid" + ], + "type": "object", + "properties": { + "parentGuid": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, "GrantaServerApiRecordsRecordHistoriesRecordHistory": { "required": [ "guid", "isFolder", "recordVersions", + "subsets", "table" ], "type": "object", @@ -50003,6 +53578,12 @@ "$ref": "#/components/schemas/GrantaServerApiRecordsRecordVersionsSlimRecordVersion" } }, + "subsets": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimSubset" + } + }, "guid": { "type": "string", "format": "uuid" @@ -55711,6 +59292,22 @@ }, "additionalProperties": false }, + "GrantaServerApiSchemaSubsetsAddRecordHistoryToSubset": { + "required": [ + "recordHistoryGuid" + ], + "type": "object", + "properties": { + "recordHistoryGuid": { + "type": "string", + "format": "uuid" + }, + "recurseChildren": { + "type": "boolean" + } + }, + "additionalProperties": false + }, "GrantaServerApiSchemaSubsetsCreateSubset": { "required": [ "name" @@ -55730,6 +59327,19 @@ }, "additionalProperties": false }, + "GrantaServerApiSchemaSubsetsRemoveRecordHistoryFromSubset": { + "required": [ + "recordHistoryGuid" + ], + "type": "object", + "properties": { + "recordHistoryGuid": { + "type": "string", + "format": "uuid" + } + }, + "additionalProperties": false + }, "GrantaServerApiSchemaSubsetsSubset": { "required": [ "displayNames", @@ -55817,7 +59427,8 @@ "isVersioned", "layouts", "name", - "subsets" + "subsets", + "versionState" ], "type": "object", "properties": { @@ -55839,6 +59450,9 @@ "$ref": "#/components/schemas/GrantaServerApiSchemaSlimEntitiesSlimLayout" } }, + "versionState": { + "$ref": "#/components/schemas/GrantaServerApiVersionState" + }, "isHiddenFromBrowse": { "type": "boolean" }, @@ -57920,7 +61534,7 @@ "GrantaServerApiSearchCriterion": { "type": "object", "additionalProperties": false, - "description": "The criterion to be used in a search.\r\n \r\nMultiple criterion can be provided. These should be wrapped with a boolean criterion that specifies whether the search should return results that match \"any\", \"all\", or \"none\" of the criterion.\r\nThese criterion can be nested to created complex search queries.\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchBooleanCriterion\r\n * GrantaServerApiSearchFreeTextCriterion\r\n * GrantaServerApiSearchRecordListMemberCriterion\r\n * GrantaServerApiSearchRecordPropertyCriterion\r\n * GrantaServerApiSearchRecordReferenceCriterion\r\n * GrantaServerApiSearchRecordAncestorCriterion\r\n * GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion\r\n * GrantaServerApiSearchRecordSubsetCriterion\r\n * GrantaServerApiSearchTabularLinkingValueCriterion\r\n * GrantaServerApiSearchAttributeCriterion", + "description": "The criterion to be used in a search.\r\n \r\nMultiple criterion can be provided. These should be wrapped with a boolean criterion that specifies whether the search should return results that match \"any\", \"all\", or \"none\" of the criterion.\r\nThese criterion can be nested to created complex search queries.\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchBooleanCriterion\r\n * GrantaServerApiSearchFreeTextCriterion\r\n * GrantaServerApiSearchRecordListMemberCriterion\r\n * GrantaServerApiSearchRecordPropertyCriterion\r\n * GrantaServerApiSearchRecordReferenceCriterion\r\n * GrantaServerApiSearchRecordAncestorCriterion\r\n * GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion\r\n * GrantaServerApiSearchRecordSubsetCriterion\r\n * GrantaServerApiSearchTabularLinkingValueCriterion\r\n * GrantaServerApiSearchAttributeCriterion\r\n * GrantaServerApiSearchLocalColumnCriterion", "discriminator": { "propertyName": "type", "mapping": { @@ -57933,7 +61547,8 @@ "recordAncestorIdentities": "#/components/schemas/GrantaServerApiSearchRecordAncestorHistoryIdentitiesCriterion", "subset": "#/components/schemas/GrantaServerApiSearchRecordSubsetCriterion", "tabularLinkingValue": "#/components/schemas/GrantaServerApiSearchTabularLinkingValueCriterion", - "attribute": "#/components/schemas/GrantaServerApiSearchAttributeCriterion" + "attribute": "#/components/schemas/GrantaServerApiSearchAttributeCriterion", + "localColumn": "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion" } } }, @@ -59263,6 +62878,121 @@ "type": "string", "description": "Enum for use in the Granta.Server.Api.Search.TabularLinkingValueCriterion to control which tabular rows are returned

Possible values:

\r\n
    \r\n
  • AllRows: Return any row where the local data matches
  • \r\n
  • VisibleRows: Return rows with matching linking values, or no linking value
  • \r\n
  • ExactMatchMatchingRows: Return rows with matching linking values
  • \r\n
  • FreeTextMatchingRows: Return rows with linking values that match when using the usual free text search analyzers
  • \r\n
\r\n" }, + "GrantaServerApiSearchLocalColumnCriterion": { + "required": [ + "type" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchCriterion" + } + ], + "properties": { + "identity": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "guid": { + "type": "string", + "format": "uuid", + "nullable": true + }, + "type": { + "type": "string", + "default": "localColumn" + } + }, + "additionalProperties": false, + "description": "Base class for local column criterions. Exactly one of the local column identity or GUID must be provided.\r\n\r\nThis extends: GrantaServerApiSearchCriterion\r\n\r\nThis is one of: \r\n * GrantaServerApiSearchLocalColumnMatchesCriterion\r\n * GrantaServerApiSearchLocalColumnExistsCriterion\r\n * GrantaServerApiSearchLocalColumnNotApplicableCriterion", + "discriminator": { + "propertyName": "localColumnCriterionType", + "mapping": { + "matches": "#/components/schemas/GrantaServerApiSearchLocalColumnMatchesCriterion", + "exists": "#/components/schemas/GrantaServerApiSearchLocalColumnExistsCriterion", + "notApplicable": "#/components/schemas/GrantaServerApiSearchLocalColumnNotApplicableCriterion" + } + }, + "x-discriminator-value": "localColumn" + }, + "GrantaServerApiSearchLocalColumnExistsCriterion": { + "required": [ + "innerCriterion", + "localColumnCriterionType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion" + }, + { + "type": "object", + "properties": { + "innerCriterion": { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumExistsCriterion" + }, + "localColumnCriterionType": { + "type": "string", + "default": "exists" + } + } + } + ], + "additionalProperties": false, + "description": "Criterion for matching record where there is data on the tabular local column specified. Exactly one of the local column identity or GUID must be provided.\r\n\r\nThis extends: GrantaServerApiSearchLocalColumnCriterion", + "x-discriminator-value": "exists" + }, + "GrantaServerApiSearchLocalColumnMatchesCriterion": { + "required": [ + "innerCriterion", + "localColumnCriterionType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion" + }, + { + "type": "object", + "properties": { + "innerCriterion": { + "$ref": "#/components/schemas/GrantaServerApiSearchDatumCriterion" + }, + "localColumnCriterionType": { + "type": "string", + "default": "matches" + } + } + } + ], + "additionalProperties": false, + "description": "Criterion for a search matching values in a given tabular local column. Exactly one of the local column identity or GUID must be provided.\r\n\r\nThis extends: GrantaServerApiSearchLocalColumnCriterion", + "x-discriminator-value": "matches" + }, + "GrantaServerApiSearchLocalColumnNotApplicableCriterion": { + "required": [ + "localColumnCriterionType" + ], + "type": "object", + "allOf": [ + { + "$ref": "#/components/schemas/GrantaServerApiSearchLocalColumnCriterion" + }, + { + "type": "object", + "properties": { + "localColumnCriterionType": { + "type": "string", + "default": "notApplicable" + } + } + } + ], + "additionalProperties": false, + "description": "Criterion for matching record where there is not applicable data on the local column specified. Exactly one of the local column identity or GUID must be provided.\r\n\r\nThis extends: GrantaServerApiSearchLocalColumnCriterion", + "x-discriminator-value": "notApplicable" + }, "GrantaServerApiSearchLocalRowsBehaviour": { "enum": [ "AllRows",