diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index 890fd551..6a71de93 100644 --- a/ansys-grantami-serverapi-openapi/pyproject.toml +++ b/ansys-grantami-serverapi-openapi/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi" [project] name = "ansys-grantami-serverapi-openapi" -version = "0.1.0.dev12" +version = "0.1.0.dev17" description = "Autogenerated client library for the PyAnsys Library." authors = [ {name = "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 1a199e0a..ac01367e 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 @@ -22,16 +22,20 @@ from .api.list_permissions_api import ListPermissionsApi from .api.schema_api import SchemaApi from .api.schema___attributes_api import SchemaAttributesApi +from .api.schema___configurations_api import SchemaConfigurationsApi from .api.schema___constants_api import SchemaConstantsApi +from .api.schema___data_rules_api import SchemaDataRulesApi from .api.schema___databases_api import SchemaDatabasesApi from .api.schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi from .api.schema___discrete_types_api import SchemaDiscreteTypesApi from .api.schema___expressions_api import SchemaExpressionsApi +from .api.schema___help_files_api import SchemaHelpFilesApi from .api.schema___layout_sections_api import SchemaLayoutSectionsApi from .api.schema___layouts_api import SchemaLayoutsApi from .api.schema___parameters_api import SchemaParametersApi from .api.schema___profile_tables_api import SchemaProfileTablesApi from .api.schema___profiles_api import SchemaProfilesApi +from .api.schema___record_link_groups_api import SchemaRecordLinkGroupsApi from .api.schema___standard_names_api import SchemaStandardNamesApi from .api.schema___subsets_api import SchemaSubsetsApi from .api.schema___tables_api import SchemaTablesApi @@ -57,6 +61,8 @@ from .models.granta_server_api_aggregations_date_time_attribute_aggregation import GrantaServerApiAggregationsDateTimeAttributeAggregation from .models.granta_server_api_aggregations_discrete_text_aggregation_datum_criterion import GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion from .models.granta_server_api_aggregations_discrete_text_attribute_aggregation import GrantaServerApiAggregationsDiscreteTextAttributeAggregation +from .models.granta_server_api_aggregations_float_functional_aggregation_datum_criterion import GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion +from .models.granta_server_api_aggregations_float_functional_attribute_aggregation import GrantaServerApiAggregationsFloatFunctionalAttributeAggregation from .models.granta_server_api_aggregations_free_text_aggregation import GrantaServerApiAggregationsFreeTextAggregation from .models.granta_server_api_aggregations_free_text_aggregation_criterion import GrantaServerApiAggregationsFreeTextAggregationCriterion from .models.granta_server_api_aggregations_integer_aggregation_datum_criterion import GrantaServerApiAggregationsIntegerAggregationDatumCriterion @@ -72,8 +78,11 @@ from .models.granta_server_api_aggregations_short_text_aggregation_datum_criterion import GrantaServerApiAggregationsShortTextAggregationDatumCriterion from .models.granta_server_api_aggregations_short_text_attribute_aggregation import GrantaServerApiAggregationsShortTextAttributeAggregation from .models.granta_server_api_aggregations_term_with_count import GrantaServerApiAggregationsTermWithCount -from .models.granta_server_api_aggregations_value_with_count import GrantaServerApiAggregationsValueWithCount +from .models.granta_server_api_aggregations_value_with_count_of_system_boolean import GrantaServerApiAggregationsValueWithCountOfSystemBoolean +from .models.granta_server_api_aggregations_value_with_count_of_system_guid import GrantaServerApiAggregationsValueWithCountOfSystemGuid +from .models.granta_server_api_aggregations_value_with_count_of_system_int32 import GrantaServerApiAggregationsValueWithCountOfSystemInt32 from .models.granta_server_api_attribute_type import GrantaServerApiAttributeType +from .models.granta_server_api_data_export_attribute_to_export import GrantaServerApiDataExportAttributeToExport from .models.granta_server_api_data_export_data_export_request import GrantaServerApiDataExportDataExportRequest from .models.granta_server_api_data_export_data_export_response import GrantaServerApiDataExportDataExportResponse from .models.granta_server_api_data_export_datums_applicable_datum import GrantaServerApiDataExportDatumsApplicableDatum @@ -86,6 +95,7 @@ from .models.granta_server_api_data_export_datums_functional_datum import GrantaServerApiDataExportDatumsFunctionalDatum from .models.granta_server_api_data_export_datums_functional_grid_datum import GrantaServerApiDataExportDatumsFunctionalGridDatum from .models.granta_server_api_data_export_datums_functional_series_datum import GrantaServerApiDataExportDatumsFunctionalSeriesDatum +from .models.granta_server_api_data_export_datums_graph_decoration import GrantaServerApiDataExportDatumsGraphDecoration from .models.granta_server_api_data_export_datums_grid_point import GrantaServerApiDataExportDatumsGridPoint from .models.granta_server_api_data_export_datums_hyperlink import GrantaServerApiDataExportDatumsHyperlink from .models.granta_server_api_data_export_datums_hyperlink_datum import GrantaServerApiDataExportDatumsHyperlinkDatum @@ -102,6 +112,8 @@ from .models.granta_server_api_data_export_datums_series_point import GrantaServerApiDataExportDatumsSeriesPoint from .models.granta_server_api_data_export_datums_short_text_datum import GrantaServerApiDataExportDatumsShortTextDatum from .models.granta_server_api_data_export_export_failure import GrantaServerApiDataExportExportFailure +from .models.granta_server_api_data_export_link_attribute_to_export import GrantaServerApiDataExportLinkAttributeToExport +from .models.granta_server_api_data_export_link_attribute_type import GrantaServerApiDataExportLinkAttributeType from .models.granta_server_api_data_export_parameter_setting_defined_at import GrantaServerApiDataExportParameterSettingDefinedAt from .models.granta_server_api_data_export_properties_created_by_user_property import GrantaServerApiDataExportPropertiesCreatedByUserProperty from .models.granta_server_api_data_export_properties_created_date_property import GrantaServerApiDataExportPropertiesCreatedDateProperty @@ -124,7 +136,9 @@ from .models.granta_server_api_data_export_properties_version_number_property import GrantaServerApiDataExportPropertiesVersionNumberProperty from .models.granta_server_api_data_export_properties_version_state_property import GrantaServerApiDataExportPropertiesVersionStateProperty from .models.granta_server_api_data_export_record_with_data import GrantaServerApiDataExportRecordWithData +from .models.granta_server_api_data_export_simple_attribute_to_export import GrantaServerApiDataExportSimpleAttributeToExport 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_constant_deletion_exception import GrantaServerApiExceptionsConstantDeletionException from .models.granta_server_api_exceptions_discrete_type_deletion_exception import GrantaServerApiExceptionsDiscreteTypeDeletionException @@ -134,18 +148,18 @@ from .models.granta_server_api_exceptions_parameter_value_deletion_exception import GrantaServerApiExceptionsParameterValueDeletionException from .models.granta_server_api_exceptions_table_deletion_exception import GrantaServerApiExceptionsTableDeletionException from .models.granta_server_api_functional_datum_parameter_info import GrantaServerApiFunctionalDatumParameterInfo +from .models.granta_server_api_index_record_failure import GrantaServerApiIndexRecordFailure from .models.granta_server_api_integration_data_export_integration_data_export_request import GrantaServerApiIntegrationDataExportIntegrationDataExportRequest from .models.granta_server_api_integration_data_export_record_reference import GrantaServerApiIntegrationDataExportRecordReference -from .models.granta_server_api_integration_index_record_failure import GrantaServerApiIntegrationIndexRecordFailure from .models.granta_server_api_integration_integration_schema_status import GrantaServerApiIntegrationIntegrationSchemaStatus from .models.granta_server_api_integration_schema_attribute import GrantaServerApiIntegrationSchemaAttribute from .models.granta_server_api_integration_schema_discrete_type import GrantaServerApiIntegrationSchemaDiscreteType -from .models.granta_server_api_integration_schema_integration_schema import GrantaServerApiIntegrationSchemaIntegrationSchema +from .models.granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier from .models.granta_server_api_integration_schema_layout import GrantaServerApiIntegrationSchemaLayout from .models.granta_server_api_integration_schema_link_source_type import GrantaServerApiIntegrationSchemaLinkSourceType -from .models.granta_server_api_integration_schema_mapping import GrantaServerApiIntegrationSchemaMapping +from .models.granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier from .models.granta_server_api_integration_schema_security_groups import GrantaServerApiIntegrationSchemaSecurityGroups -from .models.granta_server_api_integration_schema_source import GrantaServerApiIntegrationSchemaSource +from .models.granta_server_api_integration_schema_source_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier from .models.granta_server_api_lists_dto_list_boolean_criterion import GrantaServerApiListsDtoListBooleanCriterion from .models.granta_server_api_lists_dto_list_criterion import GrantaServerApiListsDtoListCriterion from .models.granta_server_api_lists_dto_list_item import GrantaServerApiListsDtoListItem @@ -173,15 +187,17 @@ from .models.granta_server_api_schema_attributes_attribute import GrantaServerApiSchemaAttributesAttribute from .models.granta_server_api_schema_attributes_attribute_attribute_info import GrantaServerApiSchemaAttributesAttributeAttributeInfo from .models.granta_server_api_schema_attributes_attribute_interpolation_method import GrantaServerApiSchemaAttributesAttributeInterpolationMethod -from .models.granta_server_api_schema_attributes_attribute_parameter import GrantaServerApiSchemaAttributesAttributeParameter from .models.granta_server_api_schema_attributes_attribute_scale_type import GrantaServerApiSchemaAttributesAttributeScaleType from .models.granta_server_api_schema_attributes_attribute_threshold_type import GrantaServerApiSchemaAttributesAttributeThresholdType +from .models.granta_server_api_schema_attributes_attribute_validate_response import GrantaServerApiSchemaAttributesAttributeValidateResponse from .models.granta_server_api_schema_attributes_attributes_info import GrantaServerApiSchemaAttributesAttributesInfo from .models.granta_server_api_schema_attributes_date_time_attribute import GrantaServerApiSchemaAttributesDateTimeAttribute from .models.granta_server_api_schema_attributes_discrete_attribute import GrantaServerApiSchemaAttributesDiscreteAttribute from .models.granta_server_api_schema_attributes_discrete_functional_attribute import GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute +from .models.granta_server_api_schema_attributes_discrete_functional_attribute_parameter import GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter from .models.granta_server_api_schema_attributes_file_attribute import GrantaServerApiSchemaAttributesFileAttribute from .models.granta_server_api_schema_attributes_float_functional_attribute import GrantaServerApiSchemaAttributesFloatFunctionalAttribute +from .models.granta_server_api_schema_attributes_float_functional_attribute_parameter import GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter from .models.granta_server_api_schema_attributes_hyperlink_attribute import GrantaServerApiSchemaAttributesHyperlinkAttribute from .models.granta_server_api_schema_attributes_integer_attribute import GrantaServerApiSchemaAttributesIntegerAttribute from .models.granta_server_api_schema_attributes_logical_attribute import GrantaServerApiSchemaAttributesLogicalAttribute @@ -194,8 +210,34 @@ from .models.granta_server_api_schema_attributes_short_text_attribute import GrantaServerApiSchemaAttributesShortTextAttribute from .models.granta_server_api_schema_attributes_tabular_attribute import GrantaServerApiSchemaAttributesTabularAttribute from .models.granta_server_api_schema_attributes_tabular_attribute_target import GrantaServerApiSchemaAttributesTabularAttributeTarget -from .models.granta_server_api_schema_constant import GrantaServerApiSchemaConstant -from .models.granta_server_api_schema_constants_info import GrantaServerApiSchemaConstantsInfo +from .models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_date_time_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_discrete_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_file_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_integer_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_logical_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_long_text_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_picture_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_point_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_range_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_short_text_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute +from .models.granta_server_api_schema_attributes_update_attributes_update_tabular_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute +from .models.granta_server_api_schema_attributes_update_float_functional_attribute_parameter import GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter +from .models.granta_server_api_schema_attributes_validate_attribute_request import GrantaServerApiSchemaAttributesValidateAttributeRequest +from .models.granta_server_api_schema_configurations_configuration import GrantaServerApiSchemaConfigurationsConfiguration +from .models.granta_server_api_schema_configurations_configurations_info import GrantaServerApiSchemaConfigurationsConfigurationsInfo +from .models.granta_server_api_schema_configurations_create_configuration import GrantaServerApiSchemaConfigurationsCreateConfiguration +from .models.granta_server_api_schema_configurations_update_configuration import GrantaServerApiSchemaConfigurationsUpdateConfiguration +from .models.granta_server_api_schema_constants_constant import GrantaServerApiSchemaConstantsConstant +from .models.granta_server_api_schema_constants_constants_info import GrantaServerApiSchemaConstantsConstantsInfo +from .models.granta_server_api_schema_constants_create_constant import GrantaServerApiSchemaConstantsCreateConstant +from .models.granta_server_api_schema_constants_update_constant import GrantaServerApiSchemaConstantsUpdateConstant +from .models.granta_server_api_schema_data_rule import GrantaServerApiSchemaDataRule +from .models.granta_server_api_schema_data_rules_info import GrantaServerApiSchemaDataRulesInfo from .models.granta_server_api_schema_database import GrantaServerApiSchemaDatabase from .models.granta_server_api_schema_database_status import GrantaServerApiSchemaDatabaseStatus from .models.granta_server_api_schema_databases_info import GrantaServerApiSchemaDatabasesInfo @@ -205,6 +247,13 @@ from .models.granta_server_api_schema_discrete_values_info import GrantaServerApiSchemaDiscreteValuesInfo from .models.granta_server_api_schema_expression import GrantaServerApiSchemaExpression from .models.granta_server_api_schema_expressions_info import GrantaServerApiSchemaExpressionsInfo +from .models.granta_server_api_schema_files_create_folder import GrantaServerApiSchemaFilesCreateFolder +from .models.granta_server_api_schema_files_file_header import GrantaServerApiSchemaFilesFileHeader +from .models.granta_server_api_schema_files_files_info import GrantaServerApiSchemaFilesFilesInfo +from .models.granta_server_api_schema_files_folder import GrantaServerApiSchemaFilesFolder +from .models.granta_server_api_schema_files_folders_info import GrantaServerApiSchemaFilesFoldersInfo +from .models.granta_server_api_schema_files_move_folder import GrantaServerApiSchemaFilesMoveFolder +from .models.granta_server_api_schema_files_update_folder import GrantaServerApiSchemaFilesUpdateFolder from .models.granta_server_api_schema_layouts_full_layout_section import GrantaServerApiSchemaLayoutsFullLayoutSection from .models.granta_server_api_schema_layouts_layout import GrantaServerApiSchemaLayoutsLayout from .models.granta_server_api_schema_layouts_layout_attribute_item import GrantaServerApiSchemaLayoutsLayoutAttributeItem @@ -225,6 +274,7 @@ from .models.granta_server_api_schema_layouts_new_layout_item_type import GrantaServerApiSchemaLayoutsNewLayoutItemType from .models.granta_server_api_schema_layouts_new_layout_record_link_item import GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem from .models.granta_server_api_schema_layouts_new_layout_smart_link_item import GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem +from .models.granta_server_api_schema_layouts_update_layout import GrantaServerApiSchemaLayoutsUpdateLayout from .models.granta_server_api_schema_parameters_continuous_range import GrantaServerApiSchemaParametersContinuousRange from .models.granta_server_api_schema_parameters_discrete_parameter import GrantaServerApiSchemaParametersDiscreteParameter from .models.granta_server_api_schema_parameters_discrete_parameter_content import GrantaServerApiSchemaParametersDiscreteParameterContent @@ -242,19 +292,39 @@ from .models.granta_server_api_schema_parameters_parameter_value_type import GrantaServerApiSchemaParametersParameterValueType from .models.granta_server_api_schema_parameters_parameter_values_info import GrantaServerApiSchemaParametersParameterValuesInfo from .models.granta_server_api_schema_parameters_parameters_info import GrantaServerApiSchemaParametersParametersInfo +from .models.granta_server_api_schema_parameters_update_discrete_parameter import GrantaServerApiSchemaParametersUpdateDiscreteParameter +from .models.granta_server_api_schema_parameters_update_numeric_parameter import GrantaServerApiSchemaParametersUpdateNumericParameter +from .models.granta_server_api_schema_parameters_update_parameter import GrantaServerApiSchemaParametersUpdateParameter from .models.granta_server_api_schema_profile import GrantaServerApiSchemaProfile from .models.granta_server_api_schema_profile_table import GrantaServerApiSchemaProfileTable from .models.granta_server_api_schema_profile_tables_info import GrantaServerApiSchemaProfileTablesInfo +from .models.granta_server_api_schema_record_link_groups_attribute_link_pair import GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair +from .models.granta_server_api_schema_record_link_groups_cross_database_record_link_group import GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_dynamic_record_link_group import GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_link_info import GrantaServerApiSchemaRecordLinkGroupsLinkInfo +from .models.granta_server_api_schema_record_link_groups_link_target import GrantaServerApiSchemaRecordLinkGroupsLinkTarget +from .models.granta_server_api_schema_record_link_groups_record_link_group import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_record_link_group_type import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType +from .models.granta_server_api_schema_record_link_groups_record_link_groups_info import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo +from .models.granta_server_api_schema_record_link_groups_referential_integrity_model import GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel +from .models.granta_server_api_schema_record_link_groups_static_record_link_group import GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_update_cross_database_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_update_dynamic_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_update_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup +from .models.granta_server_api_schema_record_link_groups_update_static_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup from .models.granta_server_api_schema_slim_entities_slim_attribute import GrantaServerApiSchemaSlimEntitiesSlimAttribute +from .models.granta_server_api_schema_slim_entities_slim_configuration import GrantaServerApiSchemaSlimEntitiesSlimConfiguration from .models.granta_server_api_schema_slim_entities_slim_constant import GrantaServerApiSchemaSlimEntitiesSlimConstant from .models.granta_server_api_schema_slim_entities_slim_database import GrantaServerApiSchemaSlimEntitiesSlimDatabase from .models.granta_server_api_schema_slim_entities_slim_expression import GrantaServerApiSchemaSlimEntitiesSlimExpression +from .models.granta_server_api_schema_slim_entities_slim_file import GrantaServerApiSchemaSlimEntitiesSlimFile from .models.granta_server_api_schema_slim_entities_slim_layout import GrantaServerApiSchemaSlimEntitiesSlimLayout from .models.granta_server_api_schema_slim_entities_slim_layout_section import GrantaServerApiSchemaSlimEntitiesSlimLayoutSection from .models.granta_server_api_schema_slim_entities_slim_named_entity import GrantaServerApiSchemaSlimEntitiesSlimNamedEntity from .models.granta_server_api_schema_slim_entities_slim_objects import GrantaServerApiSchemaSlimEntitiesSlimObjects from .models.granta_server_api_schema_slim_entities_slim_profile import GrantaServerApiSchemaSlimEntitiesSlimProfile from .models.granta_server_api_schema_slim_entities_slim_profile_table import GrantaServerApiSchemaSlimEntitiesSlimProfileTable +from .models.granta_server_api_schema_slim_entities_slim_record_link_group import GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup from .models.granta_server_api_schema_slim_entities_slim_subset import GrantaServerApiSchemaSlimEntitiesSlimSubset from .models.granta_server_api_schema_slim_entities_slim_table import GrantaServerApiSchemaSlimEntitiesSlimTable from .models.granta_server_api_schema_slim_entities_slim_unit import GrantaServerApiSchemaSlimEntitiesSlimUnit @@ -268,10 +338,20 @@ from .models.granta_server_api_schema_tabular_columns_linked_attribute_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn from .models.granta_server_api_schema_tabular_columns_linked_column_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn from .models.granta_server_api_schema_tabular_columns_linked_record_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn -from .models.granta_server_api_schema_tabular_columns_local_tabular_column import GrantaServerApiSchemaTabularColumnsLocalTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_date_time_tabular_column import GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_discrete_tabular_column import GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_file_tabular_column import GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column import GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_integer_tabular_column import GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_logical_tabular_column import GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_long_text_tabular_column import GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_picture_tabular_column import GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_point_tabular_column import GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_range_tabular_column import GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn +from .models.granta_server_api_schema_tabular_columns_local_short_text_tabular_column import GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn from .models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn +from .models.granta_server_api_schema_tabular_columns_tabular_column_dto_type import GrantaServerApiSchemaTabularColumnsTabularColumnDtoType from .models.granta_server_api_schema_tabular_columns_tabular_column_roll_up_type import GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType -from .models.granta_server_api_schema_tabular_columns_tabular_column_type import GrantaServerApiSchemaTabularColumnsTabularColumnType from .models.granta_server_api_schema_tabular_columns_unavailable_tabular_column import GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn from .models.granta_server_api_schema_units_unit import GrantaServerApiSchemaUnitsUnit from .models.granta_server_api_schema_units_unit_equivalent import GrantaServerApiSchemaUnitsUnitEquivalent @@ -281,19 +361,31 @@ from .models.granta_server_api_schema_units_unit_systems_info import GrantaServerApiSchemaUnitsUnitSystemsInfo from .models.granta_server_api_schema_units_unit_usage import GrantaServerApiSchemaUnitsUnitUsage from .models.granta_server_api_schema_units_units_info import GrantaServerApiSchemaUnitsUnitsInfo +from .models.granta_server_api_schema_units_update_unit_system import GrantaServerApiSchemaUnitsUpdateUnitSystem +from .models.granta_server_api_schema_update_data_rule import GrantaServerApiSchemaUpdateDataRule +from .models.granta_server_api_schema_update_database import GrantaServerApiSchemaUpdateDatabase +from .models.granta_server_api_schema_update_expression import GrantaServerApiSchemaUpdateExpression +from .models.granta_server_api_schema_update_profile import GrantaServerApiSchemaUpdateProfile +from .models.granta_server_api_schema_update_profile_table import GrantaServerApiSchemaUpdateProfileTable +from .models.granta_server_api_schema_update_subset import GrantaServerApiSchemaUpdateSubset +from .models.granta_server_api_schema_update_table import GrantaServerApiSchemaUpdateTable from .models.granta_server_api_search_attribute_criterion import GrantaServerApiSearchAttributeCriterion from .models.granta_server_api_search_attribute_exists_criterion import GrantaServerApiSearchAttributeExistsCriterion from .models.granta_server_api_search_attribute_matches_criterion import GrantaServerApiSearchAttributeMatchesCriterion from .models.granta_server_api_search_attribute_not_applicable_criterion import GrantaServerApiSearchAttributeNotApplicableCriterion from .models.granta_server_api_search_attribute_sort_criterion import GrantaServerApiSearchAttributeSortCriterion from .models.granta_server_api_search_boolean_criterion import GrantaServerApiSearchBooleanCriterion -from .models.granta_server_api_search_boost import GrantaServerApiSearchBoost +from .models.granta_server_api_search_boost_by_guid import GrantaServerApiSearchBoostByGuid +from .models.granta_server_api_search_boost_by_identity import GrantaServerApiSearchBoostByIdentity from .models.granta_server_api_search_criterion import GrantaServerApiSearchCriterion from .models.granta_server_api_search_date_time_datum_criterion import GrantaServerApiSearchDateTimeDatumCriterion from .models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .models.granta_server_api_search_datum_exists_criterion import GrantaServerApiSearchDatumExistsCriterion from .models.granta_server_api_search_discrete_functional_range_datum_criterion import GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion from .models.granta_server_api_search_discrete_functional_values_datum_criterion import GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion +from .models.granta_server_api_search_discrete_guid_datum_criterion import GrantaServerApiSearchDiscreteGuidDatumCriterion +from .models.granta_server_api_search_discrete_guid_values_datum_criterion import GrantaServerApiSearchDiscreteGuidValuesDatumCriterion +from .models.granta_server_api_search_discrete_identity_datum_criterion import GrantaServerApiSearchDiscreteIdentityDatumCriterion from .models.granta_server_api_search_discrete_identity_values_datum_criterion import GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion from .models.granta_server_api_search_discrete_parameter_name_constraint import GrantaServerApiSearchDiscreteParameterNameConstraint from .models.granta_server_api_search_discrete_parameter_value_constraint import GrantaServerApiSearchDiscreteParameterValueConstraint @@ -306,9 +398,10 @@ from .models.granta_server_api_search_float_functional_graph_datum_criterion import GrantaServerApiSearchFloatFunctionalGraphDatumCriterion from .models.granta_server_api_search_free_text_criterion import GrantaServerApiSearchFreeTextCriterion from .models.granta_server_api_search_hyperlink_datum_criterion import GrantaServerApiSearchHyperlinkDatumCriterion +from .models.granta_server_api_search_index_status import GrantaServerApiSearchIndexStatus from .models.granta_server_api_search_integer_datum_criterion import GrantaServerApiSearchIntegerDatumCriterion +from .models.granta_server_api_search_link_attribute_type import GrantaServerApiSearchLinkAttributeType from .models.granta_server_api_search_link_datum_criterion import GrantaServerApiSearchLinkDatumCriterion -from .models.granta_server_api_search_link_datum_type import GrantaServerApiSearchLinkDatumType from .models.granta_server_api_search_linking_value_match_behaviour import GrantaServerApiSearchLinkingValueMatchBehaviour from .models.granta_server_api_search_logical_datum_criterion import GrantaServerApiSearchLogicalDatumCriterion from .models.granta_server_api_search_long_sorting_value import GrantaServerApiSearchLongSortingValue @@ -335,25 +428,11 @@ from .models.granta_server_api_search_short_text_datum_criterion import GrantaServerApiSearchShortTextDatumCriterion from .models.granta_server_api_search_sort_criterion import GrantaServerApiSearchSortCriterion from .models.granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection +from .models.granta_server_api_search_sort_type import GrantaServerApiSearchSortType from .models.granta_server_api_search_sorting_value import GrantaServerApiSearchSortingValue from .models.granta_server_api_search_string_sorting_value import GrantaServerApiSearchStringSortingValue from .models.granta_server_api_search_tabular_linking_value_criterion import GrantaServerApiSearchTabularLinkingValueCriterion +from .models.granta_server_api_search_text_match_behaviour import GrantaServerApiSearchTextMatchBehaviour from .models.granta_server_api_version_state import GrantaServerApiVersionState -from .models.microsoft_asp_net_core_json_patch_operations_operation import MicrosoftAspNetCoreJsonPatchOperationsOperation -from .models.one_of_granta_server_api_aggregations_attribute_aggregation import OneOfGrantaServerApiAggregationsAttributeAggregation -from .models.one_of_granta_server_api_aggregations_attribute_aggregation_criterion import OneOfGrantaServerApiAggregationsAttributeAggregationCriterion -from .models.one_of_granta_server_api_aggregations_attribute_value_aggregation import OneOfGrantaServerApiAggregationsAttributeValueAggregation -from .models.one_of_granta_server_api_data_export_datums_applicable_datum import OneOfGrantaServerApiDataExportDatumsApplicableDatum -from .models.one_of_granta_server_api_data_export_datums_functional_datum import OneOfGrantaServerApiDataExportDatumsFunctionalDatum -from .models.one_of_granta_server_api_schema_attributes_attribute import OneOfGrantaServerApiSchemaAttributesAttribute -from .models.one_of_granta_server_api_schema_layouts_layout_item import OneOfGrantaServerApiSchemaLayoutsLayoutItem -from .models.one_of_granta_server_api_schema_layouts_layout_section import OneOfGrantaServerApiSchemaLayoutsLayoutSection -from .models.one_of_granta_server_api_schema_layouts_new_layout_item import OneOfGrantaServerApiSchemaLayoutsNewLayoutItem -from .models.one_of_granta_server_api_schema_parameters_parameter import OneOfGrantaServerApiSchemaParametersParameter -from .models.one_of_granta_server_api_schema_parameters_parameter_content import OneOfGrantaServerApiSchemaParametersParameterContent -from .models.one_of_granta_server_api_schema_parameters_parameter_value import OneOfGrantaServerApiSchemaParametersParameterValue -from .models.one_of_granta_server_api_schema_tabular_columns_tabular_column import OneOfGrantaServerApiSchemaTabularColumnsTabularColumn -from .models.one_of_granta_server_api_search_attribute_criterion import OneOfGrantaServerApiSearchAttributeCriterion -from .models.one_of_granta_server_api_search_parameter_constraint import OneOfGrantaServerApiSearchParameterConstraint -from .models.one_of_granta_server_api_search_sort_criterion import OneOfGrantaServerApiSearchSortCriterion +from .models.json_patch_document import JsonPatchDocument from .models.system_net_http_status_code import SystemNetHttpStatusCode diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py index b97ec5f5..a2a70aac 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 @@ -13,16 +13,20 @@ from .list_permissions_api import ListPermissionsApi from .schema_api import SchemaApi from .schema___attributes_api import SchemaAttributesApi +from .schema___configurations_api import SchemaConfigurationsApi from .schema___constants_api import SchemaConstantsApi +from .schema___data_rules_api import SchemaDataRulesApi from .schema___databases_api import SchemaDatabasesApi from .schema___discrete_types___discrete_values_api import SchemaDiscreteTypesDiscreteValuesApi from .schema___discrete_types_api import SchemaDiscreteTypesApi from .schema___expressions_api import SchemaExpressionsApi +from .schema___help_files_api import SchemaHelpFilesApi from .schema___layout_sections_api import SchemaLayoutSectionsApi from .schema___layouts_api import SchemaLayoutsApi from .schema___parameters_api import SchemaParametersApi from .schema___profile_tables_api import SchemaProfileTablesApi from .schema___profiles_api import SchemaProfilesApi +from .schema___record_link_groups_api import SchemaRecordLinkGroupsApi from .schema___standard_names_api import SchemaStandardNamesApi from .schema___subsets_api import SchemaSubsetsApi from .schema___tables_api import SchemaTablesApi diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py index 2569e201..a85ece8c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/database_api.py @@ -28,7 +28,7 @@ def v1alpha_databases_database_key_standard_namesgenerate_integration_schema_pos :param str database_key: (required) :param list[str] body: - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_standard_namesgenerate_integration_schema_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -41,7 +41,7 @@ def v1alpha_databases_database_key_standard_namesgenerate_integration_schema_pos :param str database_key: (required) :param list[str] body: - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'body'] # noqa: E501 @@ -90,7 +90,7 @@ def v1alpha_databases_database_key_standard_namesgenerate_integration_schema_pos auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -117,7 +117,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_identityg :param str database_key: (required) :param int table_identity: (required) :param int layout_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_identity_layout_layout_identitygenerate_integration_schema_get_with_http_info(database_key, table_identity, layout_identity, **kwargs) # noqa: E501 @@ -131,7 +131,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_identityg :param str database_key: (required) :param int table_identity: (required) :param int layout_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_identity', 'layout_identity'] # noqa: E501 @@ -186,7 +186,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_identityg auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -213,7 +213,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegener :param str database_key: (required) :param int table_identity: (required) :param str layout_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_identity_layout_layout_namegenerate_integration_schema_get_with_http_info(database_key, table_identity, layout_name, **kwargs) # noqa: E501 @@ -227,7 +227,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegener :param str database_key: (required) :param int table_identity: (required) :param str layout_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_identity', 'layout_name'] # noqa: E501 @@ -282,7 +282,7 @@ def v1alpha_databases_database_key_tables_table_identity_layout_layout_namegener auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -308,7 +308,7 @@ def v1alpha_databases_database_key_tables_table_identitygenerate_integration_sch :param str database_key: (required) :param int table_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_identitygenerate_integration_schema_get_with_http_info(database_key, table_identity, **kwargs) # noqa: E501 @@ -321,7 +321,7 @@ def v1alpha_databases_database_key_tables_table_identitygenerate_integration_sch :param str database_key: (required) :param int table_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_identity'] # noqa: E501 @@ -370,7 +370,7 @@ def v1alpha_databases_database_key_tables_table_identitygenerate_integration_sch auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -397,7 +397,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_identitygener :param str database_key: (required) :param str table_name: (required) :param int layout_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_name_layout_layout_identitygenerate_integration_schema_get_with_http_info(database_key, table_name, layout_identity, **kwargs) # noqa: E501 @@ -411,7 +411,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_identitygener :param str database_key: (required) :param str table_name: (required) :param int layout_identity: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_name', 'layout_identity'] # noqa: E501 @@ -466,7 +466,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_identitygener auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -493,7 +493,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_ :param str database_key: (required) :param str table_name: (required) :param str layout_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_integration_schema_get_with_http_info(database_key, table_name, layout_name, **kwargs) # noqa: E501 @@ -507,7 +507,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_ :param str database_key: (required) :param str table_name: (required) :param str layout_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_name', 'layout_name'] # noqa: E501 @@ -562,7 +562,7 @@ def v1alpha_databases_database_key_tables_table_name_layout_layout_namegenerate_ auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -588,7 +588,7 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ :param str database_key: (required) :param str table_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_get_with_http_info(database_key, table_name, **kwargs) # noqa: E501 @@ -601,7 +601,7 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ :param str database_key: (required) :param str table_name: (required) - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['database_key', 'table_name'] # noqa: E501 @@ -650,7 +650,7 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } @@ -669,13 +669,95 @@ def v1alpha_databases_database_key_tables_table_namegenerate_integration_schema_ collection_formats=collection_formats, response_type_map=response_type_map) + def v1alpha_databases_database_keysearch_index_status_get(self, database_key, **kwargs): # noqa: E501 + """v1alpha_databases_database_keysearch_index_status_get # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param bool include_diagnostics: + :return: GrantaServerApiSearchIndexStatus + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_keysearch_index_status_get_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_keysearch_index_status_get_with_http_info(self, database_key, **kwargs): # noqa: E501 + """v1alpha_databases_database_keysearch_index_status_get # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param bool include_diagnostics: + :return: GrantaServerApiSearchIndexStatus + """ + + all_params = ['database_key', 'include_diagnostics'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_keysearch_index_status_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_keysearch_index_status_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + query_params = [] + if 'include_diagnostics' in params: + query_params.append(('include-diagnostics', params['include_diagnostics'])) # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSearchIndexStatus', + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}:search-index-status', '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_standard_namesgenerate_integration_schema_post(self, **kwargs): # noqa: E501 """Generate an integration schema with attributes for each provided standard name. This will include attribute from all loaded databases for which the user is an Admin. # noqa: E501 This method makes a synchronous HTTP request. :param list[str] body: - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_standard_namesgenerate_integration_schema_post_with_http_info(**kwargs) # noqa: E501 @@ -687,7 +769,7 @@ def v1alpha_standard_namesgenerate_integration_schema_post_with_http_info(self, This method makes a synchronous HTTP request. :param list[str] body: - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['body'] # noqa: E501 @@ -730,7 +812,7 @@ def v1alpha_standard_namesgenerate_integration_schema_post_with_http_info(self, auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 403: None, 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/integration_api.py index 34db2960..91e426f9 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 @@ -96,7 +96,7 @@ def v1alpha_integration_schemas_post(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request. - :param GrantaServerApiIntegrationSchemaIntegrationSchema body: + :param GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier body: :return: None """ kwargs['_return_http_data_only'] = True @@ -108,7 +108,7 @@ def v1alpha_integration_schemas_post_with_http_info(self, **kwargs): # noqa: E5 This method makes a synchronous HTTP request. - :param GrantaServerApiIntegrationSchemaIntegrationSchema body: + :param GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier body: :return: None """ @@ -332,7 +332,7 @@ def v1alpha_integration_schemas_schema_get(self, schema, **kwargs): # noqa: E50 :param str schema: The schema name. (required) :param bool include_implicit_attributes: Whether to add in the schema attributes derived from certain record properties (e.g. Record Name) that are implicitly in all integration schemas. False by default. - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_integration_schemas_schema_get_with_http_info(schema, **kwargs) # noqa: E501 @@ -345,7 +345,7 @@ def v1alpha_integration_schemas_schema_get_with_http_info(self, schema, **kwargs :param str schema: The schema name. (required) :param bool include_implicit_attributes: Whether to add in the schema attributes derived from certain record properties (e.g. Record Name) that are implicitly in all integration schemas. False by default. - :return: GrantaServerApiIntegrationSchemaIntegrationSchema + :return: GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier """ all_params = ['schema', 'include_implicit_attributes'] # noqa: E501 @@ -390,7 +390,7 @@ def v1alpha_integration_schemas_schema_get_with_http_info(self, schema, **kwargs auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiIntegrationSchemaIntegrationSchema', + 200: 'GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier', 404: None, } @@ -414,7 +414,7 @@ def v1alpha_integration_schemas_schema_put(self, schema, **kwargs): # noqa: E50 This method makes a synchronous HTTP request. :param str schema: (required) - :param GrantaServerApiIntegrationSchemaIntegrationSchema body: + :param GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier body: :return: None """ kwargs['_return_http_data_only'] = True @@ -427,7 +427,7 @@ def v1alpha_integration_schemas_schema_put_with_http_info(self, schema, **kwargs This method makes a synchronous HTTP request. :param str schema: (required) - :param GrantaServerApiIntegrationSchemaIntegrationSchema body: + :param GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier body: :return: None """ @@ -499,7 +499,7 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table :param str schema: (required) :param str database_key: (required) :param int table_identity: (required) - :return: list[GrantaServerApiIntegrationSchemaSource] + :return: list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_integration_schemas_schema_sources_database_database_key_table_table_identity_get_with_http_info(schema, database_key, table_identity, **kwargs) # noqa: E501 @@ -513,7 +513,7 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table :param str schema: (required) :param str database_key: (required) :param int table_identity: (required) - :return: list[GrantaServerApiIntegrationSchemaSource] + :return: list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] """ all_params = ['schema', 'database_key', 'table_identity'] # noqa: E501 @@ -568,7 +568,7 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table auth_settings = [] # noqa: E501 response_type_map = { - 200: 'list[GrantaServerApiIntegrationSchemaSource]', + 200: 'list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]', 404: None, } @@ -586,28 +586,30 @@ def v1alpha_integration_schemas_schema_sources_database_database_key_table_table collection_formats=collection_formats, response_type_map=response_type_map) - def v1alpha_integration_schemas_schemastatus_get(self, schema, **kwargs): # noqa: E501 - """Returns the status of the integration schema, including whether each referenced database has been successfully loaded into the schemas search index. # noqa: E501 + def v1alpha_integration_schemas_schemasearch_index_status_get(self, schema, **kwargs): # noqa: E501 + """v1alpha_integration_schemas_schemasearch_index_status_get # noqa: E501 This method makes a synchronous HTTP request. :param str schema: (required) + :param bool include_diagnostics: :return: GrantaServerApiIntegrationIntegrationSchemaStatus """ kwargs['_return_http_data_only'] = True - (data) = self.v1alpha_integration_schemas_schemastatus_get_with_http_info(schema, **kwargs) # noqa: E501 + (data) = self.v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info(schema, **kwargs) # noqa: E501 return data - def v1alpha_integration_schemas_schemastatus_get_with_http_info(self, schema, **kwargs): # noqa: E501 - """Returns the status of the integration schema, including whether each referenced database has been successfully loaded into the schemas search index. # noqa: E501 + def v1alpha_integration_schemas_schemasearch_index_status_get_with_http_info(self, schema, **kwargs): # noqa: E501 + """v1alpha_integration_schemas_schemasearch_index_status_get # noqa: E501 This method makes a synchronous HTTP request. :param str schema: (required) + :param bool include_diagnostics: :return: GrantaServerApiIntegrationIntegrationSchemaStatus """ - all_params = ['schema'] # noqa: E501 + all_params = ['schema', 'include_diagnostics'] # noqa: E501 all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -616,14 +618,14 @@ def v1alpha_integration_schemas_schemastatus_get_with_http_info(self, schema, ** for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( - "Got an unexpected keyword argument '{}' to method v1alpha_integration_schemas_schemastatus_get".format(key) + "Got an unexpected keyword argument '{}' to method v1alpha_integration_schemas_schemasearch_index_status_get".format(key) ) params[key] = val del params['kwargs'] # verify the required parameter 'schema' is set if ('schema' not in params or params['schema'] is None): - raise ValueError("Missing the required parameter `schema` when calling `v1alpha_integration_schemas_schemastatus_get`") # noqa: E501 + raise ValueError("Missing the required parameter `schema` when calling `v1alpha_integration_schemas_schemasearch_index_status_get`") # noqa: E501 collection_formats = {} @@ -632,6 +634,8 @@ def v1alpha_integration_schemas_schemastatus_get_with_http_info(self, schema, ** path_params['schema'] = params['schema'] # noqa: E501 query_params = [] + if 'include_diagnostics' in params: + query_params.append(('include-diagnostics', params['include_diagnostics'])) # noqa: E501 header_params = {} @@ -648,11 +652,10 @@ def v1alpha_integration_schemas_schemastatus_get_with_http_info(self, schema, ** response_type_map = { 200: 'GrantaServerApiIntegrationIntegrationSchemaStatus', - 404: None, } return self.api_client.call_api( - '/v1alpha/integration-schemas/{schema}:status', 'GET', + '/v1alpha/integration-schemas/{schema}:search-index-status', 'GET', path_params, query_params, header_params, @@ -665,26 +668,28 @@ def v1alpha_integration_schemas_schemastatus_get_with_http_info(self, schema, ** collection_formats=collection_formats, response_type_map=response_type_map) - def v1alpha_integration_schemasstatus_get(self, **kwargs): # noqa: E501 + def v1alpha_integration_schemassearch_index_status_get(self, **kwargs): # noqa: E501 """Returns the status of all available integration schemas. # noqa: E501 This method makes a synchronous HTTP request. + :param bool include_diagnostics: :return: dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus) """ kwargs['_return_http_data_only'] = True - (data) = self.v1alpha_integration_schemasstatus_get_with_http_info(**kwargs) # noqa: E501 + (data) = self.v1alpha_integration_schemassearch_index_status_get_with_http_info(**kwargs) # noqa: E501 return data - def v1alpha_integration_schemasstatus_get_with_http_info(self, **kwargs): # noqa: E501 + def v1alpha_integration_schemassearch_index_status_get_with_http_info(self, **kwargs): # noqa: E501 """Returns the status of all available integration schemas. # noqa: E501 This method makes a synchronous HTTP request. + :param bool include_diagnostics: :return: dict(str, GrantaServerApiIntegrationIntegrationSchemaStatus) """ - all_params = [] # noqa: E501 + all_params = ['include_diagnostics'] # noqa: E501 all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -693,7 +698,7 @@ def v1alpha_integration_schemasstatus_get_with_http_info(self, **kwargs): # noq for key, val in params['kwargs'].items(): if key not in all_params: raise TypeError( - "Got an unexpected keyword argument '{}' to method v1alpha_integration_schemasstatus_get".format(key) + "Got an unexpected keyword argument '{}' to method v1alpha_integration_schemassearch_index_status_get".format(key) ) params[key] = val del params['kwargs'] @@ -703,6 +708,8 @@ def v1alpha_integration_schemasstatus_get_with_http_info(self, **kwargs): # noq path_params = {} query_params = [] + if 'include_diagnostics' in params: + query_params.append(('include-diagnostics', params['include_diagnostics'])) # noqa: E501 header_params = {} @@ -722,7 +729,7 @@ def v1alpha_integration_schemasstatus_get_with_http_info(self, **kwargs): # noq } return self.api_client.call_api( - '/v1alpha/integration-schemas:status', 'GET', + '/v1alpha/integration-schemas:search-index-status', 'GET', path_params, query_params, header_params, 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 088af5c8..083a595f 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 @@ -318,12 +318,12 @@ def api_v1_lists_list_list_identifier_get_with_http_info(self, list_identifier, response_type_map=response_type_map) def api_v1_lists_list_list_identifier_patch(self, list_identifier, **kwargs): # noqa: E501 - """Performs a partial update on the properties of a list. # noqa: E501 + """Performs a partial update on the properties of a list. Only replace operations on name, description or notes are supported. # noqa: E501 This method makes a synchronous HTTP request. :param str list_identifier: (required) - :param list[MicrosoftAspNetCoreJsonPatchOperationsOperation] body: + :param list[JsonPatchDocument] body: :return: GrantaServerApiListsDtoRecordListHeader """ kwargs['_return_http_data_only'] = True @@ -331,12 +331,12 @@ def api_v1_lists_list_list_identifier_patch(self, list_identifier, **kwargs): # return data def api_v1_lists_list_list_identifier_patch_with_http_info(self, list_identifier, **kwargs): # noqa: E501 - """Performs a partial update on the properties of a list. # noqa: E501 + """Performs a partial update on the properties of a list. Only replace operations on name, description or notes are supported. # noqa: E501 This method makes a synchronous HTTP request. :param str list_identifier: (required) - :param list[MicrosoftAspNetCoreJsonPatchOperationsOperation] body: + :param list[JsonPatchDocument] body: :return: GrantaServerApiListsDtoRecordListHeader """ @@ -482,7 +482,7 @@ def api_v1_lists_list_list_identifier_publish_post_with_http_info(self, list_ide response_type_map=response_type_map) def api_v1_lists_list_list_identifier_put(self, list_identifier, **kwargs): # noqa: E501 - """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, create it (empty) # noqa: E501 + """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 # noqa: E501 This method makes a synchronous HTTP request. @@ -495,7 +495,7 @@ def api_v1_lists_list_list_identifier_put(self, list_identifier, **kwargs): # n return data def api_v1_lists_list_list_identifier_put_with_http_info(self, list_identifier, **kwargs): # noqa: E501 - """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, create it (empty) # noqa: E501 + """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 # noqa: E501 This method makes a synchronous HTTP request. 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 d94ae8e5..39f606b3 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 @@ -332,7 +332,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_p :param str database_key: (required) :param str table_guid: (required) :param str attribute_guid: (required) - :param GrantaServerApiSchemaAttributesAttribute body: + :param GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute body: :return: GrantaServerApiSchemaAttributesAttribute """ kwargs['_return_http_data_only'] = True @@ -347,7 +347,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_p :param str database_key: (required) :param str table_guid: (required) :param str attribute_guid: (required) - :param GrantaServerApiSchemaAttributesAttribute body: + :param GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute body: :return: GrantaServerApiSchemaAttributesAttribute """ @@ -429,6 +429,111 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guid_p collection_formats=collection_formats, response_type_map=response_type_map) + def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post(self, database_key, table_guid, attribute_guid, **kwargs): # noqa: E501 + """Validates the provided value against the attributes data rules. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str attribute_guid: (required) + :param GrantaServerApiSchemaAttributesValidateAttributeRequest body: + :return: GrantaServerApiSchemaAttributesAttributeValidateResponse + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post_with_http_info(database_key, table_guid, attribute_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post_with_http_info(self, database_key, table_guid, attribute_guid, **kwargs): # noqa: E501 + """Validates the provided value against the attributes data rules. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str attribute_guid: (required) + :param GrantaServerApiSchemaAttributesValidateAttributeRequest body: + :return: GrantaServerApiSchemaAttributesAttributeValidateResponse + """ + + all_params = ['database_key', 'table_guid', 'attribute_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post`") # noqa: E501 + # verify the required parameter 'attribute_guid' is set + if ('attribute_guid' not in params or + params['attribute_guid'] is None): + raise ValueError("Missing the required parameter `attribute_guid` when calling `v1alpha_databases_database_key_tables_table_guid_attributes_attribute_guidvalidate_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + if 'attribute_guid' in params: + path_params['attribute-guid'] = params['attribute_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaAttributesAttributeValidateResponse', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/attributes/{attribute-guid}:validate', '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_attributes_get(self, database_key, table_guid, **kwargs): # noqa: E501 """Get all attributes in table # noqa: E501 @@ -532,7 +637,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post(self, datab :param str database_key: (required) :param str table_guid: (required) :param GrantaServerApiSchemaAttributesAttribute body: - :return: None + :return: GrantaServerApiSchemaAttributesAttribute """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_info(database_key, table_guid, **kwargs) # noqa: E501 @@ -546,7 +651,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_i :param str database_key: (required) :param str table_guid: (required) :param GrantaServerApiSchemaAttributesAttribute body: - :return: None + :return: GrantaServerApiSchemaAttributesAttribute """ all_params = ['database_key', 'table_guid', 'body'] # noqa: E501 @@ -589,6 +694,10 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_i body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -597,7 +706,7 @@ def v1alpha_databases_database_key_tables_table_guid_attributes_post_with_http_i auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaAttributesAttribute', 201: None, 400: None, 403: None, @@ -921,7 +1030,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib :param str database_key: (required) :param str table_guid: (required) :param str meta_attribute_guid: (required) - :param GrantaServerApiSchemaAttributesAttribute body: + :param GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute body: :return: GrantaServerApiSchemaAttributesAttribute """ kwargs['_return_http_data_only'] = True @@ -936,7 +1045,7 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib :param str database_key: (required) :param str table_guid: (required) :param str meta_attribute_guid: (required) - :param GrantaServerApiSchemaAttributesAttribute body: + :param GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute body: :return: GrantaServerApiSchemaAttributesAttribute """ @@ -1017,3 +1126,108 @@ def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attrib _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats, response_type_map=response_type_map) + + def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post(self, database_key, table_guid, meta_attribute_guid, **kwargs): # noqa: E501 + """Validates the provided value against the meta attributes data rules. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str meta_attribute_guid: (required) + :param GrantaServerApiSchemaAttributesValidateAttributeRequest body: + :return: GrantaServerApiSchemaAttributesAttributeValidateResponse + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post_with_http_info(database_key, table_guid, meta_attribute_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post_with_http_info(self, database_key, table_guid, meta_attribute_guid, **kwargs): # noqa: E501 + """Validates the provided value against the meta attributes data rules. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str meta_attribute_guid: (required) + :param GrantaServerApiSchemaAttributesValidateAttributeRequest body: + :return: GrantaServerApiSchemaAttributesAttributeValidateResponse + """ + + all_params = ['database_key', 'table_guid', 'meta_attribute_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post`") # noqa: E501 + # verify the required parameter 'meta_attribute_guid' is set + if ('meta_attribute_guid' not in params or + params['meta_attribute_guid'] is None): + raise ValueError("Missing the required parameter `meta_attribute_guid` when calling `v1alpha_databases_database_key_tables_table_guid_meta_attributes_meta_attribute_guidvalidate_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + if 'meta_attribute_guid' in params: + path_params['meta-attribute-guid'] = params['meta_attribute_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaAttributesAttributeValidateResponse', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/meta-attributes/{meta-attribute-guid}:validate', '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___configurations_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py new file mode 100644 index 00000000..52750141 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___configurations_api.py @@ -0,0 +1,590 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from . import ApiBase + + +class SchemaConfigurationsApi(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_configurations_configuration_type_configuration_guid_delete(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Delete a configuration # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete_with_http_info(database_key, configuration_type, configuration_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete_with_http_info(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Delete a configuration # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: None + """ + + all_params = ['database_key', 'configuration_type', 'configuration_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete`") # noqa: E501 + # verify the required parameter 'configuration_guid' is set + if ('configuration_guid' not in params or + params['configuration_guid'] is None): + raise ValueError("Missing the required parameter `configuration_guid` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + if 'configuration_guid' in params: + path_params['configuration-guid'] = params['configuration_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-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_configurations_configuration_type_configuration_guid_get(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Get individual configuration # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get_with_http_info(database_key, configuration_type, configuration_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get_with_http_info(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Get individual configuration # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + + all_params = ['database_key', 'configuration_type', 'configuration_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get`") # noqa: E501 + # verify the required parameter 'configuration_guid' is set + if ('configuration_guid' not in params or + params['configuration_guid'] is None): + raise ValueError("Missing the required parameter `configuration_guid` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + if 'configuration_guid' in params: + path_params['configuration-guid'] = params['configuration_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaConfigurationsConfiguration', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-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_configurations_configuration_type_configuration_guid_patch(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Update a configuration. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :param GrantaServerApiSchemaConfigurationsUpdateConfiguration body: + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch_with_http_info(database_key, configuration_type, configuration_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch_with_http_info(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Update a configuration. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :param GrantaServerApiSchemaConfigurationsUpdateConfiguration body: + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + + all_params = ['database_key', 'configuration_type', 'configuration_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch`") # noqa: E501 + # verify the required parameter 'configuration_guid' is set + if ('configuration_guid' not in params or + params['configuration_guid'] is None): + raise ValueError("Missing the required parameter `configuration_guid` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guid_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + if 'configuration_guid' in params: + path_params['configuration-guid'] = params['configuration_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaConfigurationsConfiguration', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Get individual configuration as a file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get_with_http_info(database_key, configuration_type, configuration_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get_with_http_info(self, database_key, configuration_type, configuration_guid, **kwargs): # noqa: E501 + """Get individual configuration as a file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param str configuration_guid: (required) + :return: None + """ + + all_params = ['database_key', 'configuration_type', 'configuration_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get`") # noqa: E501 + # verify the required parameter 'configuration_guid' is set + if ('configuration_guid' not in params or + params['configuration_guid'] is None): + raise ValueError("Missing the required parameter `configuration_guid` when calling `v1alpha_databases_database_key_configurations_configuration_type_configuration_guidexport_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + if 'configuration_guid' in params: + path_params['configuration-guid'] = params['configuration_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}/{configuration-guid}:export', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_configurations_configuration_type_get(self, database_key, configuration_type, **kwargs): # noqa: E501 + """Get all configurations of given type # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :return: GrantaServerApiSchemaConfigurationsConfigurationsInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info(database_key, configuration_type, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_get_with_http_info(self, database_key, configuration_type, **kwargs): # noqa: E501 + """Get all configurations of given type # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :return: GrantaServerApiSchemaConfigurationsConfigurationsInfo + """ + + all_params = ['database_key', 'configuration_type'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_get`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaConfigurationsConfigurationsInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}', '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_configurations_configuration_type_post(self, database_key, configuration_type, **kwargs): # noqa: E501 + """Create a new configuration. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param GrantaServerApiSchemaConfigurationsCreateConfiguration body: + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info(database_key, configuration_type, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_configurations_configuration_type_post_with_http_info(self, database_key, configuration_type, **kwargs): # noqa: E501 + """Create a new configuration. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str configuration_type: The configuration type. (required) + :param GrantaServerApiSchemaConfigurationsCreateConfiguration body: + :return: GrantaServerApiSchemaConfigurationsConfiguration + """ + + all_params = ['database_key', 'configuration_type', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_configurations_configuration_type_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_configurations_configuration_type_post`") # noqa: E501 + # verify the required parameter 'configuration_type' is set + if ('configuration_type' not in params or + params['configuration_type'] is None): + raise ValueError("Missing the required parameter `configuration_type` when calling `v1alpha_databases_database_key_configurations_configuration_type_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'configuration_type' in params: + path_params['configuration-type'] = params['configuration_type'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaConfigurationsConfiguration', + 201: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/configurations/{configuration-type}', '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___constants_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___constants_api.py index 0708ff19..a98b6f69 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 @@ -117,7 +117,7 @@ def v1alpha_databases_database_key_constants_constant_guid_get(self, database_ke :param str database_key: Database in which constant will be search for (required) :param str constant_guid: Guid of requested constant (required) - :return: GrantaServerApiSchemaConstant + :return: GrantaServerApiSchemaConstantsConstant """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_constants_constant_guid_get_with_http_info(database_key, constant_guid, **kwargs) # noqa: E501 @@ -130,7 +130,7 @@ def v1alpha_databases_database_key_constants_constant_guid_get_with_http_info(se :param str database_key: Database in which constant will be search for (required) :param str constant_guid: Guid of requested constant (required) - :return: GrantaServerApiSchemaConstant + :return: GrantaServerApiSchemaConstantsConstant """ all_params = ['database_key', 'constant_guid'] # noqa: E501 @@ -179,7 +179,7 @@ def v1alpha_databases_database_key_constants_constant_guid_get_with_http_info(se auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiSchemaConstant', + 200: 'GrantaServerApiSchemaConstantsConstant', 404: None, } @@ -204,8 +204,8 @@ def v1alpha_databases_database_key_constants_constant_guid_patch(self, database_ :param str database_key: Database in which constant will be search for (required) :param str constant_guid: Guid of constant to update (required) - :param GrantaServerApiSchemaConstant body: Constant data to be updated - :return: GrantaServerApiSchemaConstant + :param GrantaServerApiSchemaConstantsUpdateConstant body: Constant data to be updated + :return: GrantaServerApiSchemaConstantsConstant """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info(database_key, constant_guid, **kwargs) # noqa: E501 @@ -218,8 +218,8 @@ def v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info( :param str database_key: Database in which constant will be search for (required) :param str constant_guid: Guid of constant to update (required) - :param GrantaServerApiSchemaConstant body: Constant data to be updated - :return: GrantaServerApiSchemaConstant + :param GrantaServerApiSchemaConstantsUpdateConstant body: Constant data to be updated + :return: GrantaServerApiSchemaConstantsConstant """ all_params = ['database_key', 'constant_guid', 'body'] # noqa: E501 @@ -274,7 +274,7 @@ def v1alpha_databases_database_key_constants_constant_guid_patch_with_http_info( auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiSchemaConstant', + 200: 'GrantaServerApiSchemaConstantsConstant', 400: None, 403: None, 404: None, @@ -300,7 +300,7 @@ def v1alpha_databases_database_key_constants_get(self, database_key, **kwargs): This method makes a synchronous HTTP request. :param str database_key: (required) - :return: GrantaServerApiSchemaConstantsInfo + :return: GrantaServerApiSchemaConstantsConstantsInfo """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_constants_get_with_http_info(database_key, **kwargs) # noqa: E501 @@ -312,7 +312,7 @@ def v1alpha_databases_database_key_constants_get_with_http_info(self, database_k This method makes a synchronous HTTP request. :param str database_key: (required) - :return: GrantaServerApiSchemaConstantsInfo + :return: GrantaServerApiSchemaConstantsConstantsInfo """ all_params = ['database_key'] # noqa: E501 @@ -355,7 +355,7 @@ def v1alpha_databases_database_key_constants_get_with_http_info(self, database_k auth_settings = [] # noqa: E501 response_type_map = { - 200: 'GrantaServerApiSchemaConstantsInfo', + 200: 'GrantaServerApiSchemaConstantsConstantsInfo', 404: None, } @@ -379,8 +379,8 @@ def v1alpha_databases_database_key_constants_post(self, database_key, **kwargs): This method makes a synchronous HTTP request. :param str database_key: Database in which constant will be created (required) - :param GrantaServerApiSchemaConstant body: Constant to add to database - :return: None + :param GrantaServerApiSchemaConstantsCreateConstant body: Constant to add to database + :return: GrantaServerApiSchemaConstantsConstant """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_constants_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -392,8 +392,8 @@ def v1alpha_databases_database_key_constants_post_with_http_info(self, database_ This method makes a synchronous HTTP request. :param str database_key: Database in which constant will be created (required) - :param GrantaServerApiSchemaConstant body: Constant to add to database - :return: None + :param GrantaServerApiSchemaConstantsCreateConstant body: Constant to add to database + :return: GrantaServerApiSchemaConstantsConstant """ all_params = ['database_key', 'body'] # noqa: E501 @@ -430,6 +430,10 @@ def v1alpha_databases_database_key_constants_post_with_http_info(self, database_ body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -438,7 +442,7 @@ def v1alpha_databases_database_key_constants_post_with_http_info(self, database_ auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaConstantsConstant', 201: None, 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py new file mode 100644 index 00000000..bd464d7c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___data_rules_api.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from . import ApiBase + + +class SchemaDataRulesApi(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_data_rules_data_rule_guid_delete(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Delete a data rule. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_info(database_key, data_rule_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_data_rules_data_rule_guid_delete_with_http_info(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Delete a data rule. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :return: None + """ + + all_params = ['database_key', 'data_rule_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_delete".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_delete`") # noqa: E501 + # verify the required parameter 'data_rule_guid' is set + if ('data_rule_guid' not in params or + params['data_rule_guid'] is None): + raise ValueError("Missing the required parameter `data_rule_guid` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'data_rule_guid' in params: + path_params['data-rule-guid'] = params['data_rule_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/data-rules/{data-rule-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_data_rules_data_rule_guid_get(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Gets a data rule for a given database and guid. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :return: GrantaServerApiSchemaDataRule + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info(database_key, data_rule_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_data_rules_data_rule_guid_get_with_http_info(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Gets a data rule for a given database and guid. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :return: GrantaServerApiSchemaDataRule + """ + + all_params = ['database_key', 'data_rule_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_get`") # noqa: E501 + # verify the required parameter 'data_rule_guid' is set + if ('data_rule_guid' not in params or + params['data_rule_guid'] is None): + raise ValueError("Missing the required parameter `data_rule_guid` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'data_rule_guid' in params: + path_params['data-rule-guid'] = params['data_rule_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaDataRule', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/data-rules/{data-rule-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_data_rules_data_rule_guid_patch(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Edit a data rule # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :param GrantaServerApiSchemaUpdateDataRule body: + :return: GrantaServerApiSchemaDataRule + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_info(database_key, data_rule_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_data_rules_data_rule_guid_patch_with_http_info(self, database_key, data_rule_guid, **kwargs): # noqa: E501 + """Edit a data rule # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str data_rule_guid: (required) + :param GrantaServerApiSchemaUpdateDataRule body: + :return: GrantaServerApiSchemaDataRule + """ + + all_params = ['database_key', 'data_rule_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_data_rules_data_rule_guid_patch".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_patch`") # noqa: E501 + # verify the required parameter 'data_rule_guid' is set + if ('data_rule_guid' not in params or + params['data_rule_guid'] is None): + raise ValueError("Missing the required parameter `data_rule_guid` when calling `v1alpha_databases_database_key_data_rules_data_rule_guid_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'data_rule_guid' in params: + path_params['data-rule-guid'] = params['data_rule_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaDataRule', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/data-rules/{data-rule-guid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_data_rules_get(self, database_key, **kwargs): # noqa: E501 + """Gets all data rules for a given database. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaDataRulesInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_data_rules_get_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_data_rules_get_with_http_info(self, database_key, **kwargs): # noqa: E501 + """Gets all data rules for a given database. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaDataRulesInfo + """ + + all_params = ['database_key'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_data_rules_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_data_rules_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaDataRulesInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/data-rules', '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_data_rules_post(self, database_key, **kwargs): # noqa: E501 + """Create a new data rule # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param GrantaServerApiSchemaDataRule body: + :return: GrantaServerApiSchemaDataRule + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_data_rules_post_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_data_rules_post_with_http_info(self, database_key, **kwargs): # noqa: E501 + """Create a new data rule # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param GrantaServerApiSchemaDataRule body: + :return: GrantaServerApiSchemaDataRule + """ + + all_params = ['database_key', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_data_rules_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_data_rules_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaDataRule', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/data-rules', '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___databases_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py index 3945b282..8eb296c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___databases_api.py @@ -106,7 +106,7 @@ def v1alpha_databases_database_key_patch(self, database_key, **kwargs): # noqa: This method makes a synchronous HTTP request. :param str database_key: (required) - :param GrantaServerApiSchemaDatabase body: + :param GrantaServerApiSchemaUpdateDatabase body: :return: GrantaServerApiSchemaDatabase """ kwargs['_return_http_data_only'] = True @@ -119,7 +119,7 @@ def v1alpha_databases_database_key_patch_with_http_info(self, database_key, **kw This method makes a synchronous HTTP request. :param str database_key: (required) - :param GrantaServerApiSchemaDatabase body: + :param GrantaServerApiSchemaUpdateDatabase body: :return: GrantaServerApiSchemaDatabase """ 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 551d76b8..3551ac15 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 @@ -413,7 +413,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va :param str database_key: (required) :param str discrete_type_guid: (required) :param GrantaServerApiSchemaDiscreteValue body: - :return: None + :return: GrantaServerApiSchemaDiscreteValue """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_values_post_with_http_info(database_key, discrete_type_guid, **kwargs) # noqa: E501 @@ -427,7 +427,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va :param str database_key: (required) :param str discrete_type_guid: (required) :param GrantaServerApiSchemaDiscreteValue body: - :return: None + :return: GrantaServerApiSchemaDiscreteValue """ all_params = ['database_key', 'discrete_type_guid', 'body'] # noqa: E501 @@ -470,6 +470,10 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -478,7 +482,7 @@ def v1alpha_databases_database_key_discrete_types_discrete_type_guid_discrete_va auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaDiscreteValue', 201: None, 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___discrete_types_api.py index ac072862..2995c128 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 @@ -469,7 +469,7 @@ def v1alpha_databases_database_key_discrete_types_post(self, database_key, **kwa :param str database_key: (required) :param GrantaServerApiSchemaDiscreteType body: - :return: None + :return: GrantaServerApiSchemaDiscreteType """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_discrete_types_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -482,7 +482,7 @@ def v1alpha_databases_database_key_discrete_types_post_with_http_info(self, data :param str database_key: (required) :param GrantaServerApiSchemaDiscreteType body: - :return: None + :return: GrantaServerApiSchemaDiscreteType """ all_params = ['database_key', 'body'] # noqa: E501 @@ -519,6 +519,10 @@ def v1alpha_databases_database_key_discrete_types_post_with_http_info(self, data body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -527,7 +531,7 @@ def v1alpha_databases_database_key_discrete_types_post_with_http_info(self, data auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaDiscreteType', 201: None, 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py index 72e5b14b..bffeeaa6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___expressions_api.py @@ -122,6 +122,8 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid :param str database_key: (required) :param str table_guid: (required) :param str expression_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. :return: GrantaServerApiSchemaExpression """ kwargs['_return_http_data_only'] = True @@ -136,10 +138,12 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid :param str database_key: (required) :param str table_guid: (required) :param str expression_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. :return: GrantaServerApiSchemaExpression """ - all_params = ['database_key', 'table_guid', 'expression_guid'] # noqa: E501 + all_params = ['database_key', 'table_guid', 'expression_guid', 'mode', 'x_ansys_vc_mode'] # noqa: E501 all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -176,8 +180,12 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid path_params['expression-guid'] = params['expression_guid'] # noqa: E501 query_params = [] + if 'mode' in params: + query_params.append(('mode', params['mode'])) # noqa: E501 header_params = {} + if 'x_ansys_vc_mode' in params: + header_params['X-Ansys-VC-Mode'] = params['x_ansys_vc_mode'] # noqa: E501 form_params = [] local_var_files = {} @@ -217,7 +225,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid :param str database_key: (required) :param str table_guid: (required) :param str expression_guid: (required) - :param GrantaServerApiSchemaExpression body: + :param GrantaServerApiSchemaUpdateExpression body: :return: GrantaServerApiSchemaExpression """ kwargs['_return_http_data_only'] = True @@ -232,7 +240,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_expression_guid :param str database_key: (required) :param str table_guid: (required) :param str expression_guid: (required) - :param GrantaServerApiSchemaExpression body: + :param GrantaServerApiSchemaUpdateExpression body: :return: GrantaServerApiSchemaExpression """ @@ -321,6 +329,8 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_get(self, datab :param str database_key: (required) :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. :return: GrantaServerApiSchemaExpressionsInfo """ kwargs['_return_http_data_only'] = True @@ -334,10 +344,12 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_i :param str database_key: (required) :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. :return: GrantaServerApiSchemaExpressionsInfo """ - all_params = ['database_key', 'table_guid'] # noqa: E501 + all_params = ['database_key', 'table_guid', 'mode', 'x_ansys_vc_mode'] # noqa: E501 all_params.append('_return_http_data_only') all_params.append('_preload_content') all_params.append('_request_timeout') @@ -368,8 +380,12 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_get_with_http_i path_params['table-guid'] = params['table_guid'] # noqa: E501 query_params = [] + if 'mode' in params: + query_params.append(('mode', params['mode'])) # noqa: E501 header_params = {} + if 'x_ansys_vc_mode' in params: + header_params['X-Ansys-VC-Mode'] = params['x_ansys_vc_mode'] # noqa: E501 form_params = [] local_var_files = {} @@ -409,7 +425,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post(self, data :param str database_key: (required) :param str table_guid: (required) :param GrantaServerApiSchemaExpression body: - :return: None + :return: GrantaServerApiSchemaExpression """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_info(database_key, table_guid, **kwargs) # noqa: E501 @@ -423,7 +439,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_ :param str database_key: (required) :param str table_guid: (required) :param GrantaServerApiSchemaExpression body: - :return: None + :return: GrantaServerApiSchemaExpression """ all_params = ['database_key', 'table_guid', 'body'] # noqa: E501 @@ -466,6 +482,10 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_ body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -474,7 +494,7 @@ def v1alpha_databases_database_key_tables_table_guid_expressions_post_with_http_ auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaExpression', 201: None, 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py new file mode 100644 index 00000000..009f9854 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___help_files_api.py @@ -0,0 +1,995 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from . import ApiBase + + +class SchemaHelpFilesApi(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_help_folders_folder_guid_delete(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Delete a Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_delete_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Delete a Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: None + """ + + all_params = ['database_key', 'folder_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_delete".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_delete`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-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_help_folders_folder_guid_files_file_guid_get(self, database_key, folder_guid, file_guid, **kwargs): # noqa: E501 + """Get header information for a help file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param str file_guid: (required) + :return: GrantaServerApiSchemaFilesFileHeader + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info(database_key, folder_guid, file_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get_with_http_info(self, database_key, folder_guid, file_guid, **kwargs): # noqa: E501 + """Get header information for a help file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param str file_guid: (required) + :return: GrantaServerApiSchemaFilesFileHeader + """ + + all_params = ['database_key', 'folder_guid', 'file_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get`") # noqa: E501 + # verify the required parameter 'file_guid' is set + if ('file_guid' not in params or + params['file_guid'] is None): + raise ValueError("Missing the required parameter `file_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guid_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + if 'file_guid' in params: + path_params['file-guid'] = params['file_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFileHeader', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-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_help_folders_folder_guid_files_file_guidexport_get(self, database_key, folder_guid, file_guid, **kwargs): # noqa: E501 + """Get help file as a file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param str file_guid: (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info(database_key, folder_guid, file_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get_with_http_info(self, database_key, folder_guid, file_guid, **kwargs): # noqa: E501 + """Get help file as a file # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param str file_guid: (required) + :return: None + """ + + all_params = ['database_key', 'folder_guid', 'file_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get`") # noqa: E501 + # verify the required parameter 'file_guid' is set + if ('file_guid' not in params or + params['file_guid'] is None): + raise ValueError("Missing the required parameter `file_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_file_guidexport_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + if 'file_guid' in params: + path_params['file-guid'] = params['file_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files/{file-guid}:export', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_help_folders_folder_guid_files_get(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Files in a Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFilesInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_files_get_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Files in a Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFilesInfo + """ + + all_params = ['database_key', 'folder_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_files_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_get`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_files_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFilesInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-guid}/files', '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_help_folders_folder_guid_get(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Help File Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFolder + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_get_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Help File Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFolder + """ + + all_params = ['database_key', 'folder_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_get`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFolder', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-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_help_folders_folder_guid_patch(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Update an existing Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param GrantaServerApiSchemaFilesUpdateFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guid_patch_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Update an existing Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param GrantaServerApiSchemaFilesUpdateFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + + all_params = ['database_key', 'folder_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guid_patch".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guid_patch`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guid_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFolder', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-guid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Child Help File Folders # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFoldersInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Get Child Help File Folders # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :return: GrantaServerApiSchemaFilesFoldersInfo + """ + + all_params = ['database_key', 'folder_guid'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guidchild_folders_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFoldersInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-guid}:child-folders', '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_help_folders_folder_guidmove_post(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Move an existing Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param GrantaServerApiSchemaFilesMoveFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info(database_key, folder_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_folder_guidmove_post_with_http_info(self, database_key, folder_guid, **kwargs): # noqa: E501 + """Move an existing Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str folder_guid: (required) + :param GrantaServerApiSchemaFilesMoveFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + + all_params = ['database_key', 'folder_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_folder_guidmove_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_folder_guidmove_post`") # noqa: E501 + # verify the required parameter 'folder_guid' is set + if ('folder_guid' not in params or + params['folder_guid'] is None): + raise ValueError("Missing the required parameter `folder_guid` when calling `v1alpha_databases_database_key_help_folders_folder_guidmove_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'folder_guid' in params: + path_params['folder-guid'] = params['folder_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFolder', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/{folder-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_help_folders_get(self, database_key, **kwargs): # noqa: E501 + """Get All Help File Folders # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaFilesFoldersInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_get_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_get_with_http_info(self, database_key, **kwargs): # noqa: E501 + """Get All Help File Folders # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaFilesFoldersInfo + """ + + all_params = ['database_key'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFoldersInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders', '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_help_folders_post(self, database_key, **kwargs): # noqa: E501 + """Create a new Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param GrantaServerApiSchemaFilesCreateFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_folders_post_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_folders_post_with_http_info(self, database_key, **kwargs): # noqa: E501 + """Create a new Help File Folder. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param GrantaServerApiSchemaFilesCreateFolder body: + :return: GrantaServerApiSchemaFilesFolder + """ + + all_params = ['database_key', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_folders_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_folders_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['text/plain', 'application/json', 'text/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFolder', + 201: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders', '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_help_foldersroot_folder_get(self, database_key, **kwargs): # noqa: E501 + """Get Root Help File Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaFilesFolder + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info(database_key, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_help_foldersroot_folder_get_with_http_info(self, database_key, **kwargs): # noqa: E501 + """Get Root Help File Folder # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :return: GrantaServerApiSchemaFilesFolder + """ + + all_params = ['database_key'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_help_foldersroot_folder_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_help_foldersroot_folder_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + + 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']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaFilesFolder', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/help-folders/:root-folder', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py index fb1b7d4e..1653504c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___layouts_api.py @@ -324,7 +324,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch(s :param str database_key: (required) :param str table_guid: (required) :param str layout_guid: (required) - :param GrantaServerApiSchemaLayoutsLayout body: + :param GrantaServerApiSchemaLayoutsUpdateLayout body: :return: GrantaServerApiSchemaLayoutsLayout """ kwargs['_return_http_data_only'] = True @@ -339,7 +339,7 @@ def v1alpha_databases_database_key_tables_table_guid_layouts_layout_guid_patch_w :param str database_key: (required) :param str table_guid: (required) :param str layout_guid: (required) - :param GrantaServerApiSchemaLayoutsLayout body: + :param GrantaServerApiSchemaLayoutsUpdateLayout body: :return: GrantaServerApiSchemaLayoutsLayout """ 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 6c3e501f..bcd6359e 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 @@ -486,7 +486,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po :param str database_key: (required) :param str parameter_guid: (required) :param GrantaServerApiSchemaParametersParameterValue body: - :return: None + :return: GrantaServerApiSchemaParametersParameterValue """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_post_with_http_info(database_key, parameter_guid, **kwargs) # noqa: E501 @@ -500,7 +500,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po :param str database_key: (required) :param str parameter_guid: (required) :param GrantaServerApiSchemaParametersParameterValue body: - :return: None + :return: GrantaServerApiSchemaParametersParameterValue """ all_params = ['database_key', 'parameter_guid', 'body'] # noqa: E501 @@ -543,6 +543,10 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -551,7 +555,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_parameter_values_po auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaParametersParameterValue', 201: None, 400: None, 403: None, @@ -676,7 +680,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_patch(self, databas :param str database_key: (required) :param str parameter_guid: (required) - :param GrantaServerApiSchemaParametersParameter body: + :param GrantaServerApiSchemaParametersUpdateParameter body: :return: GrantaServerApiSchemaParametersParameter """ kwargs['_return_http_data_only'] = True @@ -690,7 +694,7 @@ def v1alpha_databases_database_key_parameters_parameter_guid_patch_with_http_inf :param str database_key: (required) :param str parameter_guid: (required) - :param GrantaServerApiSchemaParametersParameter body: + :param GrantaServerApiSchemaParametersUpdateParameter body: :return: GrantaServerApiSchemaParametersParameter """ @@ -860,7 +864,7 @@ def v1alpha_databases_database_key_parameters_post(self, database_key, **kwargs) :param str database_key: (required) :param GrantaServerApiSchemaParametersParameter body: - :return: None + :return: GrantaServerApiSchemaParametersParameter """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_parameters_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -873,7 +877,7 @@ def v1alpha_databases_database_key_parameters_post_with_http_info(self, database :param str database_key: (required) :param GrantaServerApiSchemaParametersParameter body: - :return: None + :return: GrantaServerApiSchemaParametersParameter """ all_params = ['database_key', 'body'] # noqa: E501 @@ -910,6 +914,10 @@ def v1alpha_databases_database_key_parameters_post_with_http_info(self, database body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -918,7 +926,7 @@ def v1alpha_databases_database_key_parameters_post_with_http_info(self, database auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaParametersParameter', 400: None, 403: None, 404: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py index 61d2feda..16c3f9d8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profile_tables_api.py @@ -108,7 +108,7 @@ def v1alpha_profiles_profile_guid_profile_tables_post(self, profile_guid, **kwar :param str profile_guid: (required) :param GrantaServerApiSchemaProfileTable body: - :return: None + :return: GrantaServerApiSchemaProfileTable """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_profiles_profile_guid_profile_tables_post_with_http_info(profile_guid, **kwargs) # noqa: E501 @@ -121,7 +121,7 @@ def v1alpha_profiles_profile_guid_profile_tables_post_with_http_info(self, profi :param str profile_guid: (required) :param GrantaServerApiSchemaProfileTable body: - :return: None + :return: GrantaServerApiSchemaProfileTable """ all_params = ['profile_guid', 'body'] # noqa: E501 @@ -158,6 +158,10 @@ def v1alpha_profiles_profile_guid_profile_tables_post_with_http_info(self, profi body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -166,7 +170,7 @@ def v1alpha_profiles_profile_guid_profile_tables_post_with_http_info(self, profi auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaProfileTable', 201: None, 400: None, 403: None, @@ -366,7 +370,7 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch(self, :param str profile_guid: (required) :param str profile_table_guid: (required) - :param GrantaServerApiSchemaProfileTable body: + :param GrantaServerApiSchemaUpdateProfileTable body: :return: GrantaServerApiSchemaProfileTable """ kwargs['_return_http_data_only'] = True @@ -380,7 +384,7 @@ def v1alpha_profiles_profile_guid_profile_tables_profile_table_guid_patch_with_h :param str profile_guid: (required) :param str profile_table_guid: (required) - :param GrantaServerApiSchemaProfileTable body: + :param GrantaServerApiSchemaUpdateProfileTable body: :return: GrantaServerApiSchemaProfileTable """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py index a5de422e..752e2daa 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___profiles_api.py @@ -179,7 +179,7 @@ def v1alpha_profiles_post(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request. :param GrantaServerApiSchemaProfile body: - :return: None + :return: GrantaServerApiSchemaProfile """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_profiles_post_with_http_info(**kwargs) # noqa: E501 @@ -191,7 +191,7 @@ def v1alpha_profiles_post_with_http_info(self, **kwargs): # noqa: E501 This method makes a synchronous HTTP request. :param GrantaServerApiSchemaProfile body: - :return: None + :return: GrantaServerApiSchemaProfile """ all_params = ['body'] # noqa: E501 @@ -222,6 +222,10 @@ def v1alpha_profiles_post_with_http_info(self, **kwargs): # noqa: E501 body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -230,7 +234,7 @@ def v1alpha_profiles_post_with_http_info(self, **kwargs): # noqa: E501 auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaProfile', 201: None, 400: None, 403: None, @@ -413,7 +417,7 @@ def v1alpha_profiles_profile_guid_patch(self, profile_guid, **kwargs): # noqa: This method makes a synchronous HTTP request. :param str profile_guid: (required) - :param GrantaServerApiSchemaProfile body: + :param GrantaServerApiSchemaUpdateProfile body: :return: GrantaServerApiSchemaProfile """ kwargs['_return_http_data_only'] = True @@ -426,7 +430,7 @@ def v1alpha_profiles_profile_guid_patch_with_http_info(self, profile_guid, **kwa This method makes a synchronous HTTP request. :param str profile_guid: (required) - :param GrantaServerApiSchemaProfile body: + :param GrantaServerApiSchemaUpdateProfile body: :return: GrantaServerApiSchemaProfile """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py new file mode 100644 index 00000000..9bf54d38 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___record_link_groups_api.py @@ -0,0 +1,626 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import re # noqa: F401 +from . import ApiBase + + +class SchemaRecordLinkGroupsApi(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_tables_table_guid_record_link_groups_get(self, database_key, table_guid, **kwargs): # noqa: E501 + """Get all record link groups # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_with_http_info(database_key, table_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_get_with_http_info(self, database_key, table_guid, **kwargs): # noqa: E501 + """Get all record link groups # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo + """ + + all_params = ['database_key', 'table_guid', 'mode', 'x_ansys_vc_mode'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_get`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + + query_params = [] + if 'mode' in params: + query_params.append(('mode', params['mode'])) # noqa: E501 + + header_params = {} + if 'x_ansys_vc_mode' in params: + header_params['X-Ansys-VC-Mode'] = params['x_ansys_vc_mode'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups', '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_link_groups_post(self, database_key, table_guid, **kwargs): # noqa: E501 + """Create a new record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup body: + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_with_http_info(database_key, table_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_post_with_http_info(self, database_key, table_guid, **kwargs): # noqa: E501 + """Create a new record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup body: + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + + all_params = ['database_key', 'table_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_post".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_post`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup', + 201: None, + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups', '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_link_groups_record_link_group_guid_patch(self, database_key, table_guid, record_link_group_guid, **kwargs): # noqa: E501 + """Update record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup body: + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch_with_http_info(database_key, table_guid, record_link_group_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch_with_http_info(self, database_key, table_guid, record_link_group_guid, **kwargs): # noqa: E501 + """Update record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup body: + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + + all_params = ['database_key', 'table_guid', 'record_link_group_guid', 'body'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch`") # noqa: E501 + # verify the required parameter 'record_link_group_guid' is set + if ('record_link_group_guid' not in params or + params['record_link_group_guid'] is None): + raise ValueError("Missing the required parameter `record_link_group_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + if 'record_link_group_guid' in params: + path_params['record-link-group-guid'] = params['record_link_group_guid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup', + 400: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete(self, database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs): # noqa: E501 + """Delete a record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param str record_link_group_type: The record link group type. (required) + :return: None + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete_with_http_info(database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete_with_http_info(self, database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs): # noqa: E501 + """Delete a record link group. # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param str record_link_group_type: The record link group type. (required) + :return: None + """ + + all_params = ['database_key', 'table_guid', 'record_link_group_guid', 'record_link_group_type'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete`") # noqa: E501 + # verify the required parameter 'record_link_group_guid' is set + if ('record_link_group_guid' not in params or + params['record_link_group_guid'] is None): + raise ValueError("Missing the required parameter `record_link_group_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete`") # noqa: E501 + # verify the required parameter 'record_link_group_type' is set + if ('record_link_group_type' not in params or + params['record_link_group_type'] is None): + raise ValueError("Missing the required parameter `record_link_group_type` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + if 'record_link_group_guid' in params: + path_params['record-link-group-guid'] = params['record_link_group_guid'] # noqa: E501 + if 'record_link_group_type' in params: + path_params['record-link-group-type'] = params['record_link_group_type'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: None, + 403: None, + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}/{record-link-group-type}', 'DELETE', + 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_link_groups_record_link_group_guid_record_link_group_type_get(self, database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs): # noqa: E501 + """Get individual record link group # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param str record_link_group_type: The record link group type. (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get_with_http_info(database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get_with_http_info(self, database_key, table_guid, record_link_group_guid, record_link_group_type, **kwargs): # noqa: E501 + """Get individual record link group # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str record_link_group_guid: (required) + :param str record_link_group_type: The record link group type. (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup + """ + + all_params = ['database_key', 'table_guid', 'record_link_group_guid', 'record_link_group_type', 'mode', 'x_ansys_vc_mode'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get`") # noqa: E501 + # verify the required parameter 'record_link_group_guid' is set + if ('record_link_group_guid' not in params or + params['record_link_group_guid'] is None): + raise ValueError("Missing the required parameter `record_link_group_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get`") # noqa: E501 + # verify the required parameter 'record_link_group_type' is set + if ('record_link_group_type' not in params or + params['record_link_group_type'] is None): + raise ValueError("Missing the required parameter `record_link_group_type` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groups_record_link_group_guid_record_link_group_type_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + if 'record_link_group_guid' in params: + path_params['record-link-group-guid'] = params['record_link_group_guid'] # noqa: E501 + if 'record_link_group_type' in params: + path_params['record-link-group-type'] = params['record_link_group_type'] # noqa: E501 + + query_params = [] + if 'mode' in params: + query_params.append(('mode', params['mode'])) # noqa: E501 + + header_params = {} + if 'x_ansys_vc_mode' in params: + header_params['X-Ansys-VC-Mode'] = params['x_ansys_vc_mode'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups/{record-link-group-guid}/{record-link-group-type}', '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_link_groupsinbound_link_groups_get(self, database_key, table_guid, **kwargs): # noqa: E501 + """Get all record link groups pointing towards provided table # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo + """ + kwargs['_return_http_data_only'] = True + (data) = self.v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get_with_http_info(database_key, table_guid, **kwargs) # noqa: E501 + return data + + def v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get_with_http_info(self, database_key, table_guid, **kwargs): # noqa: E501 + """Get all record link groups pointing towards provided table # noqa: E501 + + This method makes a synchronous HTTP request. + + :param str database_key: (required) + :param str table_guid: (required) + :param str mode: 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. + :param str x_ansys_vc_mode: 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. + :return: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo + """ + + all_params = ['database_key', 'table_guid', 'mode', 'x_ansys_vc_mode'] # noqa: E501 + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in params['kwargs'].items(): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '{}' to method v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get".format(key) + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'database_key' is set + if ('database_key' not in params or + params['database_key'] is None): + raise ValueError("Missing the required parameter `database_key` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get`") # noqa: E501 + # verify the required parameter 'table_guid' is set + if ('table_guid' not in params or + params['table_guid'] is None): + raise ValueError("Missing the required parameter `table_guid` when calling `v1alpha_databases_database_key_tables_table_guid_record_link_groupsinbound_link_groups_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'database_key' in params: + path_params['database-key'] = params['database_key'] # noqa: E501 + if 'table_guid' in params: + path_params['table-guid'] = params['table_guid'] # noqa: E501 + + query_params = [] + if 'mode' in params: + query_params.append(('mode', params['mode'])) # noqa: E501 + + header_params = {} + if 'x_ansys_vc_mode' in params: + header_params['X-Ansys-VC-Mode'] = params['x_ansys_vc_mode'] # noqa: E501 + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + response_type_map = { + 200: 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo', + 404: None, + } + + return self.api_client.call_api( + '/v1alpha/databases/{database-key}/tables/{table-guid}/record-link-groups:inbound-link-groups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats, + response_type_map=response_type_map) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py index 271191b1..f2acb33a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___standard_names_api.py @@ -107,7 +107,7 @@ def v1alpha_databases_database_key_standard_names_post(self, database_key, **kwa :param str database_key: (required) :param GrantaServerApiSchemaStandardName body: - :return: None + :return: GrantaServerApiSchemaStandardName """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_standard_names_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -120,7 +120,7 @@ def v1alpha_databases_database_key_standard_names_post_with_http_info(self, data :param str database_key: (required) :param GrantaServerApiSchemaStandardName body: - :return: None + :return: GrantaServerApiSchemaStandardName """ all_params = ['database_key', 'body'] # noqa: E501 @@ -157,6 +157,10 @@ def v1alpha_databases_database_key_standard_names_post_with_http_info(self, data body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -165,7 +169,7 @@ def v1alpha_databases_database_key_standard_names_post_with_http_info(self, data auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaStandardName', 400: 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 eac92844..bd93b3ca 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 @@ -123,7 +123,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_post(self, database :param str database_key: (required) :param str table_guid: (required) - :param GrantaServerApiSchemaSubset body: + :param GrantaServerApiSchemaUpdateSubset body: :return: GrantaServerApiSchemaSubset """ kwargs['_return_http_data_only'] = True @@ -137,7 +137,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_post_with_http_info :param str database_key: (required) :param str table_guid: (required) - :param GrantaServerApiSchemaSubset body: + :param GrantaServerApiSchemaUpdateSubset body: :return: GrantaServerApiSchemaSubset """ @@ -418,7 +418,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch(s :param str database_key: (required) :param str table_guid: (required) :param str subset_guid: (required) - :param GrantaServerApiSchemaSubset body: + :param GrantaServerApiSchemaUpdateSubset body: :return: GrantaServerApiSchemaSubset """ kwargs['_return_http_data_only'] = True @@ -433,7 +433,7 @@ def v1alpha_databases_database_key_tables_table_guid_subsets_subset_guid_patch_w :param str database_key: (required) :param str table_guid: (required) :param str subset_guid: (required) - :param GrantaServerApiSchemaSubset body: + :param GrantaServerApiSchemaUpdateSubset body: :return: GrantaServerApiSchemaSubset """ 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 e9d377d0..1db952f0 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 @@ -114,7 +114,7 @@ def v1alpha_databases_database_key_tables_post(self, database_key, **kwargs): # This method makes a synchronous HTTP request. :param str database_key: (required) - :param GrantaServerApiSchemaTable body: + :param GrantaServerApiSchemaUpdateTable body: :return: GrantaServerApiSchemaTable """ kwargs['_return_http_data_only'] = True @@ -127,7 +127,7 @@ def v1alpha_databases_database_key_tables_post_with_http_info(self, database_key This method makes a synchronous HTTP request. :param str database_key: (required) - :param GrantaServerApiSchemaTable body: + :param GrantaServerApiSchemaUpdateTable body: :return: GrantaServerApiSchemaTable """ @@ -389,7 +389,7 @@ def v1alpha_databases_database_key_tables_table_guid_patch(self, database_key, t :param str database_key: (required) :param str table_guid: (required) - :param GrantaServerApiSchemaTable body: + :param GrantaServerApiSchemaUpdateTable body: :return: GrantaServerApiSchemaTable """ kwargs['_return_http_data_only'] = True @@ -403,7 +403,7 @@ def v1alpha_databases_database_key_tables_table_guid_patch_with_http_info(self, :param str database_key: (required) :param str table_guid: (required) - :param GrantaServerApiSchemaTable body: + :param GrantaServerApiSchemaUpdateTable body: :return: GrantaServerApiSchemaTable """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py index 34a71a84..055a699b 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___units_api.py @@ -107,7 +107,7 @@ def v1alpha_databases_database_key_unit_systems_post(self, database_key, **kwarg :param str database_key: (required) :param GrantaServerApiSchemaUnitsUnitSystem body: - :return: None + :return: GrantaServerApiSchemaUnitsUnitSystem """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_unit_systems_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -120,7 +120,7 @@ def v1alpha_databases_database_key_unit_systems_post_with_http_info(self, databa :param str database_key: (required) :param GrantaServerApiSchemaUnitsUnitSystem body: - :return: None + :return: GrantaServerApiSchemaUnitsUnitSystem """ all_params = ['database_key', 'body'] # noqa: E501 @@ -157,6 +157,10 @@ def v1alpha_databases_database_key_unit_systems_post_with_http_info(self, databa body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -165,7 +169,7 @@ def v1alpha_databases_database_key_unit_systems_post_with_http_info(self, databa auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaUnitsUnitSystem', 400: None, 403: None, 404: None, @@ -364,7 +368,7 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_patch(self, dat :param str database_key: (required) :param str unit_system_guid: (required) - :param GrantaServerApiSchemaUnitsUnitSystem body: + :param GrantaServerApiSchemaUnitsUpdateUnitSystem body: :return: GrantaServerApiSchemaUnitsUnitSystem """ kwargs['_return_http_data_only'] = True @@ -378,7 +382,7 @@ def v1alpha_databases_database_key_unit_systems_unit_system_guid_patch_with_http :param str database_key: (required) :param str unit_system_guid: (required) - :param GrantaServerApiSchemaUnitsUnitSystem body: + :param GrantaServerApiSchemaUnitsUpdateUnitSystem body: :return: GrantaServerApiSchemaUnitsUnitSystem """ @@ -540,7 +544,7 @@ def v1alpha_databases_database_key_units_post(self, database_key, **kwargs): # :param str database_key: (required) :param GrantaServerApiSchemaUnitsUnit body: - :return: None + :return: GrantaServerApiSchemaUnitsUnit """ kwargs['_return_http_data_only'] = True (data) = self.v1alpha_databases_database_key_units_post_with_http_info(database_key, **kwargs) # noqa: E501 @@ -553,7 +557,7 @@ def v1alpha_databases_database_key_units_post_with_http_info(self, database_key, :param str database_key: (required) :param GrantaServerApiSchemaUnitsUnit body: - :return: None + :return: GrantaServerApiSchemaUnitsUnit """ all_params = ['database_key', 'body'] # noqa: E501 @@ -590,6 +594,10 @@ def v1alpha_databases_database_key_units_post_with_http_info(self, database_key, body_params = None if 'body' in params: body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json']) # noqa: E501 @@ -598,7 +606,7 @@ def v1alpha_databases_database_key_units_post_with_http_info(self, database_key, auth_settings = [] # noqa: E501 response_type_map = { - 200: None, + 200: 'GrantaServerApiSchemaUnitsUnit', 201: None, 400: None, 403: None, diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py index 65f655ee..57ff6c97 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 @@ -33,6 +33,8 @@ from .granta_server_api_aggregations_date_time_attribute_aggregation import GrantaServerApiAggregationsDateTimeAttributeAggregation from .granta_server_api_aggregations_discrete_text_aggregation_datum_criterion import GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion from .granta_server_api_aggregations_discrete_text_attribute_aggregation import GrantaServerApiAggregationsDiscreteTextAttributeAggregation +from .granta_server_api_aggregations_float_functional_aggregation_datum_criterion import GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion +from .granta_server_api_aggregations_float_functional_attribute_aggregation import GrantaServerApiAggregationsFloatFunctionalAttributeAggregation from .granta_server_api_aggregations_free_text_aggregation import GrantaServerApiAggregationsFreeTextAggregation from .granta_server_api_aggregations_free_text_aggregation_criterion import GrantaServerApiAggregationsFreeTextAggregationCriterion from .granta_server_api_aggregations_integer_aggregation_datum_criterion import GrantaServerApiAggregationsIntegerAggregationDatumCriterion @@ -48,8 +50,11 @@ from .granta_server_api_aggregations_short_text_aggregation_datum_criterion import GrantaServerApiAggregationsShortTextAggregationDatumCriterion from .granta_server_api_aggregations_short_text_attribute_aggregation import GrantaServerApiAggregationsShortTextAttributeAggregation from .granta_server_api_aggregations_term_with_count import GrantaServerApiAggregationsTermWithCount -from .granta_server_api_aggregations_value_with_count import GrantaServerApiAggregationsValueWithCount +from .granta_server_api_aggregations_value_with_count_of_system_boolean import GrantaServerApiAggregationsValueWithCountOfSystemBoolean +from .granta_server_api_aggregations_value_with_count_of_system_guid import GrantaServerApiAggregationsValueWithCountOfSystemGuid +from .granta_server_api_aggregations_value_with_count_of_system_int32 import GrantaServerApiAggregationsValueWithCountOfSystemInt32 from .granta_server_api_attribute_type import GrantaServerApiAttributeType +from .granta_server_api_data_export_attribute_to_export import GrantaServerApiDataExportAttributeToExport from .granta_server_api_data_export_data_export_request import GrantaServerApiDataExportDataExportRequest from .granta_server_api_data_export_data_export_response import GrantaServerApiDataExportDataExportResponse from .granta_server_api_data_export_datums_applicable_datum import GrantaServerApiDataExportDatumsApplicableDatum @@ -62,6 +67,7 @@ from .granta_server_api_data_export_datums_functional_datum import GrantaServerApiDataExportDatumsFunctionalDatum from .granta_server_api_data_export_datums_functional_grid_datum import GrantaServerApiDataExportDatumsFunctionalGridDatum from .granta_server_api_data_export_datums_functional_series_datum import GrantaServerApiDataExportDatumsFunctionalSeriesDatum +from .granta_server_api_data_export_datums_graph_decoration import GrantaServerApiDataExportDatumsGraphDecoration from .granta_server_api_data_export_datums_grid_point import GrantaServerApiDataExportDatumsGridPoint from .granta_server_api_data_export_datums_hyperlink import GrantaServerApiDataExportDatumsHyperlink from .granta_server_api_data_export_datums_hyperlink_datum import GrantaServerApiDataExportDatumsHyperlinkDatum @@ -78,6 +84,8 @@ from .granta_server_api_data_export_datums_series_point import GrantaServerApiDataExportDatumsSeriesPoint from .granta_server_api_data_export_datums_short_text_datum import GrantaServerApiDataExportDatumsShortTextDatum from .granta_server_api_data_export_export_failure import GrantaServerApiDataExportExportFailure +from .granta_server_api_data_export_link_attribute_to_export import GrantaServerApiDataExportLinkAttributeToExport +from .granta_server_api_data_export_link_attribute_type import GrantaServerApiDataExportLinkAttributeType from .granta_server_api_data_export_parameter_setting_defined_at import GrantaServerApiDataExportParameterSettingDefinedAt from .granta_server_api_data_export_properties_created_by_user_property import GrantaServerApiDataExportPropertiesCreatedByUserProperty from .granta_server_api_data_export_properties_created_date_property import GrantaServerApiDataExportPropertiesCreatedDateProperty @@ -100,7 +108,9 @@ from .granta_server_api_data_export_properties_version_number_property import GrantaServerApiDataExportPropertiesVersionNumberProperty from .granta_server_api_data_export_properties_version_state_property import GrantaServerApiDataExportPropertiesVersionStateProperty from .granta_server_api_data_export_record_with_data import GrantaServerApiDataExportRecordWithData +from .granta_server_api_data_export_simple_attribute_to_export import GrantaServerApiDataExportSimpleAttributeToExport 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_constant_deletion_exception import GrantaServerApiExceptionsConstantDeletionException from .granta_server_api_exceptions_discrete_type_deletion_exception import GrantaServerApiExceptionsDiscreteTypeDeletionException @@ -110,18 +120,18 @@ from .granta_server_api_exceptions_parameter_value_deletion_exception import GrantaServerApiExceptionsParameterValueDeletionException from .granta_server_api_exceptions_table_deletion_exception import GrantaServerApiExceptionsTableDeletionException from .granta_server_api_functional_datum_parameter_info import GrantaServerApiFunctionalDatumParameterInfo +from .granta_server_api_index_record_failure import GrantaServerApiIndexRecordFailure from .granta_server_api_integration_data_export_integration_data_export_request import GrantaServerApiIntegrationDataExportIntegrationDataExportRequest from .granta_server_api_integration_data_export_record_reference import GrantaServerApiIntegrationDataExportRecordReference -from .granta_server_api_integration_index_record_failure import GrantaServerApiIntegrationIndexRecordFailure from .granta_server_api_integration_integration_schema_status import GrantaServerApiIntegrationIntegrationSchemaStatus from .granta_server_api_integration_schema_attribute import GrantaServerApiIntegrationSchemaAttribute from .granta_server_api_integration_schema_discrete_type import GrantaServerApiIntegrationSchemaDiscreteType -from .granta_server_api_integration_schema_integration_schema import GrantaServerApiIntegrationSchemaIntegrationSchema +from .granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier from .granta_server_api_integration_schema_layout import GrantaServerApiIntegrationSchemaLayout from .granta_server_api_integration_schema_link_source_type import GrantaServerApiIntegrationSchemaLinkSourceType -from .granta_server_api_integration_schema_mapping import GrantaServerApiIntegrationSchemaMapping +from .granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier from .granta_server_api_integration_schema_security_groups import GrantaServerApiIntegrationSchemaSecurityGroups -from .granta_server_api_integration_schema_source import GrantaServerApiIntegrationSchemaSource +from .granta_server_api_integration_schema_source_of_granta_server_api_object_identifier import GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier from .granta_server_api_lists_dto_list_boolean_criterion import GrantaServerApiListsDtoListBooleanCriterion from .granta_server_api_lists_dto_list_criterion import GrantaServerApiListsDtoListCriterion from .granta_server_api_lists_dto_list_item import GrantaServerApiListsDtoListItem @@ -149,15 +159,17 @@ from .granta_server_api_schema_attributes_attribute import GrantaServerApiSchemaAttributesAttribute from .granta_server_api_schema_attributes_attribute_attribute_info import GrantaServerApiSchemaAttributesAttributeAttributeInfo from .granta_server_api_schema_attributes_attribute_interpolation_method import GrantaServerApiSchemaAttributesAttributeInterpolationMethod -from .granta_server_api_schema_attributes_attribute_parameter import GrantaServerApiSchemaAttributesAttributeParameter from .granta_server_api_schema_attributes_attribute_scale_type import GrantaServerApiSchemaAttributesAttributeScaleType from .granta_server_api_schema_attributes_attribute_threshold_type import GrantaServerApiSchemaAttributesAttributeThresholdType +from .granta_server_api_schema_attributes_attribute_validate_response import GrantaServerApiSchemaAttributesAttributeValidateResponse from .granta_server_api_schema_attributes_attributes_info import GrantaServerApiSchemaAttributesAttributesInfo from .granta_server_api_schema_attributes_date_time_attribute import GrantaServerApiSchemaAttributesDateTimeAttribute from .granta_server_api_schema_attributes_discrete_attribute import GrantaServerApiSchemaAttributesDiscreteAttribute from .granta_server_api_schema_attributes_discrete_functional_attribute import GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute +from .granta_server_api_schema_attributes_discrete_functional_attribute_parameter import GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter from .granta_server_api_schema_attributes_file_attribute import GrantaServerApiSchemaAttributesFileAttribute from .granta_server_api_schema_attributes_float_functional_attribute import GrantaServerApiSchemaAttributesFloatFunctionalAttribute +from .granta_server_api_schema_attributes_float_functional_attribute_parameter import GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter from .granta_server_api_schema_attributes_hyperlink_attribute import GrantaServerApiSchemaAttributesHyperlinkAttribute from .granta_server_api_schema_attributes_integer_attribute import GrantaServerApiSchemaAttributesIntegerAttribute from .granta_server_api_schema_attributes_logical_attribute import GrantaServerApiSchemaAttributesLogicalAttribute @@ -170,8 +182,34 @@ from .granta_server_api_schema_attributes_short_text_attribute import GrantaServerApiSchemaAttributesShortTextAttribute from .granta_server_api_schema_attributes_tabular_attribute import GrantaServerApiSchemaAttributesTabularAttribute from .granta_server_api_schema_attributes_tabular_attribute_target import GrantaServerApiSchemaAttributesTabularAttributeTarget -from .granta_server_api_schema_constant import GrantaServerApiSchemaConstant -from .granta_server_api_schema_constants_info import GrantaServerApiSchemaConstantsInfo +from .granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute +from .granta_server_api_schema_attributes_update_attributes_update_date_time_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute +from .granta_server_api_schema_attributes_update_attributes_update_discrete_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute +from .granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute +from .granta_server_api_schema_attributes_update_attributes_update_file_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute +from .granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute +from .granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute +from .granta_server_api_schema_attributes_update_attributes_update_integer_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute +from .granta_server_api_schema_attributes_update_attributes_update_logical_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute +from .granta_server_api_schema_attributes_update_attributes_update_long_text_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute +from .granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute +from .granta_server_api_schema_attributes_update_attributes_update_picture_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute +from .granta_server_api_schema_attributes_update_attributes_update_point_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute +from .granta_server_api_schema_attributes_update_attributes_update_range_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute +from .granta_server_api_schema_attributes_update_attributes_update_short_text_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute +from .granta_server_api_schema_attributes_update_attributes_update_tabular_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute +from .granta_server_api_schema_attributes_update_float_functional_attribute_parameter import GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter +from .granta_server_api_schema_attributes_validate_attribute_request import GrantaServerApiSchemaAttributesValidateAttributeRequest +from .granta_server_api_schema_configurations_configuration import GrantaServerApiSchemaConfigurationsConfiguration +from .granta_server_api_schema_configurations_configurations_info import GrantaServerApiSchemaConfigurationsConfigurationsInfo +from .granta_server_api_schema_configurations_create_configuration import GrantaServerApiSchemaConfigurationsCreateConfiguration +from .granta_server_api_schema_configurations_update_configuration import GrantaServerApiSchemaConfigurationsUpdateConfiguration +from .granta_server_api_schema_constants_constant import GrantaServerApiSchemaConstantsConstant +from .granta_server_api_schema_constants_constants_info import GrantaServerApiSchemaConstantsConstantsInfo +from .granta_server_api_schema_constants_create_constant import GrantaServerApiSchemaConstantsCreateConstant +from .granta_server_api_schema_constants_update_constant import GrantaServerApiSchemaConstantsUpdateConstant +from .granta_server_api_schema_data_rule import GrantaServerApiSchemaDataRule +from .granta_server_api_schema_data_rules_info import GrantaServerApiSchemaDataRulesInfo from .granta_server_api_schema_database import GrantaServerApiSchemaDatabase from .granta_server_api_schema_database_status import GrantaServerApiSchemaDatabaseStatus from .granta_server_api_schema_databases_info import GrantaServerApiSchemaDatabasesInfo @@ -181,6 +219,13 @@ from .granta_server_api_schema_discrete_values_info import GrantaServerApiSchemaDiscreteValuesInfo from .granta_server_api_schema_expression import GrantaServerApiSchemaExpression from .granta_server_api_schema_expressions_info import GrantaServerApiSchemaExpressionsInfo +from .granta_server_api_schema_files_create_folder import GrantaServerApiSchemaFilesCreateFolder +from .granta_server_api_schema_files_file_header import GrantaServerApiSchemaFilesFileHeader +from .granta_server_api_schema_files_files_info import GrantaServerApiSchemaFilesFilesInfo +from .granta_server_api_schema_files_folder import GrantaServerApiSchemaFilesFolder +from .granta_server_api_schema_files_folders_info import GrantaServerApiSchemaFilesFoldersInfo +from .granta_server_api_schema_files_move_folder import GrantaServerApiSchemaFilesMoveFolder +from .granta_server_api_schema_files_update_folder import GrantaServerApiSchemaFilesUpdateFolder from .granta_server_api_schema_layouts_full_layout_section import GrantaServerApiSchemaLayoutsFullLayoutSection from .granta_server_api_schema_layouts_layout import GrantaServerApiSchemaLayoutsLayout from .granta_server_api_schema_layouts_layout_attribute_item import GrantaServerApiSchemaLayoutsLayoutAttributeItem @@ -201,6 +246,7 @@ from .granta_server_api_schema_layouts_new_layout_item_type import GrantaServerApiSchemaLayoutsNewLayoutItemType from .granta_server_api_schema_layouts_new_layout_record_link_item import GrantaServerApiSchemaLayoutsNewLayoutRecordLinkItem from .granta_server_api_schema_layouts_new_layout_smart_link_item import GrantaServerApiSchemaLayoutsNewLayoutSmartLinkItem +from .granta_server_api_schema_layouts_update_layout import GrantaServerApiSchemaLayoutsUpdateLayout from .granta_server_api_schema_parameters_continuous_range import GrantaServerApiSchemaParametersContinuousRange from .granta_server_api_schema_parameters_discrete_parameter import GrantaServerApiSchemaParametersDiscreteParameter from .granta_server_api_schema_parameters_discrete_parameter_content import GrantaServerApiSchemaParametersDiscreteParameterContent @@ -218,19 +264,39 @@ from .granta_server_api_schema_parameters_parameter_value_type import GrantaServerApiSchemaParametersParameterValueType from .granta_server_api_schema_parameters_parameter_values_info import GrantaServerApiSchemaParametersParameterValuesInfo from .granta_server_api_schema_parameters_parameters_info import GrantaServerApiSchemaParametersParametersInfo +from .granta_server_api_schema_parameters_update_discrete_parameter import GrantaServerApiSchemaParametersUpdateDiscreteParameter +from .granta_server_api_schema_parameters_update_numeric_parameter import GrantaServerApiSchemaParametersUpdateNumericParameter +from .granta_server_api_schema_parameters_update_parameter import GrantaServerApiSchemaParametersUpdateParameter from .granta_server_api_schema_profile import GrantaServerApiSchemaProfile from .granta_server_api_schema_profile_table import GrantaServerApiSchemaProfileTable from .granta_server_api_schema_profile_tables_info import GrantaServerApiSchemaProfileTablesInfo +from .granta_server_api_schema_record_link_groups_attribute_link_pair import GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair +from .granta_server_api_schema_record_link_groups_cross_database_record_link_group import GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup +from .granta_server_api_schema_record_link_groups_dynamic_record_link_group import GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup +from .granta_server_api_schema_record_link_groups_link_info import GrantaServerApiSchemaRecordLinkGroupsLinkInfo +from .granta_server_api_schema_record_link_groups_link_target import GrantaServerApiSchemaRecordLinkGroupsLinkTarget +from .granta_server_api_schema_record_link_groups_record_link_group import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup +from .granta_server_api_schema_record_link_groups_record_link_group_type import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType +from .granta_server_api_schema_record_link_groups_record_link_groups_info import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo +from .granta_server_api_schema_record_link_groups_referential_integrity_model import GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel +from .granta_server_api_schema_record_link_groups_static_record_link_group import GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup +from .granta_server_api_schema_record_link_groups_update_cross_database_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup +from .granta_server_api_schema_record_link_groups_update_dynamic_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup +from .granta_server_api_schema_record_link_groups_update_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup +from .granta_server_api_schema_record_link_groups_update_static_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup from .granta_server_api_schema_slim_entities_slim_attribute import GrantaServerApiSchemaSlimEntitiesSlimAttribute +from .granta_server_api_schema_slim_entities_slim_configuration import GrantaServerApiSchemaSlimEntitiesSlimConfiguration from .granta_server_api_schema_slim_entities_slim_constant import GrantaServerApiSchemaSlimEntitiesSlimConstant from .granta_server_api_schema_slim_entities_slim_database import GrantaServerApiSchemaSlimEntitiesSlimDatabase from .granta_server_api_schema_slim_entities_slim_expression import GrantaServerApiSchemaSlimEntitiesSlimExpression +from .granta_server_api_schema_slim_entities_slim_file import GrantaServerApiSchemaSlimEntitiesSlimFile from .granta_server_api_schema_slim_entities_slim_layout import GrantaServerApiSchemaSlimEntitiesSlimLayout from .granta_server_api_schema_slim_entities_slim_layout_section import GrantaServerApiSchemaSlimEntitiesSlimLayoutSection from .granta_server_api_schema_slim_entities_slim_named_entity import GrantaServerApiSchemaSlimEntitiesSlimNamedEntity from .granta_server_api_schema_slim_entities_slim_objects import GrantaServerApiSchemaSlimEntitiesSlimObjects from .granta_server_api_schema_slim_entities_slim_profile import GrantaServerApiSchemaSlimEntitiesSlimProfile from .granta_server_api_schema_slim_entities_slim_profile_table import GrantaServerApiSchemaSlimEntitiesSlimProfileTable +from .granta_server_api_schema_slim_entities_slim_record_link_group import GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup from .granta_server_api_schema_slim_entities_slim_subset import GrantaServerApiSchemaSlimEntitiesSlimSubset from .granta_server_api_schema_slim_entities_slim_table import GrantaServerApiSchemaSlimEntitiesSlimTable from .granta_server_api_schema_slim_entities_slim_unit import GrantaServerApiSchemaSlimEntitiesSlimUnit @@ -244,10 +310,20 @@ from .granta_server_api_schema_tabular_columns_linked_attribute_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn from .granta_server_api_schema_tabular_columns_linked_column_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn from .granta_server_api_schema_tabular_columns_linked_record_tabular_column import GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn -from .granta_server_api_schema_tabular_columns_local_tabular_column import GrantaServerApiSchemaTabularColumnsLocalTabularColumn +from .granta_server_api_schema_tabular_columns_local_date_time_tabular_column import GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn +from .granta_server_api_schema_tabular_columns_local_discrete_tabular_column import GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn +from .granta_server_api_schema_tabular_columns_local_file_tabular_column import GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn +from .granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column import GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn +from .granta_server_api_schema_tabular_columns_local_integer_tabular_column import GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn +from .granta_server_api_schema_tabular_columns_local_logical_tabular_column import GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn +from .granta_server_api_schema_tabular_columns_local_long_text_tabular_column import GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn +from .granta_server_api_schema_tabular_columns_local_picture_tabular_column import GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn +from .granta_server_api_schema_tabular_columns_local_point_tabular_column import GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn +from .granta_server_api_schema_tabular_columns_local_range_tabular_column import GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn +from .granta_server_api_schema_tabular_columns_local_short_text_tabular_column import GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn from .granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn +from .granta_server_api_schema_tabular_columns_tabular_column_dto_type import GrantaServerApiSchemaTabularColumnsTabularColumnDtoType from .granta_server_api_schema_tabular_columns_tabular_column_roll_up_type import GrantaServerApiSchemaTabularColumnsTabularColumnRollUpType -from .granta_server_api_schema_tabular_columns_tabular_column_type import GrantaServerApiSchemaTabularColumnsTabularColumnType from .granta_server_api_schema_tabular_columns_unavailable_tabular_column import GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn from .granta_server_api_schema_units_unit import GrantaServerApiSchemaUnitsUnit from .granta_server_api_schema_units_unit_equivalent import GrantaServerApiSchemaUnitsUnitEquivalent @@ -257,19 +333,31 @@ from .granta_server_api_schema_units_unit_systems_info import GrantaServerApiSchemaUnitsUnitSystemsInfo from .granta_server_api_schema_units_unit_usage import GrantaServerApiSchemaUnitsUnitUsage from .granta_server_api_schema_units_units_info import GrantaServerApiSchemaUnitsUnitsInfo +from .granta_server_api_schema_units_update_unit_system import GrantaServerApiSchemaUnitsUpdateUnitSystem +from .granta_server_api_schema_update_data_rule import GrantaServerApiSchemaUpdateDataRule +from .granta_server_api_schema_update_database import GrantaServerApiSchemaUpdateDatabase +from .granta_server_api_schema_update_expression import GrantaServerApiSchemaUpdateExpression +from .granta_server_api_schema_update_profile import GrantaServerApiSchemaUpdateProfile +from .granta_server_api_schema_update_profile_table import GrantaServerApiSchemaUpdateProfileTable +from .granta_server_api_schema_update_subset import GrantaServerApiSchemaUpdateSubset +from .granta_server_api_schema_update_table import GrantaServerApiSchemaUpdateTable from .granta_server_api_search_attribute_criterion import GrantaServerApiSearchAttributeCriterion from .granta_server_api_search_attribute_exists_criterion import GrantaServerApiSearchAttributeExistsCriterion from .granta_server_api_search_attribute_matches_criterion import GrantaServerApiSearchAttributeMatchesCriterion from .granta_server_api_search_attribute_not_applicable_criterion import GrantaServerApiSearchAttributeNotApplicableCriterion from .granta_server_api_search_attribute_sort_criterion import GrantaServerApiSearchAttributeSortCriterion from .granta_server_api_search_boolean_criterion import GrantaServerApiSearchBooleanCriterion -from .granta_server_api_search_boost import GrantaServerApiSearchBoost +from .granta_server_api_search_boost_by_guid import GrantaServerApiSearchBoostByGuid +from .granta_server_api_search_boost_by_identity import GrantaServerApiSearchBoostByIdentity from .granta_server_api_search_criterion import GrantaServerApiSearchCriterion from .granta_server_api_search_date_time_datum_criterion import GrantaServerApiSearchDateTimeDatumCriterion from .granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion from .granta_server_api_search_datum_exists_criterion import GrantaServerApiSearchDatumExistsCriterion from .granta_server_api_search_discrete_functional_range_datum_criterion import GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion from .granta_server_api_search_discrete_functional_values_datum_criterion import GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion +from .granta_server_api_search_discrete_guid_datum_criterion import GrantaServerApiSearchDiscreteGuidDatumCriterion +from .granta_server_api_search_discrete_guid_values_datum_criterion import GrantaServerApiSearchDiscreteGuidValuesDatumCriterion +from .granta_server_api_search_discrete_identity_datum_criterion import GrantaServerApiSearchDiscreteIdentityDatumCriterion from .granta_server_api_search_discrete_identity_values_datum_criterion import GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion from .granta_server_api_search_discrete_parameter_name_constraint import GrantaServerApiSearchDiscreteParameterNameConstraint from .granta_server_api_search_discrete_parameter_value_constraint import GrantaServerApiSearchDiscreteParameterValueConstraint @@ -282,9 +370,10 @@ from .granta_server_api_search_float_functional_graph_datum_criterion import GrantaServerApiSearchFloatFunctionalGraphDatumCriterion from .granta_server_api_search_free_text_criterion import GrantaServerApiSearchFreeTextCriterion from .granta_server_api_search_hyperlink_datum_criterion import GrantaServerApiSearchHyperlinkDatumCriterion +from .granta_server_api_search_index_status import GrantaServerApiSearchIndexStatus from .granta_server_api_search_integer_datum_criterion import GrantaServerApiSearchIntegerDatumCriterion +from .granta_server_api_search_link_attribute_type import GrantaServerApiSearchLinkAttributeType from .granta_server_api_search_link_datum_criterion import GrantaServerApiSearchLinkDatumCriterion -from .granta_server_api_search_link_datum_type import GrantaServerApiSearchLinkDatumType from .granta_server_api_search_linking_value_match_behaviour import GrantaServerApiSearchLinkingValueMatchBehaviour from .granta_server_api_search_logical_datum_criterion import GrantaServerApiSearchLogicalDatumCriterion from .granta_server_api_search_long_sorting_value import GrantaServerApiSearchLongSortingValue @@ -311,25 +400,11 @@ from .granta_server_api_search_short_text_datum_criterion import GrantaServerApiSearchShortTextDatumCriterion from .granta_server_api_search_sort_criterion import GrantaServerApiSearchSortCriterion from .granta_server_api_search_sort_direction import GrantaServerApiSearchSortDirection +from .granta_server_api_search_sort_type import GrantaServerApiSearchSortType from .granta_server_api_search_sorting_value import GrantaServerApiSearchSortingValue from .granta_server_api_search_string_sorting_value import GrantaServerApiSearchStringSortingValue from .granta_server_api_search_tabular_linking_value_criterion import GrantaServerApiSearchTabularLinkingValueCriterion +from .granta_server_api_search_text_match_behaviour import GrantaServerApiSearchTextMatchBehaviour from .granta_server_api_version_state import GrantaServerApiVersionState -from .microsoft_asp_net_core_json_patch_operations_operation import MicrosoftAspNetCoreJsonPatchOperationsOperation -from .one_of_granta_server_api_aggregations_attribute_aggregation import OneOfGrantaServerApiAggregationsAttributeAggregation -from .one_of_granta_server_api_aggregations_attribute_aggregation_criterion import OneOfGrantaServerApiAggregationsAttributeAggregationCriterion -from .one_of_granta_server_api_aggregations_attribute_value_aggregation import OneOfGrantaServerApiAggregationsAttributeValueAggregation -from .one_of_granta_server_api_data_export_datums_applicable_datum import OneOfGrantaServerApiDataExportDatumsApplicableDatum -from .one_of_granta_server_api_data_export_datums_functional_datum import OneOfGrantaServerApiDataExportDatumsFunctionalDatum -from .one_of_granta_server_api_schema_attributes_attribute import OneOfGrantaServerApiSchemaAttributesAttribute -from .one_of_granta_server_api_schema_layouts_layout_item import OneOfGrantaServerApiSchemaLayoutsLayoutItem -from .one_of_granta_server_api_schema_layouts_layout_section import OneOfGrantaServerApiSchemaLayoutsLayoutSection -from .one_of_granta_server_api_schema_layouts_new_layout_item import OneOfGrantaServerApiSchemaLayoutsNewLayoutItem -from .one_of_granta_server_api_schema_parameters_parameter import OneOfGrantaServerApiSchemaParametersParameter -from .one_of_granta_server_api_schema_parameters_parameter_content import OneOfGrantaServerApiSchemaParametersParameterContent -from .one_of_granta_server_api_schema_parameters_parameter_value import OneOfGrantaServerApiSchemaParametersParameterValue -from .one_of_granta_server_api_schema_tabular_columns_tabular_column import OneOfGrantaServerApiSchemaTabularColumnsTabularColumn -from .one_of_granta_server_api_search_attribute_criterion import OneOfGrantaServerApiSearchAttributeCriterion -from .one_of_granta_server_api_search_parameter_constraint import OneOfGrantaServerApiSearchParameterConstraint -from .one_of_granta_server_api_search_sort_criterion import OneOfGrantaServerApiSearchSortCriterion +from .json_patch_document import JsonPatchDocument from .system_net_http_status_code import SystemNetHttpStatusCode diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py index 815d7920..43ab066d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_mi_search_record_property_fake_attribute_numbers.py @@ -24,15 +24,15 @@ class GrantaMISearchRecordPropertyFakeAttributeNumbers(ModelBase): """ allowed enum values """ - BREADCRUMBS_VALUE_10_ = "{\"name\":\"Breadcrumbs\",\"value\":-10}" - TREENAME_VALUE_9_ = "{\"name\":\"TreeName\",\"value\":-9}" - TABLEIDENTITY_VALUE_8_ = "{\"name\":\"TableIdentity\",\"value\":-8}" - TABLENAME_VALUE_7_ = "{\"name\":\"TableName\",\"value\":-7}" - RECORDCOLOR_VALUE_6_ = "{\"name\":\"RecordColor\",\"value\":-6}" - DATABASEKEY_VALUE_5_ = "{\"name\":\"DatabaseKey\",\"value\":-5}" - RECORDNAME_VALUE_4_ = "{\"name\":\"RecordName\",\"value\":-4}" - RECORDMODIFIEDBY_VALUE_3_ = "{\"name\":\"RecordModifiedBy\",\"value\":-3}" - RECORDCREATEDBY_VALUE_2_ = "{\"name\":\"RecordCreatedBy\",\"value\":-2}" + BREADCRUMBS_IDENTITY_10_GUID_00000007_0000_0000_0000_000000000000_ = "{\"name\":\"Breadcrumbs\",\"identity\":-10,\"guid\":\"00000007-0000-0000-0000-000000000000\"}" + TREENAME_IDENTITY_9_GUID_00000006_0000_0000_0000_000000000000_ = "{\"name\":\"TreeName\",\"identity\":-9,\"guid\":\"00000006-0000-0000-0000-000000000000\"}" + TABLEIDENTITY_IDENTITY_8_GUID_00000005_0000_0000_0000_000000000000_ = "{\"name\":\"TableIdentity\",\"identity\":-8,\"guid\":\"00000005-0000-0000-0000-000000000000\"}" + TABLENAME_IDENTITY_7_GUID_00000004_0000_0000_0000_000000000000_ = "{\"name\":\"TableName\",\"identity\":-7,\"guid\":\"00000004-0000-0000-0000-000000000000\"}" + RECORDCOLOR_IDENTITY_6_GUID_00000003_0000_0000_0000_000000000000_ = "{\"name\":\"RecordColor\",\"identity\":-6,\"guid\":\"00000003-0000-0000-0000-000000000000\"}" + DATABASEKEY_IDENTITY_5_GUID_00000002_0000_0000_0000_000000000000_ = "{\"name\":\"DatabaseKey\",\"identity\":-5,\"guid\":\"00000002-0000-0000-0000-000000000000\"}" + RECORDNAME_IDENTITY_4_GUID_00000001_0000_0000_0000_000000000000_ = "{\"name\":\"RecordName\",\"identity\":-4,\"guid\":\"00000001-0000-0000-0000-000000000000\"}" + RECORDMODIFIEDBY_IDENTITY_3_GUID_00000009_0000_0000_0000_000000000000_ = "{\"name\":\"RecordModifiedBy\",\"identity\":-3,\"guid\":\"00000009-0000-0000-0000-000000000000\"}" + RECORDCREATEDBY_IDENTITY_2_GUID_00000008_0000_0000_0000_000000000000_ = "{\"name\":\"RecordCreatedBy\",\"identity\":-2,\"guid\":\"00000008-0000-0000-0000-000000000000\"}" """ Attributes: swagger_types (dict): The key is attribute name diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py index 5c24507b..71366042 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_aggregation_datum_criterion.py @@ -45,6 +45,7 @@ class GrantaServerApiAggregationsAggregationDatumCriterion(ModelBase): 'shortText'.lower(): '#/components/schemas/GrantaServerApiAggregationsShortTextAggregationDatumCriterion', 'link'.lower(): '#/components/schemas/GrantaServerApiAggregationsLinkAggregationDatumCriterion', 'logical'.lower(): '#/components/schemas/GrantaServerApiAggregationsLogicalAggregationDatumCriterion', + 'floatFunctionalGraph'.lower(): '#/components/schemas/GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion', } def __init__(self): # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py index da23aa45..132657c4 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation.py @@ -30,6 +30,7 @@ class GrantaServerApiAggregationsAttributeAggregation(GrantaServerApiAggregation """ swagger_types = { 'attribute_identity': 'int', + 'attribute_guid': 'str', 'type': 'str', 'count': 'int' } @@ -38,6 +39,7 @@ class GrantaServerApiAggregationsAttributeAggregation(GrantaServerApiAggregation attribute_map = { 'attribute_identity': 'attributeIdentity', + 'attribute_guid': 'attributeGuid', 'type': 'type', 'count': 'count' } @@ -52,15 +54,18 @@ class GrantaServerApiAggregationsAttributeAggregation(GrantaServerApiAggregation 'exists'.lower(): '#/components/schemas/GrantaServerApiAggregationsAttributeExistsAggregation', } - def __init__(self, attribute_identity=None, type='attribute', count=None, *args, **kwargs): # noqa: E501 + def __init__(self, attribute_identity=None, attribute_guid=None, type='attribute', count=None, *args, **kwargs): # noqa: E501 """GrantaServerApiAggregationsAttributeAggregation - a model defined in Swagger""" # noqa: E501 GrantaServerApiAggregationsAggregation.__init__(self, *args, **kwargs) self._attribute_identity = None + self._attribute_guid = None self._type = None self._count = None self.discriminator = 'attribute_aggregation_type' if attribute_identity is not None: self.attribute_identity = attribute_identity + if attribute_guid is not None: + self.attribute_guid = attribute_guid self.type = type if count is not None: self.count = count @@ -85,6 +90,26 @@ def attribute_identity(self, attribute_identity): """ self._attribute_identity = attribute_identity + @property + def attribute_guid(self): + """Gets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. # noqa: E501 + The GUID of the attribute that was aggregated over. # noqa: E501 + + :return: The attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. # noqa: E501 + :rtype: str + """ + return self._attribute_guid + + @attribute_guid.setter + def attribute_guid(self, attribute_guid): + """Sets the attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. + The GUID of the attribute that was aggregated over. # noqa: E501 + + :param attribute_guid: The attribute_guid of this GrantaServerApiAggregationsAttributeAggregation. # noqa: E501 + :type: str + """ + self._attribute_guid = attribute_guid + @property def type(self): """Gets the type of this GrantaServerApiAggregationsAttributeAggregation. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py index 005c95a6..28ea9683 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_aggregation_criterion.py @@ -30,6 +30,7 @@ class GrantaServerApiAggregationsAttributeAggregationCriterion(GrantaServerApiAg """ swagger_types = { 'identity': 'int', + 'guid': 'str', 'is_meta_attribute': 'bool', 'type': 'str' } @@ -38,6 +39,7 @@ class GrantaServerApiAggregationsAttributeAggregationCriterion(GrantaServerApiAg attribute_map = { 'identity': 'identity', + 'guid': 'guid', 'is_meta_attribute': 'isMetaAttribute', 'type': 'type' } @@ -52,15 +54,18 @@ class GrantaServerApiAggregationsAttributeAggregationCriterion(GrantaServerApiAg 'exists'.lower(): '#/components/schemas/GrantaServerApiAggregationsAttributeAggregationExistsCriterion', } - def __init__(self, identity=None, is_meta_attribute=None, type='attribute', *args, **kwargs): # noqa: E501 + def __init__(self, identity=None, guid=None, is_meta_attribute=None, type='attribute', *args, **kwargs): # noqa: E501 """GrantaServerApiAggregationsAttributeAggregationCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiAggregationsAggregationCriterion.__init__(self, *args, **kwargs) self._identity = None + self._guid = None self._is_meta_attribute = None self._type = None self.discriminator = 'attribute_aggregation_criterion_type' if identity is not None: self.identity = identity + if guid is not None: + self.guid = guid if is_meta_attribute is not None: self.is_meta_attribute = is_meta_attribute self.type = type @@ -83,6 +88,24 @@ def identity(self, identity): """ self._identity = identity + @property + def guid(self): + """Gets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. # noqa: E501 + + :return: The guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. + + :param guid: The guid of this GrantaServerApiAggregationsAttributeAggregationCriterion. # noqa: E501 + :type: str + """ + self._guid = guid + @property def is_meta_attribute(self): """Gets the is_meta_attribute of this GrantaServerApiAggregationsAttributeAggregationCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py index 38e4f9e9..0d9a1180 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_attribute_value_aggregation.py @@ -52,6 +52,7 @@ class GrantaServerApiAggregationsAttributeValueAggregation(GrantaServerApiAggreg 'discreteText'.lower(): '#/components/schemas/GrantaServerApiAggregationsDiscreteTextAttributeAggregation', 'link'.lower(): '#/components/schemas/GrantaServerApiAggregationsLinkAttributeAggregation', 'logical'.lower(): '#/components/schemas/GrantaServerApiAggregationsLogicalAttributeAggregation', + 'floatFunctionalGraph'.lower(): '#/components/schemas/GrantaServerApiAggregationsFloatFunctionalAttributeAggregation', } def __init__(self, attribute_aggregation_type='value', *args, **kwargs): # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py index 0799fd10..0821c66e 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_discrete_text_aggregation_datum_criterion.py @@ -64,7 +64,7 @@ def __init__(self, number_of_terms=None, prefix=None, type='discreteText', *args @property def number_of_terms(self): """Gets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. # noqa: E501 - The maximum number of terms to return in this aggregation. If this is not provided, or if an invalid value is provided, then a default value of 10 will be assumed. # noqa: E501 + The maximum number of terms to return in this aggregation. # noqa: E501 :return: The number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. # noqa: E501 :rtype: int @@ -74,7 +74,7 @@ def number_of_terms(self): @number_of_terms.setter def number_of_terms(self, number_of_terms): """Sets the number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. - The maximum number of terms to return in this aggregation. If this is not provided, or if an invalid value is provided, then a default value of 10 will be assumed. # noqa: E501 + The maximum number of terms to return in this aggregation. # noqa: E501 :param number_of_terms: The number_of_terms of this GrantaServerApiAggregationsDiscreteTextAggregationDatumCriterion. # noqa: E501 :type: int diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py new file mode 100644 index 00000000..f0c83500 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_aggregation_datum_criterion.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_aggregation_datum_criterion import GrantaServerApiAggregationsAggregationDatumCriterion # noqa: F401,E501 + +class GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion(GrantaServerApiAggregationsAggregationDatumCriterion): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'number_of_parameter_values': 'int', + 'type': 'str' + } + if hasattr(GrantaServerApiAggregationsAggregationDatumCriterion, "swagger_types"): + swagger_types.update(GrantaServerApiAggregationsAggregationDatumCriterion.swagger_types) + + attribute_map = { + 'number_of_parameter_values': 'numberOfParameterValues', + 'type': 'type' + } + if hasattr(GrantaServerApiAggregationsAggregationDatumCriterion, "attribute_map"): + attribute_map.update(GrantaServerApiAggregationsAggregationDatumCriterion.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, number_of_parameter_values=None, type='floatFunctionalGraph', *args, **kwargs): # noqa: E501 + """GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion - a model defined in Swagger""" # noqa: E501 + GrantaServerApiAggregationsAggregationDatumCriterion.__init__(self, *args, **kwargs) + self._number_of_parameter_values = None + self._type = None + self.discriminator = None + if number_of_parameter_values is not None: + self.number_of_parameter_values = number_of_parameter_values + self.type = type + + @property + def number_of_parameter_values(self): + """Gets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + The maximum number of values to return in this aggregation. # noqa: E501 + + :return: The number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + :rtype: int + """ + return self._number_of_parameter_values + + @number_of_parameter_values.setter + def number_of_parameter_values(self, number_of_parameter_values): + """Sets the number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. + The maximum number of values to return in this aggregation. # noqa: E501 + + :param number_of_parameter_values: The number_of_parameter_values of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + :type: int + """ + self._number_of_parameter_values = number_of_parameter_values + + @property + def type(self): + """Gets the type of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + + :return: The type of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. + + :param type: The type of this GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAggregationsFloatFunctionalAggregationDatumCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_aggregations_float_functional_attribute_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_attribute_aggregation.py new file mode 100644 index 00000000..3ad5671b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_float_functional_attribute_aggregation.py @@ -0,0 +1,240 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_aggregations_attribute_value_aggregation import GrantaServerApiAggregationsAttributeValueAggregation # noqa: F401,E501 + +class GrantaServerApiAggregationsFloatFunctionalAttributeAggregation(GrantaServerApiAggregationsAttributeValueAggregation): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'x_axis_parameter_identity_values': 'list[GrantaServerApiAggregationsValueWithCountOfSystemInt32]', + 'x_axis_parameter_guid_values': 'list[GrantaServerApiAggregationsValueWithCountOfSystemGuid]', + 'show_as_table_values': 'list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]', + 'minimum_number_of_series': 'int', + 'maximum_number_of_series': 'int', + 'datum_type': 'str' + } + if hasattr(GrantaServerApiAggregationsAttributeValueAggregation, "swagger_types"): + swagger_types.update(GrantaServerApiAggregationsAttributeValueAggregation.swagger_types) + + attribute_map = { + 'x_axis_parameter_identity_values': 'xAxisParameterIdentityValues', + 'x_axis_parameter_guid_values': 'xAxisParameterGuidValues', + 'show_as_table_values': 'showAsTableValues', + 'minimum_number_of_series': 'minimumNumberOfSeries', + 'maximum_number_of_series': 'maximumNumberOfSeries', + 'datum_type': 'datumType' + } + if hasattr(GrantaServerApiAggregationsAttributeValueAggregation, "attribute_map"): + attribute_map.update(GrantaServerApiAggregationsAttributeValueAggregation.attribute_map) + + subtype_mapping = { + 'xAxisParameterIdentityValues': 'GrantaServerApiAggregationsValueWithCountOfSystemInt32', + 'xAxisParameterGuidValues': 'GrantaServerApiAggregationsValueWithCountOfSystemGuid', + 'showAsTableValues': 'GrantaServerApiAggregationsValueWithCountOfSystemBoolean', + } + + + def __init__(self, x_axis_parameter_identity_values=None, x_axis_parameter_guid_values=None, show_as_table_values=None, minimum_number_of_series=None, maximum_number_of_series=None, datum_type='floatFunctionalGraph', *args, **kwargs): # noqa: E501 + """GrantaServerApiAggregationsFloatFunctionalAttributeAggregation - a model defined in Swagger""" # noqa: E501 + GrantaServerApiAggregationsAttributeValueAggregation.__init__(self, *args, **kwargs) + self._x_axis_parameter_identity_values = None + self._x_axis_parameter_guid_values = None + self._show_as_table_values = None + self._minimum_number_of_series = None + self._maximum_number_of_series = None + self._datum_type = None + self.discriminator = None + if x_axis_parameter_identity_values is not None: + self.x_axis_parameter_identity_values = x_axis_parameter_identity_values + if x_axis_parameter_guid_values is not None: + self.x_axis_parameter_guid_values = x_axis_parameter_guid_values + if show_as_table_values is not None: + self.show_as_table_values = show_as_table_values + if minimum_number_of_series is not None: + self.minimum_number_of_series = minimum_number_of_series + if maximum_number_of_series is not None: + self.maximum_number_of_series = maximum_number_of_series + self.datum_type = datum_type + + @property + def x_axis_parameter_identity_values(self): + """Gets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: list[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + """ + return self._x_axis_parameter_identity_values + + @x_axis_parameter_identity_values.setter + def x_axis_parameter_identity_values(self, x_axis_parameter_identity_values): + """Sets the x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param x_axis_parameter_identity_values: The x_axis_parameter_identity_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: list[GrantaServerApiAggregationsValueWithCountOfSystemInt32] + """ + self._x_axis_parameter_identity_values = x_axis_parameter_identity_values + + @property + def x_axis_parameter_guid_values(self): + """Gets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: list[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + """ + return self._x_axis_parameter_guid_values + + @x_axis_parameter_guid_values.setter + def x_axis_parameter_guid_values(self, x_axis_parameter_guid_values): + """Sets the x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param x_axis_parameter_guid_values: The x_axis_parameter_guid_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: list[GrantaServerApiAggregationsValueWithCountOfSystemGuid] + """ + self._x_axis_parameter_guid_values = x_axis_parameter_guid_values + + @property + def show_as_table_values(self): + """Gets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + """ + return self._show_as_table_values + + @show_as_table_values.setter + def show_as_table_values(self, show_as_table_values): + """Sets the show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param show_as_table_values: The show_as_table_values of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] + """ + self._show_as_table_values = show_as_table_values + + @property + def minimum_number_of_series(self): + """Gets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: int + """ + return self._minimum_number_of_series + + @minimum_number_of_series.setter + def minimum_number_of_series(self, minimum_number_of_series): + """Sets the minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param minimum_number_of_series: The minimum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: int + """ + self._minimum_number_of_series = minimum_number_of_series + + @property + def maximum_number_of_series(self): + """Gets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: int + """ + return self._maximum_number_of_series + + @maximum_number_of_series.setter + def maximum_number_of_series(self, maximum_number_of_series): + """Sets the maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param maximum_number_of_series: The maximum_number_of_series of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: int + """ + self._maximum_number_of_series = maximum_number_of_series + + @property + def datum_type(self): + """Gets the datum_type of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + + :return: The datum_type of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :rtype: str + """ + return self._datum_type + + @datum_type.setter + def datum_type(self, datum_type): + """Sets the datum_type of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. + + :param datum_type: The datum_type of this GrantaServerApiAggregationsFloatFunctionalAttributeAggregation. # noqa: E501 + :type: str + """ + if datum_type is None: + raise ValueError("Invalid value for `datum_type`, must not be `None`") # noqa: E501 + self._datum_type = datum_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiAggregationsFloatFunctionalAttributeAggregation, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAggregationsFloatFunctionalAttributeAggregation): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_aggregations_free_text_aggregation_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py index beed8ba6..36ce1e5a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_free_text_aggregation_criterion.py @@ -32,6 +32,8 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion(GrantaServerApiAgg 'criterion_guid': 'str', 'identities': 'list[int]', 'identities_to_exclude': 'list[int]', + 'guids': 'list[str]', + 'guids_to_exclude': 'list[str]', 'number_of_terms': 'int', 'prefix': 'str', 'type': 'str' @@ -43,6 +45,8 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion(GrantaServerApiAgg 'criterion_guid': 'criterionGuid', 'identities': 'identities', 'identities_to_exclude': 'identitiesToExclude', + 'guids': 'guids', + 'guids_to_exclude': 'guidsToExclude', 'number_of_terms': 'numberOfTerms', 'prefix': 'prefix', 'type': 'type' @@ -54,12 +58,14 @@ class GrantaServerApiAggregationsFreeTextAggregationCriterion(GrantaServerApiAgg } - def __init__(self, criterion_guid=None, identities=None, identities_to_exclude=None, number_of_terms=None, prefix=None, type='text', *args, **kwargs): # noqa: E501 + def __init__(self, criterion_guid=None, identities=None, identities_to_exclude=None, guids=None, guids_to_exclude=None, number_of_terms=None, prefix=None, type='text', *args, **kwargs): # noqa: E501 """GrantaServerApiAggregationsFreeTextAggregationCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiAggregationsAggregationCriterion.__init__(self, *args, **kwargs) self._criterion_guid = None self._identities = None self._identities_to_exclude = None + self._guids = None + self._guids_to_exclude = None self._number_of_terms = None self._prefix = None self._type = None @@ -70,6 +76,10 @@ def __init__(self, criterion_guid=None, identities=None, identities_to_exclude=N self.identities = identities if identities_to_exclude is not None: self.identities_to_exclude = identities_to_exclude + if guids is not None: + self.guids = guids + if guids_to_exclude is not None: + self.guids_to_exclude = guids_to_exclude if number_of_terms is not None: self.number_of_terms = number_of_terms if prefix is not None: @@ -132,6 +142,42 @@ def identities_to_exclude(self, identities_to_exclude): """ self._identities_to_exclude = identities_to_exclude + @property + def guids(self): + """Gets the guids of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + + :return: The guids of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._guids + + @guids.setter + def guids(self, guids): + """Sets the guids of this GrantaServerApiAggregationsFreeTextAggregationCriterion. + + :param guids: The guids of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + :type: list[str] + """ + self._guids = guids + + @property + def guids_to_exclude(self): + """Gets the guids_to_exclude of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + + :return: The guids_to_exclude of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._guids_to_exclude + + @guids_to_exclude.setter + def guids_to_exclude(self, guids_to_exclude): + """Sets the guids_to_exclude of this GrantaServerApiAggregationsFreeTextAggregationCriterion. + + :param guids_to_exclude: The guids_to_exclude of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 + :type: list[str] + """ + self._guids_to_exclude = guids_to_exclude + @property def number_of_terms(self): """Gets the number_of_terms of this GrantaServerApiAggregationsFreeTextAggregationCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_attribute_aggregation.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_attribute_aggregation.py index 950f284d..f0cd974c 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_attribute_aggregation.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_logical_attribute_aggregation.py @@ -29,7 +29,7 @@ class GrantaServerApiAggregationsLogicalAttributeAggregation(GrantaServerApiAggr and the value is json key in definition. """ swagger_types = { - 'values': 'list[GrantaServerApiAggregationsValueWithCount]', + 'values': 'list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean]', 'datum_type': 'str' } if hasattr(GrantaServerApiAggregationsAttributeValueAggregation, "swagger_types"): @@ -43,7 +43,7 @@ class GrantaServerApiAggregationsLogicalAttributeAggregation(GrantaServerApiAggr attribute_map.update(GrantaServerApiAggregationsAttributeValueAggregation.attribute_map) subtype_mapping = { - 'values': 'GrantaServerApiAggregationsValueWithCount', + 'values': 'GrantaServerApiAggregationsValueWithCountOfSystemBoolean', } @@ -62,7 +62,7 @@ def values(self): """Gets the values of this GrantaServerApiAggregationsLogicalAttributeAggregation. # noqa: E501 :return: The values of this GrantaServerApiAggregationsLogicalAttributeAggregation. # noqa: E501 - :rtype: list[GrantaServerApiAggregationsValueWithCount] + :rtype: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] """ return self._values @@ -71,7 +71,7 @@ def values(self, values): """Sets the values of this GrantaServerApiAggregationsLogicalAttributeAggregation. :param values: The values of this GrantaServerApiAggregationsLogicalAttributeAggregation. # noqa: E501 - :type: list[GrantaServerApiAggregationsValueWithCount] + :type: list[GrantaServerApiAggregationsValueWithCountOfSystemBoolean] """ self._values = values diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py new file mode 100644 index 00000000..eb4e597b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_boolean.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiAggregationsValueWithCountOfSystemBoolean(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'bool', + 'count': 'int' + } + + attribute_map = { + 'value': 'value', + 'count': 'count' + } + + subtype_mapping = { + } + + + def __init__(self, value=None, count=None): # noqa: E501 + """GrantaServerApiAggregationsValueWithCountOfSystemBoolean - a model defined in Swagger""" # noqa: E501 + self._value = None + self._count = None + self.discriminator = None + if value is not None: + self.value = value + if count is not None: + self.count = count + + @property + def value(self): + """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + + :return: The value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + :rtype: bool + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. + + :param value: The value of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + :type: bool + """ + self._value = value + + @property + def count(self): + """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + + :return: The count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. + + :param count: The count of this GrantaServerApiAggregationsValueWithCountOfSystemBoolean. # noqa: E501 + :type: int + """ + self._count = count + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiAggregationsValueWithCountOfSystemBoolean, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAggregationsValueWithCountOfSystemBoolean): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_aggregations_value_with_count_of_system_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py new file mode 100644 index 00000000..08c84a5f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_guid.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiAggregationsValueWithCountOfSystemGuid(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'count': 'int' + } + + attribute_map = { + 'value': 'value', + 'count': 'count' + } + + subtype_mapping = { + } + + + def __init__(self, value=None, count=None): # noqa: E501 + """GrantaServerApiAggregationsValueWithCountOfSystemGuid - a model defined in Swagger""" # noqa: E501 + self._value = None + self._count = None + self.discriminator = None + if value is not None: + self.value = value + if count is not None: + self.count = count + + @property + def value(self): + """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + + :return: The value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. + + :param value: The value of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + :type: str + """ + self._value = value + + @property + def count(self): + """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + + :return: The count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. + + :param count: The count of this GrantaServerApiAggregationsValueWithCountOfSystemGuid. # noqa: E501 + :type: int + """ + self._count = count + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiAggregationsValueWithCountOfSystemGuid, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAggregationsValueWithCountOfSystemGuid): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_aggregations_value_with_count_of_system_int32.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py new file mode 100644 index 00000000..da7e1d0a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_aggregations_value_with_count_of_system_int32.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiAggregationsValueWithCountOfSystemInt32(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'int', + 'count': 'int' + } + + attribute_map = { + 'value': 'value', + 'count': 'count' + } + + subtype_mapping = { + } + + + def __init__(self, value=None, count=None): # noqa: E501 + """GrantaServerApiAggregationsValueWithCountOfSystemInt32 - a model defined in Swagger""" # noqa: E501 + self._value = None + self._count = None + self.discriminator = None + if value is not None: + self.value = value + if count is not None: + self.count = count + + @property + def value(self): + """Gets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + + :return: The value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. + + :param value: The value of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + :type: int + """ + self._value = value + + @property + def count(self): + """Gets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + + :return: The count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. + + :param count: The count of this GrantaServerApiAggregationsValueWithCountOfSystemInt32. # noqa: E501 + :type: int + """ + self._count = count + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiAggregationsValueWithCountOfSystemInt32, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiAggregationsValueWithCountOfSystemInt32): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_export_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py new file mode 100644 index 00000000..fe9ddf1b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_attribute_to_export.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiDataExportAttributeToExport(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'identity': 'int', + 'guid': 'str' + } + + attribute_map = { + 'identity': 'identity', + 'guid': 'guid' + } + + subtype_mapping = { + } + + discriminator_value_class_map = { + 'link'.lower(): '#/components/schemas/GrantaServerApiDataExportLinkAttributeToExport', + 'simple'.lower(): '#/components/schemas/GrantaServerApiDataExportSimpleAttributeToExport', + } + + def __init__(self, identity=None, guid=None): # noqa: E501 + """GrantaServerApiDataExportAttributeToExport - a model defined in Swagger""" # noqa: E501 + self._identity = None + self._guid = None + self.discriminator = 'attributeType' + if identity is not None: + self.identity = identity + if guid is not None: + self.guid = guid + + @property + def identity(self): + """Gets the identity of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + + :return: The identity of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + :rtype: int + """ + return self._identity + + @identity.setter + def identity(self, identity): + """Sets the identity of this GrantaServerApiDataExportAttributeToExport. + + :param identity: The identity of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + :type: int + """ + self._identity = identity + + @property + def guid(self): + """Gets the guid of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + + :return: The guid of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiDataExportAttributeToExport. + + :param guid: The guid of this GrantaServerApiDataExportAttributeToExport. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_value = str(data[self._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 self.discriminator_value_class_map.get(discriminator_value).rsplit("/", 1)[-1] + + def _get_discriminator_field_name(self): + name_tokens = self.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDataExportAttributeToExport, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataExportAttributeToExport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_export_data_export_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py index a2066280..5b839d0a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_data_export_request.py @@ -28,52 +28,53 @@ class GrantaServerApiDataExportDataExportRequest(ModelBase): and the value is json key in definition. """ swagger_types = { - 'attribute_identities': 'list[int]', + 'attributes': 'list[GrantaServerApiDataExportAttributeToExport]', 'record_properties': 'list[GrantaServerApiRecordProperty]', 'record_history_identities': 'list[int]' } attribute_map = { - 'attribute_identities': 'attributeIdentities', + 'attributes': 'attributes', 'record_properties': 'recordProperties', 'record_history_identities': 'recordHistoryIdentities' } subtype_mapping = { + 'attributes': 'GrantaServerApiDataExportAttributeToExport', 'recordProperties': 'GrantaServerApiRecordProperty', } - def __init__(self, attribute_identities=None, record_properties=None, record_history_identities=None): # noqa: E501 + def __init__(self, attributes=None, record_properties=None, record_history_identities=None): # noqa: E501 """GrantaServerApiDataExportDataExportRequest - a model defined in Swagger""" # noqa: E501 - self._attribute_identities = None + self._attributes = None self._record_properties = None self._record_history_identities = None self.discriminator = None - if attribute_identities is not None: - self.attribute_identities = attribute_identities + if attributes is not None: + self.attributes = attributes if record_properties is not None: self.record_properties = record_properties if record_history_identities is not None: self.record_history_identities = record_history_identities @property - def attribute_identities(self): - """Gets the attribute_identities of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 + def attributes(self): + """Gets the attributes of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 - :return: The attribute_identities of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 - :rtype: list[int] + :return: The attributes of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 + :rtype: list[GrantaServerApiDataExportAttributeToExport] """ - return self._attribute_identities + return self._attributes - @attribute_identities.setter - def attribute_identities(self, attribute_identities): - """Sets the attribute_identities of this GrantaServerApiDataExportDataExportRequest. + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this GrantaServerApiDataExportDataExportRequest. - :param attribute_identities: The attribute_identities of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 - :type: list[int] + :param attributes: The attributes of this GrantaServerApiDataExportDataExportRequest. # noqa: E501 + :type: list[GrantaServerApiDataExportAttributeToExport] """ - self._attribute_identities = attribute_identities + self._attributes = attributes @property def record_properties(self): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py index 9d8aa4d8..f127ae1f 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_applicable_datum.py @@ -30,12 +30,14 @@ class GrantaServerApiDataExportDatumsApplicableDatum(ModelBase): swagger_types = { 'not_applicable': 'bool', 'attribute_identity': 'int', + 'attribute_guid': 'str', 'meta_datums': 'list[GrantaServerApiDataExportDatumsDatum]' } attribute_map = { 'not_applicable': 'notApplicable', 'attribute_identity': 'attributeIdentity', + 'attribute_guid': 'attributeGuid', 'meta_datums': 'metaDatums' } @@ -59,16 +61,19 @@ class GrantaServerApiDataExportDatumsApplicableDatum(ModelBase): 'shortText'.lower(): '#/components/schemas/GrantaServerApiDataExportDatumsShortTextDatum', } - def __init__(self, not_applicable=None, attribute_identity=None, meta_datums=None): # noqa: E501 + def __init__(self, not_applicable=None, attribute_identity=None, attribute_guid=None, meta_datums=None): # noqa: E501 """GrantaServerApiDataExportDatumsApplicableDatum - a model defined in Swagger""" # noqa: E501 self._not_applicable = None self._attribute_identity = None + self._attribute_guid = None self._meta_datums = None - self.discriminator = 'datum_type' + self.discriminator = 'datumType' if not_applicable is not None: self.not_applicable = not_applicable if attribute_identity is not None: self.attribute_identity = attribute_identity + if attribute_guid is not None: + self.attribute_guid = attribute_guid if meta_datums is not None: self.meta_datums = meta_datums @@ -108,6 +113,24 @@ def attribute_identity(self, attribute_identity): """ self._attribute_identity = attribute_identity + @property + def attribute_guid(self): + """Gets the attribute_guid of this GrantaServerApiDataExportDatumsApplicableDatum. # noqa: E501 + + :return: The attribute_guid of this GrantaServerApiDataExportDatumsApplicableDatum. # noqa: E501 + :rtype: str + """ + return self._attribute_guid + + @attribute_guid.setter + def attribute_guid(self, attribute_guid): + """Sets the attribute_guid of this GrantaServerApiDataExportDatumsApplicableDatum. + + :param attribute_guid: The attribute_guid of this GrantaServerApiDataExportDatumsApplicableDatum. # noqa: E501 + :type: str + """ + self._attribute_guid = attribute_guid + @property def meta_datums(self): """Gets the meta_datums of this GrantaServerApiDataExportDatumsApplicableDatum. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py index 9650dc6b..4500ccd5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_datum.py @@ -29,11 +29,13 @@ class GrantaServerApiDataExportDatumsDatum(ModelBase): """ swagger_types = { 'attribute_identity': 'int', + 'attribute_guid': 'str', 'meta_datums': 'list[GrantaServerApiDataExportDatumsDatum]' } attribute_map = { 'attribute_identity': 'attributeIdentity', + 'attribute_guid': 'attributeGuid', 'meta_datums': 'metaDatums' } @@ -42,13 +44,16 @@ class GrantaServerApiDataExportDatumsDatum(ModelBase): } - def __init__(self, attribute_identity=None, meta_datums=None): # noqa: E501 + def __init__(self, attribute_identity=None, attribute_guid=None, meta_datums=None): # noqa: E501 """GrantaServerApiDataExportDatumsDatum - a model defined in Swagger""" # noqa: E501 self._attribute_identity = None + self._attribute_guid = None self._meta_datums = None self.discriminator = None if attribute_identity is not None: self.attribute_identity = attribute_identity + if attribute_guid is not None: + self.attribute_guid = attribute_guid if meta_datums is not None: self.meta_datums = meta_datums @@ -70,6 +75,24 @@ def attribute_identity(self, attribute_identity): """ self._attribute_identity = attribute_identity + @property + def attribute_guid(self): + """Gets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. # noqa: E501 + + :return: The attribute_guid of this GrantaServerApiDataExportDatumsDatum. # noqa: E501 + :rtype: str + """ + return self._attribute_guid + + @attribute_guid.setter + def attribute_guid(self, attribute_guid): + """Sets the attribute_guid of this GrantaServerApiDataExportDatumsDatum. + + :param attribute_guid: The attribute_guid of this GrantaServerApiDataExportDatumsDatum. # noqa: E501 + :type: str + """ + self._attribute_guid = attribute_guid + @property def meta_datums(self): """Gets the meta_datums of this GrantaServerApiDataExportDatumsDatum. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_datum.py index 375d9e41..31970779 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_datum.py @@ -32,7 +32,8 @@ class GrantaServerApiDataExportDatumsFunctionalDatum(GrantaServerApiDataExportDa 'datum_type': 'str', 'unit_symbol': 'str', 'x_axis_parameter': 'GrantaServerApiFunctionalDatumParameterInfo', - 'parameters': 'list[GrantaServerApiFunctionalDatumParameterInfo]' + 'parameters': 'list[GrantaServerApiFunctionalDatumParameterInfo]', + 'is_estimated': 'bool' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "swagger_types"): swagger_types.update(GrantaServerApiDataExportDatumsApplicableDatum.swagger_types) @@ -41,14 +42,15 @@ class GrantaServerApiDataExportDatumsFunctionalDatum(GrantaServerApiDataExportDa 'datum_type': 'datumType', 'unit_symbol': 'unitSymbol', 'x_axis_parameter': 'xAxisParameter', - 'parameters': 'parameters' + 'parameters': 'parameters', + 'is_estimated': 'isEstimated' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "attribute_map"): attribute_map.update(GrantaServerApiDataExportDatumsApplicableDatum.attribute_map) subtype_mapping = { 'xAxisParameter': 'GrantaServerApiFunctionalDatumParameterInfo', - 'parameters': 'GrantaServerApiFunctionalDatumParameterInfo' + 'parameters': 'GrantaServerApiFunctionalDatumParameterInfo', } discriminator_value_class_map = { @@ -56,13 +58,14 @@ class GrantaServerApiDataExportDatumsFunctionalDatum(GrantaServerApiDataExportDa 'series'.lower(): '#/components/schemas/GrantaServerApiDataExportDatumsFunctionalSeriesDatum', } - def __init__(self, datum_type='floatFunctional', unit_symbol=None, x_axis_parameter=None, parameters=None, *args, **kwargs): # noqa: E501 + def __init__(self, datum_type='floatFunctional', unit_symbol=None, x_axis_parameter=None, parameters=None, is_estimated=None, *args, **kwargs): # noqa: E501 """GrantaServerApiDataExportDatumsFunctionalDatum - a model defined in Swagger""" # noqa: E501 GrantaServerApiDataExportDatumsApplicableDatum.__init__(self, *args, **kwargs) self._datum_type = None self._unit_symbol = None self._x_axis_parameter = None self._parameters = None + self._is_estimated = None self.discriminator = 'graph_type' self.datum_type = datum_type if unit_symbol is not None: @@ -71,6 +74,8 @@ def __init__(self, datum_type='floatFunctional', unit_symbol=None, x_axis_parame self.x_axis_parameter = x_axis_parameter if parameters is not None: self.parameters = parameters + if is_estimated is not None: + self.is_estimated = is_estimated @property def datum_type(self): @@ -146,6 +151,24 @@ def parameters(self, parameters): """ self._parameters = parameters + @property + def is_estimated(self): + """Gets the is_estimated of this GrantaServerApiDataExportDatumsFunctionalDatum. # noqa: E501 + + :return: The is_estimated of this GrantaServerApiDataExportDatumsFunctionalDatum. # noqa: E501 + :rtype: bool + """ + return self._is_estimated + + @is_estimated.setter + def is_estimated(self, is_estimated): + """Sets the is_estimated of this GrantaServerApiDataExportDatumsFunctionalDatum. + + :param is_estimated: The is_estimated of this GrantaServerApiDataExportDatumsFunctionalDatum. # noqa: E501 + :type: bool + """ + self._is_estimated = is_estimated + def get_real_child_model(self, data): """Returns the real base class specified by the discriminator""" discriminator_value = str(data[self._get_discriminator_field_name()]).lower() diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py index c67e83b5..00bc6827 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py @@ -31,7 +31,9 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum(GrantaServerApiDataEx swagger_types = { 'graph_type': 'str', 'series': 'list[GrantaServerApiDataExportDatumsSeries]', - 'is_logarithmic': 'bool' + 'is_logarithmic': 'bool', + 'is_range': 'bool', + 'show_as_table': 'bool' } if hasattr(GrantaServerApiDataExportDatumsFunctionalDatum, "swagger_types"): swagger_types.update(GrantaServerApiDataExportDatumsFunctionalDatum.swagger_types) @@ -39,7 +41,9 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum(GrantaServerApiDataEx attribute_map = { 'graph_type': 'graphType', 'series': 'series', - 'is_logarithmic': 'isLogarithmic' + 'is_logarithmic': 'isLogarithmic', + 'is_range': 'isRange', + 'show_as_table': 'showAsTable' } if hasattr(GrantaServerApiDataExportDatumsFunctionalDatum, "attribute_map"): attribute_map.update(GrantaServerApiDataExportDatumsFunctionalDatum.attribute_map) @@ -49,18 +53,24 @@ class GrantaServerApiDataExportDatumsFunctionalSeriesDatum(GrantaServerApiDataEx } - def __init__(self, graph_type='series', series=None, is_logarithmic=None, *args, **kwargs): # noqa: E501 + def __init__(self, graph_type='series', series=None, is_logarithmic=None, is_range=None, show_as_table=None, *args, **kwargs): # noqa: E501 """GrantaServerApiDataExportDatumsFunctionalSeriesDatum - a model defined in Swagger""" # noqa: E501 GrantaServerApiDataExportDatumsFunctionalDatum.__init__(self, *args, **kwargs) self._graph_type = None self._series = None self._is_logarithmic = None + self._is_range = None + self._show_as_table = None self.discriminator = None self.graph_type = graph_type if series is not None: self.series = series if is_logarithmic is not None: self.is_logarithmic = is_logarithmic + if is_range is not None: + self.is_range = is_range + if show_as_table is not None: + self.show_as_table = show_as_table @property def graph_type(self): @@ -118,6 +128,42 @@ def is_logarithmic(self, is_logarithmic): """ self._is_logarithmic = is_logarithmic + @property + def is_range(self): + """Gets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + + :return: The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + :rtype: bool + """ + return self._is_range + + @is_range.setter + def is_range(self, is_range): + """Sets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. + + :param is_range: The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + :type: bool + """ + self._is_range = is_range + + @property + def show_as_table(self): + """Gets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + + :return: The show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + :rtype: bool + """ + return self._show_as_table + + @show_as_table.setter + def show_as_table(self, show_as_table): + """Sets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. + + :param show_as_table: The show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum. # noqa: E501 + :type: bool + """ + self._show_as_table = show_as_table + def get_real_child_model(self, data): """Raises a NotImplementedError for a type without a discriminator defined.""" raise NotImplementedError() diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py new file mode 100644 index 00000000..7dc14a11 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_graph_decoration.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiDataExportDatumsGraphDecoration(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + LINES = "Lines" + MARKERS = "Markers" + LINESANDMARKERS = "LinesAndMarkers" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiDataExportDatumsGraphDecoration - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDataExportDatumsGraphDecoration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataExportDatumsGraphDecoration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_export_datums_linked_records_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py index 9a83f76b..f3415dc1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_linked_records_datum.py @@ -30,7 +30,10 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum(GrantaServerApiDataExpor """ swagger_types = { 'link_group_name': 'str', - 'linked_records': 'list[GrantaServerApiIntegrationDataExportRecordReference]', + 'link_attribute_type': 'GrantaServerApiDataExportLinkAttributeType', + 'export_in_reversed_direction': 'bool', + 'target_database_guid': 'str', + 'linked_records': 'list[GrantaServerApiDataExportRecordWithData]', 'datum_type': 'str' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "swagger_types"): @@ -38,6 +41,9 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum(GrantaServerApiDataExpor attribute_map = { 'link_group_name': 'linkGroupName', + 'link_attribute_type': 'linkAttributeType', + 'export_in_reversed_direction': 'exportInReversedDirection', + 'target_database_guid': 'targetDatabaseGuid', 'linked_records': 'linkedRecords', 'datum_type': 'datumType' } @@ -45,19 +51,29 @@ class GrantaServerApiDataExportDatumsLinkedRecordsDatum(GrantaServerApiDataExpor attribute_map.update(GrantaServerApiDataExportDatumsApplicableDatum.attribute_map) subtype_mapping = { - 'linkedRecords': 'GrantaServerApiIntegrationDataExportRecordReference', + 'linkAttributeType': 'GrantaServerApiDataExportLinkAttributeType', + 'linkedRecords': 'GrantaServerApiDataExportRecordWithData', } - def __init__(self, link_group_name=None, linked_records=None, datum_type='link', *args, **kwargs): # noqa: E501 + def __init__(self, link_group_name=None, link_attribute_type=None, export_in_reversed_direction=None, target_database_guid=None, linked_records=None, datum_type='link', *args, **kwargs): # noqa: E501 """GrantaServerApiDataExportDatumsLinkedRecordsDatum - a model defined in Swagger""" # noqa: E501 GrantaServerApiDataExportDatumsApplicableDatum.__init__(self, *args, **kwargs) self._link_group_name = None + self._link_attribute_type = None + self._export_in_reversed_direction = None + self._target_database_guid = None self._linked_records = None self._datum_type = None self.discriminator = None if link_group_name is not None: self.link_group_name = link_group_name + if link_attribute_type is not None: + self.link_attribute_type = link_attribute_type + if export_in_reversed_direction is not None: + self.export_in_reversed_direction = export_in_reversed_direction + if target_database_guid is not None: + self.target_database_guid = target_database_guid if linked_records is not None: self.linked_records = linked_records self.datum_type = datum_type @@ -80,12 +96,66 @@ def link_group_name(self, link_group_name): """ self._link_group_name = link_group_name + @property + def link_attribute_type(self): + """Gets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + + :return: The link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :rtype: GrantaServerApiDataExportLinkAttributeType + """ + return self._link_attribute_type + + @link_attribute_type.setter + def link_attribute_type(self, link_attribute_type): + """Sets the link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. + + :param link_attribute_type: The link_attribute_type of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :type: GrantaServerApiDataExportLinkAttributeType + """ + self._link_attribute_type = link_attribute_type + + @property + def export_in_reversed_direction(self): + """Gets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + + :return: The export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :rtype: bool + """ + return self._export_in_reversed_direction + + @export_in_reversed_direction.setter + def export_in_reversed_direction(self, export_in_reversed_direction): + """Sets the export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. + + :param export_in_reversed_direction: The export_in_reversed_direction of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :type: bool + """ + self._export_in_reversed_direction = export_in_reversed_direction + + @property + def target_database_guid(self): + """Gets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + + :return: The target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :rtype: str + """ + return self._target_database_guid + + @target_database_guid.setter + def target_database_guid(self, target_database_guid): + """Sets the target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. + + :param target_database_guid: The target_database_guid of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 + :type: str + """ + self._target_database_guid = target_database_guid + @property def linked_records(self): """Gets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 :return: The linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 - :rtype: list[GrantaServerApiIntegrationDataExportRecordReference] + :rtype: list[GrantaServerApiDataExportRecordWithData] """ return self._linked_records @@ -94,7 +164,7 @@ def linked_records(self, linked_records): """Sets the linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. :param linked_records: The linked_records of this GrantaServerApiDataExportDatumsLinkedRecordsDatum. # noqa: E501 - :type: list[GrantaServerApiIntegrationDataExportRecordReference] + :type: list[GrantaServerApiDataExportRecordWithData] """ self._linked_records = linked_records diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py index 2718e952..e9159343 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_point_datum.py @@ -31,6 +31,7 @@ class GrantaServerApiDataExportDatumsPointDatum(GrantaServerApiDataExportDatumsA swagger_types = { 'datum_type': 'str', 'datum_value': 'list[GrantaServerApiDataExportDatumsPoint]', + 'is_estimated': 'bool', 'unit': 'str' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "swagger_types"): @@ -39,6 +40,7 @@ class GrantaServerApiDataExportDatumsPointDatum(GrantaServerApiDataExportDatumsA attribute_map = { 'datum_type': 'datumType', 'datum_value': 'datumValue', + 'is_estimated': 'isEstimated', 'unit': 'unit' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "attribute_map"): @@ -49,16 +51,19 @@ class GrantaServerApiDataExportDatumsPointDatum(GrantaServerApiDataExportDatumsA } - def __init__(self, datum_type='point', datum_value=None, unit=None, *args, **kwargs): # noqa: E501 + def __init__(self, datum_type='point', datum_value=None, is_estimated=None, unit=None, *args, **kwargs): # noqa: E501 """GrantaServerApiDataExportDatumsPointDatum - a model defined in Swagger""" # noqa: E501 GrantaServerApiDataExportDatumsApplicableDatum.__init__(self, *args, **kwargs) self._datum_type = None self._datum_value = None + self._is_estimated = None self._unit = None self.discriminator = None self.datum_type = datum_type if datum_value is not None: self.datum_value = datum_value + if is_estimated is not None: + self.is_estimated = is_estimated if unit is not None: self.unit = unit @@ -100,6 +105,24 @@ def datum_value(self, datum_value): """ self._datum_value = datum_value + @property + def is_estimated(self): + """Gets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. # noqa: E501 + + :return: The is_estimated of this GrantaServerApiDataExportDatumsPointDatum. # noqa: E501 + :rtype: bool + """ + return self._is_estimated + + @is_estimated.setter + def is_estimated(self, is_estimated): + """Sets the is_estimated of this GrantaServerApiDataExportDatumsPointDatum. + + :param is_estimated: The is_estimated of this GrantaServerApiDataExportDatumsPointDatum. # noqa: E501 + :type: bool + """ + self._is_estimated = is_estimated + @property def unit(self): """Gets the unit of this GrantaServerApiDataExportDatumsPointDatum. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py index 75b2d6d4..d0bef9b7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_range_datum.py @@ -31,6 +31,7 @@ class GrantaServerApiDataExportDatumsRangeDatum(GrantaServerApiDataExportDatumsA swagger_types = { 'datum_type': 'str', 'datum_value': 'GrantaServerApiDataExportDatumsRange', + 'is_estimated': 'bool', 'unit': 'str' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "swagger_types"): @@ -39,6 +40,7 @@ class GrantaServerApiDataExportDatumsRangeDatum(GrantaServerApiDataExportDatumsA attribute_map = { 'datum_type': 'datumType', 'datum_value': 'datumValue', + 'is_estimated': 'isEstimated', 'unit': 'unit' } if hasattr(GrantaServerApiDataExportDatumsApplicableDatum, "attribute_map"): @@ -49,16 +51,19 @@ class GrantaServerApiDataExportDatumsRangeDatum(GrantaServerApiDataExportDatumsA } - def __init__(self, datum_type='range', datum_value=None, unit=None, *args, **kwargs): # noqa: E501 + def __init__(self, datum_type='range', datum_value=None, is_estimated=None, unit=None, *args, **kwargs): # noqa: E501 """GrantaServerApiDataExportDatumsRangeDatum - a model defined in Swagger""" # noqa: E501 GrantaServerApiDataExportDatumsApplicableDatum.__init__(self, *args, **kwargs) self._datum_type = None self._datum_value = None + self._is_estimated = None self._unit = None self.discriminator = None self.datum_type = datum_type if datum_value is not None: self.datum_value = datum_value + if is_estimated is not None: + self.is_estimated = is_estimated if unit is not None: self.unit = unit @@ -100,6 +105,24 @@ def datum_value(self, datum_value): """ self._datum_value = datum_value + @property + def is_estimated(self): + """Gets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. # noqa: E501 + + :return: The is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. # noqa: E501 + :rtype: bool + """ + return self._is_estimated + + @is_estimated.setter + def is_estimated(self, is_estimated): + """Sets the is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. + + :param is_estimated: The is_estimated of this GrantaServerApiDataExportDatumsRangeDatum. # noqa: E501 + :type: bool + """ + self._is_estimated = is_estimated + @property def unit(self): """Gets the unit of this GrantaServerApiDataExportDatumsRangeDatum. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py index cd6d4b66..0e5f3c6d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_series.py @@ -29,29 +29,35 @@ class GrantaServerApiDataExportDatumsSeries(ModelBase): """ swagger_types = { 'parameter_values': 'list[GrantaServerApiDataExportDatumsParameterValue]', - 'points': 'list[GrantaServerApiDataExportDatumsSeriesPoint]' + 'points': 'list[GrantaServerApiDataExportDatumsSeriesPoint]', + 'graph_decoration': 'GrantaServerApiDataExportDatumsGraphDecoration' } attribute_map = { 'parameter_values': 'parameterValues', - 'points': 'points' + 'points': 'points', + 'graph_decoration': 'graphDecoration' } subtype_mapping = { 'parameterValues': 'GrantaServerApiDataExportDatumsParameterValue', - 'points': 'GrantaServerApiDataExportDatumsSeriesPoint' + 'points': 'GrantaServerApiDataExportDatumsSeriesPoint', + 'graphDecoration': 'GrantaServerApiDataExportDatumsGraphDecoration' } - def __init__(self, parameter_values=None, points=None): # noqa: E501 + def __init__(self, parameter_values=None, points=None, graph_decoration=None): # noqa: E501 """GrantaServerApiDataExportDatumsSeries - a model defined in Swagger""" # noqa: E501 self._parameter_values = None self._points = None + self._graph_decoration = None self.discriminator = None if parameter_values is not None: self.parameter_values = parameter_values if points is not None: self.points = points + if graph_decoration is not None: + self.graph_decoration = graph_decoration @property def parameter_values(self): @@ -89,6 +95,24 @@ def points(self, points): """ self._points = points + @property + def graph_decoration(self): + """Gets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. # noqa: E501 + + :return: The graph_decoration of this GrantaServerApiDataExportDatumsSeries. # noqa: E501 + :rtype: GrantaServerApiDataExportDatumsGraphDecoration + """ + return self._graph_decoration + + @graph_decoration.setter + def graph_decoration(self, graph_decoration): + """Sets the graph_decoration of this GrantaServerApiDataExportDatumsSeries. + + :param graph_decoration: The graph_decoration of this GrantaServerApiDataExportDatumsSeries. # noqa: E501 + :type: GrantaServerApiDataExportDatumsGraphDecoration + """ + self._graph_decoration = graph_decoration + def get_real_child_model(self, data): """Raises a NotImplementedError for a type without a discriminator defined.""" raise NotImplementedError() diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py new file mode 100644 index 00000000..1b6942fc --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_to_export.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import GrantaServerApiDataExportAttributeToExport # noqa: F401,E501 + +class GrantaServerApiDataExportLinkAttributeToExport(GrantaServerApiDataExportAttributeToExport): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'local_data': 'list[GrantaServerApiDataExportSimpleAttributeToExport]', + 'target_table_guid': 'str', + 'target_database_guid': 'str', + 'target_attribute_identity': 'int', + 'attribute_type': 'str', + 'link_attribute_type': 'GrantaServerApiDataExportLinkAttributeType', + 'export_in_reversed_direction': 'bool', + 'record_properties': 'list[GrantaServerApiRecordProperty]', + 'attributes': 'list[GrantaServerApiDataExportAttributeToExport]' + } + if hasattr(GrantaServerApiDataExportAttributeToExport, "swagger_types"): + swagger_types.update(GrantaServerApiDataExportAttributeToExport.swagger_types) + + attribute_map = { + 'local_data': 'localData', + 'target_table_guid': 'targetTableGuid', + 'target_database_guid': 'targetDatabaseGuid', + 'target_attribute_identity': 'targetAttributeIdentity', + 'attribute_type': 'attributeType', + 'link_attribute_type': 'linkAttributeType', + 'export_in_reversed_direction': 'exportInReversedDirection', + 'record_properties': 'recordProperties', + 'attributes': 'attributes' + } + if hasattr(GrantaServerApiDataExportAttributeToExport, "attribute_map"): + attribute_map.update(GrantaServerApiDataExportAttributeToExport.attribute_map) + + subtype_mapping = { + 'localData': 'GrantaServerApiDataExportSimpleAttributeToExport', + 'linkAttributeType': 'GrantaServerApiDataExportLinkAttributeType', + 'recordProperties': 'GrantaServerApiRecordProperty', + 'attributes': 'GrantaServerApiDataExportAttributeToExport' + } + + + def __init__(self, local_data=None, target_table_guid=None, target_database_guid=None, target_attribute_identity=None, attribute_type='link', link_attribute_type=None, export_in_reversed_direction=None, record_properties=None, attributes=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiDataExportLinkAttributeToExport - a model defined in Swagger""" # noqa: E501 + GrantaServerApiDataExportAttributeToExport.__init__(self, *args, **kwargs) + self._local_data = None + self._target_table_guid = None + self._target_database_guid = None + self._target_attribute_identity = None + self._attribute_type = None + self._link_attribute_type = None + self._export_in_reversed_direction = None + self._record_properties = None + self._attributes = None + self.discriminator = None + if local_data is not None: + self.local_data = local_data + if target_table_guid is not None: + self.target_table_guid = target_table_guid + if target_database_guid is not None: + self.target_database_guid = target_database_guid + if target_attribute_identity is not None: + self.target_attribute_identity = target_attribute_identity + self.attribute_type = attribute_type + if link_attribute_type is not None: + self.link_attribute_type = link_attribute_type + if export_in_reversed_direction is not None: + self.export_in_reversed_direction = export_in_reversed_direction + if record_properties is not None: + self.record_properties = record_properties + if attributes is not None: + self.attributes = attributes + + @property + def local_data(self): + """Gets the local_data of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + + :return: The local_data of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: list[GrantaServerApiDataExportSimpleAttributeToExport] + """ + return self._local_data + + @local_data.setter + def local_data(self, local_data): + """Sets the local_data of this GrantaServerApiDataExportLinkAttributeToExport. + + :param local_data: The local_data of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: list[GrantaServerApiDataExportSimpleAttributeToExport] + """ + self._local_data = local_data + + @property + def target_table_guid(self): + """Gets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + Table containing the linked records # noqa: E501 + + :return: The target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: str + """ + return self._target_table_guid + + @target_table_guid.setter + def target_table_guid(self, target_table_guid): + """Sets the target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. + Table containing the linked records # noqa: E501 + + :param target_table_guid: The target_table_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: str + """ + self._target_table_guid = target_table_guid + + @property + def target_database_guid(self): + """Gets the target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + Database containing the linked records. For reverse cross database links, this is the database where the link is defined # noqa: E501 + + :return: The target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: str + """ + return self._target_database_guid + + @target_database_guid.setter + def target_database_guid(self, target_database_guid): + """Sets the target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. + Database containing the linked records. For reverse cross database links, this is the database where the link is defined # noqa: E501 + + :param target_database_guid: The target_database_guid of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: str + """ + self._target_database_guid = target_database_guid + + @property + def target_attribute_identity(self): + """Gets the target_attribute_identity of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. # noqa: E501 + + :return: The target_attribute_identity of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: int + """ + return self._target_attribute_identity + + @target_attribute_identity.setter + def target_attribute_identity(self, target_attribute_identity): + """Sets the target_attribute_identity of this GrantaServerApiDataExportLinkAttributeToExport. + For tabular searching: this is the identity of the short-text linking attribute. Otherwise null. # noqa: E501 + + :param target_attribute_identity: The target_attribute_identity of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: int + """ + self._target_attribute_identity = target_attribute_identity + + @property + def attribute_type(self): + """Gets the attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + + :return: The attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: str + """ + return self._attribute_type + + @attribute_type.setter + def attribute_type(self, attribute_type): + """Sets the attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. + + :param attribute_type: The attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: str + """ + if attribute_type is None: + raise ValueError("Invalid value for `attribute_type`, must not be `None`") # noqa: E501 + self._attribute_type = attribute_type + + @property + def link_attribute_type(self): + """Gets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + + :return: The link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: GrantaServerApiDataExportLinkAttributeType + """ + return self._link_attribute_type + + @link_attribute_type.setter + def link_attribute_type(self, link_attribute_type): + """Sets the link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. + + :param link_attribute_type: The link_attribute_type of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: GrantaServerApiDataExportLinkAttributeType + """ + self._link_attribute_type = link_attribute_type + + @property + def export_in_reversed_direction(self): + """Gets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + + :return: The export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: bool + """ + return self._export_in_reversed_direction + + @export_in_reversed_direction.setter + def export_in_reversed_direction(self, export_in_reversed_direction): + """Sets the export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. + + :param export_in_reversed_direction: The export_in_reversed_direction of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: bool + """ + self._export_in_reversed_direction = export_in_reversed_direction + + @property + def record_properties(self): + """Gets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + The properties to export on any linked records. # noqa: E501 + + :return: The record_properties of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: list[GrantaServerApiRecordProperty] + """ + return self._record_properties + + @record_properties.setter + def record_properties(self, record_properties): + """Sets the record_properties of this GrantaServerApiDataExportLinkAttributeToExport. + The properties to export on any linked records. # noqa: E501 + + :param record_properties: The record_properties of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: list[GrantaServerApiRecordProperty] + """ + self._record_properties = record_properties + + @property + def attributes(self): + """Gets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + The attributes to export on any linked records. # noqa: E501 + + :return: The attributes of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :rtype: list[GrantaServerApiDataExportAttributeToExport] + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this GrantaServerApiDataExportLinkAttributeToExport. + The attributes to export on any linked records. # noqa: E501 + + :param attributes: The attributes of this GrantaServerApiDataExportLinkAttributeToExport. # noqa: E501 + :type: list[GrantaServerApiDataExportAttributeToExport] + """ + self._attributes = attributes + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDataExportLinkAttributeToExport, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataExportLinkAttributeToExport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_export_link_attribute_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_type.py new file mode 100644 index 00000000..d50c9686 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_link_attribute_type.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiDataExportLinkAttributeType(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + RECORDLINK = "recordLink" + CROSSDATABASELINK = "crossDatabaseLink" + TABULARATTRIBUTE = "tabularAttribute" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiDataExportLinkAttributeType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDataExportLinkAttributeType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataExportLinkAttributeType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_export_properties_property.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py index 765b86c4..ed5fb886 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_properties_property.py @@ -60,7 +60,7 @@ class GrantaServerApiDataExportPropertiesProperty(ModelBase): def __init__(self): # noqa: E501 """GrantaServerApiDataExportPropertiesProperty - a model defined in Swagger""" # noqa: E501 - self.discriminator = 'property_name' + self.discriminator = 'propertyName' def get_real_child_model(self, data): """Returns the real base class specified by the discriminator""" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py new file mode 100644 index 00000000..a35d2d2c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_simple_attribute_to_export.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_data_export_attribute_to_export import GrantaServerApiDataExportAttributeToExport # noqa: F401,E501 + +class GrantaServerApiDataExportSimpleAttributeToExport(GrantaServerApiDataExportAttributeToExport): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attribute_type': 'str' + } + if hasattr(GrantaServerApiDataExportAttributeToExport, "swagger_types"): + swagger_types.update(GrantaServerApiDataExportAttributeToExport.swagger_types) + + attribute_map = { + 'attribute_type': 'attributeType' + } + if hasattr(GrantaServerApiDataExportAttributeToExport, "attribute_map"): + attribute_map.update(GrantaServerApiDataExportAttributeToExport.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, attribute_type='simple', *args, **kwargs): # noqa: E501 + """GrantaServerApiDataExportSimpleAttributeToExport - a model defined in Swagger""" # noqa: E501 + GrantaServerApiDataExportAttributeToExport.__init__(self, *args, **kwargs) + self._attribute_type = None + self.discriminator = None + self.attribute_type = attribute_type + + @property + def attribute_type(self): + """Gets the attribute_type of this GrantaServerApiDataExportSimpleAttributeToExport. # noqa: E501 + + :return: The attribute_type of this GrantaServerApiDataExportSimpleAttributeToExport. # noqa: E501 + :rtype: str + """ + return self._attribute_type + + @attribute_type.setter + def attribute_type(self, attribute_type): + """Sets the attribute_type of this GrantaServerApiDataExportSimpleAttributeToExport. + + :param attribute_type: The attribute_type of this GrantaServerApiDataExportSimpleAttributeToExport. # noqa: E501 + :type: str + """ + if attribute_type is None: + raise ValueError("Invalid value for `attribute_type`, must not be `None`") # noqa: E501 + self._attribute_type = attribute_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDataExportSimpleAttributeToExport, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDataExportSimpleAttributeToExport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_disk_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py new file mode 100644 index 00000000..7a478ce3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_disk_status.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiDiskStatus(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + OK = "Ok" + LOWWATERMARKREACHED = "LowWatermarkReached" + HIGHWATERMARKREACHED = "HighWatermarkReached" + FLOODSTAGEREACHED = "FloodStageReached" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiDiskStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiDiskStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiDiskStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_functional_datum_parameter_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py index b814e19e..b4e2448a 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_functional_datum_parameter_info.py @@ -42,7 +42,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): attribute_map = { 'scale_type_defined_at': 'scaleTypeDefinedAt', - 'interpolation_method_defined_at': 'interpolationMethodDefinedAT', + 'interpolation_method_defined_at': 'interpolationMethodDefinedAt', 'default_value_defined_at': 'defaultValueDefinedAt', 'name': 'name', 'identity': 'identity', @@ -55,7 +55,7 @@ class GrantaServerApiFunctionalDatumParameterInfo(ModelBase): subtype_mapping = { 'scaleTypeDefinedAt': 'GrantaServerApiDataExportParameterSettingDefinedAt', - 'interpolationMethodDefinedAT': 'GrantaServerApiDataExportParameterSettingDefinedAt', + 'interpolationMethodDefinedAt': 'GrantaServerApiDataExportParameterSettingDefinedAt', 'defaultValueDefinedAt': 'GrantaServerApiDataExportParameterSettingDefinedAt', 'defaultValue': 'GrantaServerApiDataExportDatumsParameterValue' } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py new file mode 100644 index 00000000..5a50d588 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_index_record_failure.py @@ -0,0 +1,188 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiIndexRecordFailure(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'record_history_identity': 'int', + 'record_name': 'str', + 'error': 'str', + 'record_was_oversized': 'bool' + } + + attribute_map = { + 'record_history_identity': 'recordHistoryIdentity', + 'record_name': 'recordName', + 'error': 'error', + 'record_was_oversized': 'recordWasOversized' + } + + subtype_mapping = { + } + + + def __init__(self, record_history_identity=None, record_name=None, error=None, record_was_oversized=None): # noqa: E501 + """GrantaServerApiIndexRecordFailure - a model defined in Swagger""" # noqa: E501 + self._record_history_identity = None + self._record_name = None + self._error = None + self._record_was_oversized = None + self.discriminator = None + if record_history_identity is not None: + self.record_history_identity = record_history_identity + if record_name is not None: + self.record_name = record_name + if error is not None: + self.error = error + if record_was_oversized is not None: + self.record_was_oversized = record_was_oversized + + @property + def record_history_identity(self): + """Gets the record_history_identity of this GrantaServerApiIndexRecordFailure. # noqa: E501 + + :return: The record_history_identity of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :rtype: int + """ + return self._record_history_identity + + @record_history_identity.setter + def record_history_identity(self, record_history_identity): + """Sets the record_history_identity of this GrantaServerApiIndexRecordFailure. + + :param record_history_identity: The record_history_identity of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :type: int + """ + self._record_history_identity = record_history_identity + + @property + def record_name(self): + """Gets the record_name of this GrantaServerApiIndexRecordFailure. # noqa: E501 + + :return: The record_name of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :rtype: str + """ + return self._record_name + + @record_name.setter + def record_name(self, record_name): + """Sets the record_name of this GrantaServerApiIndexRecordFailure. + + :param record_name: The record_name of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :type: str + """ + self._record_name = record_name + + @property + def error(self): + """Gets the error of this GrantaServerApiIndexRecordFailure. # noqa: E501 + This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. # noqa: E501 + + :return: The error of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :rtype: str + """ + return self._error + + @error.setter + def error(self, error): + """Sets the error of this GrantaServerApiIndexRecordFailure. + This is the error message from the indexing exception. It may have been returned directly from Elasticsearch. # noqa: E501 + + :param error: The error of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :type: str + """ + self._error = error + + @property + def record_was_oversized(self): + """Gets the record_was_oversized of this GrantaServerApiIndexRecordFailure. # noqa: E501 + Records that contain a large amount of data are intentionally not sent to the index. This size limit is configurable through MIServer.exe.config # noqa: E501 + + :return: The record_was_oversized of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :rtype: bool + """ + return self._record_was_oversized + + @record_was_oversized.setter + def record_was_oversized(self, record_was_oversized): + """Sets the record_was_oversized of this GrantaServerApiIndexRecordFailure. + Records that contain a large amount of data are intentionally not sent to the index. This size limit is configurable through MIServer.exe.config # noqa: E501 + + :param record_was_oversized: The record_was_oversized of this GrantaServerApiIndexRecordFailure. # noqa: E501 + :type: bool + """ + self._record_was_oversized = record_was_oversized + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiIndexRecordFailure, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiIndexRecordFailure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py index a54b4469..2527cdc1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_integration_schema_status.py @@ -31,29 +31,56 @@ class GrantaServerApiIntegrationIntegrationSchemaStatus(ModelBase): 'loaded_databases': 'list[str]', 'loading_databases': 'list[str]', 'not_loaded_databases': 'list[str]', - 'out_of_sync_databases': 'dict(str, list[GrantaServerApiIntegrationIndexRecordFailure])', - 'errored_databases': 'dict(str, str)' + 'errored_databases': 'dict(str, str)', + 'loaded_database_index_statuses': 'dict(str, GrantaServerApiSearchIndexStatus)', + 'search_index_up_to_date': 'bool', + 'search_index_in_sync': 'bool', + 'search_index_location': 'str', + 'search_index_is_read_only': 'bool', + 'disk_status': 'GrantaServerApiDiskStatus', + 'disk_threshold': 'str', + 'search_index_unavailable': 'bool', + 'records_that_failed_to_index': 'list[GrantaServerApiIndexRecordFailure]' } attribute_map = { 'loaded_databases': 'loadedDatabases', 'loading_databases': 'loadingDatabases', 'not_loaded_databases': 'notLoadedDatabases', - 'out_of_sync_databases': 'outOfSyncDatabases', - 'errored_databases': 'erroredDatabases' + 'errored_databases': 'erroredDatabases', + 'loaded_database_index_statuses': 'loadedDatabaseIndexStatuses', + 'search_index_up_to_date': 'searchIndexUpToDate', + 'search_index_in_sync': 'searchIndexInSync', + 'search_index_location': 'searchIndexLocation', + 'search_index_is_read_only': 'searchIndexIsReadOnly', + 'disk_status': 'diskStatus', + 'disk_threshold': 'diskThreshold', + 'search_index_unavailable': 'searchIndexUnavailable', + 'records_that_failed_to_index': 'recordsThatFailedToIndex' } subtype_mapping = { + 'loadedDatabaseIndexStatuses': 'GrantaServerApiSearchIndexStatus', + 'diskStatus': 'GrantaServerApiDiskStatus', + 'recordsThatFailedToIndex': 'GrantaServerApiIndexRecordFailure' } - def __init__(self, loaded_databases=None, loading_databases=None, not_loaded_databases=None, out_of_sync_databases=None, errored_databases=None): # noqa: E501 + def __init__(self, loaded_databases=None, loading_databases=None, not_loaded_databases=None, errored_databases=None, loaded_database_index_statuses=None, search_index_up_to_date=None, search_index_in_sync=None, search_index_location=None, search_index_is_read_only=None, disk_status=None, disk_threshold=None, search_index_unavailable=None, records_that_failed_to_index=None): # noqa: E501 """GrantaServerApiIntegrationIntegrationSchemaStatus - a model defined in Swagger""" # noqa: E501 self._loaded_databases = None self._loading_databases = None self._not_loaded_databases = None - self._out_of_sync_databases = None self._errored_databases = None + self._loaded_database_index_statuses = None + self._search_index_up_to_date = None + self._search_index_in_sync = None + self._search_index_location = None + self._search_index_is_read_only = None + self._disk_status = None + self._disk_threshold = None + self._search_index_unavailable = None + self._records_that_failed_to_index = None self.discriminator = None if loaded_databases is not None: self.loaded_databases = loaded_databases @@ -61,15 +88,31 @@ def __init__(self, loaded_databases=None, loading_databases=None, not_loaded_dat self.loading_databases = loading_databases if not_loaded_databases is not None: self.not_loaded_databases = not_loaded_databases - if out_of_sync_databases is not None: - self.out_of_sync_databases = out_of_sync_databases if errored_databases is not None: self.errored_databases = errored_databases + if loaded_database_index_statuses is not None: + self.loaded_database_index_statuses = loaded_database_index_statuses + if search_index_up_to_date is not None: + self.search_index_up_to_date = search_index_up_to_date + if search_index_in_sync is not None: + self.search_index_in_sync = search_index_in_sync + if search_index_location is not None: + self.search_index_location = search_index_location + if search_index_is_read_only is not None: + self.search_index_is_read_only = search_index_is_read_only + if disk_status is not None: + self.disk_status = disk_status + if disk_threshold is not None: + self.disk_threshold = disk_threshold + if search_index_unavailable is not None: + self.search_index_unavailable = search_index_unavailable + if records_that_failed_to_index is not None: + self.records_that_failed_to_index = records_that_failed_to_index @property def loaded_databases(self): """Gets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 - Loaded databases have been successfully indexed into the integration schema. Data from them will be available in searches. # noqa: E501 + Loaded databases have been successfully indexed into the integration schema. # noqa: E501 :return: The loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 :rtype: list[str] @@ -79,7 +122,7 @@ def loaded_databases(self): @loaded_databases.setter def loaded_databases(self, loaded_databases): """Sets the loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. - Loaded databases have been successfully indexed into the integration schema. Data from them will be available in searches. # noqa: E501 + Loaded databases have been successfully indexed into the integration schema. # noqa: E501 :param loaded_databases: The loaded_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 :type: list[str] @@ -126,26 +169,6 @@ def not_loaded_databases(self, not_loaded_databases): """ self._not_loaded_databases = not_loaded_databases - @property - def out_of_sync_databases(self): - """Gets the out_of_sync_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 - These databases have been loaded, but some data has not made it to Elasticsearch. They are available for searching, but results may not be accurate. # noqa: E501 - - :return: The out_of_sync_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 - :rtype: dict(str, list[GrantaServerApiIntegrationIndexRecordFailure]) - """ - return self._out_of_sync_databases - - @out_of_sync_databases.setter - def out_of_sync_databases(self, out_of_sync_databases): - """Sets the out_of_sync_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. - These databases have been loaded, but some data has not made it to Elasticsearch. They are available for searching, but results may not be accurate. # noqa: E501 - - :param out_of_sync_databases: The out_of_sync_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 - :type: dict(str, list[GrantaServerApiIntegrationIndexRecordFailure]) - """ - self._out_of_sync_databases = out_of_sync_databases - @property def errored_databases(self): """Gets the errored_databases of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 @@ -166,6 +189,184 @@ def errored_databases(self, errored_databases): """ self._errored_databases = errored_databases + @property + def loaded_database_index_statuses(self): + """Gets the loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + Index information about all loaded databases, including the out of sync status. # noqa: E501 + + :return: The loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: dict(str, GrantaServerApiSearchIndexStatus) + """ + return self._loaded_database_index_statuses + + @loaded_database_index_statuses.setter + def loaded_database_index_statuses(self, loaded_database_index_statuses): + """Sets the loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. + Index information about all loaded databases, including the out of sync status. # noqa: E501 + + :param loaded_database_index_statuses: The loaded_database_index_statuses of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: dict(str, GrantaServerApiSearchIndexStatus) + """ + self._loaded_database_index_statuses = loaded_database_index_statuses + + @property + def search_index_up_to_date(self): + """Gets the search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed # noqa: E501 + + :return: The search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_up_to_date + + @search_index_up_to_date.setter + def search_index_up_to_date(self, search_index_up_to_date): + """Sets the search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. + Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed # noqa: E501 + + :param search_index_up_to_date: The search_index_up_to_date of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: bool + """ + self._search_index_up_to_date = search_index_up_to_date + + @property + def search_index_in_sync(self): + """Gets the search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) # noqa: E501 + + :return: The search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_in_sync + + @search_index_in_sync.setter + def search_index_in_sync(self, search_index_in_sync): + """Sets the search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. + Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) # noqa: E501 + + :param search_index_in_sync: The search_index_in_sync of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: bool + """ + self._search_index_in_sync = search_index_in_sync + + @property + def search_index_location(self): + """Gets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + The location of the index. # noqa: E501 + + :return: The search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: str + """ + return self._search_index_location + + @search_index_location.setter + def search_index_location(self, search_index_location): + """Sets the search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. + The location of the index. # noqa: E501 + + :param search_index_location: The search_index_location of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: str + """ + self._search_index_location = search_index_location + + @property + def search_index_is_read_only(self): + """Gets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + True if the index is read only. # noqa: E501 + + :return: The search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_is_read_only + + @search_index_is_read_only.setter + def search_index_is_read_only(self, search_index_is_read_only): + """Sets the search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. + True if the index is read only. # noqa: E501 + + :param search_index_is_read_only: The search_index_is_read_only of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: bool + """ + self._search_index_is_read_only = search_index_is_read_only + + @property + def disk_status(self): + """Gets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + + :return: The disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: GrantaServerApiDiskStatus + """ + return self._disk_status + + @disk_status.setter + def disk_status(self, disk_status): + """Sets the disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. + + :param disk_status: The disk_status of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: GrantaServerApiDiskStatus + """ + self._disk_status = disk_status + + @property + def disk_threshold(self): + """Gets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + The 'flood stage' threshold from Elasticsearch. # noqa: E501 + + :return: The disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: str + """ + return self._disk_threshold + + @disk_threshold.setter + def disk_threshold(self, disk_threshold): + """Sets the disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. + The 'flood stage' threshold from Elasticsearch. # noqa: E501 + + :param disk_threshold: The disk_threshold of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: str + """ + self._disk_threshold = disk_threshold + + @property + def search_index_unavailable(self): + """Gets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + True if the index could not be contacted. # noqa: E501 + + :return: The search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_unavailable + + @search_index_unavailable.setter + def search_index_unavailable(self, search_index_unavailable): + """Sets the search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. + True if the index could not be contacted. # noqa: E501 + + :param search_index_unavailable: The search_index_unavailable of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: bool + """ + self._search_index_unavailable = search_index_unavailable + + @property + def records_that_failed_to_index(self): + """Gets the records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + Details of any records that failed to index. # noqa: E501 + + :return: The records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :rtype: list[GrantaServerApiIndexRecordFailure] + """ + return self._records_that_failed_to_index + + @records_that_failed_to_index.setter + def records_that_failed_to_index(self, records_that_failed_to_index): + """Sets the records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. + Details of any records that failed to index. # noqa: E501 + + :param records_that_failed_to_index: The records_that_failed_to_index of this GrantaServerApiIntegrationIntegrationSchemaStatus. # noqa: E501 + :type: list[GrantaServerApiIndexRecordFailure] + """ + self._records_that_failed_to_index = records_that_failed_to_index + def get_real_child_model(self, data): """Raises a NotImplementedError for a type without a discriminator defined.""" raise NotImplementedError() diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py new file mode 100644 index 00000000..55e40858 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_integration_schema_of_granta_server_api_object_identifier.py @@ -0,0 +1,304 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'key': 'str', + 'version': 'int', + 'attributes': 'list[GrantaServerApiIntegrationSchemaAttribute]', + 'layouts': 'list[GrantaServerApiIntegrationSchemaLayout]', + 'unit_system': 'str', + 'discrete_types': 'list[GrantaServerApiIntegrationSchemaDiscreteType]', + 'sources': 'list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier]', + 'access_control_category_values': 'dict(str, list[str])', + 'security_groups': 'GrantaServerApiIntegrationSchemaSecurityGroups' + } + + attribute_map = { + 'key': 'key', + 'version': 'version', + 'attributes': 'attributes', + 'layouts': 'layouts', + 'unit_system': 'unitSystem', + 'discrete_types': 'discreteTypes', + 'sources': 'sources', + 'access_control_category_values': 'accessControlCategoryValues', + 'security_groups': 'securityGroups' + } + + subtype_mapping = { + 'attributes': 'GrantaServerApiIntegrationSchemaAttribute', + 'layouts': 'GrantaServerApiIntegrationSchemaLayout', + 'discreteTypes': 'GrantaServerApiIntegrationSchemaDiscreteType', + 'sources': 'GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier', + 'securityGroups': 'GrantaServerApiIntegrationSchemaSecurityGroups' + } + + + def __init__(self, key=None, version=None, attributes=None, layouts=None, unit_system=None, discrete_types=None, sources=None, access_control_category_values=None, security_groups=None): # noqa: E501 + """GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier - a model defined in Swagger""" # noqa: E501 + self._key = None + self._version = None + self._attributes = None + self._layouts = None + self._unit_system = None + self._discrete_types = None + self._sources = None + self._access_control_category_values = None + self._security_groups = None + self.discriminator = None + if key is not None: + self.key = key + if version is not None: + self.version = version + if attributes is not None: + self.attributes = attributes + if layouts is not None: + self.layouts = layouts + if unit_system is not None: + self.unit_system = unit_system + if discrete_types is not None: + self.discrete_types = discrete_types + if sources is not None: + self.sources = sources + if access_control_category_values is not None: + self.access_control_category_values = access_control_category_values + if security_groups is not None: + self.security_groups = security_groups + + @property + def key(self): + """Gets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param key: The key of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: str + """ + self._key = key + + @property + def version(self): + """Gets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """Sets the version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param version: The version of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: int + """ + self._version = version + + @property + def attributes(self): + """Gets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaAttribute] + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param attributes: The attributes of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaAttribute] + """ + self._attributes = attributes + + @property + def layouts(self): + """Gets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaLayout] + """ + return self._layouts + + @layouts.setter + def layouts(self, layouts): + """Sets the layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param layouts: The layouts of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaLayout] + """ + self._layouts = layouts + + @property + def unit_system(self): + """Gets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: str + """ + return self._unit_system + + @unit_system.setter + def unit_system(self, unit_system): + """Sets the unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param unit_system: The unit_system of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: str + """ + self._unit_system = unit_system + + @property + def discrete_types(self): + """Gets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaDiscreteType] + """ + return self._discrete_types + + @discrete_types.setter + def discrete_types(self, discrete_types): + """Sets the discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param discrete_types: The discrete_types of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaDiscreteType] + """ + self._discrete_types = discrete_types + + @property + def sources(self): + """Gets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] + """ + return self._sources + + @sources.setter + def sources(self, sources): + """Sets the sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param sources: The sources of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier] + """ + self._sources = sources + + @property + def access_control_category_values(self): + """Gets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: dict(str, list[str]) + """ + return self._access_control_category_values + + @access_control_category_values.setter + def access_control_category_values(self, access_control_category_values): + """Sets the access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param access_control_category_values: The access_control_category_values of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: dict(str, list[str]) + """ + self._access_control_category_values = access_control_category_values + + @property + def security_groups(self): + """Gets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: GrantaServerApiIntegrationSchemaSecurityGroups + """ + return self._security_groups + + @security_groups.setter + def security_groups(self, security_groups): + """Sets the security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. + + :param security_groups: The security_groups of this GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: GrantaServerApiIntegrationSchemaSecurityGroups + """ + self._security_groups = security_groups + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiIntegrationSchemaIntegrationSchemaOfGrantaServerApiObjectIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py new file mode 100644 index 00000000..c8ca4dd7 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_mapping_of_granta_server_api_object_identifier.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'source': 'GrantaServerApiObjectIdentifier', + 'target_identity': 'int', + 'parameter_mappings': 'list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]', + 'link_source_type': 'GrantaServerApiIntegrationSchemaLinkSourceType' + } + + attribute_map = { + 'source': 'source', + 'target_identity': 'targetIdentity', + 'parameter_mappings': 'parameterMappings', + 'link_source_type': 'linkSourceType' + } + + subtype_mapping = { + 'source': 'GrantaServerApiObjectIdentifier', + 'parameterMappings': 'GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier', + 'linkSourceType': 'GrantaServerApiIntegrationSchemaLinkSourceType' + } + + + def __init__(self, source=None, target_identity=None, parameter_mappings=None, link_source_type=None): # noqa: E501 + """GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier - a model defined in Swagger""" # noqa: E501 + self._source = None + self._target_identity = None + self._parameter_mappings = None + self._link_source_type = None + self.discriminator = None + if source is not None: + self.source = source + if target_identity is not None: + self.target_identity = target_identity + if parameter_mappings is not None: + self.parameter_mappings = parameter_mappings + if link_source_type is not None: + self.link_source_type = link_source_type + + @property + def source(self): + """Gets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: GrantaServerApiObjectIdentifier + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. + + :param source: The source of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: GrantaServerApiObjectIdentifier + """ + self._source = source + + @property + def target_identity(self): + """Gets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + The identity of the integration schema attribute # noqa: E501 + + :return: The target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: int + """ + return self._target_identity + + @target_identity.setter + def target_identity(self, target_identity): + """Sets the target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. + The identity of the integration schema attribute # noqa: E501 + + :param target_identity: The target_identity of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: int + """ + self._target_identity = target_identity + + @property + def parameter_mappings(self): + """Gets the parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. # noqa: E501 + + :return: The parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + """ + return self._parameter_mappings + + @parameter_mappings.setter + def parameter_mappings(self, parameter_mappings): + """Sets the parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. + Any mapped parameters (float functional attributes only). The target parameters must be defined on the target integration attribute. Not every parameters from the source database needs to be mapped for each attribute. # noqa: E501 + + :param parameter_mappings: The parameter_mappings of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + """ + self._parameter_mappings = parameter_mappings + + @property + def link_source_type(self): + """Gets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: GrantaServerApiIntegrationSchemaLinkSourceType + """ + return self._link_source_type + + @link_source_type.setter + def link_source_type(self, link_source_type): + """Sets the link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. + + :param link_source_type: The link_source_type of this GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: GrantaServerApiIntegrationSchemaLinkSourceType + """ + self._link_source_type = link_source_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py new file mode 100644 index 00000000..71f2812a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_integration_schema_source_of_granta_server_api_object_identifier.py @@ -0,0 +1,189 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'database': 'GrantaServerApiObjectIdentifier', + 'database_key': 'str', + 'table': 'GrantaServerApiObjectIdentifier', + 'mappings': 'list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier]' + } + + attribute_map = { + 'database': 'database', + 'database_key': 'databaseKey', + 'table': 'table', + 'mappings': 'mappings' + } + + subtype_mapping = { + 'database': 'GrantaServerApiObjectIdentifier', + 'table': 'GrantaServerApiObjectIdentifier', + 'mappings': 'GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier' + } + + + def __init__(self, database=None, database_key=None, table=None, mappings=None): # noqa: E501 + """GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier - a model defined in Swagger""" # noqa: E501 + self._database = None + self._database_key = None + self._table = None + self._mappings = None + self.discriminator = None + if database is not None: + self.database = database + if database_key is not None: + self.database_key = database_key + if table is not None: + self.table = table + if mappings is not None: + self.mappings = mappings + + @property + def database(self): + """Gets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: GrantaServerApiObjectIdentifier + """ + return self._database + + @database.setter + def database(self, database): + """Sets the database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. + + :param database: The database of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: GrantaServerApiObjectIdentifier + """ + self._database = database + + @property + def database_key(self): + """Gets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: str + """ + return self._database_key + + @database_key.setter + def database_key(self, database_key): + """Sets the database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. + + :param database_key: The database_key of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: str + """ + self._database_key = database_key + + @property + def table(self): + """Gets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + + :return: The table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: GrantaServerApiObjectIdentifier + """ + return self._table + + @table.setter + def table(self, table): + """Sets the table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. + + :param table: The table of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: GrantaServerApiObjectIdentifier + """ + self._table = table + + @property + def mappings(self): + """Gets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + Mappings for items from this table to the integration schema attributes. # noqa: E501 + + :return: The mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :rtype: list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + """ + return self._mappings + + @mappings.setter + def mappings(self, mappings): + """Sets the mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. + Mappings for items from this table to the integration schema attributes. # noqa: E501 + + :param mappings: The mappings of this GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier. # noqa: E501 + :type: list[GrantaServerApiIntegrationSchemaMappingOfGrantaServerApiObjectIdentifier] + """ + self._mappings = mappings + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiIntegrationSchemaSourceOfGrantaServerApiObjectIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_list_create.py index f2c9a262..fe255c3c 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_record_list_create.py @@ -29,6 +29,7 @@ class GrantaServerApiListsDtoRecordListCreate(ModelBase): """ swagger_types = { 'items': 'GrantaServerApiListsDtoRecordListItems', + 'identifier': 'str', 'name': 'str', 'description': 'str', 'notes': 'str', @@ -39,6 +40,7 @@ class GrantaServerApiListsDtoRecordListCreate(ModelBase): attribute_map = { 'items': 'items', + 'identifier': 'identifier', 'name': 'name', 'description': 'description', 'notes': 'notes', @@ -52,9 +54,10 @@ class GrantaServerApiListsDtoRecordListCreate(ModelBase): } - def __init__(self, items=None, name=None, description=None, notes=None, published=None, awaiting_approval=None, internal_use=None): # noqa: E501 + def __init__(self, items=None, identifier=None, name=None, description=None, notes=None, published=None, awaiting_approval=None, internal_use=None): # noqa: E501 """GrantaServerApiListsDtoRecordListCreate - a model defined in Swagger""" # noqa: E501 self._items = None + self._identifier = None self._name = None self._description = None self._notes = None @@ -64,6 +67,8 @@ def __init__(self, items=None, name=None, description=None, notes=None, publishe self.discriminator = None if items is not None: self.items = items + if identifier is not None: + self.identifier = identifier if name is not None: self.name = name if description is not None: @@ -95,6 +100,24 @@ def items(self, items): """ self._items = items + @property + def identifier(self): + """Gets the identifier of this GrantaServerApiListsDtoRecordListCreate. # noqa: E501 + + :return: The identifier of this GrantaServerApiListsDtoRecordListCreate. # noqa: E501 + :rtype: str + """ + return self._identifier + + @identifier.setter + def identifier(self, identifier): + """Sets the identifier of this GrantaServerApiListsDtoRecordListCreate. + + :param identifier: The identifier of this GrantaServerApiListsDtoRecordListCreate. # noqa: E501 + :type: str + """ + self._identifier = identifier + @property def name(self): """Gets the name of this GrantaServerApiListsDtoRecordListCreate. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py index db65fe2f..51141b91 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute.py @@ -30,6 +30,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): swagger_types = { 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType', 'axis_name': 'str', + 'help_path': 'str', 'about_attribute': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', 'info': 'GrantaServerApiSchemaAttributesAttributeAttributeInfo', 'display_names': 'dict(str, str)', @@ -40,6 +41,7 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): attribute_map = { 'default_threshold_type': 'defaultThresholdType', 'axis_name': 'axisName', + 'help_path': 'helpPath', 'about_attribute': 'aboutAttribute', 'info': 'info', 'display_names': 'displayNames', @@ -71,10 +73,11 @@ class GrantaServerApiSchemaAttributesAttribute(ModelBase): 'mathsFunctional'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesMathsFunctionalAttribute', } - def __init__(self, default_threshold_type=None, axis_name=None, about_attribute=None, info=None, display_names=None, name=None, guid=None): # noqa: E501 + def __init__(self, default_threshold_type=None, axis_name=None, help_path=None, about_attribute=None, info=None, display_names=None, name=None, guid=None): # noqa: E501 """GrantaServerApiSchemaAttributesAttribute - a model defined in Swagger""" # noqa: E501 self._default_threshold_type = None self._axis_name = None + self._help_path = None self._about_attribute = None self._info = None self._display_names = None @@ -85,6 +88,8 @@ def __init__(self, default_threshold_type=None, axis_name=None, about_attribute= self.default_threshold_type = default_threshold_type if axis_name is not None: self.axis_name = axis_name + if help_path is not None: + self.help_path = help_path if about_attribute is not None: self.about_attribute = about_attribute if info is not None: @@ -132,6 +137,24 @@ def axis_name(self, axis_name): """ self._axis_name = axis_name + @property + def help_path(self): + """Gets the help_path of this GrantaServerApiSchemaAttributesAttribute. # noqa: E501 + + :return: The help_path of this GrantaServerApiSchemaAttributesAttribute. # noqa: E501 + :rtype: str + """ + return self._help_path + + @help_path.setter + def help_path(self, help_path): + """Sets the help_path of this GrantaServerApiSchemaAttributesAttribute. + + :param help_path: The help_path of this GrantaServerApiSchemaAttributesAttribute. # noqa: E501 + :type: str + """ + self._help_path = help_path + @property def about_attribute(self): """Gets the about_attribute of this GrantaServerApiSchemaAttributesAttribute. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py new file mode 100644 index 00000000..bfa5feba --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_attribute_validate_response.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesAttributeValidateResponse(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'is_valid': 'bool', + 'has_validation_rules': 'bool', + 'value_changed': 'bool' + } + + attribute_map = { + 'is_valid': 'isValid', + 'has_validation_rules': 'hasValidationRules', + 'value_changed': 'valueChanged' + } + + subtype_mapping = { + } + + + def __init__(self, is_valid=None, has_validation_rules=None, value_changed=None): # noqa: E501 + """GrantaServerApiSchemaAttributesAttributeValidateResponse - a model defined in Swagger""" # noqa: E501 + self._is_valid = None + self._has_validation_rules = None + self._value_changed = None + self.discriminator = None + if is_valid is not None: + self.is_valid = is_valid + if has_validation_rules is not None: + self.has_validation_rules = has_validation_rules + if value_changed is not None: + self.value_changed = value_changed + + @property + def is_valid(self): + """Gets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + Gets whether the provided value was valid based on the attributes data rules. # noqa: E501 + + :return: The is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :rtype: bool + """ + return self._is_valid + + @is_valid.setter + def is_valid(self, is_valid): + """Sets the is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. + Gets whether the provided value was valid based on the attributes data rules. # noqa: E501 + + :param is_valid: The is_valid of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :type: bool + """ + self._is_valid = is_valid + + @property + def has_validation_rules(self): + """Gets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + Gets whether the attribute has any validation rules that were checked. # noqa: E501 + + :return: The has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :rtype: bool + """ + return self._has_validation_rules + + @has_validation_rules.setter + def has_validation_rules(self, has_validation_rules): + """Sets the has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. + Gets whether the attribute has any validation rules that were checked. # noqa: E501 + + :param has_validation_rules: The has_validation_rules of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :type: bool + """ + self._has_validation_rules = has_validation_rules + + @property + def value_changed(self): + """Gets the value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + Gets whether the provided value was a new value compared to the existing value. Null if no record was provided. # noqa: E501 + + :return: The value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :rtype: bool + """ + return self._value_changed + + @value_changed.setter + def value_changed(self, value_changed): + """Sets the value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. + Gets whether the provided value was a new value compared to the existing value. Null if no record was provided. # noqa: E501 + + :param value_changed: The value_changed of this GrantaServerApiSchemaAttributesAttributeValidateResponse. # noqa: E501 + :type: bool + """ + self._value_changed = value_changed + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesAttributeValidateResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesAttributeValidateResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py index 72f020b4..d0093c49 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute.py @@ -31,7 +31,7 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute(GrantaServerApi swagger_types = { 'type': 'str', 'discrete_type': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', - 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesAttributeParameter]' + 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]' } if hasattr(GrantaServerApiSchemaAttributesAttribute, "swagger_types"): swagger_types.update(GrantaServerApiSchemaAttributesAttribute.swagger_types) @@ -46,7 +46,7 @@ class GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute(GrantaServerApi subtype_mapping = { 'discreteType': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', - 'attributeParameters': 'GrantaServerApiSchemaAttributesAttributeParameter' + 'attributeParameters': 'GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter' } @@ -106,7 +106,7 @@ def attribute_parameters(self): """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. # noqa: E501 :return: The attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. # noqa: E501 - :rtype: list[GrantaServerApiSchemaAttributesAttributeParameter] + :rtype: list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] """ return self._attribute_parameters @@ -115,7 +115,7 @@ def attribute_parameters(self, attribute_parameters): """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttribute. # noqa: E501 - :type: list[GrantaServerApiSchemaAttributesAttributeParameter] + :type: list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] """ self._attribute_parameters = attribute_parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py new file mode 100644 index 00000000..d57af1ff --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_discrete_functional_attribute_parameter.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parameter': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + 'default_value': 'float' + } + + attribute_map = { + 'parameter': 'parameter', + 'default_value': 'defaultValue' + } + + subtype_mapping = { + 'parameter': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + } + + + def __init__(self, parameter=None, default_value=None): # noqa: E501 + """GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter - a model defined in Swagger""" # noqa: E501 + self._parameter = None + self._default_value = None + self.discriminator = None + if parameter is not None: + self.parameter = parameter + if default_value is not None: + self.default_value = default_value + + @property + def parameter(self): + """Gets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + + :return: The parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._parameter + + @parameter.setter + def parameter(self, parameter): + """Sets the parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. + + :param parameter: The parameter of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._parameter = parameter + + @property + def default_value(self): + """Gets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + + :return: The default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + :rtype: float + """ + return self._default_value + + @default_value.setter + def default_value(self, default_value): + """Sets the default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. + + :param default_value: The default_value of this GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter. # noqa: E501 + :type: float + """ + self._default_value = default_value + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py index 5988fd1c..e9ea8000 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute.py @@ -31,7 +31,7 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttribute(GrantaServerApiSch swagger_types = { 'type': 'str', 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', - 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesAttributeParameter]', + 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter]', 'is_range': 'bool' } if hasattr(GrantaServerApiSchemaAttributesAttribute, "swagger_types"): @@ -48,7 +48,7 @@ class GrantaServerApiSchemaAttributesFloatFunctionalAttribute(GrantaServerApiSch subtype_mapping = { 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', - 'attributeParameters': 'GrantaServerApiSchemaAttributesAttributeParameter', + 'attributeParameters': 'GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter', } @@ -111,7 +111,7 @@ def attribute_parameters(self): """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. # noqa: E501 :return: The attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. # noqa: E501 - :rtype: list[GrantaServerApiSchemaAttributesAttributeParameter] + :rtype: list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] """ return self._attribute_parameters @@ -120,7 +120,7 @@ def attribute_parameters(self, attribute_parameters): """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesFloatFunctionalAttribute. # noqa: E501 - :type: list[GrantaServerApiSchemaAttributesAttributeParameter] + :type: list[GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter] """ self._attribute_parameters = attribute_parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py new file mode 100644 index 00000000..9f78cc39 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_float_functional_attribute_parameter.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parameter': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + 'default_value': 'float', + 'interpolation_method': 'GrantaServerApiSchemaAttributesAttributeInterpolationMethod', + 'scale_type': 'GrantaServerApiSchemaAttributesAttributeScaleType' + } + + attribute_map = { + 'parameter': 'parameter', + 'default_value': 'defaultValue', + 'interpolation_method': 'interpolationMethod', + 'scale_type': 'scaleType' + } + + subtype_mapping = { + 'parameter': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + 'interpolationMethod': 'GrantaServerApiSchemaAttributesAttributeInterpolationMethod', + 'scaleType': 'GrantaServerApiSchemaAttributesAttributeScaleType' + } + + + def __init__(self, parameter=None, default_value=None, interpolation_method=None, scale_type=None): # noqa: E501 + """GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter - a model defined in Swagger""" # noqa: E501 + self._parameter = None + self._default_value = None + self._interpolation_method = None + self._scale_type = None + self.discriminator = None + if parameter is not None: + self.parameter = parameter + if default_value is not None: + self.default_value = default_value + if interpolation_method is not None: + self.interpolation_method = interpolation_method + if scale_type is not None: + self.scale_type = scale_type + + @property + def parameter(self): + """Gets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._parameter + + @parameter.setter + def parameter(self, parameter): + """Sets the parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. + + :param parameter: The parameter of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._parameter = parameter + + @property + def default_value(self): + """Gets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: float + """ + return self._default_value + + @default_value.setter + def default_value(self, default_value): + """Sets the default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. + + :param default_value: The default_value of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :type: float + """ + self._default_value = default_value + + @property + def interpolation_method(self): + """Gets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + """ + return self._interpolation_method + + @interpolation_method.setter + def interpolation_method(self, interpolation_method): + """Sets the interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. + + :param interpolation_method: The interpolation_method of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + """ + self._interpolation_method = interpolation_method + + @property + def scale_type(self): + """Gets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeScaleType + """ + return self._scale_type + + @scale_type.setter + def scale_type(self, scale_type): + """Sets the scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. + + :param scale_type: The scale_type of this GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeScaleType + """ + self._scale_type = scale_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesFloatFunctionalAttributeParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py index 44753eeb..4cfb5e0d 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_maths_functional_attribute.py @@ -31,7 +31,7 @@ class GrantaServerApiSchemaAttributesMathsFunctionalAttribute(GrantaServerApiSch swagger_types = { 'type': 'str', 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', - 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesAttributeParameter]', + 'attribute_parameters': 'list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]', 'expressions': 'list[GrantaServerApiSchemaSlimEntitiesSlimExpression]', 'allow_extrapolation': 'bool', 'is_range': 'bool', @@ -56,7 +56,7 @@ class GrantaServerApiSchemaAttributesMathsFunctionalAttribute(GrantaServerApiSch subtype_mapping = { 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', - 'attributeParameters': 'GrantaServerApiSchemaAttributesAttributeParameter', + 'attributeParameters': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', 'expressions': 'GrantaServerApiSchemaSlimEntitiesSlimExpression', 'defaultContent': 'GrantaServerApiSchemaAttributesMathsContent' } @@ -133,7 +133,7 @@ def attribute_parameters(self): """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. # noqa: E501 :return: The attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. # noqa: E501 - :rtype: list[GrantaServerApiSchemaAttributesAttributeParameter] + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ return self._attribute_parameters @@ -142,7 +142,7 @@ def attribute_parameters(self, attribute_parameters): """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesMathsFunctionalAttribute. # noqa: E501 - :type: list[GrantaServerApiSchemaAttributesAttributeParameter] + :type: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ self._attribute_parameters = attribute_parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py index a5f39ec5..29ad5916 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_point_attribute.py @@ -32,7 +32,7 @@ class GrantaServerApiSchemaAttributesPointAttribute(GrantaServerApiSchemaAttribu 'type': 'str', 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', 'is_multi_valued': 'bool', - 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesAttributeParameter]' + 'attribute_parameters': 'list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]' } if hasattr(GrantaServerApiSchemaAttributesAttribute, "swagger_types"): swagger_types.update(GrantaServerApiSchemaAttributesAttribute.swagger_types) @@ -48,7 +48,7 @@ class GrantaServerApiSchemaAttributesPointAttribute(GrantaServerApiSchemaAttribu subtype_mapping = { 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', - 'attributeParameters': 'GrantaServerApiSchemaAttributesAttributeParameter' + 'attributeParameters': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' } @@ -129,7 +129,7 @@ def attribute_parameters(self): """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. # noqa: E501 :return: The attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. # noqa: E501 - :rtype: list[GrantaServerApiSchemaAttributesAttributeParameter] + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ return self._attribute_parameters @@ -138,7 +138,7 @@ def attribute_parameters(self, attribute_parameters): """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesPointAttribute. # noqa: E501 - :type: list[GrantaServerApiSchemaAttributesAttributeParameter] + :type: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] """ self._attribute_parameters = attribute_parameters diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py index 7ade46cc..4cc964c8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_short_text_attribute.py @@ -30,31 +30,37 @@ class GrantaServerApiSchemaAttributesShortTextAttribute(GrantaServerApiSchemaAtt """ swagger_types = { 'type': 'str', - 'is_unique': 'bool' + 'is_unique': 'bool', + 'data_rule': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' } if hasattr(GrantaServerApiSchemaAttributesAttribute, "swagger_types"): swagger_types.update(GrantaServerApiSchemaAttributesAttribute.swagger_types) attribute_map = { 'type': 'type', - 'is_unique': 'isUnique' + 'is_unique': 'isUnique', + 'data_rule': 'dataRule' } if hasattr(GrantaServerApiSchemaAttributesAttribute, "attribute_map"): attribute_map.update(GrantaServerApiSchemaAttributesAttribute.attribute_map) subtype_mapping = { + 'dataRule': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' } - def __init__(self, type='shortText', is_unique=None, *args, **kwargs): # noqa: E501 + def __init__(self, type='shortText', is_unique=None, data_rule=None, *args, **kwargs): # noqa: E501 """GrantaServerApiSchemaAttributesShortTextAttribute - a model defined in Swagger""" # noqa: E501 GrantaServerApiSchemaAttributesAttribute.__init__(self, *args, **kwargs) self._type = None self._is_unique = None + self._data_rule = None self.discriminator = None self.type = type if is_unique is not None: self.is_unique = is_unique + if data_rule is not None: + self.data_rule = data_rule @property def type(self): @@ -94,6 +100,24 @@ def is_unique(self, is_unique): """ self._is_unique = is_unique + @property + def data_rule(self): + """Gets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. # noqa: E501 + + :return: The data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._data_rule + + @data_rule.setter + def data_rule(self, data_rule): + """Sets the data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. + + :param data_rule: The data_rule of this GrantaServerApiSchemaAttributesShortTextAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._data_rule = data_rule + def get_real_child_model(self, data): """Raises a NotImplementedError for a type without a discriminator defined.""" raise NotImplementedError() diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py new file mode 100644 index 00000000..9d04eddc --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_attribute.py @@ -0,0 +1,257 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'axis_name': 'str', + 'help_path': 'str', + 'about_attribute': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'default_threshold_type': 'defaultThresholdType', + 'axis_name': 'axisName', + 'help_path': 'helpPath', + 'about_attribute': 'aboutAttribute', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'aboutAttribute': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + } + + discriminator_value_class_map = { + 'point'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute', + 'integer'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute', + 'range'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute', + 'logical'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute', + 'shortText'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute', + 'longText'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute', + 'dateTime'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute', + 'discrete'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute', + 'hyperlink'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute', + 'file'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute', + 'picture'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute', + 'link'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute', + 'floatFunctional'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute', + 'discreteFunctional'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute', + 'mathsFunctional'.lower(): '#/components/schemas/GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute', + } + + def __init__(self, default_threshold_type=None, axis_name=None, help_path=None, about_attribute=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute - a model defined in Swagger""" # noqa: E501 + self._default_threshold_type = None + self._axis_name = None + self._help_path = None + self._about_attribute = None + self._name = None + self._guid = None + self.discriminator = 'type' + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + if axis_name is not None: + self.axis_name = axis_name + if help_path is not None: + self.help_path = help_path + if about_attribute is not None: + self.about_attribute = about_attribute + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + @property + def axis_name(self): + """Gets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: str + """ + return self._axis_name + + @axis_name.setter + def axis_name(self, axis_name): + """Sets the axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param axis_name: The axis_name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: str + """ + self._axis_name = axis_name + + @property + def help_path(self): + """Gets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: str + """ + return self._help_path + + @help_path.setter + def help_path(self, help_path): + """Sets the help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param help_path: The help_path of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: str + """ + self._help_path = help_path + + @property + def about_attribute(self): + """Gets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._about_attribute + + @about_attribute.setter + def about_attribute(self, about_attribute): + """Sets the about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param about_attribute: The about_attribute of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._about_attribute = about_attribute + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param name: The name of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. + + :param guid: The guid of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_value = str(data[self._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 self.discriminator_value_class_map.get(discriminator_value).rsplit("/", 1)[-1] + + def _get_discriminator_field_name(self): + name_tokens = self.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_date_time_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py new file mode 100644 index 00000000..3e66ebfa --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_date_time_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='dateTime', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDateTimeAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_discrete_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py new file mode 100644 index 00000000..d4181c56 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_attribute.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'is_multi_valued': 'bool' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'is_multi_valued': 'isMultiValued' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='discrete', is_multi_valued=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._is_multi_valued = None + self.discriminator = None + self.type = type + if is_multi_valued is not None: + self.is_multi_valued = is_multi_valued + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def is_multi_valued(self): + """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + + :return: The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_multi_valued + + @is_multi_valued.setter + def is_multi_valued(self, is_multi_valued): + """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. + + :param is_multi_valued: The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute. # noqa: E501 + :type: bool + """ + self._is_multi_valued = is_multi_valued + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_discrete_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py new file mode 100644 index 00000000..1837f808 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_discrete_functional_attribute.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter]' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'attribute_parameters': 'attributeParameters' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'attributeParameters': 'GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter' + } + + + def __init__(self, type='discreteFunctional', attribute_parameters=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._attribute_parameters = None + self.discriminator = None + self.type = type + if attribute_parameters is not None: + self.attribute_parameters = attribute_parameters + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def attribute_parameters(self): + """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + + :return: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] + """ + return self._attribute_parameters + + @attribute_parameters.setter + def attribute_parameters(self, attribute_parameters): + """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. + + :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaAttributesDiscreteFunctionalAttributeParameter] + """ + self._attribute_parameters = attribute_parameters + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateDiscreteFunctionalAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_file_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py new file mode 100644 index 00000000..a9047316 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_file_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='file', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateFileAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_float_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py new file mode 100644 index 00000000..37abf44b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_float_functional_attribute.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'attribute_parameters': 'list[GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter]', + 'is_range': 'bool' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'unit': 'unit', + 'attribute_parameters': 'attributeParameters', + 'is_range': 'isRange' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'attributeParameters': 'GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter', + } + + + def __init__(self, type='floatFunctional', unit=None, attribute_parameters=None, is_range=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._unit = None + self._attribute_parameters = None + self._is_range = None + self.discriminator = None + self.type = type + if unit is not None: + self.unit = unit + if attribute_parameters is not None: + self.attribute_parameters = attribute_parameters + if is_range is not None: + self.is_range = is_range + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. + + :param unit: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def attribute_parameters(self): + """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + + :return: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter] + """ + return self._attribute_parameters + + @attribute_parameters.setter + def attribute_parameters(self, attribute_parameters): + """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. + + :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter] + """ + self._attribute_parameters = attribute_parameters + + @property + def is_range(self): + """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + + :return: The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_range + + @is_range.setter + def is_range(self, is_range): + """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. + + :param is_range: The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute. # noqa: E501 + :type: bool + """ + self._is_range = is_range + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateFloatFunctionalAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_hyperlink_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py new file mode 100644 index 00000000..3a8d3d1f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_hyperlink_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='hyperlink', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateHyperlinkAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_integer_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py new file mode 100644 index 00000000..9b62f752 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_integer_attribute.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'is_unique': 'bool' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'is_unique': 'isUnique' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='integer', is_unique=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._is_unique = None + self.discriminator = None + self.type = type + if is_unique is not None: + self.is_unique = is_unique + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def is_unique(self): + """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + + :return: The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_unique + + @is_unique.setter + def is_unique(self, is_unique): + """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. + + :param is_unique: The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute. # noqa: E501 + :type: bool + """ + self._is_unique = is_unique + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateIntegerAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_logical_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py new file mode 100644 index 00000000..d1fc5b2b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_logical_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='logical', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateLogicalAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_long_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py new file mode 100644 index 00000000..627b651d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_long_text_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='longText', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateLongTextAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_maths_functional_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py new file mode 100644 index 00000000..91b57573 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_maths_functional_attribute.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'attribute_parameters': 'list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]', + 'expressions': 'list[GrantaServerApiSchemaSlimEntitiesSlimExpression]', + 'allow_extrapolation': 'bool', + 'is_range': 'bool', + 'default_content': 'GrantaServerApiSchemaAttributesMathsContent', + 'allow_all_compatible_expressions': 'bool' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'unit': 'unit', + 'attribute_parameters': 'attributeParameters', + 'expressions': 'expressions', + 'allow_extrapolation': 'allowExtrapolation', + 'is_range': 'isRange', + 'default_content': 'defaultContent', + 'allow_all_compatible_expressions': 'allowAllCompatibleExpressions' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'attributeParameters': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + 'expressions': 'GrantaServerApiSchemaSlimEntitiesSlimExpression', + 'defaultContent': 'GrantaServerApiSchemaAttributesMathsContent', + } + + + def __init__(self, type='mathsFunctional', unit=None, attribute_parameters=None, expressions=None, allow_extrapolation=None, is_range=None, default_content=None, allow_all_compatible_expressions=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._unit = None + self._attribute_parameters = None + self._expressions = None + self._allow_extrapolation = None + self._is_range = None + self._default_content = None + self._allow_all_compatible_expressions = None + self.discriminator = None + self.type = type + if unit is not None: + self.unit = unit + if attribute_parameters is not None: + self.attribute_parameters = attribute_parameters + if expressions is not None: + self.expressions = expressions + if allow_extrapolation is not None: + self.allow_extrapolation = allow_extrapolation + if is_range is not None: + self.is_range = is_range + if default_content is not None: + self.default_content = default_content + if allow_all_compatible_expressions is not None: + self.allow_all_compatible_expressions = allow_all_compatible_expressions + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param unit: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def attribute_parameters(self): + """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + return self._attribute_parameters + + @attribute_parameters.setter + def attribute_parameters(self, attribute_parameters): + """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + self._attribute_parameters = attribute_parameters + + @property + def expressions(self): + """Gets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + """ + return self._expressions + + @expressions.setter + def expressions(self, expressions): + """Sets the expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param expressions: The expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimExpression] + """ + self._expressions = expressions + + @property + def allow_extrapolation(self): + """Gets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: bool + """ + return self._allow_extrapolation + + @allow_extrapolation.setter + def allow_extrapolation(self, allow_extrapolation): + """Sets the allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param allow_extrapolation: The allow_extrapolation of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: bool + """ + self._allow_extrapolation = allow_extrapolation + + @property + def is_range(self): + """Gets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_range + + @is_range.setter + def is_range(self, is_range): + """Sets the is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param is_range: The is_range of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: bool + """ + self._is_range = is_range + + @property + def default_content(self): + """Gets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesMathsContent + """ + return self._default_content + + @default_content.setter + def default_content(self, default_content): + """Sets the default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param default_content: The default_content of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: GrantaServerApiSchemaAttributesMathsContent + """ + self._default_content = default_content + + @property + def allow_all_compatible_expressions(self): + """Gets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + + :return: The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :rtype: bool + """ + return self._allow_all_compatible_expressions + + @allow_all_compatible_expressions.setter + def allow_all_compatible_expressions(self, allow_all_compatible_expressions): + """Sets the allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. + + :param allow_all_compatible_expressions: The allow_all_compatible_expressions of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute. # noqa: E501 + :type: bool + """ + self._allow_all_compatible_expressions = allow_all_compatible_expressions + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateMathsFunctionalAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_picture_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py new file mode 100644 index 00000000..fe784d88 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_picture_attribute.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='picture', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdatePictureAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_point_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py new file mode 100644 index 00000000..e237ef40 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_point_attribute.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'is_multi_valued': 'bool', + 'attribute_parameters': 'list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'unit': 'unit', + 'is_multi_valued': 'isMultiValued', + 'attribute_parameters': 'attributeParameters' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'attributeParameters': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' + } + + + def __init__(self, type='point', unit=None, is_multi_valued=None, attribute_parameters=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._unit = None + self._is_multi_valued = None + self._attribute_parameters = None + self.discriminator = None + self.type = type + if unit is not None: + self.unit = unit + if is_multi_valued is not None: + self.is_multi_valued = is_multi_valued + if attribute_parameters is not None: + self.attribute_parameters = attribute_parameters + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. + + :param unit: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def is_multi_valued(self): + """Gets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + + :return: The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_multi_valued + + @is_multi_valued.setter + def is_multi_valued(self, is_multi_valued): + """Sets the is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. + + :param is_multi_valued: The is_multi_valued of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :type: bool + """ + self._is_multi_valued = is_multi_valued + + @property + def attribute_parameters(self): + """Gets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + + :return: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + return self._attribute_parameters + + @attribute_parameters.setter + def attribute_parameters(self, attribute_parameters): + """Sets the attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. + + :param attribute_parameters: The attribute_parameters of this GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + self._attribute_parameters = attribute_parameters + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdatePointAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_range_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py new file mode 100644 index 00000000..0fb23b01 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_range_attribute.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'unit': 'unit' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + + + def __init__(self, type='range', unit=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._unit = None + self.discriminator = None + self.type = type + if unit is not None: + self.unit = unit + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. + + :param unit: The unit of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateRangeAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_short_text_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py new file mode 100644 index 00000000..fbc3874b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_short_text_attribute.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'is_unique': 'bool', + 'data_rule': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'is_unique': 'isUnique', + 'data_rule': 'dataRule' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'dataRule': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' + } + + + def __init__(self, type='shortText', is_unique=None, data_rule=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._is_unique = None + self._data_rule = None + self.discriminator = None + self.type = type + if is_unique is not None: + self.is_unique = is_unique + if data_rule is not None: + self.data_rule = data_rule + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def is_unique(self): + """Gets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + + :return: The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_unique + + @is_unique.setter + def is_unique(self, is_unique): + """Sets the is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. + + :param is_unique: The is_unique of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :type: bool + """ + self._is_unique = is_unique + + @property + def data_rule(self): + """Gets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + + :return: The data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._data_rule + + @data_rule.setter + def data_rule(self, data_rule): + """Sets the data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. + + :param data_rule: The data_rule of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._data_rule = data_rule + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateShortTextAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_attributes_update_tabular_attribute.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py new file mode 100644 index 00000000..ff98f976 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_attributes_update_tabular_attribute.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_attributes_update_attributes_update_attribute import GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute # noqa: F401,E501 + +class GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'display_full_table': 'bool', + 'display_summary_row_inline': 'bool', + 'hide_unlinked_rows': 'bool', + 'tabular_columns': 'list[GrantaServerApiSchemaTabularColumnsTabularColumn]' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.swagger_types) + + attribute_map = { + 'type': 'type', + 'display_full_table': 'displayFullTable', + 'display_summary_row_inline': 'displaySummaryRowInline', + 'hide_unlinked_rows': 'hideUnlinkedRows', + 'tabular_columns': 'tabularColumns' + } + if hasattr(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.attribute_map) + + subtype_mapping = { + 'tabularColumns': 'GrantaServerApiSchemaTabularColumnsTabularColumn' + } + + + def __init__(self, type='link', display_full_table=None, display_summary_row_inline=None, hide_unlinked_rows=None, tabular_columns=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaAttributesUpdateAttributesUpdateAttribute.__init__(self, *args, **kwargs) + self._type = None + self._display_full_table = None + self._display_summary_row_inline = None + self._hide_unlinked_rows = None + self._tabular_columns = None + self.discriminator = None + self.type = type + if display_full_table is not None: + self.display_full_table = display_full_table + if display_summary_row_inline is not None: + self.display_summary_row_inline = display_summary_row_inline + if hide_unlinked_rows is not None: + self.hide_unlinked_rows = hide_unlinked_rows + if tabular_columns is not None: + self.tabular_columns = tabular_columns + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. + + :param type: The type of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def display_full_table(self): + """Gets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + + :return: The display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :rtype: bool + """ + return self._display_full_table + + @display_full_table.setter + def display_full_table(self, display_full_table): + """Sets the display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. + + :param display_full_table: The display_full_table of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :type: bool + """ + self._display_full_table = display_full_table + + @property + def display_summary_row_inline(self): + """Gets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + + :return: The display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :rtype: bool + """ + return self._display_summary_row_inline + + @display_summary_row_inline.setter + def display_summary_row_inline(self, display_summary_row_inline): + """Sets the display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. + + :param display_summary_row_inline: The display_summary_row_inline of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :type: bool + """ + self._display_summary_row_inline = display_summary_row_inline + + @property + def hide_unlinked_rows(self): + """Gets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + + :return: The hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :rtype: bool + """ + return self._hide_unlinked_rows + + @hide_unlinked_rows.setter + def hide_unlinked_rows(self, hide_unlinked_rows): + """Sets the hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. + + :param hide_unlinked_rows: The hide_unlinked_rows of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :type: bool + """ + self._hide_unlinked_rows = hide_unlinked_rows + + @property + def tabular_columns(self): + """Gets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + + :return: The tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :rtype: list[GrantaServerApiSchemaTabularColumnsTabularColumn] + """ + return self._tabular_columns + + @tabular_columns.setter + def tabular_columns(self, tabular_columns): + """Sets the tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. + + :param tabular_columns: The tabular_columns of this GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute. # noqa: E501 + :type: list[GrantaServerApiSchemaTabularColumnsTabularColumn] + """ + self._tabular_columns = tabular_columns + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateAttributesUpdateTabularAttribute): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_update_float_functional_attribute_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_float_functional_attribute_parameter.py new file mode 100644 index 00000000..6dc417d1 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_update_float_functional_attribute_parameter.py @@ -0,0 +1,186 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parameter_guid': 'str', + 'default_value': 'float', + 'interpolation_method': 'GrantaServerApiSchemaAttributesAttributeInterpolationMethod', + 'scale_type': 'GrantaServerApiSchemaAttributesAttributeScaleType' + } + + attribute_map = { + 'parameter_guid': 'parameterGuid', + 'default_value': 'defaultValue', + 'interpolation_method': 'interpolationMethod', + 'scale_type': 'scaleType' + } + + subtype_mapping = { + 'interpolationMethod': 'GrantaServerApiSchemaAttributesAttributeInterpolationMethod', + 'scaleType': 'GrantaServerApiSchemaAttributesAttributeScaleType' + } + + + def __init__(self, parameter_guid=None, default_value=None, interpolation_method=None, scale_type=None): # noqa: E501 + """GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter - a model defined in Swagger""" # noqa: E501 + self._parameter_guid = None + self._default_value = None + self._interpolation_method = None + self._scale_type = None + self.discriminator = None + if parameter_guid is not None: + self.parameter_guid = parameter_guid + if default_value is not None: + self.default_value = default_value + if interpolation_method is not None: + self.interpolation_method = interpolation_method + if scale_type is not None: + self.scale_type = scale_type + + @property + def parameter_guid(self): + """Gets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The parameter_guid of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: str + """ + return self._parameter_guid + + @parameter_guid.setter + def parameter_guid(self, parameter_guid): + """Sets the parameter_guid of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. + + :param parameter_guid: The parameter_guid of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :type: str + """ + self._parameter_guid = parameter_guid + + @property + def default_value(self): + """Gets the default_value of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The default_value of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: float + """ + return self._default_value + + @default_value.setter + def default_value(self, default_value): + """Sets the default_value of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. + + :param default_value: The default_value of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :type: float + """ + self._default_value = default_value + + @property + def interpolation_method(self): + """Gets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The interpolation_method of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + """ + return self._interpolation_method + + @interpolation_method.setter + def interpolation_method(self, interpolation_method): + """Sets the interpolation_method of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. + + :param interpolation_method: The interpolation_method of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeInterpolationMethod + """ + self._interpolation_method = interpolation_method + + @property + def scale_type(self): + """Gets the scale_type of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + + :return: The scale_type of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeScaleType + """ + return self._scale_type + + @scale_type.setter + def scale_type(self, scale_type): + """Sets the scale_type of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. + + :param scale_type: The scale_type of this GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeScaleType + """ + self._scale_type = scale_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesUpdateFloatFunctionalAttributeParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attributes_validate_attribute_request.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py new file mode 100644 index 00000000..e53c7940 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_attributes_validate_attribute_request.py @@ -0,0 +1,142 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaAttributesValidateAttributeRequest(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'record_history_guid': 'str' + } + + attribute_map = { + 'value': 'value', + 'record_history_guid': 'recordHistoryGuid' + } + + subtype_mapping = { + } + + + def __init__(self, value=None, record_history_guid=None): # noqa: E501 + """GrantaServerApiSchemaAttributesValidateAttributeRequest - a model defined in Swagger""" # noqa: E501 + self._value = None + self._record_history_guid = None + self.discriminator = None + if value is not None: + self.value = value + if record_history_guid is not None: + self.record_history_guid = record_history_guid + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + The value to check an attributes data validation rules against # noqa: E501 + + :return: The value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. + The value to check an attributes data validation rules against # noqa: E501 + + :param value: The value of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + :type: str + """ + self._value = value + + @property + def record_history_guid(self): + """Gets the record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + The record you want to check the value against to see if the value has changed as well as being valid # noqa: E501 + + :return: The record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + :rtype: str + """ + return self._record_history_guid + + @record_history_guid.setter + def record_history_guid(self, record_history_guid): + """Sets the record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. + The record you want to check the value against to see if the value has changed as well as being valid # noqa: E501 + + :param record_history_guid: The record_history_guid of this GrantaServerApiSchemaAttributesValidateAttributeRequest. # noqa: E501 + :type: str + """ + self._record_history_guid = record_history_guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaAttributesValidateAttributeRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaAttributesValidateAttributeRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_configurations_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py new file mode 100644 index 00000000..79578d25 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configuration.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConfigurationsConfiguration(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'value': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'description': 'description', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, description=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConfigurationsConfiguration - a model defined in Swagger""" # noqa: E501 + self._description = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if description is not None: + self.description = description + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaConfigurationsConfiguration. + + :param description: The description of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :type: str + """ + self._description = description + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConfigurationsConfiguration. + + :param value: The value of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :type: str + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConfigurationsConfiguration. + + :param name: The name of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConfigurationsConfiguration. + + :param guid: The guid of this GrantaServerApiSchemaConfigurationsConfiguration. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConfigurationsConfiguration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConfigurationsConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_configurations_configurations_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py new file mode 100644 index 00000000..6125a58a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_configurations_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConfigurationsConfigurationsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'configurations': 'list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration]' + } + + attribute_map = { + 'configurations': 'configurations' + } + + subtype_mapping = { + 'configurations': 'GrantaServerApiSchemaSlimEntitiesSlimConfiguration' + } + + + def __init__(self, configurations=None): # noqa: E501 + """GrantaServerApiSchemaConfigurationsConfigurationsInfo - a model defined in Swagger""" # noqa: E501 + self._configurations = None + self.discriminator = None + if configurations is not None: + self.configurations = configurations + + @property + def configurations(self): + """Gets the configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. # noqa: E501 + + :return: The configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] + """ + return self._configurations + + @configurations.setter + def configurations(self, configurations): + """Sets the configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. + + :param configurations: The configurations of this GrantaServerApiSchemaConfigurationsConfigurationsInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimConfiguration] + """ + self._configurations = configurations + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConfigurationsConfigurationsInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConfigurationsConfigurationsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_configurations_create_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py new file mode 100644 index 00000000..f0fc7253 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_create_configuration.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConfigurationsCreateConfiguration(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'value': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'description': 'description', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, description=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConfigurationsCreateConfiguration - a model defined in Swagger""" # noqa: E501 + self._description = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if description is not None: + self.description = description + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. + + :param description: The description of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :type: str + """ + self._description = description + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConfigurationsCreateConfiguration. + + :param value: The value of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :type: str + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConfigurationsCreateConfiguration. + + :param name: The name of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. + + :param guid: The guid of this GrantaServerApiSchemaConfigurationsCreateConfiguration. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConfigurationsCreateConfiguration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConfigurationsCreateConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_configurations_update_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py new file mode 100644 index 00000000..cd247ee7 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_configurations_update_configuration.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConfigurationsUpdateConfiguration(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'value': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'description': 'description', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, description=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConfigurationsUpdateConfiguration - a model defined in Swagger""" # noqa: E501 + self._description = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if description is not None: + self.description = description + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. + + :param description: The description of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :type: str + """ + self._description = description + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. + + :param value: The value of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :type: str + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. + + :param name: The name of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. + + :param guid: The guid of this GrantaServerApiSchemaConfigurationsUpdateConfiguration. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConfigurationsUpdateConfiguration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConfigurationsUpdateConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_constants_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py new file mode 100644 index 00000000..ad59770b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constant.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConstantsConstant(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'value': 'float', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'unit': 'unit', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + } + + + def __init__(self, unit=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConstantsConstant - a model defined in Swagger""" # noqa: E501 + self._unit = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if unit is not None: + self.unit = unit + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaConstantsConstant. + + :param unit: The unit of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :rtype: float + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConstantsConstant. + + :param value: The value of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :type: float + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConstantsConstant. + + :param name: The name of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConstantsConstant. + + :param guid: The guid of this GrantaServerApiSchemaConstantsConstant. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConstantsConstant, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConstantsConstant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_constants_constants_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py new file mode 100644 index 00000000..e1ac3297 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_constants_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConstantsConstantsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'constants': 'list[GrantaServerApiSchemaSlimEntitiesSlimConstant]' + } + + attribute_map = { + 'constants': 'constants' + } + + subtype_mapping = { + 'constants': 'GrantaServerApiSchemaSlimEntitiesSlimConstant' + } + + + def __init__(self, constants=None): # noqa: E501 + """GrantaServerApiSchemaConstantsConstantsInfo - a model defined in Swagger""" # noqa: E501 + self._constants = None + self.discriminator = None + if constants is not None: + self.constants = constants + + @property + def constants(self): + """Gets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. # noqa: E501 + + :return: The constants of this GrantaServerApiSchemaConstantsConstantsInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimConstant] + """ + return self._constants + + @constants.setter + def constants(self, constants): + """Sets the constants of this GrantaServerApiSchemaConstantsConstantsInfo. + + :param constants: The constants of this GrantaServerApiSchemaConstantsConstantsInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimConstant] + """ + self._constants = constants + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConstantsConstantsInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConstantsConstantsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_constants_create_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py new file mode 100644 index 00000000..d73c64df --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_create_constant.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConstantsCreateConstant(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'unit_guid': 'str', + 'value': 'float', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'unit_guid': 'unitGuid', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, unit_guid=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConstantsCreateConstant - a model defined in Swagger""" # noqa: E501 + self._unit_guid = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if unit_guid is not None: + self.unit_guid = unit_guid + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def unit_guid(self): + """Gets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + + :return: The unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :rtype: str + """ + return self._unit_guid + + @unit_guid.setter + def unit_guid(self, unit_guid): + """Sets the unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. + + :param unit_guid: The unit_guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :type: str + """ + self._unit_guid = unit_guid + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :rtype: float + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConstantsCreateConstant. + + :param value: The value of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :type: float + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConstantsCreateConstant. + + :param name: The name of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConstantsCreateConstant. + + :param guid: The guid of this GrantaServerApiSchemaConstantsCreateConstant. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConstantsCreateConstant, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConstantsCreateConstant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_constants_update_constant.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py new file mode 100644 index 00000000..3405c165 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_constants_update_constant.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaConstantsUpdateConstant(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'unit_guid': 'str', + 'value': 'float', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'unit_guid': 'unitGuid', + 'value': 'value', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, unit_guid=None, value=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaConstantsUpdateConstant - a model defined in Swagger""" # noqa: E501 + self._unit_guid = None + self._value = None + self._name = None + self._guid = None + self.discriminator = None + if unit_guid is not None: + self.unit_guid = unit_guid + if value is not None: + self.value = value + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def unit_guid(self): + """Gets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + + :return: The unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :rtype: str + """ + return self._unit_guid + + @unit_guid.setter + def unit_guid(self, unit_guid): + """Sets the unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. + + :param unit_guid: The unit_guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :type: str + """ + self._unit_guid = unit_guid + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :rtype: float + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaConstantsUpdateConstant. + + :param value: The value of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :type: float + """ + self._value = value + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaConstantsUpdateConstant. + + :param name: The name of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaConstantsUpdateConstant. + + :param guid: The guid of this GrantaServerApiSchemaConstantsUpdateConstant. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaConstantsUpdateConstant, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaConstantsUpdateConstant): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rule.py new file mode 100644 index 00000000..0a44e179 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rule.py @@ -0,0 +1,208 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaDataRule(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'regular_expression': 'str', + 'used_by_attributes': 'list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity]', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'description': 'description', + 'regular_expression': 'regularExpression', + 'used_by_attributes': 'usedByAttributes', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'usedByAttributes': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity', + } + + + def __init__(self, description=None, regular_expression=None, used_by_attributes=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaDataRule - a model defined in Swagger""" # noqa: E501 + self._description = None + self._regular_expression = None + self._used_by_attributes = None + self._name = None + self._guid = None + self.discriminator = None + if description is not None: + self.description = description + if regular_expression is not None: + self.regular_expression = regular_expression + if used_by_attributes is not None: + self.used_by_attributes = used_by_attributes + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaDataRule. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaDataRule. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaDataRule. + + :param description: The description of this GrantaServerApiSchemaDataRule. # noqa: E501 + :type: str + """ + self._description = description + + @property + def regular_expression(self): + """Gets the regular_expression of this GrantaServerApiSchemaDataRule. # noqa: E501 + + :return: The regular_expression of this GrantaServerApiSchemaDataRule. # noqa: E501 + :rtype: str + """ + return self._regular_expression + + @regular_expression.setter + def regular_expression(self, regular_expression): + """Sets the regular_expression of this GrantaServerApiSchemaDataRule. + + :param regular_expression: The regular_expression of this GrantaServerApiSchemaDataRule. # noqa: E501 + :type: str + """ + self._regular_expression = regular_expression + + @property + def used_by_attributes(self): + """Gets the used_by_attributes of this GrantaServerApiSchemaDataRule. # noqa: E501 + + :return: The used_by_attributes of this GrantaServerApiSchemaDataRule. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + return self._used_by_attributes + + @used_by_attributes.setter + def used_by_attributes(self, used_by_attributes): + """Sets the used_by_attributes of this GrantaServerApiSchemaDataRule. + + :param used_by_attributes: The used_by_attributes of this GrantaServerApiSchemaDataRule. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimNamedEntity] + """ + self._used_by_attributes = used_by_attributes + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaDataRule. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaDataRule. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaDataRule. + + :param name: The name of this GrantaServerApiSchemaDataRule. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaDataRule. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaDataRule. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaDataRule. + + :param guid: The guid of this GrantaServerApiSchemaDataRule. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaDataRule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaDataRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_data_rules_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_info.py new file mode 100644 index 00000000..b41c9b80 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_data_rules_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaDataRulesInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'data_rules': 'list[GrantaServerApiSchemaDataRule]' + } + + attribute_map = { + 'data_rules': 'dataRules' + } + + subtype_mapping = { + 'dataRules': 'GrantaServerApiSchemaDataRule' + } + + + def __init__(self, data_rules=None): # noqa: E501 + """GrantaServerApiSchemaDataRulesInfo - a model defined in Swagger""" # noqa: E501 + self._data_rules = None + self.discriminator = None + if data_rules is not None: + self.data_rules = data_rules + + @property + def data_rules(self): + """Gets the data_rules of this GrantaServerApiSchemaDataRulesInfo. # noqa: E501 + + :return: The data_rules of this GrantaServerApiSchemaDataRulesInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaDataRule] + """ + return self._data_rules + + @data_rules.setter + def data_rules(self, data_rules): + """Sets the data_rules of this GrantaServerApiSchemaDataRulesInfo. + + :param data_rules: The data_rules of this GrantaServerApiSchemaDataRulesInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaDataRule] + """ + self._data_rules = data_rules + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaDataRulesInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaDataRulesInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_create_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py new file mode 100644 index 00000000..913fac8b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_create_folder.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesCreateFolder(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parent_guid': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'parent_guid': 'parentGuid', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, parent_guid=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaFilesCreateFolder - a model defined in Swagger""" # noqa: E501 + self._parent_guid = None + self._name = None + self._guid = None + self.discriminator = None + if parent_guid is not None: + self.parent_guid = parent_guid + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def parent_guid(self): + """Gets the parent_guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + + :return: The parent_guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :rtype: str + """ + return self._parent_guid + + @parent_guid.setter + def parent_guid(self, parent_guid): + """Sets the parent_guid of this GrantaServerApiSchemaFilesCreateFolder. + + :param parent_guid: The parent_guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :type: str + """ + self._parent_guid = parent_guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaFilesCreateFolder. + + :param name: The name of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaFilesCreateFolder. + + :param guid: The guid of this GrantaServerApiSchemaFilesCreateFolder. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesCreateFolder, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesCreateFolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_file_header.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py new file mode 100644 index 00000000..6087c838 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_file_header.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesFileHeader(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'folder_guid': 'str', + 'description': 'str', + 'extension': 'str', + 'data_length': 'int', + 'path': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'folder_guid': 'folderGuid', + 'description': 'description', + 'extension': 'extension', + 'data_length': 'dataLength', + 'path': 'path', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, folder_guid=None, description=None, extension=None, data_length=None, path=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaFilesFileHeader - a model defined in Swagger""" # noqa: E501 + self._folder_guid = None + self._description = None + self._extension = None + self._data_length = None + self._path = None + self._name = None + self._guid = None + self.discriminator = None + if folder_guid is not None: + self.folder_guid = folder_guid + if description is not None: + self.description = description + if extension is not None: + self.extension = extension + if data_length is not None: + self.data_length = data_length + if path is not None: + self.path = path + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def folder_guid(self): + """Gets the folder_guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The folder_guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._folder_guid + + @folder_guid.setter + def folder_guid(self, folder_guid): + """Sets the folder_guid of this GrantaServerApiSchemaFilesFileHeader. + + :param folder_guid: The folder_guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._folder_guid = folder_guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaFilesFileHeader. + + :param description: The description of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._description = description + + @property + def extension(self): + """Gets the extension of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The extension of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._extension + + @extension.setter + def extension(self, extension): + """Sets the extension of this GrantaServerApiSchemaFilesFileHeader. + + :param extension: The extension of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._extension = extension + + @property + def data_length(self): + """Gets the data_length of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The data_length of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: int + """ + return self._data_length + + @data_length.setter + def data_length(self, data_length): + """Sets the data_length of this GrantaServerApiSchemaFilesFileHeader. + + :param data_length: The data_length of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: int + """ + self._data_length = data_length + + @property + def path(self): + """Gets the path of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The path of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this GrantaServerApiSchemaFilesFileHeader. + + :param path: The path of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._path = path + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaFilesFileHeader. + + :param name: The name of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaFilesFileHeader. + + :param guid: The guid of this GrantaServerApiSchemaFilesFileHeader. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesFileHeader, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesFileHeader): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_files_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py new file mode 100644 index 00000000..84534ad6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_files_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesFilesInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'files': 'list[GrantaServerApiSchemaSlimEntitiesSlimFile]' + } + + attribute_map = { + 'files': 'files' + } + + subtype_mapping = { + 'files': 'GrantaServerApiSchemaSlimEntitiesSlimFile' + } + + + def __init__(self, files=None): # noqa: E501 + """GrantaServerApiSchemaFilesFilesInfo - a model defined in Swagger""" # noqa: E501 + self._files = None + self.discriminator = None + if files is not None: + self.files = files + + @property + def files(self): + """Gets the files of this GrantaServerApiSchemaFilesFilesInfo. # noqa: E501 + + :return: The files of this GrantaServerApiSchemaFilesFilesInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimFile] + """ + return self._files + + @files.setter + def files(self, files): + """Sets the files of this GrantaServerApiSchemaFilesFilesInfo. + + :param files: The files of this GrantaServerApiSchemaFilesFilesInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimFile] + """ + self._files = files + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesFilesInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesFilesInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py new file mode 100644 index 00000000..b4b94300 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folder.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesFolder(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parent_guid': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'parent_guid': 'parentGuid', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, parent_guid=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaFilesFolder - a model defined in Swagger""" # noqa: E501 + self._parent_guid = None + self._name = None + self._guid = None + self.discriminator = None + if parent_guid is not None: + self.parent_guid = parent_guid + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def parent_guid(self): + """Gets the parent_guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + + :return: The parent_guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :rtype: str + """ + return self._parent_guid + + @parent_guid.setter + def parent_guid(self, parent_guid): + """Sets the parent_guid of this GrantaServerApiSchemaFilesFolder. + + :param parent_guid: The parent_guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :type: str + """ + self._parent_guid = parent_guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaFilesFolder. + + :param name: The name of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaFilesFolder. + + :param guid: The guid of this GrantaServerApiSchemaFilesFolder. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesFolder, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesFolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_folders_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py new file mode 100644 index 00000000..02b4f67b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_folders_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesFoldersInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'folders': 'list[GrantaServerApiSchemaFilesFolder]' + } + + attribute_map = { + 'folders': 'folders' + } + + subtype_mapping = { + 'folders': 'GrantaServerApiSchemaFilesFolder' + } + + + def __init__(self, folders=None): # noqa: E501 + """GrantaServerApiSchemaFilesFoldersInfo - a model defined in Swagger""" # noqa: E501 + self._folders = None + self.discriminator = None + if folders is not None: + self.folders = folders + + @property + def folders(self): + """Gets the folders of this GrantaServerApiSchemaFilesFoldersInfo. # noqa: E501 + + :return: The folders of this GrantaServerApiSchemaFilesFoldersInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaFilesFolder] + """ + return self._folders + + @folders.setter + def folders(self, folders): + """Sets the folders of this GrantaServerApiSchemaFilesFoldersInfo. + + :param folders: The folders of this GrantaServerApiSchemaFilesFoldersInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaFilesFolder] + """ + self._folders = folders + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesFoldersInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesFoldersInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_move_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py new file mode 100644 index 00000000..25111c3f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_move_folder.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesMoveFolder(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'parent_guid': 'str' + } + + attribute_map = { + 'parent_guid': 'parentGuid' + } + + subtype_mapping = { + } + + + def __init__(self, parent_guid=None): # noqa: E501 + """GrantaServerApiSchemaFilesMoveFolder - a model defined in Swagger""" # noqa: E501 + self._parent_guid = None + self.discriminator = None + if parent_guid is not None: + self.parent_guid = parent_guid + + @property + def parent_guid(self): + """Gets the parent_guid of this GrantaServerApiSchemaFilesMoveFolder. # noqa: E501 + + :return: The parent_guid of this GrantaServerApiSchemaFilesMoveFolder. # noqa: E501 + :rtype: str + """ + return self._parent_guid + + @parent_guid.setter + def parent_guid(self, parent_guid): + """Sets the parent_guid of this GrantaServerApiSchemaFilesMoveFolder. + + :param parent_guid: The parent_guid of this GrantaServerApiSchemaFilesMoveFolder. # noqa: E501 + :type: str + """ + self._parent_guid = parent_guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesMoveFolder, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesMoveFolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_files_update_folder.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py new file mode 100644 index 00000000..d8c9c584 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_files_update_folder.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaFilesUpdateFolder(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaFilesUpdateFolder - a model defined in Swagger""" # noqa: E501 + self._name = None + self._guid = None + self.discriminator = None + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaFilesUpdateFolder. + + :param name: The name of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaFilesUpdateFolder. + + :param guid: The guid of this GrantaServerApiSchemaFilesUpdateFolder. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaFilesUpdateFolder, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaFilesUpdateFolder): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_layouts_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py index 088e5794..b7ad1259 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_item.py @@ -52,7 +52,7 @@ def __init__(self, underlying_entity_guid=None, name=None, guid=None): # noqa: self._underlying_entity_guid = None self._name = None self._guid = None - self.discriminator = 'item_type' + self.discriminator = 'itemType' if underlying_entity_guid is not None: self.underlying_entity_guid = underlying_entity_guid if name is not None: diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py index 4af142f8..11e3f158 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_section.py @@ -52,7 +52,7 @@ def __init__(self, display_names=None, name=None, guid=None): # noqa: E501 self._display_names = None self._name = None self._guid = None - self.discriminator = 'section_detail_type' + self.discriminator = 'sectionDetailType' if display_names is not None: self.display_names = display_names if name is not None: diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py index f6134ee9..8471fccb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_layout_tabular_column.py @@ -28,7 +28,7 @@ class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): and the value is json key in definition. """ swagger_types = { - 'column_type': 'GrantaServerApiSchemaTabularColumnsTabularColumnType', + 'column_type': 'GrantaServerApiSchemaTabularColumnsTabularColumnDtoType', 'tabular_column_guid': 'str', 'name': 'str', 'guid': 'str' @@ -42,7 +42,7 @@ class GrantaServerApiSchemaLayoutsLayoutTabularColumn(ModelBase): } subtype_mapping = { - 'columnType': 'GrantaServerApiSchemaTabularColumnsTabularColumnType', + 'columnType': 'GrantaServerApiSchemaTabularColumnsTabularColumnDtoType', } @@ -67,7 +67,7 @@ def column_type(self): """Gets the column_type of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. # noqa: E501 :return: The column_type of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. # noqa: E501 - :rtype: GrantaServerApiSchemaTabularColumnsTabularColumnType + :rtype: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType """ return self._column_type @@ -76,7 +76,7 @@ def column_type(self, column_type): """Sets the column_type of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. :param column_type: The column_type of this GrantaServerApiSchemaLayoutsLayoutTabularColumn. # noqa: E501 - :type: GrantaServerApiSchemaTabularColumnsTabularColumnType + :type: GrantaServerApiSchemaTabularColumnsTabularColumnDtoType """ self._column_type = column_type diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py index fb37f373..e0bbe576 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_new_layout_item.py @@ -49,7 +49,7 @@ class GrantaServerApiSchemaLayoutsNewLayoutItem(ModelBase): def __init__(self, guid=None): # noqa: E501 """GrantaServerApiSchemaLayoutsNewLayoutItem - a model defined in Swagger""" # noqa: E501 self._guid = None - self.discriminator = 'item_type' + self.discriminator = 'itemType' if guid is not None: self.guid = guid diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py new file mode 100644 index 00000000..0d4ca7d2 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_layouts_update_layout.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaLayoutsUpdateLayout(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaLayoutsUpdateLayout - a model defined in Swagger""" # noqa: E501 + self._name = None + self._guid = None + self.discriminator = None + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaLayoutsUpdateLayout. + + :param name: The name of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaLayoutsUpdateLayout. + + :param guid: The guid of this GrantaServerApiSchemaLayoutsUpdateLayout. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaLayoutsUpdateLayout, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaLayoutsUpdateLayout): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_parameters_update_discrete_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py new file mode 100644 index 00000000..ec1dec40 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_discrete_parameter.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import GrantaServerApiSchemaParametersUpdateParameter # noqa: F401,E501 + +class GrantaServerApiSchemaParametersUpdateDiscreteParameter(GrantaServerApiSchemaParametersUpdateParameter): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaParametersUpdateParameter, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaParametersUpdateParameter.swagger_types) + + attribute_map = { + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaParametersUpdateParameter, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaParametersUpdateParameter.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, type='discrete', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaParametersUpdateDiscreteParameter - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaParametersUpdateParameter.__init__(self, *args, **kwargs) + self._type = None + self.discriminator = None + self.type = type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaParametersUpdateDiscreteParameter. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaParametersUpdateDiscreteParameter. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaParametersUpdateDiscreteParameter. + + :param type: The type of this GrantaServerApiSchemaParametersUpdateDiscreteParameter. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaParametersUpdateDiscreteParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaParametersUpdateDiscreteParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_parameters_update_numeric_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py new file mode 100644 index 00000000..d3a38db6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_numeric_parameter.py @@ -0,0 +1,194 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_parameters_update_parameter import GrantaServerApiSchemaParametersUpdateParameter # noqa: F401,E501 + +class GrantaServerApiSchemaParametersUpdateNumericParameter(GrantaServerApiSchemaParametersUpdateParameter): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'interpolation_type': 'GrantaServerApiSchemaParametersParameterInterpolationType', + 'scale_type': 'GrantaServerApiSchemaParametersParameterScaleType' + } + if hasattr(GrantaServerApiSchemaParametersUpdateParameter, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaParametersUpdateParameter.swagger_types) + + attribute_map = { + 'type': 'type', + 'unit': 'unit', + 'interpolation_type': 'interpolationType', + 'scale_type': 'scaleType' + } + if hasattr(GrantaServerApiSchemaParametersUpdateParameter, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaParametersUpdateParameter.attribute_map) + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'interpolationType': 'GrantaServerApiSchemaParametersParameterInterpolationType', + 'scaleType': 'GrantaServerApiSchemaParametersParameterScaleType' + } + + + def __init__(self, type='numeric', unit=None, interpolation_type=None, scale_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaParametersUpdateNumericParameter - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaParametersUpdateParameter.__init__(self, *args, **kwargs) + self._type = None + self._unit = None + self._interpolation_type = None + self._scale_type = None + self.discriminator = None + self.type = type + if unit is not None: + self.unit = unit + if interpolation_type is not None: + self.interpolation_type = interpolation_type + if scale_type is not None: + self.scale_type = scale_type + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaParametersUpdateNumericParameter. + + :param type: The type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. + + :param unit: The unit of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def interpolation_type(self): + """Gets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + + :return: The interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaParametersParameterInterpolationType + """ + return self._interpolation_type + + @interpolation_type.setter + def interpolation_type(self, interpolation_type): + """Sets the interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. + + :param interpolation_type: The interpolation_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :type: GrantaServerApiSchemaParametersParameterInterpolationType + """ + self._interpolation_type = interpolation_type + + @property + def scale_type(self): + """Gets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + + :return: The scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :rtype: GrantaServerApiSchemaParametersParameterScaleType + """ + return self._scale_type + + @scale_type.setter + def scale_type(self, scale_type): + """Sets the scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. + + :param scale_type: The scale_type of this GrantaServerApiSchemaParametersUpdateNumericParameter. # noqa: E501 + :type: GrantaServerApiSchemaParametersParameterScaleType + """ + self._scale_type = scale_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaParametersUpdateNumericParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaParametersUpdateNumericParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_parameters_update_parameter.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py new file mode 100644 index 00000000..2cc2a309 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_parameters_update_parameter.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaParametersUpdateParameter(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'help_path': 'str', + 'display_names': 'dict(str, str)', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'help_path': 'helpPath', + 'display_names': 'displayNames', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + discriminator_value_class_map = { + 'discrete'.lower(): '#/components/schemas/GrantaServerApiSchemaParametersUpdateDiscreteParameter', + 'numeric'.lower(): '#/components/schemas/GrantaServerApiSchemaParametersUpdateNumericParameter', + } + + def __init__(self, help_path=None, display_names=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaParametersUpdateParameter - a model defined in Swagger""" # noqa: E501 + self._help_path = None + self._display_names = None + self._name = None + self._guid = None + self.discriminator = 'type' + if help_path is not None: + self.help_path = help_path + if display_names is not None: + self.display_names = display_names + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def help_path(self): + """Gets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + + :return: The help_path of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :rtype: str + """ + return self._help_path + + @help_path.setter + def help_path(self, help_path): + """Sets the help_path of this GrantaServerApiSchemaParametersUpdateParameter. + + :param help_path: The help_path of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :type: str + """ + self._help_path = help_path + + @property + def display_names(self): + """Gets the display_names of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + + :return: The display_names of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :rtype: dict(str, str) + """ + return self._display_names + + @display_names.setter + def display_names(self, display_names): + """Sets the display_names of this GrantaServerApiSchemaParametersUpdateParameter. + + :param display_names: The display_names of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :type: dict(str, str) + """ + self._display_names = display_names + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaParametersUpdateParameter. + + :param name: The name of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaParametersUpdateParameter. + + :param guid: The guid of this GrantaServerApiSchemaParametersUpdateParameter. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_value = str(data[self._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 self.discriminator_value_class_map.get(discriminator_value).rsplit("/", 1)[-1] + + def _get_discriminator_field_name(self): + name_tokens = self.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaParametersUpdateParameter, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaParametersUpdateParameter): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_attribute_link_pair.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py new file mode 100644 index 00000000..74cc5adc --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_attribute_link_pair.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attribute_source': 'GrantaServerApiSchemaSlimEntitiesSlimAttribute', + 'attribute_target': 'GrantaServerApiSchemaSlimEntitiesSlimAttribute' + } + + attribute_map = { + 'attribute_source': 'attributeSource', + 'attribute_target': 'attributeTarget' + } + + subtype_mapping = { + 'attributeSource': 'GrantaServerApiSchemaSlimEntitiesSlimAttribute', + 'attributeTarget': 'GrantaServerApiSchemaSlimEntitiesSlimAttribute' + } + + + def __init__(self, attribute_source=None, attribute_target=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair - a model defined in Swagger""" # noqa: E501 + self._attribute_source = None + self._attribute_target = None + self.discriminator = None + if attribute_source is not None: + self.attribute_source = attribute_source + if attribute_target is not None: + self.attribute_target = attribute_target + + @property + def attribute_source(self): + """Gets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + + :return: The attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimAttribute + """ + return self._attribute_source + + @attribute_source.setter + def attribute_source(self, attribute_source): + """Sets the attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. + + :param attribute_source: The attribute_source of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimAttribute + """ + self._attribute_source = attribute_source + + @property + def attribute_target(self): + """Gets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + + :return: The attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimAttribute + """ + return self._attribute_target + + @attribute_target.setter + def attribute_target(self, attribute_target): + """Sets the attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. + + :param attribute_target: The attribute_target of this GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimAttribute + """ + self._attribute_target = attribute_target + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py new file mode 100644 index 00000000..8ecee5f5 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_cross_database_record_link_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'include_indirect_links': 'bool', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.swagger_types) + + attribute_map = { + 'include_indirect_links': 'includeIndirectLinks', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, include_indirect_links=None, type='crossDatabase', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.__init__(self, *args, **kwargs) + self._include_indirect_links = None + self._type = None + self.discriminator = None + if include_indirect_links is not None: + self.include_indirect_links = include_indirect_links + self.type = type + + @property + def include_indirect_links(self): + """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + + :return: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._include_indirect_links + + @include_indirect_links.setter + def include_indirect_links(self, include_indirect_links): + """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. + + :param include_indirect_links: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._include_indirect_links = include_indirect_links + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py new file mode 100644 index 00000000..dfbeb22d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_dynamic_record_link_group.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'forbid_orphans': 'bool', + 'referential_integrity_model': 'GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel', + 'attribute_pairs': 'list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.swagger_types) + + attribute_map = { + 'forbid_orphans': 'forbidOrphans', + 'referential_integrity_model': 'referentialIntegrityModel', + 'attribute_pairs': 'attributePairs', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.attribute_map) + + subtype_mapping = { + 'referentialIntegrityModel': 'GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel', + 'attributePairs': 'GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair', + } + + + def __init__(self, forbid_orphans=None, referential_integrity_model=None, attribute_pairs=None, type='dynamic', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.__init__(self, *args, **kwargs) + self._forbid_orphans = None + self._referential_integrity_model = None + self._attribute_pairs = None + self._type = None + self.discriminator = None + if forbid_orphans is not None: + self.forbid_orphans = forbid_orphans + if referential_integrity_model is not None: + self.referential_integrity_model = referential_integrity_model + if attribute_pairs is not None: + self.attribute_pairs = attribute_pairs + self.type = type + + @property + def forbid_orphans(self): + """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + + :return: The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._forbid_orphans + + @forbid_orphans.setter + def forbid_orphans(self, forbid_orphans): + """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. + + :param forbid_orphans: The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._forbid_orphans = forbid_orphans + + @property + def referential_integrity_model(self): + """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + + :return: The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + """ + return self._referential_integrity_model + + @referential_integrity_model.setter + def referential_integrity_model(self, referential_integrity_model): + """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. + + :param referential_integrity_model: The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + """ + self._referential_integrity_model = referential_integrity_model + + @property + def attribute_pairs(self): + """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + + :return: The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :rtype: list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + """ + return self._attribute_pairs + + @attribute_pairs.setter + def attribute_pairs(self, attribute_pairs): + """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. + + :param attribute_pairs: The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :type: list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + """ + self._attribute_pairs = attribute_pairs + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_link_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py new file mode 100644 index 00000000..84b7d1c0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_info.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsLinkInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'link_source': 'GrantaServerApiSchemaRecordLinkGroupsLinkTarget', + 'link_target': 'GrantaServerApiSchemaRecordLinkGroupsLinkTarget' + } + + attribute_map = { + 'link_source': 'linkSource', + 'link_target': 'linkTarget' + } + + subtype_mapping = { + 'linkSource': 'GrantaServerApiSchemaRecordLinkGroupsLinkTarget', + 'linkTarget': 'GrantaServerApiSchemaRecordLinkGroupsLinkTarget' + } + + + def __init__(self, link_source=None, link_target=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsLinkInfo - a model defined in Swagger""" # noqa: E501 + self._link_source = None + self._link_target = None + self.discriminator = None + if link_source is not None: + self.link_source = link_source + if link_target is not None: + self.link_target = link_target + + @property + def link_source(self): + """Gets the link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + + :return: The link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + """ + return self._link_source + + @link_source.setter + def link_source(self, link_source): + """Sets the link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. + + :param link_source: The link_source of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + """ + self._link_source = link_source + + @property + def link_target(self): + """Gets the link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + + :return: The link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + """ + return self._link_target + + @link_target.setter + def link_target(self, link_target): + """Sets the link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. + + :param link_target: The link_target of this GrantaServerApiSchemaRecordLinkGroupsLinkInfo. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsLinkTarget + """ + self._link_target = link_target + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsLinkInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsLinkInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_link_target.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py new file mode 100644 index 00000000..4873b218 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_link_target.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsLinkTarget(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'database_guid': 'str', + 'database_version_guid': 'str', + 'table_guid': 'str' + } + + attribute_map = { + 'database_guid': 'databaseGuid', + 'database_version_guid': 'databaseVersionGuid', + 'table_guid': 'tableGuid' + } + + subtype_mapping = { + } + + + def __init__(self, database_guid=None, database_version_guid=None, table_guid=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsLinkTarget - a model defined in Swagger""" # noqa: E501 + self._database_guid = None + self._database_version_guid = None + self._table_guid = None + self.discriminator = None + if database_guid is not None: + self.database_guid = database_guid + if database_version_guid is not None: + self.database_version_guid = database_version_guid + if table_guid is not None: + self.table_guid = table_guid + + @property + def database_guid(self): + """Gets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + + :return: The database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :rtype: str + """ + return self._database_guid + + @database_guid.setter + def database_guid(self, database_guid): + """Sets the database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. + + :param database_guid: The database_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :type: str + """ + self._database_guid = database_guid + + @property + def database_version_guid(self): + """Gets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + + :return: The database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :rtype: str + """ + return self._database_version_guid + + @database_version_guid.setter + def database_version_guid(self, database_version_guid): + """Sets the database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. + + :param database_version_guid: The database_version_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :type: str + """ + self._database_version_guid = database_version_guid + + @property + def table_guid(self): + """Gets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + + :return: The table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :rtype: str + """ + return self._table_guid + + @table_guid.setter + def table_guid(self, table_guid): + """Sets the table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. + + :param table_guid: The table_guid of this GrantaServerApiSchemaRecordLinkGroupsLinkTarget. # noqa: E501 + :type: str + """ + self._table_guid = table_guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsLinkTarget, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsLinkTarget): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py new file mode 100644 index 00000000..60347603 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'link_info': 'GrantaServerApiSchemaRecordLinkGroupsLinkInfo', + 'reverse_name': 'str', + 'reverse_display_names': 'dict(str, str)', + 'display_names': 'dict(str, str)', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'link_info': 'linkInfo', + 'reverse_name': 'reverseName', + 'reverse_display_names': 'reverseDisplayNames', + 'display_names': 'displayNames', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'linkInfo': 'GrantaServerApiSchemaRecordLinkGroupsLinkInfo', + } + + discriminator_value_class_map = { + 'static'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup', + 'dynamic'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsDynamicRecordLinkGroup', + 'crossDatabase'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsCrossDatabaseRecordLinkGroup', + } + + def __init__(self, link_info=None, reverse_name=None, reverse_display_names=None, display_names=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + self._link_info = None + self._reverse_name = None + self._reverse_display_names = None + self._display_names = None + self._name = None + self._guid = None + self.discriminator = 'type' + if link_info is not None: + self.link_info = link_info + if reverse_name is not None: + self.reverse_name = reverse_name + if reverse_display_names is not None: + self.reverse_display_names = reverse_display_names + if display_names is not None: + self.display_names = display_names + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def link_info(self): + """Gets the link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + """ + return self._link_info + + @link_info.setter + def link_info(self, link_info): + """Sets the link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param link_info: The link_info of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsLinkInfo + """ + self._link_info = link_info + + @property + def reverse_name(self): + """Gets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._reverse_name + + @reverse_name.setter + def reverse_name(self, reverse_name): + """Sets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param reverse_name: The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: str + """ + self._reverse_name = reverse_name + + @property + def reverse_display_names(self): + """Gets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: dict(str, str) + """ + return self._reverse_display_names + + @reverse_display_names.setter + def reverse_display_names(self, reverse_display_names): + """Sets the reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param reverse_display_names: The reverse_display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: dict(str, str) + """ + self._reverse_display_names = reverse_display_names + + @property + def display_names(self): + """Gets the display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: dict(str, str) + """ + return self._display_names + + @display_names.setter + def display_names(self, display_names): + """Sets the display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param display_names: The display_names of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: dict(str, str) + """ + self._display_names = display_names + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param name: The name of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. + + :param guid: The guid of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_value = str(data[self._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 self.discriminator_value_class_map.get(discriminator_value).rsplit("/", 1)[-1] + + def _get_discriminator_field_name(self): + name_tokens = self.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_record_link_group_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py new file mode 100644 index 00000000..13ca5b25 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_group_type.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + STATIC = "static" + DYNAMIC = "dynamic" + CROSSDATABASE = "crossDatabase" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_record_link_groups_info.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py new file mode 100644 index 00000000..85740109 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_record_link_groups_info.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'record_link_groups': 'list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup]' + } + + attribute_map = { + 'record_link_groups': 'recordLinkGroups' + } + + subtype_mapping = { + 'recordLinkGroups': 'GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup' + } + + + def __init__(self, record_link_groups=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo - a model defined in Swagger""" # noqa: E501 + self._record_link_groups = None + self.discriminator = None + if record_link_groups is not None: + self.record_link_groups = record_link_groups + + @property + def record_link_groups(self): + """Gets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. # noqa: E501 + + :return: The record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. # noqa: E501 + :rtype: list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] + """ + return self._record_link_groups + + @record_link_groups.setter + def record_link_groups(self, record_link_groups): + """Sets the record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. + + :param record_link_groups: The record_link_groups of this GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo. # noqa: E501 + :type: list[GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup] + """ + self._record_link_groups = record_link_groups + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupsInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_referential_integrity_model.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py new file mode 100644 index 00000000..da2f40ab --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_referential_integrity_model.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + ONETOONE = "oneToOne" + ONETOMANY = "oneToMany" + MANYTOMANY = "manyToMany" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py new file mode 100644 index 00000000..bfd5c8a9 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_static_record_link_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_record_link_group import GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'include_indirect_links': 'bool', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.swagger_types) + + attribute_map = { + 'include_indirect_links': 'includeIndirectLinks', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, include_indirect_links=None, type='static', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroup.__init__(self, *args, **kwargs) + self._include_indirect_links = None + self._type = None + self.discriminator = None + if include_indirect_links is not None: + self.include_indirect_links = include_indirect_links + self.type = type + + @property + def include_indirect_links(self): + """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + + :return: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._include_indirect_links + + @include_indirect_links.setter + def include_indirect_links(self, include_indirect_links): + """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. + + :param include_indirect_links: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._include_indirect_links = include_indirect_links + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsStaticRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_update_cross_database_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py new file mode 100644 index 00000000..8bf66d6e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_cross_database_record_link_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'include_indirect_links': 'bool', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.swagger_types) + + attribute_map = { + 'include_indirect_links': 'includeIndirectLinks', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, include_indirect_links=None, type='crossDatabase', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.__init__(self, *args, **kwargs) + self._include_indirect_links = None + self._type = None + self.discriminator = None + if include_indirect_links is not None: + self.include_indirect_links = include_indirect_links + self.type = type + + @property + def include_indirect_links(self): + """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + + :return: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._include_indirect_links + + @include_indirect_links.setter + def include_indirect_links(self, include_indirect_links): + """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. + + :param include_indirect_links: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._include_indirect_links = include_indirect_links + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_update_dynamic_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py new file mode 100644 index 00000000..6bf780bb --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_dynamic_record_link_group.py @@ -0,0 +1,193 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'forbid_orphans': 'bool', + 'referential_integrity_model': 'GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel', + 'attribute_pairs': 'list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair]', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.swagger_types) + + attribute_map = { + 'forbid_orphans': 'forbidOrphans', + 'referential_integrity_model': 'referentialIntegrityModel', + 'attribute_pairs': 'attributePairs', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.attribute_map) + + subtype_mapping = { + 'referentialIntegrityModel': 'GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel', + 'attributePairs': 'GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair', + } + + + def __init__(self, forbid_orphans=None, referential_integrity_model=None, attribute_pairs=None, type='dynamic', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.__init__(self, *args, **kwargs) + self._forbid_orphans = None + self._referential_integrity_model = None + self._attribute_pairs = None + self._type = None + self.discriminator = None + if forbid_orphans is not None: + self.forbid_orphans = forbid_orphans + if referential_integrity_model is not None: + self.referential_integrity_model = referential_integrity_model + if attribute_pairs is not None: + self.attribute_pairs = attribute_pairs + self.type = type + + @property + def forbid_orphans(self): + """Gets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + + :return: The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._forbid_orphans + + @forbid_orphans.setter + def forbid_orphans(self, forbid_orphans): + """Sets the forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. + + :param forbid_orphans: The forbid_orphans of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._forbid_orphans = forbid_orphans + + @property + def referential_integrity_model(self): + """Gets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + + :return: The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + """ + return self._referential_integrity_model + + @referential_integrity_model.setter + def referential_integrity_model(self, referential_integrity_model): + """Sets the referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. + + :param referential_integrity_model: The referential_integrity_model of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsReferentialIntegrityModel + """ + self._referential_integrity_model = referential_integrity_model + + @property + def attribute_pairs(self): + """Gets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + + :return: The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :rtype: list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + """ + return self._attribute_pairs + + @attribute_pairs.setter + def attribute_pairs(self, attribute_pairs): + """Sets the attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. + + :param attribute_pairs: The attribute_pairs of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :type: list[GrantaServerApiSchemaRecordLinkGroupsAttributeLinkPair] + """ + self._attribute_pairs = attribute_pairs + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_update_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py new file mode 100644 index 00000000..f47a2efb --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_record_link_group.py @@ -0,0 +1,174 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'reverse_name': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'reverse_name': 'reverseName', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + discriminator_value_class_map = { + 'static'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup', + 'dynamic'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateDynamicRecordLinkGroup', + 'crossDatabase'.lower(): '#/components/schemas/GrantaServerApiSchemaRecordLinkGroupsUpdateCrossDatabaseRecordLinkGroup', + } + + def __init__(self, reverse_name=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + self._reverse_name = None + self._name = None + self._guid = None + self.discriminator = 'type' + if reverse_name is not None: + self.reverse_name = reverse_name + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def reverse_name(self): + """Gets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + + :return: The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._reverse_name + + @reverse_name.setter + def reverse_name(self, reverse_name): + """Sets the reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. + + :param reverse_name: The reverse_name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :type: str + """ + self._reverse_name = reverse_name + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. + + :param name: The name of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. + + :param guid: The guid of this GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Returns the real base class specified by the discriminator""" + discriminator_value = str(data[self._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 self.discriminator_value_class_map.get(discriminator_value).rsplit("/", 1)[-1] + + def _get_discriminator_field_name(self): + name_tokens = self.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_record_link_groups_update_static_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py new file mode 100644 index 00000000..b2eac443 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_record_link_groups_update_static_record_link_group.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_record_link_groups_update_record_link_group import GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup # noqa: F401,E501 + +class GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'include_indirect_links': 'bool', + 'type': 'str' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.swagger_types) + + attribute_map = { + 'include_indirect_links': 'includeIndirectLinks', + 'type': 'type' + } + if hasattr(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, include_indirect_links=None, type='static', *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaRecordLinkGroupsUpdateRecordLinkGroup.__init__(self, *args, **kwargs) + self._include_indirect_links = None + self._type = None + self.discriminator = None + if include_indirect_links is not None: + self.include_indirect_links = include_indirect_links + self.type = type + + @property + def include_indirect_links(self): + """Gets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + + :return: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + :rtype: bool + """ + return self._include_indirect_links + + @include_indirect_links.setter + def include_indirect_links(self, include_indirect_links): + """Sets the include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. + + :param include_indirect_links: The include_indirect_links of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + :type: bool + """ + self._include_indirect_links = include_indirect_links + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaRecordLinkGroupsUpdateStaticRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_slim_entities_slim_configuration.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py new file mode 100644 index 00000000..7e8356a3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_configuration.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaSlimEntitiesSlimConfiguration(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaSlimEntitiesSlimConfiguration - a model defined in Swagger""" # noqa: E501 + self._name = None + self._guid = None + self.discriminator = None + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. + + :param name: The name of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. + + :param guid: The guid of this GrantaServerApiSchemaSlimEntitiesSlimConfiguration. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaSlimEntitiesSlimConfiguration, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaSlimEntitiesSlimConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_slim_entities_slim_file.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py new file mode 100644 index 00000000..324c6400 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_file.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaSlimEntitiesSlimFile(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaSlimEntitiesSlimFile - a model defined in Swagger""" # noqa: E501 + self._name = None + self._guid = None + self.discriminator = None + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaSlimEntitiesSlimFile. + + :param name: The name of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimFile. + + :param guid: The guid of this GrantaServerApiSchemaSlimEntitiesSlimFile. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaSlimEntitiesSlimFile, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaSlimEntitiesSlimFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_slim_entities_slim_record_link_group.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py new file mode 100644 index 00000000..8de2f5cf --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_slim_entities_slim_record_link_group.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType', + 'reverse_name': 'str', + 'reverse_display_names': 'dict(str, str)', + 'display_names': 'dict(str, str)', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'type': 'type', + 'reverse_name': 'reverseName', + 'reverse_display_names': 'reverseDisplayNames', + 'display_names': 'displayNames', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'type': 'GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType', + } + + + def __init__(self, type=None, reverse_name=None, reverse_display_names=None, display_names=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup - a model defined in Swagger""" # noqa: E501 + self._type = None + self._reverse_name = None + self._reverse_display_names = None + self._display_names = None + self._name = None + self._guid = None + self.discriminator = None + if type is not None: + self.type = type + if reverse_name is not None: + self.reverse_name = reverse_name + if reverse_display_names is not None: + self.reverse_display_names = reverse_display_names + if display_names is not None: + self.display_names = display_names + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def type(self): + """Gets the type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param type: The type of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: GrantaServerApiSchemaRecordLinkGroupsRecordLinkGroupType + """ + self._type = type + + @property + def reverse_name(self): + """Gets the reverse_name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The reverse_name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._reverse_name + + @reverse_name.setter + def reverse_name(self, reverse_name): + """Sets the reverse_name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param reverse_name: The reverse_name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: str + """ + self._reverse_name = reverse_name + + @property + def reverse_display_names(self): + """Gets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: dict(str, str) + """ + return self._reverse_display_names + + @reverse_display_names.setter + def reverse_display_names(self, reverse_display_names): + """Sets the reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param reverse_display_names: The reverse_display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: dict(str, str) + """ + self._reverse_display_names = reverse_display_names + + @property + def display_names(self): + """Gets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: dict(str, str) + """ + return self._display_names + + @display_names.setter + def display_names(self, display_names): + """Sets the display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param display_names: The display_names of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: dict(str, str) + """ + self._display_names = display_names + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param name: The name of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. + + :param guid: The guid of this GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaSlimEntitiesSlimRecordLinkGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_date_time_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py new file mode 100644 index 00000000..b0fe72eb --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_date_time_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localDateTime', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_discrete_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py new file mode 100644 index 00000000..00aa9e9b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_discrete_tabular_column.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'discrete_type': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType', + 'discrete_type': 'discreteType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'discreteType': 'GrantaServerApiSchemaSlimEntitiesSlimNamedEntity' + } + + + def __init__(self, column_type='localDiscrete', default_threshold_type=None, discrete_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self._discrete_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + if discrete_type is not None: + self.discrete_type = discrete_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + @property + def discrete_type(self): + """Gets the discrete_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + + :return: The discrete_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + return self._discrete_type + + @discrete_type.setter + def discrete_type(self, discrete_type): + """Sets the discrete_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. + + :param discrete_type: The discrete_type of this GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimNamedEntity + """ + self._discrete_type = discrete_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_file_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py new file mode 100644 index 00000000..3fd97a22 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_file_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localFile', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_hyperlink_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py new file mode 100644 index 00000000..9d7fc2e0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_hyperlink_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localHyperlink', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_integer_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py new file mode 100644 index 00000000..2f3f0476 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_integer_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localInteger', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_logical_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py new file mode 100644 index 00000000..7d100622 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_logical_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localLogical', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_long_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py new file mode 100644 index 00000000..67a5314c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_long_text_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localLongText', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_picture_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py new file mode 100644 index 00000000..ea902591 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_picture_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localPicture', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_point_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py new file mode 100644 index 00000000..ff554e97 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_point_tabular_column.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType', + 'unit': 'unit' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + + + def __init__(self, column_type='localPoint', default_threshold_type=None, unit=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self._unit = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + if unit is not None: + self.unit = unit + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. + + :param unit: The unit of this GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_range_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py new file mode 100644 index 00000000..386d3d86 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_range_tabular_column.py @@ -0,0 +1,170 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType', + 'unit': 'unit' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit' + } + + + def __init__(self, column_type='localRange', default_threshold_type=None, unit=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self._unit = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + if unit is not None: + self.unit = unit + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. + + :param unit: The unit of this GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_local_short_text_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py new file mode 100644 index 00000000..7dcb4c10 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_local_short_text_tabular_column.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_schema_tabular_columns_tabular_column import GrantaServerApiSchemaTabularColumnsTabularColumn # noqa: F401,E501 + +class GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn(GrantaServerApiSchemaTabularColumnsTabularColumn): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'column_type': 'str', + 'default_threshold_type': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "swagger_types"): + swagger_types.update(GrantaServerApiSchemaTabularColumnsTabularColumn.swagger_types) + + attribute_map = { + 'column_type': 'columnType', + 'default_threshold_type': 'defaultThresholdType' + } + if hasattr(GrantaServerApiSchemaTabularColumnsTabularColumn, "attribute_map"): + attribute_map.update(GrantaServerApiSchemaTabularColumnsTabularColumn.attribute_map) + + subtype_mapping = { + 'defaultThresholdType': 'GrantaServerApiSchemaAttributesAttributeThresholdType' + } + + + def __init__(self, column_type='localShortText', default_threshold_type=None, *args, **kwargs): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSchemaTabularColumnsTabularColumn.__init__(self, *args, **kwargs) + self._column_type = None + self._default_threshold_type = None + self.discriminator = None + self.column_type = column_type + if default_threshold_type is not None: + self.default_threshold_type = default_threshold_type + + @property + def column_type(self): + """Gets the column_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + + :return: The column_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + :rtype: str + """ + return self._column_type + + @column_type.setter + def column_type(self, column_type): + """Sets the column_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. + + :param column_type: The column_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + :type: str + """ + if column_type is None: + raise ValueError("Invalid value for `column_type`, must not be `None`") # noqa: E501 + self._column_type = column_type + + @property + def default_threshold_type(self): + """Gets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + + :return: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + :rtype: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + return self._default_threshold_type + + @default_threshold_type.setter + def default_threshold_type(self, default_threshold_type): + """Sets the default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. + + :param default_threshold_type: The default_threshold_type of this GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn. # noqa: E501 + :type: GrantaServerApiSchemaAttributesAttributeThresholdType + """ + self._default_threshold_type = default_threshold_type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_tabular_columns_tabular_column.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py index b99aaaf2..78b979a2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column.py @@ -55,10 +55,20 @@ class GrantaServerApiSchemaTabularColumnsTabularColumn(ModelBase): } discriminator_value_class_map = { - 'local'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalTabularColumn', 'linkedAttribute'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLinkedAttributeTabularColumn', 'linkedColumn'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLinkedColumnTabularColumn', 'linkedRecord'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLinkedRecordTabularColumn', + 'localPoint'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalPointTabularColumn', + 'localRange'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalRangeTabularColumn', + 'localInteger'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalIntegerTabularColumn', + 'localLogical'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalLogicalTabularColumn', + 'localShortText'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalShortTextTabularColumn', + 'localLongText'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalLongTextTabularColumn', + 'localDateTime'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalDateTimeTabularColumn', + 'localDiscrete'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalDiscreteTabularColumn', + 'localHyperlink'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalHyperlinkTabularColumn', + 'localFile'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalFileTabularColumn', + 'localPicture'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsLocalPictureTabularColumn', 'unavailable'.lower(): '#/components/schemas/GrantaServerApiSchemaTabularColumnsUnavailableTabularColumn', } @@ -72,7 +82,7 @@ def __init__(self, show_as_link=None, summary_row_enabled=None, summary_row_text self._display_names = None self._name = None self._guid = None - self.discriminator = 'column_type' + self.discriminator = 'columnType' if show_as_link is not None: self.show_as_link = show_as_link if summary_row_enabled is not None: diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py new file mode 100644 index 00000000..5d71cf28 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_tabular_columns_tabular_column_dto_type.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaTabularColumnsTabularColumnDtoType(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + LINKEDATTRIBUTE = "linkedAttribute" + LINKEDRECORD = "linkedRecord" + LINKEDCOLUMN = "linkedColumn" + LOCALINTEGER = "localInteger" + LOCALPOINT = "localPoint" + LOCALRANGE = "localRange" + LOCALLOGICAL = "localLogical" + LOCALSHORTTEXT = "localShortText" + LOCALLONGTEXT = "localLongText" + LOCALDATETIME = "localDateTime" + LOCALDISCRETE = "localDiscrete" + LOCALHYPERLINK = "localHyperlink" + LOCALFILE = "localFile" + LOCALPICTURE = "localPicture" + UNAVAILABLE = "unavailable" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSchemaTabularColumnsTabularColumnDtoType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaTabularColumnsTabularColumnDtoType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaTabularColumnsTabularColumnDtoType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_units_update_unit_system.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py new file mode 100644 index 00000000..dd3ac334 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_units_update_unit_system.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUnitsUpdateUnitSystem(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUnitsUpdateUnitSystem - a model defined in Swagger""" # noqa: E501 + self._name = None + self._guid = None + self.discriminator = None + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. + + :param name: The name of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. + + :param guid: The guid of this GrantaServerApiSchemaUnitsUpdateUnitSystem. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUnitsUpdateUnitSystem, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUnitsUpdateUnitSystem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_data_rule.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_data_rule.py new file mode 100644 index 00000000..d1f373cc --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_data_rule.py @@ -0,0 +1,184 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateDataRule(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'regular_expression': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'description': 'description', + 'regular_expression': 'regularExpression', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, description=None, regular_expression=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateDataRule - a model defined in Swagger""" # noqa: E501 + self._description = None + self._regular_expression = None + self._name = None + self._guid = None + self.discriminator = None + if description is not None: + self.description = description + if regular_expression is not None: + self.regular_expression = regular_expression + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaUpdateDataRule. + + :param description: The description of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :type: str + """ + self._description = description + + @property + def regular_expression(self): + """Gets the regular_expression of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + + :return: The regular_expression of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :rtype: str + """ + return self._regular_expression + + @regular_expression.setter + def regular_expression(self, regular_expression): + """Sets the regular_expression of this GrantaServerApiSchemaUpdateDataRule. + + :param regular_expression: The regular_expression of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :type: str + """ + self._regular_expression = regular_expression + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateDataRule. + + :param name: The name of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateDataRule. + + :param guid: The guid of this GrantaServerApiSchemaUpdateDataRule. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateDataRule, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateDataRule): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_database.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py new file mode 100644 index 00000000..b152a42c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_database.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateDatabase(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'author': 'str', + 'company': 'str', + 'notes': 'str', + 'currency_code': 'str', + 'version_guid': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'author': 'author', + 'company': 'company', + 'notes': 'notes', + 'currency_code': 'currencyCode', + 'version_guid': 'versionGuid', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, author=None, company=None, notes=None, currency_code=None, version_guid=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateDatabase - a model defined in Swagger""" # noqa: E501 + self._author = None + self._company = None + self._notes = None + self._currency_code = None + self._version_guid = None + self._name = None + self._guid = None + self.discriminator = None + if author is not None: + self.author = author + if company is not None: + self.company = company + if notes is not None: + self.notes = notes + if currency_code is not None: + self.currency_code = currency_code + if version_guid is not None: + self.version_guid = version_guid + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def author(self): + """Gets the author of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The author of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._author + + @author.setter + def author(self, author): + """Sets the author of this GrantaServerApiSchemaUpdateDatabase. + + :param author: The author of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._author = author + + @property + def company(self): + """Gets the company of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The company of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._company + + @company.setter + def company(self, company): + """Sets the company of this GrantaServerApiSchemaUpdateDatabase. + + :param company: The company of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._company = company + + @property + def notes(self): + """Gets the notes of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The notes of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._notes + + @notes.setter + def notes(self, notes): + """Sets the notes of this GrantaServerApiSchemaUpdateDatabase. + + :param notes: The notes of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._notes = notes + + @property + def currency_code(self): + """Gets the currency_code of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The currency_code of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._currency_code + + @currency_code.setter + def currency_code(self, currency_code): + """Sets the currency_code of this GrantaServerApiSchemaUpdateDatabase. + + :param currency_code: The currency_code of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._currency_code = currency_code + + @property + def version_guid(self): + """Gets the version_guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The version_guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._version_guid + + @version_guid.setter + def version_guid(self, version_guid): + """Sets the version_guid of this GrantaServerApiSchemaUpdateDatabase. + + :param version_guid: The version_guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._version_guid = version_guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateDatabase. + + :param name: The name of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateDatabase. + + :param guid: The guid of this GrantaServerApiSchemaUpdateDatabase. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateDatabase, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateDatabase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_expression.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_expression.py new file mode 100644 index 00000000..d418b7e9 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_expression.py @@ -0,0 +1,185 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateExpression(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'value': 'value', + 'unit': 'unit', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'unit': 'GrantaServerApiSchemaSlimEntitiesSlimUnit', + } + + + def __init__(self, value=None, unit=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateExpression - a model defined in Swagger""" # noqa: E501 + self._value = None + self._unit = None + self._name = None + self._guid = None + self.discriminator = None + if value is not None: + self.value = value + if unit is not None: + self.unit = unit + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def value(self): + """Gets the value of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + + :return: The value of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSchemaUpdateExpression. + + :param value: The value of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :type: str + """ + self._value = value + + @property + def unit(self): + """Gets the unit of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + + :return: The unit of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this GrantaServerApiSchemaUpdateExpression. + + :param unit: The unit of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimUnit + """ + self._unit = unit + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateExpression. + + :param name: The name of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateExpression. + + :param guid: The guid of this GrantaServerApiSchemaUpdateExpression. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateExpression, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateExpression): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_profile.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_profile.py new file mode 100644 index 00000000..e708805e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_profile.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateProfile(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'description': 'str', + 'homepage_url': 'str', + 'profile_table_guids': 'list[str]', + 'guid': 'str', + 'group_name': 'str', + 'name': 'str' + } + + attribute_map = { + 'description': 'description', + 'homepage_url': 'homepageUrl', + 'profile_table_guids': 'profileTableGuids', + 'guid': 'guid', + 'group_name': 'groupName', + 'name': 'name' + } + + subtype_mapping = { + } + + + def __init__(self, description=None, homepage_url=None, profile_table_guids=None, guid=None, group_name=None, name=None): # noqa: E501 + """GrantaServerApiSchemaUpdateProfile - a model defined in Swagger""" # noqa: E501 + self._description = None + self._homepage_url = None + self._profile_table_guids = None + self._guid = None + self._group_name = None + self._name = None + self.discriminator = None + if description is not None: + self.description = description + if homepage_url is not None: + self.homepage_url = homepage_url + if profile_table_guids is not None: + self.profile_table_guids = profile_table_guids + if guid is not None: + self.guid = guid + if group_name is not None: + self.group_name = group_name + if name is not None: + self.name = name + + @property + def description(self): + """Gets the description of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + + :return: The description of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """Sets the description of this GrantaServerApiSchemaUpdateProfile. + + :param description: The description of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: str + """ + self._description = description + + @property + def homepage_url(self): + """Gets the homepage_url of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + + :return: The homepage_url of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: str + """ + return self._homepage_url + + @homepage_url.setter + def homepage_url(self, homepage_url): + """Sets the homepage_url of this GrantaServerApiSchemaUpdateProfile. + + :param homepage_url: The homepage_url of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: str + """ + self._homepage_url = homepage_url + + @property + def profile_table_guids(self): + """Gets the profile_table_guids of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + + :return: The profile_table_guids of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: list[str] + """ + return self._profile_table_guids + + @profile_table_guids.setter + def profile_table_guids(self, profile_table_guids): + """Sets the profile_table_guids of this GrantaServerApiSchemaUpdateProfile. + + :param profile_table_guids: The profile_table_guids of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: list[str] + """ + self._profile_table_guids = profile_table_guids + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + Guid is a unique identifier of a profile. Separate from key. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateProfile. + Guid is a unique identifier of a profile. Separate from key. # noqa: E501 + + :param guid: The guid of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: str + """ + self._guid = guid + + @property + def group_name(self): + """Gets the group_name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + + :return: The group_name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: str + """ + return self._group_name + + @group_name.setter + def group_name(self, group_name): + """Sets the group_name of this GrantaServerApiSchemaUpdateProfile. + + :param group_name: The group_name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: str + """ + self._group_name = group_name + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateProfile. + + :param name: The name of this GrantaServerApiSchemaUpdateProfile. # noqa: E501 + :type: str + """ + self._name = name + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateProfile, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateProfile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_profile_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_profile_table.py new file mode 100644 index 00000000..51acaf71 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_profile_table.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateProfileTable(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'subset_guid': 'str', + 'layout_guid': 'str', + 'guid': 'str' + } + + attribute_map = { + 'subset_guid': 'subsetGuid', + 'layout_guid': 'layoutGuid', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, subset_guid=None, layout_guid=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateProfileTable - a model defined in Swagger""" # noqa: E501 + self._subset_guid = None + self._layout_guid = None + self._guid = None + self.discriminator = None + if subset_guid is not None: + self.subset_guid = subset_guid + if layout_guid is not None: + self.layout_guid = layout_guid + if guid is not None: + self.guid = guid + + @property + def subset_guid(self): + """Gets the subset_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + + :return: The subset_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :rtype: str + """ + return self._subset_guid + + @subset_guid.setter + def subset_guid(self, subset_guid): + """Sets the subset_guid of this GrantaServerApiSchemaUpdateProfileTable. + + :param subset_guid: The subset_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :type: str + """ + self._subset_guid = subset_guid + + @property + def layout_guid(self): + """Gets the layout_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + + :return: The layout_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :rtype: str + """ + return self._layout_guid + + @layout_guid.setter + def layout_guid(self, layout_guid): + """Sets the layout_guid of this GrantaServerApiSchemaUpdateProfileTable. + + :param layout_guid: The layout_guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :type: str + """ + self._layout_guid = layout_guid + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateProfileTable. + + :param guid: The guid of this GrantaServerApiSchemaUpdateProfileTable. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateProfileTable, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateProfileTable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_subset.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_subset.py new file mode 100644 index 00000000..82aa9b74 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_subset.py @@ -0,0 +1,162 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateSubset(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'associated_layout': 'GrantaServerApiSchemaSlimEntitiesSlimLayout', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'associated_layout': 'associatedLayout', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + 'associatedLayout': 'GrantaServerApiSchemaSlimEntitiesSlimLayout', + } + + + def __init__(self, associated_layout=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateSubset - a model defined in Swagger""" # noqa: E501 + self._associated_layout = None + self._name = None + self._guid = None + self.discriminator = None + if associated_layout is not None: + self.associated_layout = associated_layout + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def associated_layout(self): + """Gets the associated_layout of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + + :return: The associated_layout of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :rtype: GrantaServerApiSchemaSlimEntitiesSlimLayout + """ + return self._associated_layout + + @associated_layout.setter + def associated_layout(self, associated_layout): + """Sets the associated_layout of this GrantaServerApiSchemaUpdateSubset. + + :param associated_layout: The associated_layout of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :type: GrantaServerApiSchemaSlimEntitiesSlimLayout + """ + self._associated_layout = associated_layout + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateSubset. + + :param name: The name of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateSubset. + + :param guid: The guid of this GrantaServerApiSchemaUpdateSubset. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateSubset, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateSubset): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_update_table.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_table.py new file mode 100644 index 00000000..a295abfd --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_schema_update_table.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSchemaUpdateTable(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'is_hidden_from_browse': 'bool', + 'is_hidden_from_search': 'bool', + 'default_subset_guid': 'str', + 'default_layout_guid': 'str', + 'name': 'str', + 'guid': 'str' + } + + attribute_map = { + 'is_hidden_from_browse': 'isHiddenFromBrowse', + 'is_hidden_from_search': 'isHiddenFromSearch', + 'default_subset_guid': 'defaultSubsetGuid', + 'default_layout_guid': 'defaultLayoutGuid', + 'name': 'name', + 'guid': 'guid' + } + + subtype_mapping = { + } + + + def __init__(self, is_hidden_from_browse=None, is_hidden_from_search=None, default_subset_guid=None, default_layout_guid=None, name=None, guid=None): # noqa: E501 + """GrantaServerApiSchemaUpdateTable - a model defined in Swagger""" # noqa: E501 + self._is_hidden_from_browse = None + self._is_hidden_from_search = None + self._default_subset_guid = None + self._default_layout_guid = None + self._name = None + self._guid = None + self.discriminator = None + if is_hidden_from_browse is not None: + self.is_hidden_from_browse = is_hidden_from_browse + if is_hidden_from_search is not None: + self.is_hidden_from_search = is_hidden_from_search + if default_subset_guid is not None: + self.default_subset_guid = default_subset_guid + if default_layout_guid is not None: + self.default_layout_guid = default_layout_guid + if name is not None: + self.name = name + if guid is not None: + self.guid = guid + + @property + def is_hidden_from_browse(self): + """Gets the is_hidden_from_browse of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The is_hidden_from_browse of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: bool + """ + return self._is_hidden_from_browse + + @is_hidden_from_browse.setter + def is_hidden_from_browse(self, is_hidden_from_browse): + """Sets the is_hidden_from_browse of this GrantaServerApiSchemaUpdateTable. + + :param is_hidden_from_browse: The is_hidden_from_browse of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: bool + """ + self._is_hidden_from_browse = is_hidden_from_browse + + @property + def is_hidden_from_search(self): + """Gets the is_hidden_from_search of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The is_hidden_from_search of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: bool + """ + return self._is_hidden_from_search + + @is_hidden_from_search.setter + def is_hidden_from_search(self, is_hidden_from_search): + """Sets the is_hidden_from_search of this GrantaServerApiSchemaUpdateTable. + + :param is_hidden_from_search: The is_hidden_from_search of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: bool + """ + self._is_hidden_from_search = is_hidden_from_search + + @property + def default_subset_guid(self): + """Gets the default_subset_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The default_subset_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: str + """ + return self._default_subset_guid + + @default_subset_guid.setter + def default_subset_guid(self, default_subset_guid): + """Sets the default_subset_guid of this GrantaServerApiSchemaUpdateTable. + + :param default_subset_guid: The default_subset_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: str + """ + self._default_subset_guid = default_subset_guid + + @property + def default_layout_guid(self): + """Gets the default_layout_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The default_layout_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: str + """ + return self._default_layout_guid + + @default_layout_guid.setter + def default_layout_guid(self, default_layout_guid): + """Sets the default_layout_guid of this GrantaServerApiSchemaUpdateTable. + + :param default_layout_guid: The default_layout_guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: str + """ + self._default_layout_guid = default_layout_guid + + @property + def name(self): + """Gets the name of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The name of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GrantaServerApiSchemaUpdateTable. + + :param name: The name of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: str + """ + self._name = name + + @property + def guid(self): + """Gets the guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + + :return: The guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSchemaUpdateTable. + + :param guid: The guid of this GrantaServerApiSchemaUpdateTable. # noqa: E501 + :type: str + """ + self._guid = guid + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSchemaUpdateTable, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSchemaUpdateTable): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_attribute_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py index 2dc6b85f..dfa1e097 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_criterion.py @@ -30,6 +30,7 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): """ swagger_types = { 'identity': 'int', + 'guid': 'str', 'is_meta_attribute': 'bool', 'type': 'str' } @@ -38,6 +39,7 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): attribute_map = { 'identity': 'identity', + 'guid': 'guid', 'is_meta_attribute': 'isMetaAttribute', 'type': 'type' } @@ -53,15 +55,18 @@ class GrantaServerApiSearchAttributeCriterion(GrantaServerApiSearchCriterion): 'notApplicable'.lower(): '#/components/schemas/GrantaServerApiSearchAttributeNotApplicableCriterion', } - def __init__(self, identity=None, is_meta_attribute=None, type='attribute', *args, **kwargs): # noqa: E501 + def __init__(self, identity=None, guid=None, is_meta_attribute=None, type='attribute', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchAttributeCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchCriterion.__init__(self, *args, **kwargs) self._identity = None + self._guid = None self._is_meta_attribute = None self._type = None self.discriminator = 'attribute_criterion_type' if identity is not None: self.identity = identity + if guid is not None: + self.guid = guid if is_meta_attribute is not None: self.is_meta_attribute = is_meta_attribute self.type = type @@ -84,6 +89,24 @@ def identity(self, identity): """ self._identity = identity + @property + def guid(self): + """Gets the guid of this GrantaServerApiSearchAttributeCriterion. # noqa: E501 + + :return: The guid of this GrantaServerApiSearchAttributeCriterion. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSearchAttributeCriterion. + + :param guid: The guid of this GrantaServerApiSearchAttributeCriterion. # noqa: E501 + :type: str + """ + self._guid = guid + @property def is_meta_attribute(self): """Gets the is_meta_attribute of this GrantaServerApiSearchAttributeCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py index 6a1b872e..04cf3f34 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_attribute_sort_criterion.py @@ -30,7 +30,9 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite """ swagger_types = { 'identity': 'int', + 'guid': 'str', 'attribute_type': 'GrantaServerApiAttributeType', + 'sort_type': 'GrantaServerApiSearchSortType', 'type': 'str' } if hasattr(GrantaServerApiSearchSortCriterion, "swagger_types"): @@ -38,7 +40,9 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite attribute_map = { 'identity': 'identity', + 'guid': 'guid', 'attribute_type': 'attributeType', + 'sort_type': 'sortType', 'type': 'type' } if hasattr(GrantaServerApiSearchSortCriterion, "attribute_map"): @@ -46,20 +50,27 @@ class GrantaServerApiSearchAttributeSortCriterion(GrantaServerApiSearchSortCrite subtype_mapping = { 'attributeType': 'GrantaServerApiAttributeType', + 'sortType': 'GrantaServerApiSearchSortType', } - def __init__(self, identity=None, attribute_type=None, type='attribute', *args, **kwargs): # noqa: E501 + def __init__(self, identity=None, guid=None, attribute_type=None, sort_type=None, type='attribute', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchAttributeSortCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchSortCriterion.__init__(self, *args, **kwargs) self._identity = None + self._guid = None self._attribute_type = None + self._sort_type = None self._type = None self.discriminator = None if identity is not None: self.identity = identity + if guid is not None: + self.guid = guid if attribute_type is not None: self.attribute_type = attribute_type + if sort_type is not None: + self.sort_type = sort_type self.type = type @property @@ -80,6 +91,24 @@ def identity(self, identity): """ self._identity = identity + @property + def guid(self): + """Gets the guid of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + + :return: The guid of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """Sets the guid of this GrantaServerApiSearchAttributeSortCriterion. + + :param guid: The guid of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + :type: str + """ + self._guid = guid + @property def attribute_type(self): """Gets the attribute_type of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 @@ -98,6 +127,24 @@ def attribute_type(self, attribute_type): """ self._attribute_type = attribute_type + @property + def sort_type(self): + """Gets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + + :return: The sort_type of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + :rtype: GrantaServerApiSearchSortType + """ + return self._sort_type + + @sort_type.setter + def sort_type(self, sort_type): + """Sets the sort_type of this GrantaServerApiSearchAttributeSortCriterion. + + :param sort_type: The sort_type of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 + :type: GrantaServerApiSearchSortType + """ + self._sort_type = sort_type + @property def type(self): """Gets the type of this GrantaServerApiSearchAttributeSortCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py new file mode 100644 index 00000000..bfcf68c0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_guid.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchBoostByGuid(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attribute_guid': 'str', + 'boost_factor': 'float' + } + + attribute_map = { + 'attribute_guid': 'attributeGuid', + 'boost_factor': 'boostFactor' + } + + subtype_mapping = { + } + + + def __init__(self, attribute_guid=None, boost_factor=None): # noqa: E501 + """GrantaServerApiSearchBoostByGuid - a model defined in Swagger""" # noqa: E501 + self._attribute_guid = None + self._boost_factor = None + self.discriminator = None + if attribute_guid is not None: + self.attribute_guid = attribute_guid + if boost_factor is not None: + self.boost_factor = boost_factor + + @property + def attribute_guid(self): + """Gets the attribute_guid of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + + :return: The attribute_guid of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + :rtype: str + """ + return self._attribute_guid + + @attribute_guid.setter + def attribute_guid(self, attribute_guid): + """Sets the attribute_guid of this GrantaServerApiSearchBoostByGuid. + + :param attribute_guid: The attribute_guid of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + :type: str + """ + self._attribute_guid = attribute_guid + + @property + def boost_factor(self): + """Gets the boost_factor of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + + :return: The boost_factor of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + :rtype: float + """ + return self._boost_factor + + @boost_factor.setter + def boost_factor(self, boost_factor): + """Sets the boost_factor of this GrantaServerApiSearchBoostByGuid. + + :param boost_factor: The boost_factor of this GrantaServerApiSearchBoostByGuid. # noqa: E501 + :type: float + """ + self._boost_factor = boost_factor + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchBoostByGuid, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchBoostByGuid): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_boost_by_identity.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py new file mode 100644 index 00000000..41a7f8a2 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_boost_by_identity.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchBoostByIdentity(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'attribute_identity': 'int', + 'boost_factor': 'float' + } + + attribute_map = { + 'attribute_identity': 'attributeIdentity', + 'boost_factor': 'boostFactor' + } + + subtype_mapping = { + } + + + def __init__(self, attribute_identity=None, boost_factor=None): # noqa: E501 + """GrantaServerApiSearchBoostByIdentity - a model defined in Swagger""" # noqa: E501 + self._attribute_identity = None + self._boost_factor = None + self.discriminator = None + if attribute_identity is not None: + self.attribute_identity = attribute_identity + if boost_factor is not None: + self.boost_factor = boost_factor + + @property + def attribute_identity(self): + """Gets the attribute_identity of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + + :return: The attribute_identity of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + :rtype: int + """ + return self._attribute_identity + + @attribute_identity.setter + def attribute_identity(self, attribute_identity): + """Sets the attribute_identity of this GrantaServerApiSearchBoostByIdentity. + + :param attribute_identity: The attribute_identity of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + :type: int + """ + self._attribute_identity = attribute_identity + + @property + def boost_factor(self): + """Gets the boost_factor of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + + :return: The boost_factor of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + :rtype: float + """ + return self._boost_factor + + @boost_factor.setter + def boost_factor(self, boost_factor): + """Sets the boost_factor of this GrantaServerApiSearchBoostByIdentity. + + :param boost_factor: The boost_factor of this GrantaServerApiSearchBoostByIdentity. # noqa: E501 + :type: float + """ + self._boost_factor = boost_factor + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchBoostByIdentity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchBoostByIdentity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py index b15b46dc..a9aa9707 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_datum_criterion.py @@ -40,7 +40,10 @@ class GrantaServerApiSearchDatumCriterion(ModelBase): 'dateTime'.lower(): '#/components/schemas/GrantaServerApiSearchDateTimeDatumCriterion', 'discreteFunctionalRange'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteFunctionalRangeDatumCriterion', 'discreteFunctionalValues'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion', + 'discreteIdentity'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteIdentityDatumCriterion', 'discreteIdentityValues'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteIdentityValuesDatumCriterion', + 'discreteGuid'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteGuidDatumCriterion', + 'discreteGuidValues'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteGuidValuesDatumCriterion', 'discreteRange'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteRangeDatumCriterion', 'discreteText'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteTextDatumCriterion', 'discreteTextValues'.lower(): '#/components/schemas/GrantaServerApiSearchDiscreteTextValuesDatumCriterion', diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py index 8bdac4b1..dadd44cf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_functional_values_datum_criterion.py @@ -29,7 +29,8 @@ class GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion(GrantaServerAp and the value is json key in definition. """ swagger_types = { - 'any': 'list[int]', + 'any_identities': 'list[int]', + 'any_guids': 'list[str]', 'type': 'str', 'constraints': 'list[GrantaServerApiSearchParameterConstraint]' } @@ -37,7 +38,8 @@ class GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion(GrantaServerAp swagger_types.update(GrantaServerApiSearchDatumCriterion.swagger_types) attribute_map = { - 'any': 'any', + 'any_identities': 'anyIdentities', + 'any_guids': 'anyGuids', 'type': 'type', 'constraints': 'constraints' } @@ -49,38 +51,61 @@ class GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion(GrantaServerAp } - def __init__(self, any=None, type='discreteFunctionalValues', constraints=None, *args, **kwargs): # noqa: E501 + def __init__(self, any_identities=None, any_guids=None, type='discreteFunctionalValues', constraints=None, *args, **kwargs): # noqa: E501 """GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) - self._any = None + self._any_identities = None + self._any_guids = None self._type = None self._constraints = None self.discriminator = None - if any is not None: - self.any = any + if any_identities is not None: + self.any_identities = any_identities + if any_guids is not None: + self.any_guids = any_guids self.type = type if constraints is not None: self.constraints = constraints @property - def any(self): - """Gets the any of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + def any_identities(self): + """Gets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 Match any of these discrete type identities # noqa: E501 - :return: The any of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + :return: The any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 :rtype: list[int] """ - return self._any + return self._any_identities - @any.setter - def any(self, any): - """Sets the any of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. + @any_identities.setter + def any_identities(self, any_identities): + """Sets the any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. Match any of these discrete type identities # noqa: E501 - :param any: The any of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + :param any_identities: The any_identities of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 :type: list[int] """ - self._any = any + self._any_identities = any_identities + + @property + def any_guids(self): + """Gets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + Match any of these discrete type GUIDs # noqa: E501 + + :return: The any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._any_guids + + @any_guids.setter + def any_guids(self, any_guids): + """Sets the any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. + Match any of these discrete type GUIDs # noqa: E501 + + :param any_guids: The any_guids of this GrantaServerApiSearchDiscreteFunctionalValuesDatumCriterion. # noqa: E501 + :type: list[str] + """ + self._any_guids = any_guids @property def type(self): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py new file mode 100644 index 00000000..88a880d1 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_datum_criterion.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion # noqa: F401,E501 + +class GrantaServerApiSearchDiscreteGuidDatumCriterion(GrantaServerApiSearchDatumCriterion): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'str', + 'type': 'str' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): + swagger_types.update(GrantaServerApiSearchDatumCriterion.swagger_types) + + attribute_map = { + 'value': 'value', + 'type': 'type' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): + attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, value=None, type='discreteGuid', *args, **kwargs): # noqa: E501 + """GrantaServerApiSearchDiscreteGuidDatumCriterion - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) + self._value = None + self._type = None + self.discriminator = None + if value is not None: + self.value = value + self.type = type + + @property + def value(self): + """Gets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + + :return: The value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. + + :param value: The value of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + :type: str + """ + self._value = value + + @property + def type(self): + """Gets the type of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + + :return: The type of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSearchDiscreteGuidDatumCriterion. + + :param type: The type of this GrantaServerApiSearchDiscreteGuidDatumCriterion. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchDiscreteGuidDatumCriterion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchDiscreteGuidDatumCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py new file mode 100644 index 00000000..f669172a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_guid_values_datum_criterion.py @@ -0,0 +1,197 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion # noqa: F401,E501 + +class GrantaServerApiSearchDiscreteGuidValuesDatumCriterion(GrantaServerApiSearchDatumCriterion): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'all': 'list[str]', + 'any': 'list[str]', + '_none': 'list[str]', + 'type': 'str' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): + swagger_types.update(GrantaServerApiSearchDatumCriterion.swagger_types) + + attribute_map = { + 'all': 'all', + 'any': 'any', + '_none': 'none', + 'type': 'type' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): + attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, all=None, any=None, _none=None, type='discreteGuidValues', *args, **kwargs): # noqa: E501 + """GrantaServerApiSearchDiscreteGuidValuesDatumCriterion - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) + self._all = None + self._any = None + self.__none = None + self._type = None + self.discriminator = None + if all is not None: + self.all = all + if any is not None: + self.any = any + if _none is not None: + self._none = _none + self.type = type + + @property + def all(self): + """Gets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + Match all of these discrete value GUIDs # noqa: E501 + + :return: The all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._all + + @all.setter + def all(self, all): + """Sets the all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. + Match all of these discrete value GUIDs # noqa: E501 + + :param all: The all of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :type: list[str] + """ + self._all = all + + @property + def any(self): + """Gets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + Match any of these discrete type GUIDs # noqa: E501 + + :return: The any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._any + + @any.setter + def any(self, any): + """Sets the any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. + Match any of these discrete type GUIDs # noqa: E501 + + :param any: The any of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :type: list[str] + """ + self._any = any + + @property + def _none(self): + """Gets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + Match none of the discrete type GUIDs # noqa: E501 + + :return: The _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :rtype: list[str] + """ + return self.__none + + @_none.setter + def _none(self, _none): + """Sets the _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. + Match none of the discrete type GUIDs # noqa: E501 + + :param _none: The _none of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :type: list[str] + """ + self.__none = _none + + @property + def type(self): + """Gets the type of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + + :return: The type of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. + + :param type: The type of this GrantaServerApiSearchDiscreteGuidValuesDatumCriterion. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchDiscreteGuidValuesDatumCriterion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchDiscreteGuidValuesDatumCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py new file mode 100644 index 00000000..ba9ea7ea --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_identity_datum_criterion.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + +from ansys.grantami.serverapi_openapi.models.granta_server_api_search_datum_criterion import GrantaServerApiSearchDatumCriterion # noqa: F401,E501 + +class GrantaServerApiSearchDiscreteIdentityDatumCriterion(GrantaServerApiSearchDatumCriterion): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'value': 'int', + 'type': 'str' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): + swagger_types.update(GrantaServerApiSearchDatumCriterion.swagger_types) + + attribute_map = { + 'value': 'value', + 'type': 'type' + } + if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): + attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) + + subtype_mapping = { + } + + + def __init__(self, value=None, type='discreteIdentity', *args, **kwargs): # noqa: E501 + """GrantaServerApiSearchDiscreteIdentityDatumCriterion - a model defined in Swagger""" # noqa: E501 + GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) + self._value = None + self._type = None + self.discriminator = None + if value is not None: + self.value = value + self.type = type + + @property + def value(self): + """Gets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + + :return: The value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. + + :param value: The value of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + :type: int + """ + self._value = value + + @property + def type(self): + """Gets the type of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + + :return: The type of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. + + :param type: The type of this GrantaServerApiSearchDiscreteIdentityDatumCriterion. # noqa: E501 + :type: str + """ + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 + self._type = type + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchDiscreteIdentityDatumCriterion, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchDiscreteIdentityDatumCriterion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py index a9f1546e..e5e41168 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_datum_criterion.py @@ -30,7 +30,7 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion(GrantaServerApiSearchDatum """ swagger_types = { 'value': 'str', - 'exact_match': 'bool', + 'text_match_behaviour': 'GrantaServerApiSearchTextMatchBehaviour', 'type': 'str' } if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): @@ -38,27 +38,28 @@ class GrantaServerApiSearchDiscreteTextDatumCriterion(GrantaServerApiSearchDatum attribute_map = { 'value': 'value', - 'exact_match': 'exactMatch', + 'text_match_behaviour': 'textMatchBehaviour', 'type': 'type' } if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) subtype_mapping = { + 'textMatchBehaviour': 'GrantaServerApiSearchTextMatchBehaviour', } - def __init__(self, value=None, exact_match=None, type='discreteText', *args, **kwargs): # noqa: E501 + def __init__(self, value=None, text_match_behaviour=None, type='discreteText', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchDiscreteTextDatumCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) self._value = None - self._exact_match = None + self._text_match_behaviour = None self._type = None self.discriminator = None if value is not None: self.value = value - if exact_match is not None: - self.exact_match = exact_match + if text_match_behaviour is not None: + self.text_match_behaviour = text_match_behaviour self.type = type @property @@ -80,22 +81,22 @@ def value(self, value): self._value = value @property - def exact_match(self): - """Gets the exact_match of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 + def text_match_behaviour(self): + """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 - :return: The exact_match of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 - :rtype: bool + :return: The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 + :rtype: GrantaServerApiSearchTextMatchBehaviour """ - return self._exact_match + return self._text_match_behaviour - @exact_match.setter - def exact_match(self, exact_match): - """Sets the exact_match of this GrantaServerApiSearchDiscreteTextDatumCriterion. + @text_match_behaviour.setter + def text_match_behaviour(self, text_match_behaviour): + """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. - :param exact_match: The exact_match of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 - :type: bool + :param text_match_behaviour: The text_match_behaviour of this GrantaServerApiSearchDiscreteTextDatumCriterion. # noqa: E501 + :type: GrantaServerApiSearchTextMatchBehaviour """ - self._exact_match = exact_match + self._text_match_behaviour = text_match_behaviour @property def type(self): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py index de5193be..ec7024eb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_discrete_text_values_datum_criterion.py @@ -32,7 +32,7 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion(GrantaServerApiSearc 'all': 'list[str]', 'any': 'list[str]', '_none': 'list[str]', - 'exact_match': 'bool', + 'text_match_behaviour': 'GrantaServerApiSearchTextMatchBehaviour', 'type': 'str' } if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): @@ -42,23 +42,24 @@ class GrantaServerApiSearchDiscreteTextValuesDatumCriterion(GrantaServerApiSearc 'all': 'all', 'any': 'any', '_none': 'none', - 'exact_match': 'exactMatch', + 'text_match_behaviour': 'textMatchBehaviour', 'type': 'type' } if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) subtype_mapping = { + 'textMatchBehaviour': 'GrantaServerApiSearchTextMatchBehaviour', } - def __init__(self, all=None, any=None, _none=None, exact_match=None, type='discreteTextValues', *args, **kwargs): # noqa: E501 + def __init__(self, all=None, any=None, _none=None, text_match_behaviour=None, type='discreteTextValues', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchDiscreteTextValuesDatumCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) self._all = None self._any = None self.__none = None - self._exact_match = None + self._text_match_behaviour = None self._type = None self.discriminator = None if all is not None: @@ -67,8 +68,8 @@ def __init__(self, all=None, any=None, _none=None, exact_match=None, type='discr self.any = any if _none is not None: self._none = _none - if exact_match is not None: - self.exact_match = exact_match + if text_match_behaviour is not None: + self.text_match_behaviour = text_match_behaviour self.type = type @property @@ -126,22 +127,22 @@ def _none(self, _none): self.__none = _none @property - def exact_match(self): - """Gets the exact_match of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 + def text_match_behaviour(self): + """Gets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 - :return: The exact_match of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 - :rtype: bool + :return: The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 + :rtype: GrantaServerApiSearchTextMatchBehaviour """ - return self._exact_match + return self._text_match_behaviour - @exact_match.setter - def exact_match(self, exact_match): - """Sets the exact_match of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. + @text_match_behaviour.setter + def text_match_behaviour(self, text_match_behaviour): + """Sets the text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. - :param exact_match: The exact_match of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 - :type: bool + :param text_match_behaviour: The text_match_behaviour of this GrantaServerApiSearchDiscreteTextValuesDatumCriterion. # noqa: E501 + :type: GrantaServerApiSearchTextMatchBehaviour """ - self._exact_match = exact_match + self._text_match_behaviour = text_match_behaviour @property def type(self): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py index 56541746..d29eeba8 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_free_text_criterion.py @@ -31,8 +31,11 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): swagger_types = { 'identities': 'list[int]', 'value': 'str', - 'identities_to_boost': 'list[GrantaServerApiSearchBoost]', + 'identities_to_boost': 'list[GrantaServerApiSearchBoostByIdentity]', 'identities_to_exclude': 'list[int]', + 'guids': 'list[str]', + 'guids_to_boost': 'list[GrantaServerApiSearchBoostByGuid]', + 'guids_to_exclude': 'list[str]', 'type': 'str' } if hasattr(GrantaServerApiSearchCriterion, "swagger_types"): @@ -43,23 +46,30 @@ class GrantaServerApiSearchFreeTextCriterion(GrantaServerApiSearchCriterion): 'value': 'value', 'identities_to_boost': 'identitiesToBoost', 'identities_to_exclude': 'identitiesToExclude', + 'guids': 'guids', + 'guids_to_boost': 'guidsToBoost', + 'guids_to_exclude': 'guidsToExclude', 'type': 'type' } if hasattr(GrantaServerApiSearchCriterion, "attribute_map"): attribute_map.update(GrantaServerApiSearchCriterion.attribute_map) subtype_mapping = { - 'identitiesToBoost': 'GrantaServerApiSearchBoost', + 'identitiesToBoost': 'GrantaServerApiSearchBoostByIdentity', + 'guidsToBoost': 'GrantaServerApiSearchBoostByGuid', } - def __init__(self, identities=None, value=None, identities_to_boost=None, identities_to_exclude=None, type='text', *args, **kwargs): # noqa: E501 + def __init__(self, identities=None, value=None, identities_to_boost=None, identities_to_exclude=None, guids=None, guids_to_boost=None, guids_to_exclude=None, type='text', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchFreeTextCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchCriterion.__init__(self, *args, **kwargs) self._identities = None self._value = None self._identities_to_boost = None self._identities_to_exclude = None + self._guids = None + self._guids_to_boost = None + self._guids_to_exclude = None self._type = None self.discriminator = None if identities is not None: @@ -70,6 +80,12 @@ def __init__(self, identities=None, value=None, identities_to_boost=None, identi self.identities_to_boost = identities_to_boost if identities_to_exclude is not None: self.identities_to_exclude = identities_to_exclude + if guids is not None: + self.guids = guids + if guids_to_boost is not None: + self.guids_to_boost = guids_to_boost + if guids_to_exclude is not None: + self.guids_to_exclude = guids_to_exclude self.type = type @property @@ -113,7 +129,7 @@ def identities_to_boost(self): """Gets the identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 :return: The identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 - :rtype: list[GrantaServerApiSearchBoost] + :rtype: list[GrantaServerApiSearchBoostByIdentity] """ return self._identities_to_boost @@ -122,7 +138,7 @@ def identities_to_boost(self, identities_to_boost): """Sets the identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. :param identities_to_boost: The identities_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 - :type: list[GrantaServerApiSearchBoost] + :type: list[GrantaServerApiSearchBoostByIdentity] """ self._identities_to_boost = identities_to_boost @@ -144,6 +160,60 @@ def identities_to_exclude(self, identities_to_exclude): """ self._identities_to_exclude = identities_to_exclude + @property + def guids(self): + """Gets the guids of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + + :return: The guids of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._guids + + @guids.setter + def guids(self, guids): + """Sets the guids of this GrantaServerApiSearchFreeTextCriterion. + + :param guids: The guids of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :type: list[str] + """ + self._guids = guids + + @property + def guids_to_boost(self): + """Gets the guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + + :return: The guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :rtype: list[GrantaServerApiSearchBoostByGuid] + """ + return self._guids_to_boost + + @guids_to_boost.setter + def guids_to_boost(self, guids_to_boost): + """Sets the guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. + + :param guids_to_boost: The guids_to_boost of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :type: list[GrantaServerApiSearchBoostByGuid] + """ + self._guids_to_boost = guids_to_boost + + @property + def guids_to_exclude(self): + """Gets the guids_to_exclude of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + + :return: The guids_to_exclude of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :rtype: list[str] + """ + return self._guids_to_exclude + + @guids_to_exclude.setter + def guids_to_exclude(self, guids_to_exclude): + """Sets the guids_to_exclude of this GrantaServerApiSearchFreeTextCriterion. + + :param guids_to_exclude: The guids_to_exclude of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 + :type: list[str] + """ + self._guids_to_exclude = guids_to_exclude + @property def type(self): """Gets the type of this GrantaServerApiSearchFreeTextCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py new file mode 100644 index 00000000..c36c5b46 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_index_status.py @@ -0,0 +1,292 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchIndexStatus(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'search_index_up_to_date': 'bool', + 'search_index_in_sync': 'bool', + 'search_index_location': 'str', + 'search_index_is_read_only': 'bool', + 'disk_status': 'GrantaServerApiDiskStatus', + 'disk_threshold': 'str', + 'search_index_unavailable': 'bool', + 'records_that_failed_to_index': 'list[GrantaServerApiIndexRecordFailure]' + } + + attribute_map = { + 'search_index_up_to_date': 'searchIndexUpToDate', + 'search_index_in_sync': 'searchIndexInSync', + 'search_index_location': 'searchIndexLocation', + 'search_index_is_read_only': 'searchIndexIsReadOnly', + 'disk_status': 'diskStatus', + 'disk_threshold': 'diskThreshold', + 'search_index_unavailable': 'searchIndexUnavailable', + 'records_that_failed_to_index': 'recordsThatFailedToIndex' + } + + subtype_mapping = { + 'diskStatus': 'GrantaServerApiDiskStatus', + 'recordsThatFailedToIndex': 'GrantaServerApiIndexRecordFailure' + } + + + def __init__(self, search_index_up_to_date=None, search_index_in_sync=None, search_index_location=None, search_index_is_read_only=None, disk_status=None, disk_threshold=None, search_index_unavailable=None, records_that_failed_to_index=None): # noqa: E501 + """GrantaServerApiSearchIndexStatus - a model defined in Swagger""" # noqa: E501 + self._search_index_up_to_date = None + self._search_index_in_sync = None + self._search_index_location = None + self._search_index_is_read_only = None + self._disk_status = None + self._disk_threshold = None + self._search_index_unavailable = None + self._records_that_failed_to_index = None + self.discriminator = None + if search_index_up_to_date is not None: + self.search_index_up_to_date = search_index_up_to_date + if search_index_in_sync is not None: + self.search_index_in_sync = search_index_in_sync + if search_index_location is not None: + self.search_index_location = search_index_location + if search_index_is_read_only is not None: + self.search_index_is_read_only = search_index_is_read_only + if disk_status is not None: + self.disk_status = disk_status + if disk_threshold is not None: + self.disk_threshold = disk_threshold + if search_index_unavailable is not None: + self.search_index_unavailable = search_index_unavailable + if records_that_failed_to_index is not None: + self.records_that_failed_to_index = records_that_failed_to_index + + @property + def search_index_up_to_date(self): + """Gets the search_index_up_to_date of this GrantaServerApiSearchIndexStatus. # noqa: E501 + Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed # noqa: E501 + + :return: The search_index_up_to_date of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_up_to_date + + @search_index_up_to_date.setter + def search_index_up_to_date(self, search_index_up_to_date): + """Sets the search_index_up_to_date of this GrantaServerApiSearchIndexStatus. + Whether all changes up to and including the most recent database revision have been sent to the search index. This will return true even if some of those revisions could not be indexed # noqa: E501 + + :param search_index_up_to_date: The search_index_up_to_date of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: bool + """ + self._search_index_up_to_date = search_index_up_to_date + + @property + def search_index_in_sync(self): + """Gets the search_index_in_sync of this GrantaServerApiSearchIndexStatus. # noqa: E501 + Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) # noqa: E501 + + :return: The search_index_in_sync of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_in_sync + + @search_index_in_sync.setter + def search_index_in_sync(self, search_index_in_sync): + """Sets the search_index_in_sync of this GrantaServerApiSearchIndexStatus. + Returns false if the search index is out of sync with the database (i.e. because changes were made that could not be indexed) # noqa: E501 + + :param search_index_in_sync: The search_index_in_sync of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: bool + """ + self._search_index_in_sync = search_index_in_sync + + @property + def search_index_location(self): + """Gets the search_index_location of this GrantaServerApiSearchIndexStatus. # noqa: E501 + The location of the index. # noqa: E501 + + :return: The search_index_location of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: str + """ + return self._search_index_location + + @search_index_location.setter + def search_index_location(self, search_index_location): + """Sets the search_index_location of this GrantaServerApiSearchIndexStatus. + The location of the index. # noqa: E501 + + :param search_index_location: The search_index_location of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: str + """ + self._search_index_location = search_index_location + + @property + def search_index_is_read_only(self): + """Gets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. # noqa: E501 + True if the index is read only. # noqa: E501 + + :return: The search_index_is_read_only of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_is_read_only + + @search_index_is_read_only.setter + def search_index_is_read_only(self, search_index_is_read_only): + """Sets the search_index_is_read_only of this GrantaServerApiSearchIndexStatus. + True if the index is read only. # noqa: E501 + + :param search_index_is_read_only: The search_index_is_read_only of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: bool + """ + self._search_index_is_read_only = search_index_is_read_only + + @property + def disk_status(self): + """Gets the disk_status of this GrantaServerApiSearchIndexStatus. # noqa: E501 + + :return: The disk_status of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: GrantaServerApiDiskStatus + """ + return self._disk_status + + @disk_status.setter + def disk_status(self, disk_status): + """Sets the disk_status of this GrantaServerApiSearchIndexStatus. + + :param disk_status: The disk_status of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: GrantaServerApiDiskStatus + """ + self._disk_status = disk_status + + @property + def disk_threshold(self): + """Gets the disk_threshold of this GrantaServerApiSearchIndexStatus. # noqa: E501 + The 'flood stage' threshold from Elasticsearch. # noqa: E501 + + :return: The disk_threshold of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: str + """ + return self._disk_threshold + + @disk_threshold.setter + def disk_threshold(self, disk_threshold): + """Sets the disk_threshold of this GrantaServerApiSearchIndexStatus. + The 'flood stage' threshold from Elasticsearch. # noqa: E501 + + :param disk_threshold: The disk_threshold of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: str + """ + self._disk_threshold = disk_threshold + + @property + def search_index_unavailable(self): + """Gets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. # noqa: E501 + True if the index could not be contacted. # noqa: E501 + + :return: The search_index_unavailable of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: bool + """ + return self._search_index_unavailable + + @search_index_unavailable.setter + def search_index_unavailable(self, search_index_unavailable): + """Sets the search_index_unavailable of this GrantaServerApiSearchIndexStatus. + True if the index could not be contacted. # noqa: E501 + + :param search_index_unavailable: The search_index_unavailable of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: bool + """ + self._search_index_unavailable = search_index_unavailable + + @property + def records_that_failed_to_index(self): + """Gets the records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. # noqa: E501 + Details of any records that failed to index. # noqa: E501 + + :return: The records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :rtype: list[GrantaServerApiIndexRecordFailure] + """ + return self._records_that_failed_to_index + + @records_that_failed_to_index.setter + def records_that_failed_to_index(self, records_that_failed_to_index): + """Sets the records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. + Details of any records that failed to index. # noqa: E501 + + :param records_that_failed_to_index: The records_that_failed_to_index of this GrantaServerApiSearchIndexStatus. # noqa: E501 + :type: list[GrantaServerApiIndexRecordFailure] + """ + self._records_that_failed_to_index = records_that_failed_to_index + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchIndexStatus, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchIndexStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_link_attribute_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_attribute_type.py new file mode 100644 index 00000000..ef2a6b12 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_attribute_type.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchLinkAttributeType(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + RECORDLINK = "recordLink" + CROSSDATABASELINK = "crossDatabaseLink" + DYNAMICLINK = "dynamicLink" + TABULARATTRIBUTE = "tabularAttribute" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSearchLinkAttributeType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchLinkAttributeType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchLinkAttributeType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_link_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py index 225a56e8..6f65ca37 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_link_datum_criterion.py @@ -30,10 +30,13 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio """ swagger_types = { 'target_table_identity': 'int', + 'target_table_guid': 'str', 'target_database_key': 'str', 'local_criterion': 'GrantaServerApiSearchCriterion', - 'link_datum_type': 'GrantaServerApiSearchLinkDatumType', + 'link_datum_type': 'GrantaServerApiSearchLinkAttributeType', + 'search_in_reversed_direction': 'bool', 'target_attribute_identity': 'int', + 'target_attribute_guid': 'str', 'inner_criterion': 'GrantaServerApiSearchCriterion', 'type': 'str' } @@ -42,10 +45,13 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio attribute_map = { 'target_table_identity': 'targetTableIdentity', + 'target_table_guid': 'targetTableGuid', 'target_database_key': 'targetDatabaseKey', 'local_criterion': 'localCriterion', 'link_datum_type': 'linkDatumType', + 'search_in_reversed_direction': 'searchInReversedDirection', 'target_attribute_identity': 'targetAttributeIdentity', + 'target_attribute_guid': 'targetAttributeGuid', 'inner_criterion': 'innerCriterion', 'type': 'type' } @@ -54,32 +60,41 @@ class GrantaServerApiSearchLinkDatumCriterion(GrantaServerApiSearchDatumCriterio subtype_mapping = { 'localCriterion': 'GrantaServerApiSearchCriterion', - 'linkDatumType': 'GrantaServerApiSearchLinkDatumType', + 'linkDatumType': 'GrantaServerApiSearchLinkAttributeType', 'innerCriterion': 'GrantaServerApiSearchCriterion', } - def __init__(self, target_table_identity=None, target_database_key=None, local_criterion=None, link_datum_type=None, target_attribute_identity=None, inner_criterion=None, type='link', *args, **kwargs): # noqa: E501 + def __init__(self, target_table_identity=None, target_table_guid=None, target_database_key=None, local_criterion=None, link_datum_type=None, search_in_reversed_direction=None, target_attribute_identity=None, target_attribute_guid=None, inner_criterion=None, type='link', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchLinkDatumCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) self._target_table_identity = None + self._target_table_guid = None self._target_database_key = None self._local_criterion = None self._link_datum_type = None + self._search_in_reversed_direction = None self._target_attribute_identity = None + self._target_attribute_guid = None self._inner_criterion = None self._type = None self.discriminator = None if target_table_identity is not None: self.target_table_identity = target_table_identity + if target_table_guid is not None: + self.target_table_guid = target_table_guid if target_database_key is not None: self.target_database_key = target_database_key if local_criterion is not None: self.local_criterion = local_criterion if link_datum_type is not None: self.link_datum_type = link_datum_type + if search_in_reversed_direction is not None: + self.search_in_reversed_direction = search_in_reversed_direction if target_attribute_identity is not None: self.target_attribute_identity = target_attribute_identity + if target_attribute_guid is not None: + self.target_attribute_guid = target_attribute_guid if inner_criterion is not None: self.inner_criterion = inner_criterion self.type = type @@ -104,6 +119,26 @@ def target_table_identity(self, target_table_identity): """ self._target_table_identity = target_table_identity + @property + def target_table_guid(self): + """Gets the target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + Table containing the linked records # noqa: E501 + + :return: The target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._target_table_guid + + @target_table_guid.setter + def target_table_guid(self, target_table_guid): + """Sets the target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. + Table containing the linked records # noqa: E501 + + :param target_table_guid: The target_table_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :type: str + """ + self._target_table_guid = target_table_guid + @property def target_database_key(self): """Gets the target_database_key of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 @@ -147,7 +182,7 @@ def link_datum_type(self): """Gets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 :return: The link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 - :rtype: GrantaServerApiSearchLinkDatumType + :rtype: GrantaServerApiSearchLinkAttributeType """ return self._link_datum_type @@ -156,10 +191,28 @@ def link_datum_type(self, link_datum_type): """Sets the link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. :param link_datum_type: The link_datum_type of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 - :type: GrantaServerApiSearchLinkDatumType + :type: GrantaServerApiSearchLinkAttributeType """ self._link_datum_type = link_datum_type + @property + def search_in_reversed_direction(self): + """Gets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + + :return: The search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :rtype: bool + """ + return self._search_in_reversed_direction + + @search_in_reversed_direction.setter + def search_in_reversed_direction(self, search_in_reversed_direction): + """Sets the search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. + + :param search_in_reversed_direction: The search_in_reversed_direction of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :type: bool + """ + self._search_in_reversed_direction = search_in_reversed_direction + @property def target_attribute_identity(self): """Gets the target_attribute_identity of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 @@ -180,6 +233,26 @@ def target_attribute_identity(self, target_attribute_identity): """ self._target_attribute_identity = target_attribute_identity + @property + def target_attribute_guid(self): + """Gets the target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. # noqa: E501 + + :return: The target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :rtype: str + """ + return self._target_attribute_guid + + @target_attribute_guid.setter + def target_attribute_guid(self, target_attribute_guid): + """Sets the target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. + For tabular searching: this is the GUID of the short-text linking attribute. Otherwise null. # noqa: E501 + + :param target_attribute_guid: The target_attribute_guid of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 + :type: str + """ + self._target_attribute_guid = target_attribute_guid + @property def inner_criterion(self): """Gets the inner_criterion of this GrantaServerApiSearchLinkDatumCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py index 5445963f..4b19a6cf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_record_property_sort_criterion.py @@ -30,6 +30,7 @@ class GrantaServerApiSearchRecordPropertySortCriterion(GrantaServerApiSearchSort """ swagger_types = { '_property': 'GrantaServerApiSearchSearchableRecordProperty', + 'sort_type': 'GrantaServerApiSearchSortType', 'type': 'str' } if hasattr(GrantaServerApiSearchSortCriterion, "swagger_types"): @@ -37,6 +38,7 @@ class GrantaServerApiSearchRecordPropertySortCriterion(GrantaServerApiSearchSort attribute_map = { '_property': 'property', + 'sort_type': 'sortType', 'type': 'type' } if hasattr(GrantaServerApiSearchSortCriterion, "attribute_map"): @@ -44,17 +46,21 @@ class GrantaServerApiSearchRecordPropertySortCriterion(GrantaServerApiSearchSort subtype_mapping = { 'property': 'GrantaServerApiSearchSearchableRecordProperty', + 'sortType': 'GrantaServerApiSearchSortType', } - def __init__(self, _property=None, type='recordProperty', *args, **kwargs): # noqa: E501 + def __init__(self, _property=None, sort_type=None, type='recordProperty', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchRecordPropertySortCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchSortCriterion.__init__(self, *args, **kwargs) self.__property = None + self._sort_type = None self._type = None self.discriminator = None if _property is not None: self._property = _property + if sort_type is not None: + self.sort_type = sort_type self.type = type @property @@ -75,6 +81,24 @@ def _property(self, _property): """ self.__property = _property + @property + def sort_type(self): + """Gets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. # noqa: E501 + + :return: The sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. # noqa: E501 + :rtype: GrantaServerApiSearchSortType + """ + return self._sort_type + + @sort_type.setter + def sort_type(self, sort_type): + """Sets the sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. + + :param sort_type: The sort_type of this GrantaServerApiSearchRecordPropertySortCriterion. # noqa: E501 + :type: GrantaServerApiSearchSortType + """ + self._sort_type = sort_type + @property def type(self): """Gets the type of this GrantaServerApiSearchRecordPropertySortCriterion. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py index d2142878..a1c1b287 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_search_result.py @@ -39,6 +39,8 @@ class GrantaServerApiSearchSearchResult(ModelBase): 'cubic_spline_status': 'str', 'version_control_state': 'str', 'version_number': 'int', + 'parent_identity': 'int', + 'type': 'GrantaServerApiRecordType', 'score': 'float', 'sorting_value': 'GrantaServerApiSearchSortingValue' } @@ -55,16 +57,19 @@ class GrantaServerApiSearchSearchResult(ModelBase): 'cubic_spline_status': 'cubicSplineStatus', 'version_control_state': 'versionControlState', 'version_number': 'versionNumber', + 'parent_identity': 'parentIdentity', + 'type': 'type', 'score': 'score', 'sorting_value': 'sortingValue' } subtype_mapping = { + 'type': 'GrantaServerApiRecordType', 'sortingValue': 'GrantaServerApiSearchSortingValue' } - def __init__(self, database_key=None, record_history_identity=None, record_identity=None, record_history_guid=None, record_guid=None, record_name=None, record_color=None, table_identity=None, cubic_spline_status=None, version_control_state=None, version_number=None, score=None, sorting_value=None): # noqa: E501 + def __init__(self, database_key=None, record_history_identity=None, record_identity=None, record_history_guid=None, record_guid=None, record_name=None, record_color=None, table_identity=None, cubic_spline_status=None, version_control_state=None, version_number=None, parent_identity=None, type=None, score=None, sorting_value=None): # noqa: E501 """GrantaServerApiSearchSearchResult - a model defined in Swagger""" # noqa: E501 self._database_key = None self._record_history_identity = None @@ -77,6 +82,8 @@ def __init__(self, database_key=None, record_history_identity=None, record_ident self._cubic_spline_status = None self._version_control_state = None self._version_number = None + self._parent_identity = None + self._type = None self._score = None self._sorting_value = None self.discriminator = None @@ -102,6 +109,10 @@ def __init__(self, database_key=None, record_history_identity=None, record_ident self.version_control_state = version_control_state if version_number is not None: self.version_number = version_number + if parent_identity is not None: + self.parent_identity = parent_identity + if type is not None: + self.type = type if score is not None: self.score = score if sorting_value is not None: @@ -305,6 +316,42 @@ def version_number(self, version_number): """ self._version_number = version_number + @property + def parent_identity(self): + """Gets the parent_identity of this GrantaServerApiSearchSearchResult. # noqa: E501 + + :return: The parent_identity of this GrantaServerApiSearchSearchResult. # noqa: E501 + :rtype: int + """ + return self._parent_identity + + @parent_identity.setter + def parent_identity(self, parent_identity): + """Sets the parent_identity of this GrantaServerApiSearchSearchResult. + + :param parent_identity: The parent_identity of this GrantaServerApiSearchSearchResult. # noqa: E501 + :type: int + """ + self._parent_identity = parent_identity + + @property + def type(self): + """Gets the type of this GrantaServerApiSearchSearchResult. # noqa: E501 + + :return: The type of this GrantaServerApiSearchSearchResult. # noqa: E501 + :rtype: GrantaServerApiRecordType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this GrantaServerApiSearchSearchResult. + + :param type: The type of this GrantaServerApiSearchSearchResult. # noqa: E501 + :type: GrantaServerApiRecordType + """ + self._type = type + @property def score(self): """Gets the score of this GrantaServerApiSearchSearchResult. # noqa: E501 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py index d9a11be0..084ceb41 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_short_text_datum_criterion.py @@ -30,7 +30,7 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri """ swagger_types = { 'value': 'str', - 'exact_match': 'bool', + 'text_match_behaviour': 'GrantaServerApiSearchTextMatchBehaviour', 'type': 'str' } if hasattr(GrantaServerApiSearchDatumCriterion, "swagger_types"): @@ -38,27 +38,28 @@ class GrantaServerApiSearchShortTextDatumCriterion(GrantaServerApiSearchDatumCri attribute_map = { 'value': 'value', - 'exact_match': 'exactMatch', + 'text_match_behaviour': 'textMatchBehaviour', 'type': 'type' } if hasattr(GrantaServerApiSearchDatumCriterion, "attribute_map"): attribute_map.update(GrantaServerApiSearchDatumCriterion.attribute_map) subtype_mapping = { + 'textMatchBehaviour': 'GrantaServerApiSearchTextMatchBehaviour', } - def __init__(self, value=None, exact_match=None, type='shortText', *args, **kwargs): # noqa: E501 + def __init__(self, value=None, text_match_behaviour=None, type='shortText', *args, **kwargs): # noqa: E501 """GrantaServerApiSearchShortTextDatumCriterion - a model defined in Swagger""" # noqa: E501 GrantaServerApiSearchDatumCriterion.__init__(self, *args, **kwargs) self._value = None - self._exact_match = None + self._text_match_behaviour = None self._type = None self.discriminator = None if value is not None: self.value = value - if exact_match is not None: - self.exact_match = exact_match + if text_match_behaviour is not None: + self.text_match_behaviour = text_match_behaviour self.type = type @property @@ -80,22 +81,22 @@ def value(self, value): self._value = value @property - def exact_match(self): - """Gets the exact_match of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 + def text_match_behaviour(self): + """Gets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 - :return: The exact_match of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 - :rtype: bool + :return: The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 + :rtype: GrantaServerApiSearchTextMatchBehaviour """ - return self._exact_match + return self._text_match_behaviour - @exact_match.setter - def exact_match(self, exact_match): - """Sets the exact_match of this GrantaServerApiSearchShortTextDatumCriterion. + @text_match_behaviour.setter + def text_match_behaviour(self, text_match_behaviour): + """Sets the text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. - :param exact_match: The exact_match of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 - :type: bool + :param text_match_behaviour: The text_match_behaviour of this GrantaServerApiSearchShortTextDatumCriterion. # noqa: E501 + :type: GrantaServerApiSearchTextMatchBehaviour """ - self._exact_match = exact_match + self._text_match_behaviour = text_match_behaviour @property def type(self): diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py new file mode 100644 index 00000000..f0e13959 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_sort_type.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchSortType(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + NATURAL = "natural" + ALPHABETICAL = "alphabetical" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSearchSortType - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchSortType, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchSortType): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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_text_match_behaviour.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behaviour.py new file mode 100644 index 00000000..e94c6f5d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_search_text_match_behaviour.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class GrantaServerApiSearchTextMatchBehaviour(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + allowed enum values + """ + CONTAINS = "contains" + EXACTMATCH = "exactMatch" + EXACTMATCHCASEINSENSITIVE = "exactMatchCaseInsensitive" + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + subtype_mapping = { + } + + + def __init__(self): # noqa: E501 + """GrantaServerApiSearchTextMatchBehaviour - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GrantaServerApiSearchTextMatchBehaviour, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GrantaServerApiSearchTextMatchBehaviour): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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/json_patch_document.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py new file mode 100644 index 00000000..7fd341f0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/json_patch_document.py @@ -0,0 +1,161 @@ +# coding: utf-8 + +""" + MI Server API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: v1 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 +from . import ModelBase + + +class JsonPatchDocument(ModelBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'op': 'str', + 'path': 'str', + 'value': 'str' + } + + attribute_map = { + 'op': 'op', + 'path': 'path', + 'value': 'value' + } + + subtype_mapping = { + } + + + def __init__(self, op=None, path=None, value=None): # noqa: E501 + """JsonPatchDocument - a model defined in Swagger""" # noqa: E501 + self._op = None + self._path = None + self._value = None + self.discriminator = None + if op is not None: + self.op = op + if path is not None: + self.path = path + if value is not None: + self.value = value + + @property + def op(self): + """Gets the op of this JsonPatchDocument. # noqa: E501 + + :return: The op of this JsonPatchDocument. # noqa: E501 + :rtype: str + """ + return self._op + + @op.setter + def op(self, op): + """Sets the op of this JsonPatchDocument. + + :param op: The op of this JsonPatchDocument. # noqa: E501 + :type: str + """ + self._op = op + + @property + def path(self): + """Gets the path of this JsonPatchDocument. # noqa: E501 + + :return: The path of this JsonPatchDocument. # noqa: E501 + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """Sets the path of this JsonPatchDocument. + + :param path: The path of this JsonPatchDocument. # noqa: E501 + :type: str + """ + self._path = path + + @property + def value(self): + """Gets the value of this JsonPatchDocument. # noqa: E501 + + :return: The value of this JsonPatchDocument. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this JsonPatchDocument. + + :param value: The value of this JsonPatchDocument. # noqa: E501 + :type: str + """ + self._value = value + + def get_real_child_model(self, data): + """Raises a NotImplementedError for a type without a discriminator defined.""" + raise NotImplementedError() + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr in self.swagger_types.keys(): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(JsonPatchDocument, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, JsonPatchDocument): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """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/system_net_http_status_code.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py index 329e800c..4f511e31 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/system_net_http_status_code.py @@ -24,53 +24,48 @@ class SystemNetHttpStatusCode(ModelBase): """ allowed enum values """ - CONTINUE = "Continue" - SWITCHINGPROTOCOLS = "SwitchingProtocols" - OK = "OK" - CREATED = "Created" - ACCEPTED = "Accepted" - NONAUTHORITATIVEINFORMATION = "NonAuthoritativeInformation" - NOCONTENT = "NoContent" - RESETCONTENT = "ResetContent" - PARTIALCONTENT = "PartialContent" - MULTIPLECHOICES = "MultipleChoices" - AMBIGUOUS = "Ambiguous" - MOVEDPERMANENTLY = "MovedPermanently" - MOVED = "Moved" - FOUND = "Found" - REDIRECT = "Redirect" - SEEOTHER = "SeeOther" - REDIRECTMETHOD = "RedirectMethod" - NOTMODIFIED = "NotModified" - USEPROXY = "UseProxy" - UNUSED = "Unused" - TEMPORARYREDIRECT = "TemporaryRedirect" - REDIRECTKEEPVERB = "RedirectKeepVerb" - BADREQUEST = "BadRequest" - UNAUTHORIZED = "Unauthorized" - PAYMENTREQUIRED = "PaymentRequired" - FORBIDDEN = "Forbidden" - NOTFOUND = "NotFound" - METHODNOTALLOWED = "MethodNotAllowed" - NOTACCEPTABLE = "NotAcceptable" - PROXYAUTHENTICATIONREQUIRED = "ProxyAuthenticationRequired" - REQUESTTIMEOUT = "RequestTimeout" - CONFLICT = "Conflict" - GONE = "Gone" - LENGTHREQUIRED = "LengthRequired" - PRECONDITIONFAILED = "PreconditionFailed" - REQUESTENTITYTOOLARGE = "RequestEntityTooLarge" - REQUESTURITOOLONG = "RequestUriTooLong" - UNSUPPORTEDMEDIATYPE = "UnsupportedMediaType" - REQUESTEDRANGENOTSATISFIABLE = "RequestedRangeNotSatisfiable" - EXPECTATIONFAILED = "ExpectationFailed" - UPGRADEREQUIRED = "UpgradeRequired" - INTERNALSERVERERROR = "InternalServerError" - NOTIMPLEMENTED = "NotImplemented" - BADGATEWAY = "BadGateway" - SERVICEUNAVAILABLE = "ServiceUnavailable" - GATEWAYTIMEOUT = "GatewayTimeout" - HTTPVERSIONNOTSUPPORTED = "HttpVersionNotSupported" + _100 = "100" + _101 = "101" + _200 = "200" + _201 = "201" + _202 = "202" + _203 = "203" + _204 = "204" + _205 = "205" + _206 = "206" + _300 = "300" + _301 = "301" + _302 = "302" + _303 = "303" + _304 = "304" + _305 = "305" + _306 = "306" + _307 = "307" + _400 = "400" + _401 = "401" + _402 = "402" + _403 = "403" + _404 = "404" + _405 = "405" + _406 = "406" + _407 = "407" + _408 = "408" + _409 = "409" + _410 = "410" + _411 = "411" + _412 = "412" + _413 = "413" + _414 = "414" + _415 = "415" + _416 = "416" + _417 = "417" + _426 = "426" + _500 = "500" + _501 = "501" + _502 = "502" + _503 = "503" + _504 = "504" + _505 = "505" """ Attributes: swagger_types (dict): The key is attribute name