WARNING
Always consult your ACE representative before using the Foundation API. See Foundation API for more information.Services reference
BrowseService
class BrowseService(mi_session, retries=0)
The Browse service provides read-only operation for a Granta MI Server.get_associated_records(_req)
Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.- Parameters:
_req (
GetAssociatedRecordsRequestobject) - Return type:
GetAssociatedRecordsResponseobject
get_attribute_details(_req)
Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.- Parameters:
_req (
GetAttributeDetailsRequestobject) - Return type:
GetAttributeDetailsResponseobject
get_attribute_parameters(_req)
Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.- Parameters:
_req (
GetAttributeParametersRequestobject) - Return type:
GetAttributeParametersResponseobject
get_child_nodes(_req)
Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.- Parameters:
_req (
GetChildNodesobject) - Return type:
GetChildNodesResponseobject
get_currencies()
Returns the currencies available in the Granta MI Server.- Return type:
GetCurrenciesResponseobject
get_database_parameters(_req)
List the parameter(s) in a Granta MI Database.- Parameters:
_req (
GetDatabaseParametersobject) - Return type:
GetDatabaseParametersResponseobject
get_databases()
List the databases available on the Granta MI Server.- Return type:
GetDatabasesResponseobject
get_datasheet_path(_req)
For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathobject) - Return type:
GetDatasheetPathResponseobject
get_datasheet_path_parameterized(_req)
Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathParameterizedobject) - Return type:
GetDatasheetPathParameterizedResponseobject
get_integration_profiles(_req)
List the profiles available on a Granta MI Database.- Parameters:
_req (
GetIntegrationProfilesobject) - Return type:
GetIntegrationProfilesResponseobject
get_layouts(_req)
List the Layouts for an MI Database or for one Table in a Database.- Parameters:
_req (
GetLayoutsobject) - Return type:
GetLayoutsResponseobject
get_linked_records(_req)
Returns the linked records for specified records, for one or more record link groups.- Parameters:
_req (
GetLinkedRecordsRequestobject) - Return type:
GetLinkedRecordsResponseobject
get_meta_attributes(_req)
Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.- Parameters:
_req (
GetMetaAttributesRequestobject) - Return type:
GetMetaAttributesResponseobject
get_parameter_details(_req)
Returns detailed information about the given Parameter(s) in a Granta MI Database.- Parameters:
_req (
GetParameterDetailsRequestobject) - Return type:
GetParameterDetailsResponseobject
get_record_attributes(_req)
Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services.- Parameters:
_req (
GetRecordAttributesRequestobject) - Return type:
GetRecordAttributesResponseobject
get_record_link_groups(_req)
Gets details of Record Link Groups in a Granta MI Database.- Parameters:
_req (
GetRecordLinkGroupsobject) - Return type:
GetRecordLinkGroupsResponseobject
get_record_versions(_req)
Returns version information about the records specified in the request object.- Parameters:
_req (
GetRecordVersionsRequestobject) - Return type:
GetRecordVersionsResponseobject
get_root_node(_req)
Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to get_child_nodes operation to find the contents of the rest of the node-tree of the Table.- Parameters:
_req (
GetRootNodeobject) - Return type:
GetRootNodeResponseobject
get_subsets(_req)
List the Subsets for a Granta MI Database or for one Table in a Database.- Parameters:
_req (
GetSubsetsRequestobject) - Return type:
GetSubsetsResponseobject
get_tables(_req)
List the tables contained in a particular Granta MI Database.- Parameters:
_req (
GetTablesobject) - Return type:
GetTablesResponseobject
get_tree_records(_req)
Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the get_child_records operation.- Parameters:
_req (
GetTreeRecordsRequestobject) - Return type:
GetTreeRecordsResponseobject
get_unit_conversions(_req)
Gets all the unit conversions available for a specified unit or unit system.- Parameters:
_req (
GetUnitConversionsRequestobject) - Return type:
GetUnitConversionsResponseobject
get_unit_systems(_req)
Returns information about the unit systems known to a Granta MI Database- Parameters:
_req (
GetUnitSystemsobject) - Return type:
GetUnitSystemsResponseobject
get_units(_req)
Returns information about the units known to one or more Granta MI Databases- Parameters:
_req (
GetUnitsobject) - Return type:
GetUnitsResponseobject
resolve_references(_req)
Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.- Parameters:
_req (
ResolveReferencesRequestobject) - Return type:
ResolveReferencesResponseobject
SearchService
class SearchService(mi_session, retries=0)
The Search service finds Records, within Granta MI Databases, matching specified criteria.criteria_search(_req)
Searches for records matching attribute-based criteria.- Parameters:
_req (
CriteriaSearchobject) - Return type:
SimpleTextSearchResponseobject
record_name_search(_req)
Searches for Records with a given exact Record name.- Parameters:
_req (
RecordNameSearchRequestobject) - Return type:
SimpleTextSearchResponseobject
simple_text_search(_req)
Searches for records matching simple text criteria.- Parameters:
_req (
SimpleTextSearchobject) - Return type:
SimpleTextSearchResponseobject
DataImportService
class DataImportService(mi_session, retries=0)
The DataImport service writes data to attributes of records in Granta MI Databases.delete_or_withdraw_if_latest_record_version(_req)
Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.- Parameters:
_req (
DeleteOrWithdrawIfLatestRecordVersionRequestobject) - Return type:
DeleteOrWithdrawIfLatestRecordVersionResponseobject
ensure_record_folder_paths(_req)
Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.- Parameters:
_req (
EnsureRecordFolderPathsRequestobject) - Return type:
EnsureRecordFolderPathsResponseobject
get_upload_addresses(_req)
Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type.- Parameters:
_req (
GetUploadAddressesRequestobject) - Return type:
GetUploadAddressesResponseobject
modify_record_links(_req)
Adds or removes static Links between record(s) in a Granta MI Database.- Parameters:
_req (
ModifyRecordLinksRequestobject) - Return type:
ModifyRecordLinksResponseobject
set_record_attributes(_req)
Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.- Parameters:
_req (
SetRecordAttributesRequestobject) - Return type:
SetRecordAttributesResponseobject
DataExportService
class DataExportService(mi_session, retries=0)
The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.get_record_attributes_by_ref(_req)
Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.- Parameters:
_req (
GetRecordAttributesByRefRequestobject) - Return type:
GetRecordAttributesByRefResponseobject
EngineeringDataService
class EngineeringDataService(mi_session, retries=0)
The EngineeringData service provides custom data export operations for a Granta MI Server.export_record_data(_req)
Performs an FEA Export and returns the result as the response.- Parameters:
_req (
ExportRecordDataRequestobject) - Return type:
ExportRecordDataResponseobject
exporters_for_records(_req)
Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.- Parameters:
_req (
ExportersForRecordsRequestobject) - Return type:
ExportersForRecordsResponseobject
get_available_exporters(_req)
Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.- Parameters:
_req (
GetAvailableExportersRequestobject) - Return type:
GetAvailableExportersResponseobject
get_exporter_parameters(_req)
Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).- Parameters:
_req (
GetExporterParametersRequestobject) - Return type:
GetExporterParametersResponseobject
RecordManipulatorService
class RecordManipulatorService(mi_session, retries=0)
The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.move_record(_req)
Reparents a record. Metadata such as creation date will be preserved, along with attribute values.- Parameters:
_req (
RecordMoveRequestobject) - Return type:
EmptyRestResponseobject
Objects reference
AssociatedRecords
class AssociatedRecords(associated_records=None, source_record=None, _is_owner=True)
Bases:object
Object containing a source RecordReference object and an array
of associated RecordReference objects.
- Parameters:
- associated_records (list of
RecordReference) - source_record (
RecordReference)
- associated_records (list of
property associated_records : list[RecordReference]
Property associated_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property source_record : RecordReference
Property source_record is of typeRecordReference.
- Return type:
RecordReference
AttributeAddress
class AttributeAddress(url=None, attribute_id=None, attribute_name=None, attribute_standard_name=None, _is_owner=True)
Bases:object
The upload URL of an attribute and an attribute identifier.
The attribute is identified by the identity, name, and where available, standard name.
property attribute_id : int
Property attribute_id is of type int.- Return type: int
property attribute_name : str
Property attribute_name is of type str.- Return type: str
property attribute_standard_name : str
Property attribute_standard_name is of type str.- Return type: str
property url : str
Property url is of type str.- Return type: str
AttributeCategory
class AttributeCategory(category_attribute_details=None, name=None, order=None, record_link_group_details=None, display_names=None, _is_owner=True)
Bases:object
Gives the details of contents of a category in a layout. Does not include Tabular Data Association
Chains.
- Parameters:
- category_attribute_details (list of
CategoryAttributeDetail) - name (str)
- order (int)
- record_link_group_details (list of
RecordLinkGroupDetail) - display_names (list of
DisplayName)
- category_attribute_details (list of
add_category_attribute_detail(_categoryAttributeDetail)
Appends _categoryAttributeDetail to categoryAttributeDetails property on AttributeCategory C-object.- Parameters:
_categoryAttributeDetail (
CategoryAttributeDetail)
add_record_link_group_detail(_recordLinkGroupDetail)
Appends _recordLinkGroupDetail to recordLinkGroupDetails property on AttributeCategory C-object.- Parameters:
_recordLinkGroupDetail (
RecordLinkGroupDetail)
property category_attribute_details : list[CategoryAttributeDetail]
Property category_attribute_details is a list ofCategoryAttributeDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
CategoryAttributeDetail
property display_names : list[DisplayName]
Property display_names is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property name : str
Property name is of type str.- Return type: str
property order : int
Property order is of type int.- Return type: int
property record_link_group_details : list[RecordLinkGroupDetail]
Property record_link_group_details is a list ofRecordLinkGroupDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupDetail
AttributeDetail
class AttributeDetail(about=None, attribute=None, axis_name=None, chartable=None, database_unit=None, default_threshold=None, discrete_values=None, identity=None, is_meta=None, is_multi_valued=None, is_searchable=None, is_unique=None, min_max=None, name=None, order=None, revision_info=None, tabular=None, type_=None, is_functional_range=None, is_ordered=None, display_names=None, data_rule=None, help_info=None, _is_owner=True)
Bases:object
Detailed meta-information about an attribute in a Granta MI database.
Does not include values of the attribute. For requests, the name, and type are required.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - axis_name (str)
- chartable (bool)
- database_unit (str)
- default_threshold (str)
- discrete_values (list of str)
- identity (int)
- is_meta (bool)
- is_multi_valued (bool)
- is_searchable (bool)
- is_unique (bool)
- min_max (
MinMax) - name (str)
- order (int)
- revision_info (
RevisionInfo) - tabular (
TabularDetail) - type (str)
- is_functional_range (bool)
- is_ordered (bool)
- display_names (list of
DisplayName) - data_rule (
DataRule) - help_info (
HelpInfo)
- about (
property about : NamedAttribute
Property about is of typeNamedAttribute. Only populated if ‘isMeta’ is True.
- Return type:
NamedAttribute
property attribute : AttributeReference
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property axis_name : str
Property axis_name is of type str.- Return type: str
property chartable : bool
Property chartable is of type bool.- Return type: bool
property data_rule : DataRule
Property data_rule is of typeDataRule.
- Return type:
DataRule
property database_unit : str
Property database_unit is of type str.- Return type: str
property default_threshold : str
Property default_threshold is of type str.- Return type: str
property discrete_values : list[str]
Property discrete_values is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property display_names : list[DisplayName]
Property display_names is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property help_info : HelpInfo
Property help_info is of typeHelpInfo.
- Return type:
HelpInfo
property identity : int
Property identity is of type int.- Return type: int
property is_functional_range : bool
Property is_functional_range is of type bool.- Return type: bool
property is_meta : bool
Property is_meta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.- Return type: bool
property is_multi_valued : bool
Property is_multi_valued is of type bool.- Return type: bool
property is_ordered : bool
Property is_ordered is of type bool.- Return type: bool
property is_searchable : bool
Property is_searchable is of type bool.- Return type: bool
property is_unique : bool
Property is_unique is of type bool.- Return type: bool
property min_max : MinMax
Property min_max is of typeMinMax.
- Return type:
MinMax
property name : str
Property name is of type str.- Return type: str
property order : int
Property order is of type int.- Return type: int
property revision_info : RevisionInfo
Property revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property tabular : TabularDetail
Property tabular is of typeTabularDetail.
- Return type:
TabularDetail
property type_ : str
Property type_ is of type str.- Return type: str
AttributeExporterParameters
class AttributeExporterParameters(attribute=None, data_presence=None, graph_domains=None, parameters=None, _is_owner=True)
Bases:object
A type to contain an attribute along with associated parameters and domains.
All Parameters are declared on the MI parameterised Attribute,
even if not used in some combination of Exporter and Record.
It also contains the possible domains in which the fixed Parameter values must be chosen.
- Parameters:
- attribute (
NamedAttribute) - data_presence (int)
- graph_domains (list of
GraphDomain) - parameters (list of
ExporterParameter)
- attribute (
class DataPresence
Bases:object
DataIncompatibleWithConfiguration = 4
Missing = 3
NotApplicable = 2
Present = 1
Unknown = 0
add_graph_domain(_graphDomain)
Appends _graphDomain to graphDomains property on AttributeExporterParameters C-object.- Parameters:
_graphDomain (
GraphDomain)
add_parameter(_exporterParameter)
Appends _exporterParameter to parameters property on AttributeExporterParameters C-object.- Parameters:
_exporterParameter (
ExporterParameter)
property attribute : NamedAttribute
Property attribute is of typeNamedAttribute.
- Return type:
NamedAttribute
property data_presence : int
Property data_presence is of type int. SeeAttributeExporterParameters.DataPresence for supported values.
- Return type: int
property graph_domains : list[GraphDomain]
Property graph_domains is a list ofGraphDomain objects. Each graph domain contains information on the possible values that the corresponding parameter (by list index) can take.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
GraphDomain
property parameters : list[ExporterParameter]
Property parameters is a list ofExporterParameter objects. This is a list of parameters that parameterize the attribute in question.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterParameter
AttributeMetaAttributes
class AttributeMetaAttributes(meta_attributes=None, parent_attribute=None, _is_owner=True)
Bases:object
Lists the Meta-Attributes of a particular Attribute in a Granta MI Database Table.
- Parameters:
- meta_attributes (list of
NamedAttribute) - parent_attribute (
AttributeReference)
- meta_attributes (list of
property meta_attributes : list[NamedAttribute]
Property meta_attributes is a list ofNamedAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedAttribute
property parent_attribute : AttributeReference
Property parent_attribute is of typeAttributeReference.
- Return type:
AttributeReference
AttributeReference
class AttributeReference(db_key=None, attribute_id=None, is_standard_name=None, name=None, partial_table_reference=None, pseudo_attribute=None, _is_owner=True)
Bases:object
Identification of a particular attribute in a Granta MI database.
For requests, a db_key is required and either the attribute ID or the attribute name. If the name is
not a standard name, then a partial_table_reference is also required.
- Parameters:
class MIPseudoAttributeReference
Bases:object
createdDate = 21
creator = 22
lastModifier = 23
modifiedDate = 4
name = 0
parentName = 17
parentRecordHistoryGUID = 20
parentRecordHistoryIdentity = 19
parentShortName = 18
recordColor = 7
recordGUID = 10
recordHistoryGUID = 11
recordHistoryIdentity = 6
recordType = 5
recordVersionNumber = 12
releasedDate = 3
shortName = 1
subsets = 2
tableName = 13
writable = 16
property attribute_id : int
Property attribute_id is of type int.- Return type: int
property db_key : str
Property db_key is of type str.- Return type: str
property is_standard_name : bool
Property is_standard_name is of type bool.- Return type: bool
property name : str
Property name is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference.
- Return type:
PartialTableReference
property pseudo_attribute : int
Property pseudo_attribute is of type int. SeeAttributeReference.MIPseudoAttributeReference for supported values.
- Return type: int
AttributeValue
class AttributeValue(attribute_id=None, attribute_name=None, attribute_standard_name=None, data_type=None, discrete_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, date_data_value=None, date_time_data_value=None, discrete_functional_gridded_data_value=None, discrete_functional_series_data_value=None, file_data_value=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, subsets_data_value=None, tabular_data_value=None, _is_owner=True)
Bases:object
Type representing the value of a piece of data for a particular attribute. Access supported data
types, and the attribute identity by Name, ID, or Standard Name.
- Parameters:
- attribute_id (int)
- attribute_name (str)
- attribute_standard_name (str)
- data_type (str)
- discrete_data_value (
DiscreteDataType) - hyperlink_data_value (
HyperlinkDataType) - integer_data_value (
IntegerDataType) - logical_data_value (
LogicalDataType) - date_data_value (
DateDataType) - date_time_data_value (
DateTimeDataType) - discrete_functional_gridded_data_value (
DiscreteFunctionalGriddedDataType) - discrete_functional_series_data_value (
DiscreteFunctionalSeriesDataType) - file_data_value (
FileDataType) - float_functional_gridded_data_value (
FloatFunctionalGriddedDataType) - float_functional_series_data_value (
FloatFunctionalSeriesDataType) - long_text_data_value (
LongTextDataType) - picture_data_value (
PictureDataType) - point_data_value (
PointDataType) - range_data_value (
RangeDataType) - short_text_data_value (
ShortTextDataType) - subsets_data_value (
SubsetsDataType) - tabular_data_value (
TabularDataType)
property attribute_id : int
Property attribute_id is of type int.- Return type: int
property attribute_name : str
Property attribute_name is of type str.- Return type: str
property attribute_standard_name : str
Property attribute_standard_name is of type str.- Return type: str
property data_type : str
Property data_type is of type str.- Return type: str
property date_data_value : DateDataType
Property date_data_value is of typeDateDataType.
- Return type:
DateDataType
property date_time_data_value : DateTimeDataType
Property date_time_data_value is of typeDateTimeDataType.
- Return type:
DateTimeDataType
property discrete_data_value : DiscreteDataType
Property discrete_data_value is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property discrete_functional_gridded_data_value : DiscreteFunctionalGriddedDataType
Property discrete_functional_gridded_data_value is of typeDiscreteFunctionalGriddedDataType.
- Return type:
DiscreteFunctionalGriddedDataType
property discrete_functional_series_data_value : DiscreteFunctionalSeriesDataType
Property discrete_functional_series_data_value is of typeDiscreteFunctionalSeriesDataType.
- Return type:
DiscreteFunctionalSeriesDataType
property file_data_value : FileDataType
Property file_data_value is of typeFileDataType.
- Return type:
FileDataType
property float_functional_gridded_data_value : FloatFunctionalGriddedDataType
Property float_functional_gridded_data_value is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property float_functional_series_data_value : FloatFunctionalSeriesDataType
Property float_functional_series_data_value is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlink_data_value : HyperlinkDataType
Property hyperlink_data_value is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integer_data_value : IntegerDataType
Property integer_data_value is of typeIntegerDataType.
- Return type:
IntegerDataType
property logical_data_value : LogicalDataType
Property logical_data_value is of typeLogicalDataType.
- Return type:
LogicalDataType
property long_text_data_value : LongTextDataType
Property long_text_data_value is of typeLongTextDataType.
- Return type:
LongTextDataType
property picture_data_value : PictureDataType
Property picture_data_value is of typePictureDataType.
- Return type:
PictureDataType
property point_data_value : PointDataType
Property point_data_value is of typePointDataType.
- Return type:
PointDataType
property range_data_value : RangeDataType
Property range_data_value is of typeRangeDataType.
- Return type:
RangeDataType
property short_text_data_value : ShortTextDataType
Property short_text_data_value is of typeShortTextDataType.
- Return type:
ShortTextDataType
property subsets_data_value : SubsetsDataType
Property subsets_data_value is of typeSubsetsDataType.
- Return type:
SubsetsDataType
property tabular_data_value : TabularDataType
Property tabular_data_value is of typeTabularDataType.
- Return type:
TabularDataType
BetweenDateTimesSearchValue
class BetweenDateTimesSearchValue(high_end=None, low_end=None, tabular_column=None, _is_owner=True)
Bases:object
Search criterion to search for data between two times.
This criterion type is specific to DateTime Attributes. Both a low_end and a high_end value are
required. The date format is in XSD’s dateTime data type (YYYY-MM-DDThh:mm:ss).
property high_end : str
Property high_end is of type str.- Return type: str
property low_end : str
Property low_end is of type str.- Return type: str
property tabular_column : str
Property tabular_column is of type str.- Return type: str
BetweenSearchValue
class BetweenSearchValue(high_end=None, low_end=None, tabular_column=None, _is_owner=True)
Bases:object
Search criterion to search for data between two values.
Only Point, Range, and Integer attributes are supported by this search criteria. Both a low_end and
a high_end value are required.
- Parameters:
- high_end (
HighEndSearchValue) - low_end (
LowEndSearchValue) - tabular_column (str)
- high_end (
property high_end : HighEndSearchValue
Property high_end is of typeHighEndSearchValue.
- Return type:
HighEndSearchValue
property low_end : LowEndSearchValue
Property low_end is of typeLowEndSearchValue.
- Return type:
LowEndSearchValue
property tabular_column : str
Property tabular_column is of type str.- Return type: str
BinaryDataSettings
class BinaryDataSettings(binary_data_representation=None, max_image_size=None, _is_owner=True)
Bases:object
Settings for exporting file and picture data.
- Parameters:
- binary_data_representation (int)
- max_image_size (
RasterSize)
property binary_data_representation : int
Property binary_data_representation is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property max_image_size : RasterSize
Property max_image_size is of typeRasterSize.
- Return type:
RasterSize
BrowseService
class BrowseService(mi_session, retries=0)
Bases:Service
The Browse service provides read-only operation for a Granta MI Server.
get_associated_records(_req)
Returns all the Records, in a single target Table, that are associated with each of a given set of source Records, via Tabular Data links. These links can be in the forward or reverse direction. Note that, if there is more than one Tabular Attribute linking the source and target Tables, the Associated Records are the union of all those linked by each of the Tabular Attributes.- Parameters:
_req (
GetAssociatedRecordsRequestobject) - Return type:
GetAssociatedRecordsResponseobject
get_attribute_details(_req)
Returns detailed meta-information about given Attribute(s) in a Granta MI Database. Does not retrieve values of the Data; for that, use the DataExport service.- Parameters:
_req (
GetAttributeDetailsRequestobject) - Return type:
GetAttributeDetailsResponseobject
get_attribute_parameters(_req)
Gets detailed information about the Parameters that are declared to be usable with given Attribute(s) in a Granta MI Database. Can only be used with Functional Attributes or Multi-Valued Attributes.- Parameters:
_req (
GetAttributeParametersRequestobject) - Return type:
GetAttributeParametersResponseobject
get_child_nodes(_req)
Returns information about the child nodes of the given node in the node-tree of a Granta MI Table.- Parameters:
_req (
GetChildNodesobject) - Return type:
GetChildNodesResponseobject
get_currencies()
Returns the currencies available in the Granta MI Server.- Return type:
GetCurrenciesResponseobject
get_database_parameters(_req)
List the parameter(s) in a Granta MI Database.- Parameters:
_req (
GetDatabaseParametersobject) - Return type:
GetDatabaseParametersResponseobject
get_databases()
List the databases available on the Granta MI Server.- Return type:
GetDatabasesResponseobject
get_datasheet_path(_req)
For each record reference gets the relative portion of an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathobject) - Return type:
GetDatasheetPathResponseobject
get_datasheet_path_parameterized(_req)
Gets information that may be used to construct an HTTP URL to a Granta MI datasheet, served by MI Viewer.- Parameters:
_req (
GetDatasheetPathParameterizedobject) - Return type:
GetDatasheetPathParameterizedResponseobject
get_integration_profiles(_req)
List the profiles available on a Granta MI Database.- Parameters:
_req (
GetIntegrationProfilesobject) - Return type:
GetIntegrationProfilesResponseobject
get_layouts(_req)
List the Layouts for an MI Database or for one Table in a Database.- Parameters:
_req (
GetLayoutsobject) - Return type:
GetLayoutsResponseobject
get_linked_records(_req)
Returns the linked records for specified records, for one or more record link groups.- Parameters:
_req (
GetLinkedRecordsRequestobject) - Return type:
GetLinkedRecordsResponseobject
get_meta_attributes(_req)
Returns the Meta-Attributes of one or more parent Attributes in a Table of a Granta MI Database.- Parameters:
_req (
GetMetaAttributesRequestobject) - Return type:
GetMetaAttributesResponseobject
get_parameter_details(_req)
Returns detailed information about the given Parameter(s) in a Granta MI Database.- Parameters:
_req (
GetParameterDetailsRequestobject) - Return type:
GetParameterDetailsResponseobject
get_record_attributes(_req)
Returns information about which Attributes have Data, for given Record(s). Includes information about when Data was created and retired, in a Version-Controlled Table. Does not retrieve values of the Data; for that, use the DataExport or EngineeringData services.- Parameters:
_req (
GetRecordAttributesRequestobject) - Return type:
GetRecordAttributesResponseobject
get_record_link_groups(_req)
Gets details of Record Link Groups in a Granta MI Database.- Parameters:
_req (
GetRecordLinkGroupsobject) - Return type:
GetRecordLinkGroupsResponseobject
get_record_versions(_req)
Returns version information about the records specified in the request object.- Parameters:
_req (
GetRecordVersionsRequestobject) - Return type:
GetRecordVersionsResponseobject
get_root_node(_req)
Returns information about the root node of a particular Table in a Granta MI Database. This can be passed to get_child_nodes operation to find the contents of the rest of the node-tree of the Table.- Parameters:
_req (
GetRootNodeobject) - Return type:
GetRootNodeResponseobject
get_subsets(_req)
List the Subsets for a Granta MI Database or for one Table in a Database.- Parameters:
_req (
GetSubsetsRequestobject) - Return type:
GetSubsetsResponseobject
get_tables(_req)
List the tables contained in a particular Granta MI Database.- Parameters:
_req (
GetTablesobject) - Return type:
GetTablesResponseobject
get_tree_records(_req)
Returns name, record type, and some tree information for the given record(s). Does not retrieve the tree children; for that, use the get_child_records operation.- Parameters:
_req (
GetTreeRecordsRequestobject) - Return type:
GetTreeRecordsResponseobject
get_unit_conversions(_req)
Gets all the unit conversions available for a specified unit or unit system.- Parameters:
_req (
GetUnitConversionsRequestobject) - Return type:
GetUnitConversionsResponseobject
get_unit_systems(_req)
Returns information about the unit systems known to a Granta MI Database- Parameters:
_req (
GetUnitSystemsobject) - Return type:
GetUnitSystemsResponseobject
get_units(_req)
Returns information about the units known to one or more Granta MI Databases- Parameters:
_req (
GetUnitsobject) - Return type:
GetUnitsResponseobject
resolve_references(_req)
Checks whether the specified Granta MI entities exist in the database and, if so, whether the current user has read permissions or write permissions for it.- Parameters:
_req (
ResolveReferencesRequestobject) - Return type:
ResolveReferencesResponseobject
CategoryAttributeDetail
class CategoryAttributeDetail(about=None, attribute=None, axis_name=None, chartable=None, database_unit=None, default_threshold=None, discrete_values=None, help_info=None, identity=None, is_meta=None, is_multi_valued=None, is_read_only=None, is_required=None, is_searchable=None, name=None, order=None, revision_info=None, type_=None, _is_owner=True)
Bases:object
Gives the attribute details with a client read only and is required flag.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - axis_name (str)
- chartable (bool)
- database_unit (str)
- default_threshold (str)
- discrete_values (list of str)
- help_info (
HelpInfo) - identity (int)
- is_meta (bool)
- is_multi_valued (bool)
- is_read_only (bool)
- is_required (bool)
- is_searchable (bool)
- name (str)
- order (int)
- revision_info (
RevisionInfo) - type (str)
- about (
property about : NamedAttribute
Property about is of typeNamedAttribute.
- Return type:
NamedAttribute
property attribute : AttributeReference
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property axis_name : str
Property axis_name is of type str.- Return type: str
property chartable : bool
Property chartable is of type bool.- Return type: bool
property database_unit : str
Property database_unit is of type str.- Return type: str
property default_threshold : str
Property default_threshold is of type str.- Return type: str
property discrete_values : list[str]
Property discrete_values is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property help_info : HelpInfo
Property help_info is of typeHelpInfo.
- Return type:
HelpInfo
property identity : int
Property identity is of type int.- Return type: int
property is_meta : bool
Property is_meta is of type bool.- Return type: bool
property is_multi_valued : bool
Property is_multi_valued is of type bool.- Return type: bool
property is_read_only : bool
Property is_read_only is of type bool.- Return type: bool
property is_required : bool
Property is_required is of type bool.- Return type: bool
property is_searchable : bool
Property is_searchable is of type bool.- Return type: bool
property name : str
Property name is of type str.- Return type: str
property order : int
Property order is of type int.- Return type: int
property revision_info : RevisionInfo
Property revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property type_ : str
Property type_ is of type str.- Return type: str
Constraint
class Constraint(label=None, parameter=None, parameter_value=None, _is_owner=True)
Bases:object
A constraint on functional data.
For requests, both parameter and parameter value are required.
- Parameters:
- label (str)
- parameter (
ParameterReference) - parameter_value (
ParameterValue)
property label : str
Property label is of type str.- Return type: str
property parameter : ParameterReference
Property parameter is of typeParameterReference.
- Return type:
ParameterReference
property parameter_value : ParameterValue
Property parameter_value is of typeParameterValue.
- Return type:
ParameterValue
Constraints
class Constraints(constraints=None, _is_owner=True)
Bases:object
A container of constraints.
- Parameters:
constraints (list of
Constraint)
add_constraint(_constraint)
Appends _constraint to constraints property on Constraints C-object.- Parameters:
_constraint (
Constraint)
property constraints : list[Constraint]
Property constraints is a list ofConstraint objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Constraint
ContainsAllSearchValue
class ContainsAllSearchValue(tabular_column=None, values=None, _is_owner=True)
Bases:object
Search criterion to search for discrete data types that contain all of the specified search values.
If the discrete values of the data include further values, it still passes. This criterion type is
specific to discrete attributes.
add_value(value)
Appends value to values property on ContainsAllSearchValue C-object.- Parameters: value (str)
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property values : list[str]
Property values is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.ContainsAnySearchValue
class ContainsAnySearchValue(tabular_column=None, values=None, _is_owner=True)
Bases:object
Search criterion to search for discrete data types that contain any of the specified search values.
This criterion type is specific to discrete attributes.
add_value(value)
Appends value to values property on ContainsAnySearchValue C-object.- Parameters: value (str)
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property values : list[str]
Property values is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.ContainsSearchValue
class ContainsSearchValue(tabular_column=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for data that contains the specified search text value.
Search criterion applies to text, logical, and discrete attributes. For logicals, specify ‘true’ or
‘false’ as the text.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property value : str
Property value is of type str.- Return type: str
CriteriaSearch
class CriteriaSearch(db_key=None, parameter_values=None, populate_guids=None, record_filter=None, search_criteria=None, search_filter=None, search_mode=None, significant_figures=None, _is_owner=True)
Bases:object
The input for the CriteriaSearch operation.
Both the db_key and search_criteria parameters are required. If no subsets are specified, only the
default subset will be searched.
- Parameters:
- db_key (str)
- parameter_values (list of
UnittedParameterValue) - populate_guids (bool)
- record_filter (
RecordFilter) - search_criteria (list of
RecordSearchCriterion) - search_filter (int)
- search_mode (int)
- significant_figures (int)
add_parameter_value(_unittedParameterValue)
Appends _unittedParameterValue to parameterValues property on CriteriaSearch C-object.- Parameters:
_unittedParameterValue (
UnittedParameterValue)
add_search_criteria(_recordSearchCriterion)
Appends _recordSearchCriterion to searchCriteria property on CriteriaSearch C-object.- Parameters:
_recordSearchCriterion (
RecordSearchCriterion)
property db_key : str
Property db_key is of type str.- Return type: str
property parameter_values : list[UnittedParameterValue]
Property parameter_values is a list ofUnittedParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnittedParameterValue
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property search_criteria : list[RecordSearchCriterion]
Property search_criteria is a list ofRecordSearchCriterion objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordSearchCriterion
property search_filter : int
Property search_filter is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property search_mode : int
Property search_mode is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property significant_figures : int
Property significant_figures is of type int.- Return type: int
CurrencyDetail
class CurrencyDetail(code=None, factor=None, name=None, _is_owner=True)
Bases:object
Provides the currency code and name.
Currencies are uniquely identified by their ISO 4217 code, the currency name is also provided.
property code : str
Property code is of type str.- Return type: str
property factor : float
Property factor is of type float.- Return type: float
property name : str
Property name is of type str.- Return type: str
DataExportService
class DataExportService(mi_session, retries=0)
Bases:Service
The DataExport service retrieves and returns data from attributes of records in Granta MI Databases.
get_record_attributes_by_ref(_req)
Retrieves the data values for the given attribute(s) and record(s) in a Granta MI Database.- Parameters:
_req (
GetRecordAttributesByRefRequestobject) - Return type:
GetRecordAttributesByRefResponseobject
DataImportService
class DataImportService(mi_session, retries=0)
Bases:Service
The DataImport service writes data to attributes of records in Granta MI Databases.
delete_or_withdraw_if_latest_record_version(_req)
Deletes or withdraws the latest version of the specified record(s). In a version-controlled table, the latest version of a record can be seen by Write users in Edit mode of MI Viewer. This operation will revert (or delete) unreleased record versions, withdraw released versions, and skip withdrawn versions. In a non-version-controlled table, records will only have one version. This operation will delete specified records of this type. Note: this operation will only act on the latest record version. In the case where the specified record corresponds to a record version that is an earlier version, the operation will return a fault.- Parameters:
_req (
DeleteOrWithdrawIfLatestRecordVersionRequestobject) - Return type:
DeleteOrWithdrawIfLatestRecordVersionResponseobject
ensure_record_folder_paths(_req)
Checks whether given hierarchies of folders exist, creating them if not. Each hierarchy is specified as a sequence of tree names; where the folder needs to be created, this name is also used as the full name of the created folder. New folders will be assigned to their parents’ subsets; existing folders are not assigned or removed from any subsets. If a colour is specified, new folders will be of that colour; existing folders’ colours are never changed. Note: this operation can accept an arbitrary number of Record Folder paths to be ensured, but in practice there is a limit to the amount of changes that can be done in a single operation.- Parameters:
_req (
EnsureRecordFolderPathsRequestobject) - Return type:
EnsureRecordFolderPathsResponseobject
get_upload_addresses(_req)
Returns an address to which a datum can be uploaded, for each combination of given sets of records and attributes in a Granta MI database. Each address will be an HTTP or HTTPS URL. The upload service only supports a subset of all available Granta MI attribute types, but this operation will give an address for an attribute of any type.- Parameters:
_req (
GetUploadAddressesRequestobject) - Return type:
GetUploadAddressesResponseobject
modify_record_links(_req)
Adds or removes static Links between record(s) in a Granta MI Database.- Parameters:
_req (
ModifyRecordLinksRequestobject) - Return type:
ModifyRecordLinksResponseobject
set_record_attributes(_req)
Sets the data values for the given attribute(s) and record(s) in a Granta MI Database. This method will create any records or folders which do not already exist in the database (however, new folders should be created with ‘EnsureRecordFolderPaths’ instead). Note: This operation can accept an arbitrary number of attributes and records to be imported, but in practice there is a fairly low limit to the amount of data that can be imported in a single operation. Client code should perform large imports in small chunks.- Parameters:
_req (
SetRecordAttributesRequestobject) - Return type:
SetRecordAttributesResponseobject
DatabaseDetail
class DatabaseDetail(db_key=None, author=None, company=None, volume_name=None, db_guid=None, db_version_guid=None, _is_owner=True)
Bases:object
Detailed meta-information about a Granta MI database.
- Parameters:
property author : str
Property author is of type str.- Return type: str
property company : str
Property company is of type str.- Return type: str
property db_guid : str
Property db_guid is of type str.- Return type: str
property db_key : str
Property db_key is of type str.- Return type: str
property db_version_guid : str
Property db_version_guid is of type str.- Return type: str
property volume_name : str
Property volume_name is of type str.- Return type: str
DatabaseRevision
class DatabaseRevision(revision_date=None, revision_note=None, username=None, has_revision_note=None, _is_owner=True)
Bases:object
Information about a specific database revision. Includes the author, the date and time, and the
transaction note (if present).
property has_revision_note : bool
Property has_revision_note is of type bool.- Return type: bool
property revision_date : str
Property revision_date is of type str.- Return type: str
property revision_note : str
Property revision_note is of type str.- Return type: str
property username : str
Property username is of type str.- Return type: str
DatabaseUnitSet
class DatabaseUnitSet(db_key=None, unit_symbols=None, _is_owner=True)
Bases:object
An array of UnitSymbols for a specific database.
- Parameters:
- db_key (str)
- unit_symbols (list of
UnitSymbol)
property db_key : str
Property db_key is of type str.- Return type: str
property unit_symbols : list[UnitSymbol]
Property unit_symbols is a list ofUnitSymbol objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitSymbol
DataRule
class DataRule(description=None, display_descriptions=None, display_names=None, name=None, regular_expression=None, _is_owner=True)
Bases:object
A data validation rule that will be applied to the corresponding Short Text Attribute when importing
data.
- Parameters:
- description (str)
- display_descriptions (list of
DisplayName) - display_names (list of
DisplayName) - name (str)
- regular_expression (str)
property description : str
Property description is of type str.- Return type: str
property display_descriptions : list[DisplayName]
Property display_descriptions is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property display_names : list[DisplayName]
Property display_names is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property name : str
Property name is of type str.- Return type: str
property regular_expression : str
Property regular_expression is of type str.- Return type: str
DatasheetPath
class DatasheetPath(url=None, record_reference=None, _is_owner=True)
Bases:object
Link to a record in a Granta MI database.
Includes a RecordReference and a URL for the record datasheet.
- Parameters:
- url (str)
- record_reference (
RecordReference)
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property url : str
Property url is of type str.- Return type: str
DateDataType
class DateDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
Container of date data. The format is YYYY-MM-DD.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
DateTimeDataType
class DateTimeDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
Container of datetime data. The format is YYYY-MM-DDThh:mm:ss and is compatible with ISO 8601.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
DefaultParameterValue
class DefaultParameterValue(discrete_value=None, numeric_value=None, type_=None, _is_owner=True)
Bases:object
Type representing the default value of a parameter, may be overridden at the datum level, or
inherited from the attribute or the database default.
class DefaultParameterValueType
Bases:object
Discrete = 2
Numeric = 1
Unknown = 0
property discrete_value : str
Property discrete_value is of type str.- Return type: str
property numeric_value : float
Property numeric_value is of type float.- Return type: float
property type_ : str
Property type_ is of type str.- Return type: str
DeleteOrWithdrawIfLatestRecordVersionRequest
class DeleteOrWithdrawIfLatestRecordVersionRequest(delete_or_withdraw_records=None, notes=None, _is_owner=True)
Bases:object
DeleteOrWithdrawIfLatestRecordVersionRequest. Input for the DeleteOrWithdrawIfLatestRecordVersion
operation, containing the DeleteOrWithdrawRecord objects.
- Parameters:
- delete_or_withdraw_records (list of
DeleteOrWithdrawRecord) - notes (str)
- delete_or_withdraw_records (list of
add_delete_or_withdraw_record(_deleteOrWithdrawRecord)
Appends _deleteOrWithdrawRecord to deleteOrWithdrawRecords property on DeleteOrWithdrawIfLatestRecordVersionRequest C-object.- Parameters:
_deleteOrWithdrawRecord (
DeleteOrWithdrawRecord)
property delete_or_withdraw_records : list[DeleteOrWithdrawRecord]
Property delete_or_withdraw_records is a list ofDeleteOrWithdrawRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DeleteOrWithdrawRecord
property notes : str
Property notes is of type str.- Return type: str
DeleteOrWithdrawIfLatestRecordVersionResponse
class DeleteOrWithdrawIfLatestRecordVersionResponse(c_obj)
Bases:Response
DeleteOrWithdrawIfLatestRecordVersionResponse. Output of the DeleteOrWithdrawIfLatestRecordVersion
operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a DeleteOrWithdrawIfLatestRecordVersionResponse object.
DeleteOrWithdrawRecord
class DeleteOrWithdrawRecord(record_reference=None, _is_owner=True)
Bases:object
Record to be deleted or withdrawn. Contains a RecordReference.
- Parameters:
record_reference (
RecordReference)
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
DiscreteDataType
class DiscreteDataType(discrete_values=None, is_applicable=None, _is_owner=True)
Bases:IDataValue
Container of discrete data.
- Parameters:
- discrete_values (list of
DiscreteValue) - is_applicable (bool)
- discrete_values (list of
add_discrete_value(_discreteValue)
Appends _discreteValue to discreteValues property on DiscreteDataType C-object.- Parameters:
_discreteValue (
DiscreteValue)
property discrete_values : list[DiscreteValue]
Property discrete_values is a list ofDiscreteValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteValue
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
DiscreteFunctionalGriddedDataType
class DiscreteFunctionalGriddedDataType(default_x_axis_parameter=None, functional_data_parameter_settings=None, is_applicable=None, values=None, _is_owner=True)
Bases:IDataValue
A type to contain the values of discrete-valued functional gridded data.
This type is only valid for export.
- Parameters:
- default_x_axis_parameter (
ParameterInformation) - functional_data_parameter_settings (list of
FunctionalDataParameterSettings) - is_applicable (bool)
- values (
DiscreteFunctionalValues)
- default_x_axis_parameter (
add_functional_data_parameter_settings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalGriddedDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property default_x_axis_parameter : ParameterInformation
Property default_x_axis_parameter is of typeParameterInformation.
- Return type:
ParameterInformation
property functional_data_parameter_settings : list[FunctionalDataParameterSettings]
Property functional_data_parameter_settings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property values : DiscreteFunctionalValues
Property values is of typeDiscreteFunctionalValues.
- Return type:
DiscreteFunctionalValues
DiscreteFunctionalSeriesDataType
class DiscreteFunctionalSeriesDataType(functional_data_parameter_settings=None, graph=None, is_applicable=None, _is_owner=True)
Bases:IDataValue
A type to contain the values of discrete-valued functional series data.
This type is only valid for export.
- Parameters:
- functional_data_parameter_settings (list of
FunctionalDataParameterSettings) - graph (
DiscreteFunctionalSeriesGraph) - is_applicable (bool)
- functional_data_parameter_settings (list of
add_functional_data_parameter_settings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on DiscreteFunctionalSeriesDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property functional_data_parameter_settings : list[FunctionalDataParameterSettings]
Property functional_data_parameter_settings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property graph : DiscreteFunctionalSeriesGraph
Property graph is of typeDiscreteFunctionalSeriesGraph.
- Return type:
DiscreteFunctionalSeriesGraph
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
DiscreteFunctionalSeriesGraph
class DiscreteFunctionalSeriesGraph(x_axis_parameter=None, hide_graph=None, series=None, _is_owner=True)
A type to contain a collection ofDiscreteSeries objects that
contain the functional data.
- Parameters:
- x_axis_parameter (
ParameterInformation) - hide_graph (bool)
- series (list of
DiscreteSeries)
- x_axis_parameter (
add_series(_discreteSeries)
Appends _discreteSeries to series property on DiscreteFunctionalSeriesGraph C-object.- Parameters:
_discreteSeries (
DiscreteSeries)
property hide_graph : bool
Property hide_graph is of type bool.- Return type: bool
property series : list[DiscreteSeries]
Property series is a list ofDiscreteSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteSeries
property x_axis_parameter : ParameterInformation
Property x_axis_parameter is of typeParameterInformation.
- Return type:
ParameterInformation
DiscreteFunctionalValue
class DiscreteFunctionalValue(constraints=None, value=None, is_estimated=None, _is_owner=True)
Bases:object
A single grid point in Gridded Discrete-Valued Functional Data, where the Y-axis value is a discrete
value.
- Parameters:
- constraints (
Constraints) - value (str)
- is_estimated (bool)
- constraints (
property constraints : Constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
DiscreteFunctionalValues
class DiscreteFunctionalValues(values=None, _is_owner=True)
Bases:object
A collection of DiscreteFunctionalValue objects.
- Parameters:
values (list of
DiscreteFunctionalValue)
add_value(_discreteFunctionalValue)
Appends _discreteFunctionalValue to values property on DiscreteFunctionalValues C-object.- Parameters:
_discreteFunctionalValue (
DiscreteFunctionalValue)
property values : list[DiscreteFunctionalValue]
Property values is a list ofDiscreteFunctionalValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DiscreteFunctionalValue
DiscreteSeries
class DiscreteSeries(xy_points=None, constraints=None, _is_owner=True)
Bases:object
Type for functional data which includes X-Y discrete data and any constraints.
- Parameters:
- xy_points (
XYDiscreteData) - constraints (
Constraints)
- xy_points (
property constraints : Constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property xy_points : XYDiscreteData
Property xy_points is of typeXYDiscreteData.
- Return type:
XYDiscreteData
DiscreteValue
class DiscreteValue(order=None, value=None, _is_owner=True)
Bases:object
The value of a discrete data type.
Contains an order and a value.
property order : int
Property order is of type int.- Return type: int
property value : str
Property value is of type str.- Return type: str
DisplayName
class DisplayName(language=None, translation=None, _is_owner=True)
Bases:object
A language identifier and localized string for the display name of an object.
property language : str
Property language is of type str.- Return type: str
property translation : str
Property translation is of type str.- Return type: str
DoesNotContainSearchValue
class DoesNotContainSearchValue(tabular_column=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for discrete data types that contain none of the specified search values.
This criterion type is specific to discrete attributes.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property value : str
Property value is of type str.- Return type: str
DoesNotExistSearchValue
class DoesNotExistSearchValue(tabular_column=None, _is_owner=True)
Bases:object
Search criterion to search for attributes with no data.
All attribute types supported.
- Parameters: tabular_column (str)
property tabular_column : str
Property tabular_column is of type str.- Return type: str
EmptyDataType
class EmptyDataType(_is_owner=True)
Bases:IDataValue
A type that indicates that the TabularDataCell is empty.
This type is specific to Tabular attributes, and can be used in update operations to clear the
contents of a TabularDataCell.
EmptyRestResponse
class EmptyRestResponse(c_obj)
Bases:Response
A response from a REST service that contains no data.
This type contains only a ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a EmptyRestResponse object.
EngineeringDataService
class EngineeringDataService(mi_session, retries=0)
Bases:Service
The EngineeringData service provides custom data export operations for a Granta MI Server.
export_record_data(_req)
Performs an FEA Export and returns the result as the response.- Parameters:
_req (
ExportRecordDataRequestobject) - Return type:
ExportRecordDataResponseobject
exporters_for_records(_req)
Returns the FEA Exporter configurations, known to the MI Server, filtering for their applicability to given Record(s) and optionally to particular situations.- Parameters:
_req (
ExportersForRecordsRequestobject) - Return type:
ExportersForRecordsResponseobject
get_available_exporters(_req)
Returns the FEA Exporter configurations known to the MI Server, optionally filtering for their applicability to particular situations.- Parameters:
_req (
GetAvailableExportersRequestobject) - Return type:
GetAvailableExportersResponseobject
get_exporter_parameters(_req)
Returns information about the MI Parameter Values that will need to be chosen, to run the specified Exporter on the specified Record(s).- Parameters:
_req (
GetExporterParametersRequestobject) - Return type:
GetExporterParametersResponseobject
EnsureRecordFolderPathsRequest
class EnsureRecordFolderPathsRequest(folder_paths=None, import_error_mode=None, notes=None, _is_owner=True)
Bases:object
Input for the EnsureRecordFolderPaths operation, containing the folder paths to check and the import
error mode.
- Parameters:
- folder_paths (list of
RecordFolderPath) - import_error_mode (str)
- notes (str)
- folder_paths (list of
add_folder_path(_recordFolderPath)
Appends _recordFolderPath to folderPaths property on EnsureRecordFolderPathsRequest C-object.- Parameters:
_recordFolderPath (
RecordFolderPath)
property folder_paths : list[RecordFolderPath]
Property folder_paths is a list ofRecordFolderPath objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordFolderPath
property import_error_mode : str
Property import_error_mode is of type str.- Return type: str
property notes : str
Property notes is of type str.- Return type: str
EnsureRecordFolderPathsResponse
class EnsureRecordFolderPathsResponse(c_obj)
Bases:Response
Output of the EnsureRecordFolderPaths operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a EnsureRecordFolderPathsResponse object.
property path_leaves : list[PathLeaf]
Property path_leaves is a list ofPathLeaf objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PathLeaf
EqualToSearchValue
class EqualToSearchValue(tabular_column=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for short text values that exactly match the specified search value.
Applies to short text attributes only.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property value : str
Property value is of type str.- Return type: str
ExactlySearchValue
class ExactlySearchValue(tabular_column=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for integer values that exactly match the specified search value.
Applies to integer attributes only.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property value : int
Property value is of type int.- Return type: int
ExistsSearchValue
class ExistsSearchValue(tabular_column=None, _is_owner=True)
Bases:object
Search criterion to search for attributes that contain data.
All attribute types supported.
- Parameters: tabular_column (str)
property tabular_column : str
Property tabular_column is of type str.- Return type: str
ExportRecordDataRequest
class ExportRecordDataRequest(attribute_references=None, exporter_key=None, filter=None, parameter_values=None, records=None, sig_figs=None, stop_before_id=None, stop_before_index=None, unit_conversion_context=None, _is_owner=True)
Bases:object
Input for the ExportRecordData operation. For this request to be valid, you must set the references
and the exporter key. The argument stop_before_index is 0-indexed.
- Parameters:
- attribute_references (list of
AttributeReference) - exporter_key (str)
- filter (
RecordFilter) - parameter_values (list of
UnittedParameterValue) - records (list of
RecordReference) - sig_figs (int)
- stop_before_id (str)
- stop_before_index (int)
- unit_conversion_context (
UnitConversionContext)
- attribute_references (list of
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on ExportRecordDataRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
add_parameter_values(_unittedParameterValue)
Appends _unittedParameterValue to parameterValues property on ExportRecordDataRequest C-object.- Parameters:
_unittedParameterValue (
UnittedParameterValue)
add_record(_recordReference)
Appends _recordReference to records property on ExportRecordDataRequest C-object.- Parameters:
_recordReference (
RecordReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects. If this property is not specified, the attributes from the exporter configuration are used. If this element is included and non-empty, the attributes specified are used.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property exporter_key : str
Property exporter_key is of type str.- Return type: str
property filter : RecordFilter
Property filter is of typeRecordFilter. If specified, this filters the records that can be included when traversing record links within Tabular Data. This filter is NOT applied to the explicit list of records passed to this operation.
- Return type:
RecordFilter
property parameter_values : list[UnittedParameterValue]
Property parameter_values is a list ofUnittedParameterValue objects. Parameter values to use for any parameterised Data in the export. Each Parameter can only have one value for all parameterised Attributes in an export. Note that the true Parameter names (or Standard Names) in the MI Database must be used; aliases defined in the exporter configuration will not be understood.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnittedParameterValue
property records : list[RecordReference]
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property sig_figs : int
Property sig_figs is of type int.- Return type: int
property stop_before_id : str
Property stop_before_id is of type str. Stops the export process before the step specified by the identifier (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.- Return type: str
property stop_before_index : int
Property stop_before_index is of type int. Stops the export process before the step specified by the index (for example, after the initial XML is generated but before conversion into the specified CAE format). Contact your MI Administrator if you require this feature.- Return type: int
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
ExportRecordDataResponse
class ExportRecordDataResponse(c_obj)
Bases:Response
Output for the ExportRecordData operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportRecordDataResponse object.
property text : str
Property text is of type str.- Return type: str
ExportedAttribute
class ExportedAttribute(db_key=None, attribute_id=None, is_standard_name=None, name=None, partial_table_reference=None, preferred_x_axis_parameter=None, pseudo_attribute=None, specific_unit_conversion_context=None, _is_owner=True)
Bases:object
A type that allows identification of a particular attribute in a Granta MI, and also specifies how
that Attribute should be exported.
- Parameters:
- db_key (str)
- attribute_id (int)
- is_standard_name (bool)
- name (str)
- partial_table_reference (
PartialTableReference) - preferred_x_axis_parameter (
ParameterReference) - pseudo_attribute (int)
- specific_unit_conversion_context (
SpecificUnitConversionContext)
property attribute_id : int
Property attribute_id is of type int.- Return type: int
property db_key : str
Property db_key is of type str.- Return type: str
property is_standard_name : bool
Property is_standard_name is of type bool.- Return type: bool
property name : str
Property name is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference.
- Return type:
PartialTableReference
property preferred_x_axis_parameter : ParameterReference
Property preferred_x_axis_parameter is of typeParameterReference.
- Return type:
ParameterReference
property pseudo_attribute : int
Property pseudo_attribute is of type int.- Return type: int
property specific_unit_conversion_context : SpecificUnitConversionContext
Property specific_unit_conversion_context is of typeSpecificUnitConversionContext.
- Return type:
SpecificUnitConversionContext
Exporter
class Exporter(absolute_units_optional=None, description=None, key=None, model=None, name=None, output_file=None, package=None, transforms=None, unit_systems=None, use_absolute_units=None, validated_ok=None, version=None, _is_owner=True)
Bases:object
Details of a particular FEA Exporter configuration, typically obtained from an Exporter
Configuration File (EXP file) on the MI Server.
- Parameters:
property absolute_units_optional : bool
Property absolute_units_optional is of type bool.- Return type: bool
property description : str
Property description is of type str.- Return type: str
property key : str
Property key is of type str. The key that uniquely identifies this Exporter. This value is generated by the MI Server at runtime and may change between runs.- Return type: str
property model : str
Property model is of type str.- Return type: str
property name : str
Property name is of type str.- Return type: str
property output_file : ExporterOutputFile
Property output_file is of typeExporterOutputFile.
- Return type:
ExporterOutputFile
property package : str
Property package is of type str.- Return type: str
property transforms : list[ExporterTransform]
Property transforms is a list ofExporterTransform objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterTransform
property unit_systems : list[str]
Property unit_systems is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property use_absolute_units : bool
Property use_absolute_units is of type bool.- Return type: bool
property validated_ok : bool
Property validated_ok is of type bool.- Return type: bool
property version : int
Property version is of type int.- Return type: int
ExporterOutputFile
class ExporterOutputFile(convention=None, custom_file_name=None, encoding=None, extension=None, folder=None, include_bom=None, _is_owner=True)
Bases:object
Specifies how an output file should be named. All values have the same meaning as in the
Exporter configuration schema. It is up to the client to
adhere (or not) to this.
- Parameters:
class ExporterFileNameConvention
Bases:object
Custom = 4
Default = 0
RecordName = 3
TableName = 2
TreeName = 1
property convention : int
Property convention is of type int. SeeExporterOutputFile.ExporterFileNameConvention for supported values.
- Return type: int
property custom_file_name : str
Property custom_file_name is of type str.- Return type: str
property encoding : str
Property encoding is of type str.- Return type: str
property extension : str
Property extension is of type str.- Return type: str
property folder : str
Property folder is of type str.- Return type: str
property include_bom : bool
Property include_bom is of type bool.- Return type: bool
ExporterParameter
class ExporterParameter(id_=None, name=None, parameter_reference=None, unit=None, usage=None, _is_owner=True)
Bases:object
Information about a Parameter of Functional Data.
- Parameters:
- id (str)
- name (str)
- parameter_reference (
ParameterReference) - unit (
UnitInformation) - usage (int)
class Usage
Bases:object
Unknown = 0
fixed = 2
free = 1
unused = 3
property id_ : str
Property id_ is of type str.- Return type: str
property name : str
Property name is of type str.- Return type: str
property parameter_reference : ParameterReference
Property parameter_reference is of typeParameterReference.
- Return type:
ParameterReference
property unit : UnitInformation
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
property usage : int
Property usage is of type int. SeeExporterParameter.Usage for supported values.
- Return type: int
ExporterPopulation
class ExporterPopulation(description=None, key=None, model=None, name=None, package=None, population_state=None, transforms=None, validated_ok=None, version=None, _is_owner=True)
Bases:object
Details of a particular FEA Exporter configuration, typically
obtained from an Exporter Configuration File (EXP file) on
the MI Server.
- Parameters:
class PopulationState
Bases:object
FullyPopulated = 1
PartiallyPopulated = 2
Unknown = 0
property description : str
Property description is of type str.- Return type: str
property key : str
Property key is of type str.- Return type: str
property model : str
Property model is of type str.- Return type: str
property name : str
Property name is of type str.- Return type: str
property package : str
Property package is of type str.- Return type: str
property population_state : int
Property population_state is of type int. SeeExporterPopulation.PopulationState for supported values.
- Return type: int
property transforms : list[ExporterTransform]
Property transforms is a list ofExporterTransform objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterTransform
property validated_ok : bool
Property validated_ok is of type bool.- Return type: bool
property version : int
Property version is of type int.- Return type: int
ExporterTransform
class ExporterTransform(id_=None, type_=None, _is_owner=True)
Bases:object
Contains a type and an ID for an Exporter Transform.
class Type
Bases:object
Unknown = 0
XSLT = 1
property id_ : str
Property id_ is of type str.- Return type: str
property type_ : int
Property type_ is of type int. SeeExporterTransform.Type for supported values.
- Return type: int
ExportersForRecord
class ExportersForRecord(exporters=None, record=None, _is_owner=True)
Bases:object
A type to contain a record and its associated exporters.
- Parameters:
- exporters (list of
ExporterPopulation) - record (
RecordReference)
- exporters (list of
property exporters : list[ExporterPopulation]
Property exporters is a list ofExporterPopulation objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExporterPopulation
property record : RecordReference
Property record is of typeRecordReference.
- Return type:
RecordReference
ExportersForRecordsRequest
class ExportersForRecordsRequest(applicability_tag=None, model=None, package=None, package_and_model_required=None, records=None, specific_attribute_exporters_only=None, version_policy=None, _is_owner=True)
Bases:object
Input for the ExportersForRecords operation.
- Parameters:
add_record(_recordReference)
Appends _recordReference to records property on ExportersForRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property applicability_tag : str
Property applicability_tag is of type str.- Return type: str
property model : str
Property model is of type str.- Return type: str
property package : str
Property package is of type str.- Return type: str
property package_and_model_required : bool
Property package_and_model_required is of type bool.- Return type: bool
property records : list[RecordReference]
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property specific_attribute_exporters_only : bool
Property specific_attribute_exporters_only is of type bool.- Return type: bool
property version_policy : int
Property version_policy is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
ExportersForRecordsResponse
class ExportersForRecordsResponse(c_obj)
Bases:Response
Output from the ExportersForRecords operation. Contains a list of records and supported exporters.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a ExportersForRecordsResponse object.
property records : list[ExportersForRecord]
Property records is a list ofExportersForRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExportersForRecord
FileDataType
class FileDataType(url=None, content_type=None, data=None, description=None, file_name=None, is_applicable=None, _is_owner=True)
Bases:IDataValue
A type representing a piece of File data in a Granta MI database.
The URL can be used to data export a file from a Granta MI database. For importing a file into a
Granta MI database, the values of ‘file_name’, file ‘content_type’ and file ‘data’ must be
specified, where ‘file_name’ is the name you want the file to appear as in Granta MI, the
‘content_type’ data is the MIME content type of the binary data, and ‘data’ is the contents of the
file you wish to import to Granta MI.
- Parameters:
modify_binary_data(binary_data)
Modify the byte string data of the file.- Parameters: binary_data (bytes)
read_binary_data()
Return a byte string representation of this file.- Return type: bytes
property content_type : str
Property content_type is of type str.- Return type: str
property data : str
Property data is of type str.- Return type: str
property description : str
Property description is of type str.- Return type: str
property file_name : str
Property file_name is of type str.- Return type: str
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property url : str
Property url is of type str.- Return type: str
FloatFunctionalGraph
class FloatFunctionalGraph(hide_graph=None, logarithmic_y_axis=None, series=None, _is_owner=True)
Bases:object
A type to contain a collection of Series objects that contain
the functional data.
add_series(_series)
Appends _series to series property on FloatFunctionalGraph C-object.- Parameters:
_series (
Series)
property hide_graph : bool
Property hide_graph is of type bool.- Return type: bool
property logarithmic_y_axis : bool
Property logarithmic_y_axis is of type bool.- Return type: bool
property series : list[Series]
Property series is a list ofSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Series
FloatFunctionalGriddedDataType
class FloatFunctionalGriddedDataType(decoration=None, default_x_axis_parameter=None, is_applicable=None, unit_information=None, values=None, functional_data_parameter_settings=None, _is_owner=True)
Bases:IDataValue
A type to contain the values of float-valued functional gridded data.
For requests, Values and Parameters are required.
- Parameters:
- decoration (int)
- default_x_axis_parameter (
ParameterInformation) - is_applicable (bool)
- unit_information (
UnitInformation) - values (
FloatFunctionalValues) - functional_data_parameter_settings (list of
FunctionalDataParameterSettings)
add_functional_data_parameter_settings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalGriddedDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property decoration : int
Property decoration is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property default_x_axis_parameter : ParameterInformation
Property default_x_axis_parameter is of typeParameterInformation.
- Return type:
ParameterInformation
property functional_data_parameter_settings : list[FunctionalDataParameterSettings]
Property functional_data_parameter_settings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property unit_information : UnitInformation
Property unit_information is of typeUnitInformation.
- Return type:
UnitInformation
property values : FloatFunctionalValues
Property values is of typeFloatFunctionalValues.
- Return type:
FloatFunctionalValues
FloatFunctionalPointValue
class FloatFunctionalPointValue(constraints=None, value=None, is_estimated=None, _is_owner=True)
Bases:object
A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a point.
- Parameters:
- constraints (
Constraints) - value (float)
- is_estimated (bool)
- constraints (
property constraints : Constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property value : float
Property value is of type float.- Return type: float
FloatFunctionalRangeValue
class FloatFunctionalRangeValue(constraints=None, high_value=None, low_value=None, is_estimated=None, _is_owner=True)
Bases:object
A single grid point in Gridded Float-Valued Functional Data, where the Y-axis value is a range.
- Parameters:
- constraints (
Constraints) - high_value (float)
- low_value (float)
- is_estimated (bool)
- constraints (
property constraints : Constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property high_value : float
Property high_value is of type float.- Return type: float
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property low_value : float
Property low_value is of type float.- Return type: float
FloatFunctionalSeriesDataType
class FloatFunctionalSeriesDataType(graph=None, is_applicable=None, unit_information=None, functional_data_parameter_settings=None, _is_owner=True)
Bases:IDataValue
A type to contain the values of float-valued functional series data.
For requests Graph, and Parameters are required.
- Parameters:
- graph (
FloatFunctionalSeriesGraph) - is_applicable (bool)
- unit_information (
UnitInformation) - functional_data_parameter_settings (list of
FunctionalDataParameterSettings)
- graph (
add_functional_data_parameter_settings(_functionalDataParameterSettings)
Appends _functionalDataParameterSettings to functionalDataParameterSettings property on FloatFunctionalSeriesDataType C-object.- Parameters:
_functionalDataParameterSettings (
FunctionalDataParameterSettings)
property functional_data_parameter_settings : list[FunctionalDataParameterSettings]
Property functional_data_parameter_settings is a list ofFunctionalDataParameterSettings objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FunctionalDataParameterSettings
property graph : FloatFunctionalSeriesGraph
Property graph is of typeFloatFunctionalSeriesGraph.
- Return type:
FloatFunctionalSeriesGraph
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property unit_information : UnitInformation
Property unit_information is of typeUnitInformation.
- Return type:
UnitInformation
FloatFunctionalSeriesGraph
class FloatFunctionalSeriesGraph(x_axis_parameter=None, hide_graph=None, logarithmic_y_axis=None, series=None, _is_owner=True)
Bases:object
A type a collection of Series objects that contain the data
functional data and parameter information for the graph x-axis.
For requests an x_axis_parameter is required.
- Parameters:
- x_axis_parameter (
ParameterInformation) - hide_graph (bool)
- logarithmic_y_axis (bool)
- series (list of
Series)
- x_axis_parameter (
add_series(_series)
Appends _series to series property on FloatFunctionalSeriesGraph C-object.- Parameters:
_series (
Series)
property hide_graph : bool
Property hide_graph is of type bool.- Return type: bool
property logarithmic_y_axis : bool
Property logarithmic_y_axis is of type bool.- Return type: bool
property series : list[Series]
Property series is a list ofSeries objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Series
property x_axis_parameter : ParameterInformation
Property x_axis_parameter is of typeParameterInformation.
- Return type:
ParameterInformation
FloatFunctionalValues
class FloatFunctionalValues(point_values=None, range_values=None, value_type=None, _is_owner=True)
Bases:object
A collection of FloatFunctionalPointValue and
FloatFunctionalRangeValue objects.
- Parameters:
- point_values (list of
FloatFunctionalPointValue) - range_values (list of
FloatFunctionalRangeValue) - value_type (str)
- point_values (list of
add_point_value(_floatFunctionalPointValue)
Appends _floatFunctionalPointValue to pointValues property on FloatFunctionalValues C-object.- Parameters:
_floatFunctionalPointValue (
FloatFunctionalPointValue)
add_range_value(_floatFunctionalRangeValue)
Appends _floatFunctionalRangeValue to rangeValues property on FloatFunctionalValues C-object.- Parameters:
_floatFunctionalRangeValue (
FloatFunctionalRangeValue)
property point_values : list[FloatFunctionalPointValue]
Property point_values is a list ofFloatFunctionalPointValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FloatFunctionalPointValue
property range_values : list[FloatFunctionalRangeValue]
Property range_values is a list ofFloatFunctionalRangeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
FloatFunctionalRangeValue
property value_type : str
Property value_type is of type str.- Return type: str
FunctionalDataParameterSettings
class FunctionalDataParameterSettings(datum_default_value=None, datum_interpolation_method=None, datum_scale_type=None, effective_default_value=None, effective_default_value_defined_at=None, effective_interpolation_method=None, effective_interpolation_method_defined_at=None, effective_scale_type=None, effective_scale_type_defined_at=None, has_datum_default_value=None, has_datum_interpolation_method=None, has_datum_scale_type=None, has_effective_default_value=None, parameter=None, _is_owner=True)
Bases:object
Information about the use of a parameter for a given Functional Data Attribute.
- Parameters:
- datum_default_value (
DefaultParameterValue) - datum_interpolation_method (int)
- datum_scale_type (int)
- effective_default_value (
DefaultParameterValue) - effective_default_value_defined_at (int)
- effective_interpolation_method (int)
- effective_interpolation_method_defined_at (int)
- effective_scale_type (int)
- effective_scale_type_defined_at (int)
- has_datum_default_value (bool)
- has_datum_interpolation_method (bool)
- has_datum_scale_type (bool)
- has_effective_default_value (bool)
- parameter (
ParameterInformation)
- datum_default_value (
class DefinedAt
Bases:object
Attribute = 1
Datum = 2
Parameter = 0
property datum_default_value : DefaultParameterValue
Property datum_default_value is of typeDefaultParameterValue.
- Return type:
DefaultParameterValue
property datum_interpolation_method : int
Property datum_interpolation_method is of type int.- Return type: int
property datum_scale_type : int
Property datum_scale_type is of type int.- Return type: int
property effective_default_value : DefaultParameterValue
Property effective_default_value is of typeDefaultParameterValue.
- Return type:
DefaultParameterValue
property effective_default_value_defined_at : int
Property effective_default_value_defined_at is of type int.- Return type: int
property effective_interpolation_method : int
Property effective_interpolation_method is of type int.- Return type: int
property effective_interpolation_method_defined_at : int
Property effective_interpolation_method_defined_at is of type int.- Return type: int
property effective_scale_type : int
Property effective_scale_type is of type int.- Return type: int
property effective_scale_type_defined_at : int
Property effective_scale_type_defined_at is of type int.- Return type: int
property has_datum_default_value : bool
Property has_datum_default_value is of type bool.- Return type: bool
property has_datum_interpolation_method : bool
Property has_datum_interpolation_method is of type bool.- Return type: bool
property has_datum_scale_type : bool
Property has_datum_scale_type is of type bool.- Return type: bool
property has_effective_default_value : bool
Property has_effective_default_value is of type bool.- Return type: bool
property parameter : ParameterInformation
Property parameter is of typeParameterInformation.
- Return type:
ParameterInformation
FunctionalDataSettings
class FunctionalDataSettings(convert_grid_to_series=None, max_series=None, _is_owner=True)
Bases:object
Settings affecting the export of Functional Data.
If convert_grid_to_series is true, gridded Functional Data will be converted to series data,
allowing you to avoid the need to deal with the gridded data format.
property convert_grid_to_series : bool
Property convert_grid_to_series is of type bool.- Return type: bool
property max_series : int
Property max_series is of type int.- Return type: int
GRANTA_Constants
class BinaryDataRepresentation
Bases:object
Inline = 0
URL = 1
class GraphDecoration
Bases:object
Lines = 0
LinesAndMarkers = 2
Markers = 1
class ImportErrorMode
Bases:object
Continue = ‘LogAndContinueWherePossible’
Fault = ‘FaultAndRollbackOnAnyError’
class ImportTypes
Bases:object
Copy = ‘Copy’
Create = ‘Create’
Update = ‘Update’
class MinMaxType
Bases:object
MMApproximate = 1
MMNone = 0
MMTrue = 2
class ParameterTypes
Bases:object
Discrete = ‘Discrete’
Numeric = ‘Numeric’
class RecordLinkCheckMode
Bases:object
Forward = ‘CheckOnlyForwardLinks’
ForwardAndReverse = ‘CheckForwardAndReverseLinks’
class RecordLinkGroupTypes
Bases:object
CrossDatabase = ‘crossDatabase’
Dynamic = ‘dynamic’
Static = ‘static’
class SearchMode
Bases:object
Normal = 0
ReadOnly = 1
Unspecified = 2
class TablesFilter
Bases:object
CoatingsTablesOnly = 9
ElementsTablesOnly = 13
EndOfLifeOptionsTablesOnly = 7
EnergyConversionOptionsTablesOnly = 8
InHouseTablesOnly = 11
LegislationsTablesOnly = 4
MaterialsTablesOnly = 1
MobileUseTypesTablesOnly = 18
NoFilter = 0
PartsTablesOnly = 10
ProcessesTablesOnly = 2
ProducersTablesOnly = 15
ReferenceTablesOnly = 17
RegionsTablesOnly = 6
SequenceSpecificationsTablesOnly = 12
ShapeTablesOnly = 16
SubstancesTablesOnly = 3
TransportTypesTablesOnly = 5
UniverseTablesOnly = 14
class TabularSummaryColumnRollupType
Bases:object
Chart = 10
CoefficientOfVariation = 9
Count = 6
CountDistinct = 7
List = 0
ListDistinct = 8
Max = 1
Mean = 3
Min = 2
StandardDeviation = 4
Sum = 5
class UpdateSubsetsMode
Bases:object
Append = 1
Replace = 2
class VersionPolicy
Bases:object
IncludeAll = 1
LatestVersionPerName = 2
NoPolicy = 0
GRANTA_Exceptions
exception GRANTA_Exception(expr, msg)
Bases:Exception
Exception raised when there are errors in input.
- Parameters:
exception GRANTA_ServiceLayerError(sl_response, operation)
Bases:Exception
Exception raised when the Granta MI Service Layer returns an error.
- Parameters:
- sl_response (
ServiceLayerResponse) – Request data causing this error - operation (str) – Name of the operation from which this exception originated
- sl_response (
property data : ServiceLayerResponse
The raw ServiceLayerResponse object.- Return type:
ServiceLayerResponse
property message : str
Error message received from the Service Layer if an error occurred while processing the request, or the HTTP status message corresponding to the status code received.- Return type: str
property operation : str
The Operation invoked by this Service Layer message.- Return type: str
property request_xml : str
Content of the XML request for this Service Layer message.- Return type: str
property response_code : int
HTTP Status code received from the Service Layer.- Return type: int
property response_xml : str
Content of the XML response for this Service Layer message.- Return type: str
GRANTA_Logging
class GRANTA_Logging
Bases:object
Implements some basic logging functionality. Tracked events are printed to the console.
: For comprehensive logging capabilities, use the Python ‘logging’ module.
property core_logger : Logger
property http_logger : Logger
propagate : bool = True
GRANTA_MISession
class GRANTA_MISession(url, username=None, password=None, domain=None, verbosity=‘ERROR’, auto_logon=False, receive_timeout=300000, authorization=None, retries=0)
Bases:object
The base object for the GRANTA_MIScripting toolkit. This creates a connection to a
Granta MI Server via a Granta MI Service Layer.
Parameters username, password, domain, and auto_logon are optional - use either set_credentials or
use_auto_logon to specify the desired authentication method if these are omitted.
- Parameters:
- url (str) – URL of your Granta MI Service Layer installation
- username (
str, optional) – Your Granta MI username (for Basic authentication) - password (
str, optional) – Your Granta MI password (for Basic authentication) - domain (
str, optional) – Your Granta MI user domain (for Basic authentication) - verbosity (
str, {‘ERROR’, ‘WARNING’, ‘DEBUG’}) – Logging verbosity - auto_logon (
bool, default: False) – If set to True, this object will authenticate as the current Windows user - receive_timeout (int) – Time in milliseconds to wait for a response before timing out
- authorization (
OIDCobject) – Authorization plugin (for OpenID Connect authentication) - retries (
int, default: 0) – The number of times to retry failing requests
NOTE
If MI Scripting Toolkit has been installed on the same server machine as Granta MI, then the Granta MI server name must be specified in full in the url parameter. If you use ‘localhost’ or a loopback address, MI Scripting Toolkit will be unable to use the specified user account to connect to Granta MI.test_connection()
Raises a GRANTA_Exception if connection cannot be made For example if bad credentials are provided, or Granta MI Service Layer is unreachableproperty browse_service : BrowseService
Service providing schema browse operations.- Return type:
BrowseService
property data_export_service : DataExportService
Service providing data export operations.- Return type:
DataExportService
property data_import_service : DataImportService
Service providing data import operations.- Return type:
DataImportService
property engineering_data_service : EngineeringDataService
Service providing export operations for Finite Element Analysis material cards.- Return type:
EngineeringDataService
property record_manipulator_service : RecordManipulatorService
Service providing additional operations for record manipulation.- Return type:
RecordManipulatorService
property search_service : SearchService
Service providing record search operations.- Return type:
SearchService
GetAssociatedRecordsRequest
class GetAssociatedRecordsRequest(attribute_references=None, link_direction=None, populate_guids=None, record_filter=None, record_references=None, table_reference=None, _is_owner=True)
Bases:object
Input for the get_associated_records operation.
- Parameters:
- attribute_references (list of
AttributeReference) - link_direction (int)
- populate_guids (bool)
- record_filter (
RecordFilter) - record_references (list of
RecordReference) - table_reference (
TableReference)
- attribute_references (list of
class AssociationLinkDirection
Bases:object
Both = 0
Forward = 1
NONE = -1
Reverse = 2
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAssociatedRecordsRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetAssociatedRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property link_direction : int
Property link_direction is of type int.- Return type: int
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property table_reference : TableReference
Property table_reference is of typeTableReference.
- Return type:
TableReference
GetAssociatedRecordsResponse
class GetAssociatedRecordsResponse(c_obj)
Bases:Response
Output from the GetAssociatedRecords operation.
An array of AssociatedRecords objects.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAssociatedRecordsResponse object.
add_associated_records(_associatedRecords)
Appends _associatedRecords to associatedRecords property on GetAssociatedRecordsResponse C-object.- Parameters:
_associatedRecords (
AssociatedRecords)
property associated_records : list[AssociatedRecords]
Property associated_records is a list ofAssociatedRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AssociatedRecords
GetAttributeDetailsRequest
class GetAttributeDetailsRequest(attribute_references=None, min_max_calculation=None, _is_owner=True)
Bases:object
Input for the get_attribute_details operation.
For requests at least one AttributeReference is required.
- Parameters:
- attribute_references (list of
AttributeReference) - min_max_calculation (int)
- attribute_references (list of
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAttributeDetailsRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property min_max_calculation : int
Property min_max_calculation is of type int.- Return type: int
GetAttributeDetailsResponse
class GetAttributeDetailsResponse(c_obj)
Bases:Response
Output from the get_attribute_details operation.
Includes an array of AttributeDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeDetailsResponse object.
add_attribute_details(_attributeDetail)
Appends _attributeDetail to attributeDetails property on GetAttributeDetailsResponse C-object.- Parameters:
_attributeDetail (
AttributeDetail)
property attribute_details : list[AttributeDetail]
Property attribute_details is a list ofAttributeDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeDetail
GetAttributeParametersRequest
class GetAttributeParametersRequest(attribute_references=None, _is_owner=True)
Bases:object
Input for the get_attribute_parameters operation.
For requests, at least one AttributeReference is required.
- Parameters:
attribute_references (list of
AttributeReference)
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetAttributeParametersRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
GetAttributeParametersResponse
class GetAttributeParametersResponse(c_obj)
Bases:Response
Output from the get_attribute_parameters operation.
Includes an array of ParameterDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAttributeParametersResponse object.
property attribute_parameters : list[ParameterDetail]
Property attribute_parameters is a list ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
GetAvailableExportersRequest
class GetAvailableExportersRequest(db_key=None, applicability_tag=None, match_db=None, model=None, package=None, partial_table_reference=None, version_policy=None, _is_owner=True)
Bases:object
Input for the get_available_exporters operation.
- Parameters:
property applicability_tag : str
Property applicability_tag is of type str.- Return type: str
property db_key : str
Property db_key is of type str.- Return type: str
property match_db : bool
Property match_db is of type bool. If true, we check that the exporter config Table element is in a Database element for the right db_key.- Return type: bool
property model : str
Property model is of type str.- Return type: str
property package : str
Property package is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference.
- Return type:
PartialTableReference
property version_policy : int
Property version_policy is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
GetAvailableExportersResponse
class GetAvailableExportersResponse(c_obj)
Bases:Response
Output from the get_available_exporters operation. Contains a list of exporters.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetAvailableExportersResponse object.
property exporters : list[Exporter]
Property exporters is a list ofExporter objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
Exporter
GetChildNodes
class GetChildNodes(exclude_withdrawn=None, parent=None, populate_guids=None, record_filter=None, recurse=None, recurse_max_depth=None, _is_owner=True)
Bases:object
Input for the get_child_nodes operation.
A RecordReference for the record you wish to find the children
of is required.
- Parameters:
- exclude_withdrawn (bool)
- parent (
RecordReference) - populate_guids (bool)
- record_filter (
RecordFilter) - recurse (bool)
- recurse_max_depth (int)
property exclude_withdrawn : bool
Property exclude_withdrawn is of type bool.- Return type: bool
property parent : RecordReference
Property parent is of typeRecordReference.
- Return type:
RecordReference
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property recurse : bool
Property recurse is of type bool.- Return type: bool
property recurse_max_depth : int
Property recurse_max_depth is of type int.- Return type: int
GetChildNodesResponse
class GetChildNodesResponse(c_obj)
Bases:Response
Response for the get_child_nodes operation.
Includes an array of TreeRecord objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetChildNodesResponse object.
add_tree_record(_treeRecord)
Appends _treeRecord to treeRecords property on GetChildNodesResponse C-object.- Parameters:
_treeRecord (
TreeRecord)
property tree_records : list[TreeRecord]
Property tree_records is a list ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
GetCurrenciesResponse
class GetCurrenciesResponse(c_obj)
Bases:Response
Response for the get_currencies operation.
Includes an array of CurrencyDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetCurrenciesResponse object.
property currencies : list[CurrencyDetail]
Property currencies is a list ofCurrencyDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
CurrencyDetail
GetDatabaseParameters
class GetDatabaseParameters(db_key=None, require_standard_names=None, use_standard_names_where_possible=None, _is_owner=True)
Bases:object
Input for the get_database_parameters operation.
Requires a db_key to be set. The parameters require_standard_names and
use_standard_names_where_possible both default to false.
property db_key : str
Property db_key is of type str.- Return type: str
property require_standard_names : bool
Property require_standard_names is of type bool.- Return type: bool
property use_standard_names_where_possible : bool
Property use_standard_names_where_possible is of type bool.- Return type: bool
GetDatabaseParametersResponse
class GetDatabaseParametersResponse(c_obj)
Bases:Response
Output from the get_database_parameters operation.
Includes an array of ParameterDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabaseParametersResponse object.
add_parameter_detail(_parameterDetail)
Appends _parameterDetail to parameterDetails property on GetDatabaseParametersResponse C-object.- Parameters:
_parameterDetail (
ParameterDetail)
property parameter_details : list[ParameterDetail]
Property parameter_details is a list ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
GetDatabasesResponse
class GetDatabasesResponse(c_obj)
Bases:Response
Output from the get_databases operation.
Includes an array of DatabaseDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatabasesResponse object.
add_database(_databaseDetail)
Appends _databaseDetail to databases property on GetDatabasesResponse C-object.- Parameters:
_databaseDetail (
DatabaseDetail)
property databases : list[DatabaseDetail]
Property databases is a list ofDatabaseDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatabaseDetail
GetDatasheetPath
class GetDatasheetPath(datasheet_type=None, record_references=None, unit_conversion_context=None, _is_owner=True)
Bases:object
Input for the get_datasheet_path operation.
Requires at least one RecordReference to be provided. The
parameters unit_conversion_context and datasheet_type are optional. datasheet_type defaults to
‘Datasheet’.
- Parameters:
- datasheet_type (int)
- record_references (list of
RecordReference) - unit_conversion_context (
UnitConversionContext)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetDatasheetPath C-object.- Parameters:
_recordReference (
RecordReference)
property datasheet_type : int
Property datasheet_type is of type int.- Return type: int
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
GetDatasheetPathParameterized
class GetDatasheetPathParameterized(db_key=None, datasheet_type=None, unit_conversion_context=None, _is_owner=True)
Bases:object
Input for the get_datasheet_path_parameterized operation.
Requires a db_key to be set. The parameters unit_conversion_context and datasheet_type are optional.
datasheet_type defaults to ‘Datasheet’.
- Parameters:
- db_key (str)
- datasheet_type (int)
- unit_conversion_context (
UnitConversionContext)
property datasheet_type : int
Property datasheet_type is of type int.- Return type: int
property db_key : str
Property db_key is of type str.- Return type: str
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
GetDatasheetPathParameterizedResponse
class GetDatasheetPathParameterizedResponse(c_obj)
Bases:Response
Output from the get_datasheet_path_parametrized operation.
Includes an array of DatasheetPathParameterized objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathParameterizedResponse object.
property currency_query : str
Property currency_query is of type str.- Return type: str
property db_key_query : str
Property db_key_query is of type str.- Return type: str
property record_history_identity_query_name : str
Property record_history_identity_query_name is of type str.- Return type: str
property unit_system_query : str
Property unit_system_query is of type str.- Return type: str
property url : str
Property url is of type str.- Return type: str
GetDatasheetPathResponse
class GetDatasheetPathResponse(c_obj)
Bases:Response
Output from the get_datasheet_path operation.
Includes an array of DatasheetPath objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetDatasheetPathResponse object.
property datasheet_paths : list[DatasheetPath]
Property datasheet_paths is a list ofDatasheetPath objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatasheetPath
GetExporterParametersRequest
class GetExporterParametersRequest(exporter_key=None, populate_guids=None, records=None, unit_conversion_context=None, _is_owner=True)
Bases:object
Input for the get_exporter_parameters operation.
- Parameters:
- exporter_key (str)
- populate_guids (bool)
- records (list of
RecordReference) - unit_conversion_context (
UnitConversionContext)
add_record(_recordReference)
Appends _recordReference to records property on GetExporterParametersRequest C-object.- Parameters:
_recordReference (
RecordReference)
property exporter_key : str
Property exporter_key is of type str.- Return type: str
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property records : list[RecordReference]
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
GetExporterParametersResponse
class GetExporterParametersResponse(c_obj)
Bases:Response
Output from the get_exporter_parameters operation. Contains a list of records and details for
exporting their attributes.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetExporterParametersResponse object.
property records : list[RecordExporterParameters]
Property records is a list ofRecordExporterParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordExporterParameters
GetIntegrationProfiles
class GetIntegrationProfiles(databases=None, depth=None, _is_owner=True)
Bases:object
Input for the get_integration_profiles operation.
class Depth
Bases:object
Databases = 1
Profiles = 0
Tables = 2
add_database(value)
Appends value to databases property on GetIntegrationProfiles C-object.- Parameters: value (str)
property databases : list[str]
Property databases is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property depth : int
Property depth is of type int.- Return type: int
GetIntegrationProfilesResponse
class GetIntegrationProfilesResponse(c_obj)
Bases:Response
Output from get_integration_profiles operation.
Includes an array of IntegrationProfileDetail objects and a
ServiceLayerResponse.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetIntegrationProfilesResponse object.
property profile_details : list[IntegrationProfileDetail]
Property profile_details is a list ofIntegrationProfileDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
IntegrationProfileDetail
GetLayouts
class GetLayouts(applicability_tag=None, layouts=None, min_max_calculation=None, table=None, _is_owner=True)
Bases:object
Input for the get_layouts operation.
Includes a table reference or list of layouts to retrieve.
- Parameters:
- applicability_tag (str)
- layouts (list of
LayoutReference) - min_max_calculation (int)
- table (
TableReference)
add_layout(_layoutReference)
Appends _layoutReference to layouts property on GetLayouts C-object.- Parameters:
_layoutReference (
LayoutReference)
property applicability_tag : str
Property applicability_tag is of type str.- Return type: str
property layouts : list[LayoutReference]
Property layouts is a list ofLayoutReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LayoutReference
property min_max_calculation : int
Property min_max_calculation is of type int.- Return type: int
property table : TableReference
Property table is of typeTableReference.
- Return type:
TableReference
GetLayoutsResponse
class GetLayoutsResponse(c_obj)
Bases:Response
Output from the get_layouts operation.
Includes a list of layouts retrieved.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLayoutsResponse object.
add_layout_detail(_layoutDetail)
Appends _layoutDetail to layoutDetails property on GetLayoutsResponse C-object.- Parameters:
_layoutDetail (
LayoutDetail)
property layout_details : list[LayoutDetail]
Property layout_details is a list ofLayoutDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LayoutDetail
GetLinkedRecordsRequest
class GetLinkedRecordsRequest(direct_links_only=None, populate_guids=None, record_filter=None, record_link_groups=None, record_references=None, _is_owner=True)
Bases:object
Input for the get_linked_records operation.
- Parameters:
- direct_links_only (bool)
- populate_guids (bool)
- record_filter (
RecordFilter) - record_link_groups (list of
RecordLinkGroupReference) - record_references (list of
RecordReference)
add_record_link_group(_recordLinkGroupReference)
Appends _recordLinkGroupReference to recordLinkGroups property on GetLinkedRecordsRequest C-object.- Parameters:
_recordLinkGroupReference (
RecordLinkGroupReference)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetLinkedRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property direct_links_only : bool
Property direct_links_only is of type bool.- Return type: bool
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property record_link_groups : list[RecordLinkGroupReference]
Property record_link_groups is a list ofRecordLinkGroupReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupReference
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
GetLinkedRecordsResponse
class GetLinkedRecordsResponse(c_obj)
Bases:Response
Output from the get_linked_records operation.
Includes an array of SourceRecord objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetLinkedRecordsResponse object.
property source_records : list[SourceRecord]
Property source_records is a list ofSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SourceRecord
GetMetaAttributesRequest
class GetMetaAttributesRequest(attribute_references=None, _is_owner=True)
Bases:object
Input for the get_meta_attributes operation.
- Parameters:
attribute_references (list of
AttributeReference)
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetMetaAttributesRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
GetMetaAttributesResponse
class GetMetaAttributesResponse(c_obj)
Bases:Response
Output from the get_meta_attributes operation. Includes an array of
AttributeMetaAttributes objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetMetaAttributesResponse object.
property attributes : list[AttributeMetaAttributes]
Property attributes is a list ofAttributeMetaAttributes objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeMetaAttributes
GetParameterDetailsRequest
class GetParameterDetailsRequest(attribute=None, parameter_references=None, record_reference=None, _is_owner=True)
Bases:object
Input for the get_parameter_details operation.
- Parameters:
- attribute (
AttributeReference) - parameter_references (list of
ParameterReference) - record_reference (
RecordReference)
- attribute (
add_parameter_reference(_parameterReference)
Appends _parameterReference to parameterReferences property on GetParameterDetailsRequest C-object.- Parameters:
_parameterReference (
ParameterReference)
property attribute : AttributeReference
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property parameter_references : list[ParameterReference]
Property parameter_references is a list ofParameterReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterReference
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
GetParameterDetailsResponse
class GetParameterDetailsResponse(c_obj)
Bases:Response
Output from the get_parameter_details operation.
Includes an array of ParameterDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetParameterDetailsResponse object.
property attribute_parameters : list[ParameterDetail]
Property attribute_parameters is a list ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
GetRecordAttributesByRefRequest
class GetRecordAttributesByRefRequest(attribute_references=None, binary_data=None, direct_links_only=None, exported_attributes=None, functional_data_settings=None, populate_guids=None, record_filter=None, record_references=None, unit_conversion_context=None, use_fallback=None, _is_owner=True)
Bases:object
Input for the get_record_attributes_by_ref operation.
For requests, at least one RecordReference and at least one
AttributeReference is required.
- Parameters:
- attribute_references (list of
AttributeReference) - binary_data (
BinaryDataSettings) - direct_links_only (bool)
- exported_attributes (list of
ExportedAttribute) - functional_data_settings (
FunctionalDataSettings) - populate_guids (bool)
- record_filter (
RecordFilter) - record_references (list of
RecordReference) - unit_conversion_context (
UnitConversionContext) - use_fallback (bool)
- attribute_references (list of
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetRecordAttributesByRefRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
add_exported_attribute(_exportedAttribute)
Appends _exportedAttribute to exportedAttributes property on GetRecordAttributesByRefRequest C-object.- Parameters:
_exportedAttribute (
ExportedAttribute)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetRecordAttributesByRefRequest C-object.- Parameters:
_recordReference (
RecordReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property binary_data : BinaryDataSettings
Property binary_data is of typeBinaryDataSettings.
- Return type:
BinaryDataSettings
property direct_links_only : bool
Property direct_links_only is of type bool.- Return type: bool
property exported_attributes : list[ExportedAttribute]
Property exported_attributes is a list ofExportedAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ExportedAttribute
property functional_data_settings : FunctionalDataSettings
Property functional_data_settings is of typeFunctionalDataSettings.
- Return type:
FunctionalDataSettings
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
property use_fallback : bool
Property use_fallback is of type bool.- Return type: bool
GetRecordAttributesByRefResponse
class GetRecordAttributesByRefResponse(c_obj)
Bases:Response
Output from the get_record_attributes_by_ref operation.
Includes an array of RecordData objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesByRefResponse object.
add_record_data(_recordData)
Appends _recordData to recordData property on GetRecordAttributesByRefResponse C-object.- Parameters:
_recordData (
RecordData)
property record_data : list[RecordData]
Property record_data is a list ofRecordData objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordData
GetRecordAttributesRequest
class GetRecordAttributesRequest(include_empty=None, include_meta=None, include_param_details=None, min_max_calculation=None, record_references=None, _is_owner=True)
Bases:object
Input for the get_record_attributes operation.
- Parameters:
- include_empty (bool)
- include_meta (bool)
- include_param_details (bool)
- min_max_calculation (int)
- record_references (list of
RecordReference)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetRecordAttributesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property include_empty : bool
Property include_empty is of type bool.- Return type: bool
property include_meta : bool
Property include_meta is of type bool.- Return type: bool
property include_param_details : bool
Property include_param_details is of type bool.- Return type: bool
property min_max_calculation : int
Property min_max_calculation is of type int.- Return type: int
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
GetRecordAttributesResponse
class GetRecordAttributesResponse(c_obj)
Bases:Response
Output from the get_record_attributes operation.
Includes an array of RecordAttribute objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordAttributesResponse object.
add_record_attribute(_recordAttribute)
Appends _recordAttribute to recordAttributes property on GetRecordAttributesResponse C-object.- Parameters:
_recordAttribute (
RecordAttribute)
property record_attributes : list[RecordAttribute]
Property record_attributes is a list ofRecordAttribute objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordAttribute
GetRecordLinkGroups
class GetRecordLinkGroups(db_key=None, record_link_groups=None, standard_names_only=None, _is_owner=True)
Bases:object
Returns details of Record Link Groups in a Granta MI Database.
- Parameters:
- db_key (str)
- record_link_groups (list of
RecordLinkGroupReference) - standard_names_only (bool)
add_record_link_group(_recordLinkGroupReference)
Appends _recordLinkGroupReference to recordLinkGroups property on GetRecordLinkGroups C-object.- Parameters:
_recordLinkGroupReference (
RecordLinkGroupReference)
property db_key : str
Property db_key is of type str. When this is provided, details of all Record Link Groups in the specified Granta MI Database will be returned.- Return type: str
property record_link_groups : list[RecordLinkGroupReference]
Property record_link_groups is a list ofRecordLinkGroupReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupReference
property standard_names_only : bool
Property standard_names_only is of type bool.- Return type: bool
GetRecordLinkGroupsResponse
class GetRecordLinkGroupsResponse(c_obj)
Bases:Response
Output from the get_record_link_groups operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordLinkGroupsResponse object.
property record_link_groups : list[RecordLinkGroupDetail]
Property record_link_groups is a list ofRecordLinkGroupDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroupDetail
GetRecordVersionsRequest
class GetRecordVersionsRequest(records=None, versions=None, _is_owner=True)
Bases:object
Input for the get_record_versions operation.
- Parameters:
- records (list of
RecordReference) - versions (int)
- records (list of
class VersionSelector
Bases:object
All = 3
AllReleased = 2
Latest = 1
LatestRead = 0
add_record(_recordReference)
Appends _recordReference to records property on GetRecordVersionsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property records : list[RecordReference]
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property versions : int
Property versions is of type int. SeeGetRecordVersionsRequest.VersionSelector for supported values.
- Return type: int
GetRecordVersionsResponse
class GetRecordVersionsResponse(c_obj)
Bases:Response
Output from the get_record_versions operation. Contains a list of version states.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRecordVersionsResponse object.
property record_states : list[RecordVersionState]
Property record_states is a list ofRecordVersionState objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordVersionState
GetRootNode
class GetRootNode(table=None, _is_owner=True)
Bases:object
Input to the get_root_node operation.
Requires a TableReference .
- Parameters:
table (
TableReference)
property table : TableReference
Property table is of typeTableReference.
- Return type:
TableReference
GetRootNodeResponse
class GetRootNodeResponse(c_obj)
Bases:Response
Output from the get_root_node operation.
Includes a TreeRecord object and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetRootNodeResponse object.
property root_node : TreeRecord
Property root_node is of typeTreeRecord.
- Return type:
TreeRecord
GetSubsetsRequest
class GetSubsetsRequest(subset_references=None, table=None, _is_owner=True)
Bases:object
Input to the get_subsets operation.
Requires a TableReference .
- Parameters:
- subset_references (list of
SubsetReference) - table (
TableReference)
- subset_references (list of
add_subset_reference(_subsetReference)
Appends _subsetReference to subsetReferences property on GetSubsetsRequest C-object.- Parameters:
_subsetReference (
SubsetReference)
property subset_references : list[SubsetReference]
Property subset_references is a list ofSubsetReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetReference
property table : TableReference
Property table is of typeTableReference.
- Return type:
TableReference
GetSubsetsResponse
class GetSubsetsResponse(c_obj)
Bases:Response
Output from the get_subsets operation.
Includes an array of SubsetDetails objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetSubsetsResponse object.
property subset_details : list[SubsetDetail]
Property subset_details is a list ofSubsetDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetDetail
GetTables
class GetTables(db_key=None, attribute_selectors=None, table_filter=None, _is_owner=True)
Bases:object
Input to the get_tables operation.
Requires a db_key to be set.
class AttributeSelector
Bases:object
MetaAttributes = 2
NONE = 0
NonMetaAttributes = 1
StandardAttributes = 3
add_attribute_selector(value)
Appends value to attributeSelectors property on GetTables C-object.- Parameters: value (int)
property attribute_selectors : list[int]
Property attribute_selectors is a list of int objects. SeeGetTables.AttributeSelector for supported values.
WARNING
Do not attempt to edit or append to the returned value.property db_key : str
Property db_key is of type str.- Return type: str
property table_filter : int
Property table_filter is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
GetTablesResponse
class GetTablesResponse(c_obj)
Bases:Response
Output from the get_tables operation.
Includes an array of TableDetail objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTablesResponse object.
add_table_detail(_tableDetail)
Appends _tableDetail to tableDetails property on GetTablesResponse C-object.- Parameters:
_tableDetail (
TableDetail)
property table_details : list[TableDetail]
Property table_details is a list ofTableDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TableDetail
GetTreeRecordsRequest
class GetTreeRecordsRequest(records=None, _is_owner=True)
Bases:object
Input to the get_tree_records operation.
Requires at least one RecordReference.
- Parameters:
records (list of
RecordReference)
add_record(_recordReference)
Appends _recordReference to records property on GetTreeRecordsRequest C-object.- Parameters:
_recordReference (
RecordReference)
property records : list[RecordReference]
Property records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
GetTreeRecordsResponse
class GetTreeRecordsResponse(c_obj)
Bases:Response
Output to the get_tree_records operation.
Includes an array of TreeRecord objects and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetTreeRecordsResponse object.
add_tree_record(_treeRecord)
Appends _treeRecord to treeRecords property on GetTreeRecordsResponse C-object.- Parameters:
_treeRecord (
TreeRecord)
property tree_records : list[TreeRecord]
Property tree_records is a list ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
GetUnitConversionsRequest
class GetUnitConversionsRequest(db_key=None, source_currency=None, target_currency=None, unit_conversion_contexts=None, unit_symbols=None, _is_owner=True)
Bases:object
Input for the get_unit_conversions operation.
- Parameters:
add_unit_conversion_context(_unitConversionContext)
Appends _unitConversionContext to unitConversionContexts property on GetUnitConversionsRequest C-object.- Parameters:
_unitConversionContext (
UnitConversionContext)
add_unit_symbol(value)
Appends value to unitSymbols property on GetUnitConversionsRequest C-object.- Parameters: value (str)
property db_key : str
Property db_key is of type str.- Return type: str
property source_currency : str
Property source_currency is of type str.- Return type: str
property target_currency : str
Property target_currency is of type str.- Return type: str
property unit_conversion_contexts : list[UnitConversionContext]
Property unit_conversion_contexts is a list ofUnitConversionContext objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionContext
property unit_symbols : list[str]
Property unit_symbols is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.GetUnitConversionsResponse
class GetUnitConversionsResponse(c_obj)
Bases:Response
Output from the get_unit_conversions operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitConversionsResponse object.
property db_key : str
Property db_key is of type str.- Return type: str
property source_units : list[SourceUnitConversionSet]
Property source_units is a list ofSourceUnitConversionSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SourceUnitConversionSet
property unit_conversion_contexts : list[UnitConversionContextConversionSet]
Property unit_conversion_contexts is a list ofUnitConversionContextConversionSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionContextConversionSet
GetUnits
class GetUnits(db_key=None, _is_owner=True)
Bases:object
A type for requesting the units known to specific Granta MI databases.
A DBKey must be specified.
- Parameters: db_key (str)
property db_key : str
Property db_key is of type str.- Return type: str
GetUnitsResponse
class GetUnitsResponse(c_obj)
Bases:Response
The output of a get_units request.
Contains an array of DatabaseUnitSets for the specified databases.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitsResponse object.
property database_unit_sets : list[DatabaseUnitSet]
Property database_unit_sets is a list ofDatabaseUnitSet objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DatabaseUnitSet
GetUnitSystems
class GetUnitSystems(db_key=None, exclude_currencies=None, _is_owner=True)
Bases:object
A type for requesting the unit systems on a particular Granta MI database.
A db_key must be specified.
property db_key : str
Property db_key is of type str.- Return type: str
property exclude_currencies : bool
Property exclude_currencies is of type bool.- Return type: bool
GetUnitSystemsResponse
class GetUnitSystemsResponse(c_obj)
Bases:Response
The output of a get_unit_systems requests.
Contains an array of unit systems for the specified database.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUnitSystemsResponse object.
property db_key : str
Property db_key is of type str.- Return type: str
property unit_systems : list[UnitSystemDetail]
Property unit_systems is a list ofUnitSystemDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitSystemDetail
GetUploadAddressesRequest
class GetUploadAddressesRequest(attribute_references=None, record_references=None, _is_owner=True)
Bases:object
Input to the get_upload_addresses operation.
Contains a list of records and attributes to get the upload URL addresses of.
- Parameters:
- attribute_references (list of
AttributeReference) - record_references (list of
RecordReference)
- attribute_references (list of
add_attribute_reference(_attributeReference)
Appends _attributeReference to attributeReferences property on GetUploadAddressesRequest C-object.- Parameters:
_attributeReference (
AttributeReference)
add_record_reference(_recordReference)
Appends _recordReference to recordReferences property on GetUploadAddressesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property record_references : list[RecordReference]
Property record_references is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
GetUploadAddressesResponse
class GetUploadAddressesResponse(c_obj)
Bases:Response
Output from the get_upload_addresses operation.
Contains a list of RecordWithAttributeAddresses objects for
each record in the GetUploadAddressesRequest.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a GetUploadAddressesResponse object.
property records_with_attribute_addresses : list[RecordWithAttributeAddresses]
Property records_with_attribute_addresses is a list ofRecordWithAttributeAddresses objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordWithAttributeAddresses
GraphDomain
class GraphDomain(parameter_domains=None, _is_owner=True)
Bases:object
A type to contain choices of fixed parameter values.
A value must be chosen for each parameter, within the given constraints.
- Parameters:
parameter_domains (list of
ParameterDomain)
property parameter_domains : list[ParameterDomain]
Property parameter_domains is a list ofParameterDomain objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDomain
GreaterThanSearchValue
class GreaterThanSearchValue(tabular_column=None, unit=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for data greater than a specified value.
Criterion passes if data value is above a given value. Point, range, and integer attributes are
supported.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property unit : str
Property unit is of type str.- Return type: str
property value : float
Property value is of type float.- Return type: float
HelpInfo
class HelpInfo(database_help=None, help_uri=None, _is_owner=True)
Bases:object
Type describing how to obtain detailed Help information for an entity in a Granta MI database.
property database_help : bool
Property database_help is of type bool.- Return type: bool
property help_uri : str
Property help_uri is of type str.- Return type: str
HighEndSearchValue
class HighEndSearchValue(unit=None, value=None, _is_owner=True)
Bases:object
Upper limit for the BetweenSearchValue search criterion.
Requires a double value and an optional unit.
property unit : str
Property unit is of type str.- Return type: str
property value : float
Property value is of type float.- Return type: float
HyperlinkDataType
class HyperlinkDataType(description=None, hyperlink_display=None, is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
A type to contain a HyperLink string value.
class HyperlinkDisplay
Bases:object
Content = 2
New = 0
Top = 1
property description : str
Property description is of type str.- Return type: str
property hyperlink_display : int
Property hyperlink_display is of type int.- Return type: int
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
IDataValue
class IDataValue
Bases:object
Base class for data values in Granta MI.
You should not interact directly with this class.
ImportAttributeValue
class ImportAttributeValue(attribute_reference=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, tabular_data_value=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, _is_owner=True)
Bases:object
An AttributeValue to import to a Granta MI database.
Requires a AttributeReference and an attribute value for the
data type you wish to upload. Supports: PointDataType, RangeDataType,
FloatFunctionalSeriesDataType, FloatFunctionalGriddedDataType, ShortTextDataType,
LongTextDataType, DiscreteDataType, IntegerDataType, LogicalDataType, HyperlinkDataType, and
FileDataType.
- Parameters:
- attribute_reference (
AttributeReference) - date_data_value (
DateDataType) - discrete_data_value (
DiscreteDataType) - file_data_value (
FileDataType) - hyperlink_data_value (
HyperlinkDataType) - integer_data_value (
IntegerDataType) - logical_data_value (
LogicalDataType) - long_text_data_value (
LongTextDataType) - picture_data_value (
PictureDataType) - point_data_value (
PointDataType) - range_data_value (
RangeDataType) - short_text_data_value (
ShortTextDataType) - tabular_data_value (
TabularDataImportType) - float_functional_gridded_data_value (
FloatFunctionalGriddedDataType) - float_functional_series_data_value (
FloatFunctionalSeriesDataType)
- attribute_reference (
property attribute_reference : AttributeReference
Property attribute_reference is of typeAttributeReference.
- Return type:
AttributeReference
property date_data_value : DateDataType
Property date_data_value is of typeDateDataType.
- Return type:
DateDataType
property discrete_data_value : DiscreteDataType
Property discrete_data_value is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property file_data_value : FileDataType
Property file_data_value is of typeFileDataType.
- Return type:
FileDataType
property float_functional_gridded_data_value : FloatFunctionalGriddedDataType
Property float_functional_gridded_data_value is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property float_functional_series_data_value : FloatFunctionalSeriesDataType
Property float_functional_series_data_value is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlink_data_value : HyperlinkDataType
Property hyperlink_data_value is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integer_data_value : IntegerDataType
Property integer_data_value is of typeIntegerDataType.
- Return type:
IntegerDataType
property logical_data_value : LogicalDataType
Property logical_data_value is of typeLogicalDataType.
- Return type:
LogicalDataType
property long_text_data_value : LongTextDataType
Property long_text_data_value is of typeLongTextDataType.
- Return type:
LongTextDataType
property picture_data_value : PictureDataType
Property picture_data_value is of typePictureDataType.
- Return type:
PictureDataType
property point_data_value : PointDataType
Property point_data_value is of typePointDataType.
- Return type:
PointDataType
property range_data_value : RangeDataType
Property range_data_value is of typeRangeDataType.
- Return type:
RangeDataType
property short_text_data_value : ShortTextDataType
Property short_text_data_value is of typeShortTextDataType.
- Return type:
ShortTextDataType
property tabular_data_value : TabularDataImportType
Property tabular_data_value is of typeTabularDataImportType.
- Return type:
TabularDataImportType
ImportRecord
class ImportRecord(copy_destination_parent=None, existing_record=None, import_attribute_values=None, import_record_mode=None, is_folder=None, record_name=None, release_record=None, subset_references=None, update_subsets_mode=None, _is_owner=True)
Bases:object
A record for importing to the Granta MI database.
The ‘import_record_mode’ property specifies whether a record should be created, copied, or updated.
The accepted values are ‘Create’, ‘Update’, and ‘Copy’. If import_record_mode is ‘Create’, set
‘existing_record’ to the parent record under which the new record is to be created. If
import_record_mode is ‘Update’, set ‘existing_record’, to the target record to be changed. If
import_record_mode is ‘Copy’, set ‘existing_record’ to be the source data for the operation, and
use ‘copy_destination_parent’ to specify where the record copy should appear. For versioned
databases, set release_record to specify whether the new or updated record should be released. Use
‘subset_references’ to define the Subsets the imported record belongs to (subsets will not be
inherited from the parent). ‘is_folder’ will have no effect if ‘import_record_mode’ is set to
‘Update’.
- Parameters:
- copy_destination_parent (
RecordReference) - existing_record (
RecordReference) - import_attribute_values (list of
ImportAttributeValue) - import_record_mode (str)
- is_folder (bool)
- record_name (str)
- release_record (bool)
- subset_references (list of
SubsetReference) - update_subsets_mode (int)
- copy_destination_parent (
add_import_attribute_value(_importAttributeValue)
Appends _importAttributeValue to importAttributeValues property on ImportRecord C-object.- Parameters:
_importAttributeValue (
ImportAttributeValue)
add_subset_reference(_subsetReference)
Appends _subsetReference to subsetReferences property on ImportRecord C-object.- Parameters:
_subsetReference (
SubsetReference)
property copy_destination_parent : RecordReference
Property copy_destination_parent is of typeRecordReference.
- Return type:
RecordReference
property existing_record : RecordReference
Property existing_record is of typeRecordReference.
- Return type:
RecordReference
property import_attribute_values : list[ImportAttributeValue]
Property import_attribute_values is a list ofImportAttributeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ImportAttributeValue
property import_record_mode : str
Property import_record_mode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property is_folder : bool
Property is_folder is of type bool.- Return type: bool
property record_name : str
Property record_name is of type str.- Return type: str
property release_record : bool
Property release_record is of type bool.- Return type: bool
property subset_references : list[SubsetReference]
Property subset_references is a list ofSubsetReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetReference
property update_subsets_mode : int
Property update_subsets_mode is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
IntegerDataType
class IntegerDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
A type to contain an integer data type.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : int
Property value is of type int.- Return type: int
IntegrationDatabase
class IntegrationDatabase(db_key=None, author=None, company=None, integration_tables=None, volume_name=None, _is_owner=True)
Bases:object
Represents a database within an Integration Profile.
- Parameters:
- db_key (str)
- author (str)
- company (str)
- integration_tables (list of
TableDetail) - volume_name (str)
property author : str
Property author is of type str.- Return type: str
property company : str
Property company is of type str.- Return type: str
property db_key : str
Property db_key is of type str.- Return type: str
property integration_tables : list[TableDetail]
Property integration_tables is a list ofTableDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TableDetail
property volume_name : str
Property volume_name is of type str.- Return type: str
IntegrationProfileDetail
class IntegrationProfileDetail(description=None, group_name=None, integration_databases=None, name=None, profile=None, _is_owner=True)
Bases:object
Detailed information about an Integration Profile.
- Parameters:
- description (
RichText) - group_name (str)
- integration_databases (list of
IntegrationDatabase) - name (str)
- profile (
IntegrationProfileReference)
- description (
property description : RichText
Property description is of typeRichText.
- Return type:
RichText
property group_name : str
Property group_name is of type str.- Return type: str
property integration_databases : list[IntegrationDatabase]
Property integration_databases is a list ofIntegrationDatabase objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
IntegrationDatabase
property name : str
Property name is of type str.- Return type: str
property profile : IntegrationProfileReference
Property profile is of typeIntegrationProfileReference.
- Return type:
IntegrationProfileReference
IntegrationProfileReference
class IntegrationProfileReference(key=None, _is_owner=True)
Bases:object
Contains the key for an Integration Profile.
- Parameters: key (str)
property key : str
Property key is of type str.- Return type: str
LayoutDetail
class LayoutDetail(attribute_categories=None, layout=None, name=None, table=None, display_names=None, _is_owner=True)
Bases:object
Detailed meta-information about a Layout in a Granta MI database.
- Parameters:
- attribute_categories (list of
AttributeCategory) - layout (
LayoutReference) - name (str)
- table (
TableReference) - display_names (list of
DisplayName)
- attribute_categories (list of
add_attribute_category(_attributeCategory)
Appends _attributeCategory to attributeCategories property on LayoutDetail C-object.- Parameters:
_attributeCategory (
AttributeCategory)
property attribute_categories : list[AttributeCategory]
Property attribute_categories is a list ofAttributeCategory objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeCategory
property display_names : list[DisplayName]
Property display_names is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property layout : LayoutReference
Property layout is of typeLayoutReference.
- Return type:
LayoutReference
property name : str
Property name is of type str.- Return type: str
property table : TableReference
Property table is of typeTableReference.
- Return type:
TableReference
LayoutReference
class LayoutReference(db_key=None, layout_identity=None, name=None, partial_table_reference=None, _is_owner=True)
Bases:object
A type that allows identification of a particular Layout in a Granta MI database.
- Parameters:
- db_key (str)
- layout_identity (int)
- name (str)
- partial_table_reference (
PartialTableReference)
property db_key : str
Property db_key is of type str.- Return type: str
property layout_identity : int
Property layout_identity is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference.
- Return type:
PartialTableReference
LessThanSearchValue
class LessThanSearchValue(tabular_column=None, unit=None, value=None, _is_owner=True)
Bases:object
Search criterion to search for data less than a specified value.
Criterion passes if data value is less than a given value. Point, range, and integer attributes are
supported.
property tabular_column : str
Property tabular_column is of type str.- Return type: str
property unit : str
Property unit is of type str.- Return type: str
property value : float
Property value is of type float.- Return type: float
LinkAllCombinations
class LinkAllCombinations(node_name=None, source_records=None, target_records=None, _is_owner=True)
Bases:object
For each given source record, add links to all the given target records. Silently skip any links
that already exist.
- Parameters:
- node_name (str)
- source_records (list of
RecordReference) - target_records (list of
RecordReference)
add_source_record(_recordReference)
Appends _recordReference to sourceRecords property on LinkAllCombinations C-object.- Parameters:
_recordReference (
RecordReference)
add_target_record(_recordReference)
Appends _recordReference to targetRecords property on LinkAllCombinations C-object.- Parameters:
_recordReference (
RecordReference)
property node_name : str
Property node_name is of type str.- Return type: str
property source_records : list[RecordReference]
Property source_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property target_records : list[RecordReference]
Property target_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
LinkRecords
class LinkRecords(node_name=None, source_records=None, _is_owner=True)
Bases:object
For each given source record, add links to the target records specified for that source record.
Silently skip any links that already exist.
- Parameters:
- node_name (str)
- source_records (list of
NotatedTargetedSourceRecord)
add_source_record(_notatedTargetedSourceRecord)
Appends _notatedTargetedSourceRecord to sourceRecords property on LinkRecords C-object.- Parameters:
_notatedTargetedSourceRecord (
NotatedTargetedSourceRecord)
property node_name : str
Property node_name is of type str.- Return type: str
property source_records : list[NotatedTargetedSourceRecord]
Property source_records is a list ofNotatedTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NotatedTargetedSourceRecord
LinkedRecordsDataType
class LinkedRecordsDataType(node_name=None, record_link_groups=None, type_string=None, _is_owner=True)
Bases:IDataValue
A type representing a list of linked Records.
- Parameters:
- node_name (str)
- record_link_groups (list of
RecordLinkGroup) - type_string (str)
property node_name : str
Property node_name is of type str.- Return type: str
property record_link_groups : list[RecordLinkGroup]
Property record_link_groups is a list ofRecordLinkGroup objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordLinkGroup
property type_string : str
Property type_string is of type str.- Return type: str
ListDataType
class ListDataType(items=None, _is_owner=True)
Bases:IDataValue
A list of values within a Cell in Tabular Data.
- Parameters:
items (list of
ListItem)
property items : list[ListItem]
Property items is a list ofListItem objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ListItem
ListItem
class ListItem(data_type=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, source_record_reference=None, float_functional_gridded_data_value=None, float_functional_series_data_value=None, discrete_functional_gridded_data_value=None, discrete_functional_series_data_value=None, empty_data_value=None, _is_owner=True)
Bases:object
An item in a List data value.
- Parameters:
- data_type (str)
- date_data_value (
DateDataType) - discrete_data_value (
DiscreteDataType) - file_data_value (
FileDataType) - hyperlink_data_value (
HyperlinkDataType) - integer_data_value (
IntegerDataType) - logical_data_value (
LogicalDataType) - long_text_data_value (
LongTextDataType) - picture_data_value (
PictureDataType) - point_data_value (
PointDataType) - range_data_value (
RangeDataType) - short_text_data_value (
ShortTextDataType) - source_record_reference (
RecordReference) - float_functional_gridded_data_value (
FloatFunctionalGriddedDataType) - float_functional_series_data_value (
FloatFunctionalSeriesDataType) - discrete_functional_gridded_data_value (
DiscreteFunctionalGriddedDataType) - discrete_functional_series_data_value (
DiscreteFunctionalSeriesDataType) - empty_data_value (
EmptyDataType)
property data_type : str
Property data_type is of type str.- Return type: str
property date_data_value : DateDataType
Property date_data_value is of typeDateDataType.
- Return type:
DateDataType
property discrete_data_value : DiscreteDataType
Property discrete_data_value is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property discrete_functional_gridded_data_value : DiscreteFunctionalGriddedDataType
Property discrete_functional_gridded_data_value is of typeDiscreteFunctionalGriddedDataType.
- Return type:
DiscreteFunctionalGriddedDataType
property discrete_functional_series_data_value : DiscreteFunctionalSeriesDataType
Property discrete_functional_series_data_value is of typeDiscreteFunctionalSeriesDataType.
- Return type:
DiscreteFunctionalSeriesDataType
property empty_data_value : EmptyDataType
Property empty_data_value is of typeEmptyDataType.
- Return type:
EmptyDataType
property file_data_value : FileDataType
Property file_data_value is of typeFileDataType.
- Return type:
FileDataType
property float_functional_gridded_data_value : FloatFunctionalGriddedDataType
Property float_functional_gridded_data_value is of typeFloatFunctionalGriddedDataType.
- Return type:
FloatFunctionalGriddedDataType
property float_functional_series_data_value : FloatFunctionalSeriesDataType
Property float_functional_series_data_value is of typeFloatFunctionalSeriesDataType.
- Return type:
FloatFunctionalSeriesDataType
property hyperlink_data_value : HyperlinkDataType
Property hyperlink_data_value is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integer_data_value : IntegerDataType
Property integer_data_value is of typeIntegerDataType.
- Return type:
IntegerDataType
property logical_data_value : LogicalDataType
Property logical_data_value is of typeLogicalDataType.
- Return type:
LogicalDataType
property long_text_data_value : LongTextDataType
Property long_text_data_value is of typeLongTextDataType.
- Return type:
LongTextDataType
property picture_data_value : PictureDataType
Property picture_data_value is of typePictureDataType.
- Return type:
PictureDataType
property point_data_value : PointDataType
Property point_data_value is of typePointDataType.
- Return type:
PointDataType
property range_data_value : RangeDataType
Property range_data_value is of typeRangeDataType.
- Return type:
RangeDataType
property short_text_data_value : ShortTextDataType
Property short_text_data_value is of typeShortTextDataType.
- Return type:
ShortTextDataType
property source_record_reference : RecordReference
Property source_record_reference is of typeRecordReference.
- Return type:
RecordReference
LogicalDataType
class LogicalDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
A type to contain a logical data type.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : bool
Property value is of type bool.- Return type: bool
LongTextDataType
class LongTextDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
A type to contain a long text data type.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
LookupValue
class LookupValue(attribute_reference=None, attribute_value=None, _is_owner=True)
Bases:object
Object containing an AttributeValue and
AttributeReference object that uniquely identify a record in
a table.
- Parameters:
- attribute_reference (
AttributeReference) - attribute_value (str)
- attribute_reference (
property attribute_reference : AttributeReference
Property attribute_reference is of typeAttributeReference.
- Return type:
AttributeReference
property attribute_value : str
Property attribute_value is of type str.- Return type: str
LowEndSearchValue
class LowEndSearchValue(unit=None, value=None, _is_owner=True)
Bases:object
Lower limit for the BetweenSearchValue search criterion.
property unit : str
Property unit is of type str.- Return type: str
property value : float
Property value is of type float.- Return type: float
MIEntityResolution
class MIEntityResolution(can_write=None, entity_reference=None, resolved=None, _is_owner=True)
Bases:object
Represents whether the entity referred to by the reference property can actually be resolved to an
MI entity, and if that entity can be resolved whether or not it is writable.
- Parameters:
- can_write (int)
- entity_reference (
RecordReference) - resolved (bool)
class CanWrite
Bases:object
No = 1
NotSupported = 2
Yes = 0
property can_write : int
Property can_write is of type int.- Return type: int
property entity_reference : RecordReference
Property entity_reference is of typeRecordReference.
- Return type:
RecordReference
property resolved : bool
Property resolved is of type bool.- Return type: bool
MIParameterValue
class MIParameterValue(revision_info=None, value=None, value_name=None, _is_owner=True)
Bases:object
A named value of a Parameter in a Granta MI Database.
- Parameters:
- revision_info (
RevisionInfo) - value (float)
- value_name (str)
- revision_info (
property revision_info : RevisionInfo
Property revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property value : float
Property value is of type float.- Return type: float
property value_name : str
Property value_name is of type str.- Return type: str
MISession
class MISession(url=”, verbosity=1)
Bases:object
A connection to a Granta MI Server. Don’t create this class directly, instead see
GRANTA_MISession
- Parameters:
connection_is_valid()
Indicates whether the connection was successful.- Returns:
- is_valid (bool) – Whether the connection test succeeded
- description (str) – Description of the test outcome
- Return type: Tuple[bool, str]
set_authorization(auth)
Use Open ID Connect to authenticate to the Granta MI Service Layer- Parameters:
auth (
OIDC)
set_credentials(domain, username, password)
Use the provided credentials to authenticate with the Granta MI Service Layer. The Granta MI Service Layer must be configured to allow Basic authentication, or the MI Scripting Toolkit session must be created on Windows, and NTLM authentication must be enabled.- Parameters:
set_receive_timeout(timeout)
Sets time in milliseconds to wait for a response before timing out.- Parameters: timeout (int) – Timeout (in milliseconds)
test_connection()
Raises an exception if a request to the Granta MI Service Layer does not respond or responds with an error.- Raises: GRANTA_Exception – If the connection test failed
use_auto_logon()
Use the Windows credentials of the current user to authenticate to the Granta MI Service Layer.property act_as_read_user : bool
Forces the session to operate with READ permissions, even if the user has higher privileges. If the user authenticates with a role that has additional privileges the session will behave as though they have only read permissions. This prevents writing to the database and affects which versions of records are visible for version controlled databases.- Return type: bool
MinMax
class MinMax(max_value=None, min_value=None, units=None, _is_owner=True)
Bases:object
The minimum and maximum data values for a specified numerical attribute, calculated from all records
you have read permissions for in a database.
- Parameters:
- max_value (
MinMaxValue) - min_value (
MinMaxValue) - units (str)
- max_value (
property max_value : MinMaxValue
Property max_value is of typeMinMaxValue.
- Return type:
MinMaxValue
property min_value : MinMaxValue
Property min_value is of typeMinMaxValue.
- Return type:
MinMaxValue
property units : str
Property units is of type str.- Return type: str
MinMaxValue
class MinMaxValue(date_time=None, double=None, integer=None, type_=None, _is_owner=True)
Bases:object
A type that represents the minimum or maximum data value for a numerical attribute in a database.
class Type
Bases:object
DateType = 0
DoubleType = 1
ERROR = -1
IntegerType = 2
NotANumber = 3
property date_time : str
Property date_time is of type str.- Return type: str
property double : float
Property double is of type float.- Return type: float
property integer : int
Property integer is of type int.- Return type: int
property type_ : int
Property type_ is of type int.- Return type: int
ModifyRecordLinksRequest
class ModifyRecordLinksRequest(import_error_mode=None, record_link_check_mode=None, record_link_group_reference=None, record_link_modifications=None, _is_owner=True)
Bases:object
Input to the modify_record_links operation.
Requires a RecordLinkGroupReference to the record link group
you wish to modify and a RecordLinkModifications object,
which contains the modifications you wish to make to the record link group. The ‘import_error_mode’
property defines how to handle errors which occur during linking and can take the following values:
‘FaultAndRollbackOnAnyError’, which stops the linking request when an error occurs and attempts to
roll back to the state before the request was issued; or ‘LogAndContinueWherePossible’, which will
log non-fatal errors and attempt to continue with the linking request. The ‘record_link_check_mode’
property defines how to check the status of existing links and takes the following values:
‘CheckOnlyForwardLinks’, which checks for link only in the forward direction and is quicker than
checking both directions; or ‘CheckForwardAndReverseLinks’, which is slower but safer as it checks
for both forward and backward links.
- Parameters:
- import_error_mode (str)
- record_link_check_mode (str)
- record_link_group_reference (
RecordLinkGroupReference) - record_link_modifications (
RecordLinkModifications)
property import_error_mode : str
Property import_error_mode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property record_link_check_mode : str
Property record_link_check_mode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property record_link_group_reference : RecordLinkGroupReference
Property record_link_group_reference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property record_link_modifications : RecordLinkModifications
Property record_link_modifications is of typeRecordLinkModifications.
- Return type:
RecordLinkModifications
ModifyRecordLinksResponse
class ModifyRecordLinksResponse(c_obj)
Bases:Response
The response from a modify_record_links request.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a ModifyRecordLinksResponse object.
property record_link_changes : RecordLinkChanges
Property record_link_changes is of typeRecordLinkChanges.
- Return type:
RecordLinkChanges
NamedAttribute
class NamedAttribute(about=None, attribute=None, is_meta=None, name=None, _is_owner=True)
Bases:object
Name information about an Attribute in a Granta MI database.
- Parameters:
- about (
NamedAttribute) - attribute (
AttributeReference) - is_meta (bool)
- name (str)
- about (
property about : NamedAttribute
Property about is of typeNamedAttribute. Only populated if ‘is_meta’ is True.
- Return type:
NamedAttribute
property attribute : AttributeReference
Property attribute is of typeAttributeReference.
- Return type:
AttributeReference
property is_meta : bool
Property is_meta is of type bool. If this is True, the ‘about’ property may have additional information about the related parent attribute.- Return type: bool
property name : str
Property name is of type str.- Return type: str
NamedLayout
class NamedLayout(layout=None, name=None, _is_owner=True)
Bases:object
A layout in a Granta MI database.
- Parameters:
- layout (
LayoutReference) - name (str)
- layout (
property layout : LayoutReference
Property layout is of typeLayoutReference.
- Return type:
LayoutReference
property name : str
Property name is of type str.- Return type: str
NamedRecord
class NamedRecord(long_name=None, record_reference=None, short_name=None, _is_owner=True)
Bases:object
A RecordReference with the short and long name of the record.
- Parameters:
- long_name (str)
- record_reference (
RecordReference) - short_name (str)
property long_name : str
Property long_name is of type str.- Return type: str
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property short_name : str
Property short_name is of type str.- Return type: str
NamedSubset
class NamedSubset(name=None, subset=None, _is_owner=True)
Bases:object
A SubsetReference with the subset name.
- Parameters:
- name (str)
- subset (
SubsetReference)
property name : str
Property name is of type str.- Return type: str
property subset : SubsetReference
Property subset is of typeSubsetReference.
- Return type:
SubsetReference
NamedTargetedSourceRecord
class NamedTargetedSourceRecord(record=None, target_records=None, _is_owner=True)
Bases:object
A named record used for modifying record links.
- Parameters:
- record (
NamedRecord) - target_records (list of
NamedRecord)
- record (
add_target_records(_namedRecord)
Appends _namedRecord to targetRecords property on NamedTargetedSourceRecord C-object.- Parameters:
_namedRecord (
NamedRecord)
property record : NamedRecord
Property record is of typeNamedRecord.
- Return type:
NamedRecord
property target_records : list[NamedRecord]
Property target_records is a list ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
NotatedTargetRecord
class NotatedTargetRecord(notes=None, record=None, reverse_notes=None, _is_owner=True)
Bases:object
A RecordReference of the record you wish to link to and notes
on the record link.
Requires a RecordReference. Notes on the link and the reverse
link are optional.
- Parameters:
- notes (str)
- record (
RecordReference) - reverse_notes (str)
property notes : str
Property notes is of type str.- Return type: str
property record : RecordReference
Property record is of typeRecordReference.
- Return type:
RecordReference
property reverse_notes : str
Property reverse_notes is of type str.- Return type: str
NotatedTargetedSourceRecord
class NotatedTargetedSourceRecord(source_record=None, target_records=None, _is_owner=True)
Bases:object
A NamedRecord to link from and container of
NamedRecord of the records to link to.
Requires a source NamedRecord. Can set zero to many target
NamedRecord objects you wish to link to.
- Parameters:
- source_record (
RecordReference) - target_records (list of
NotatedTargetRecord)
- source_record (
add_target_record(_notatedTargetRecord)
Appends _notatedTargetRecord to targetRecords property on NotatedTargetedSourceRecord C-object.- Parameters:
_notatedTargetRecord (
NotatedTargetRecord)
property source_record : RecordReference
Property source_record is of typeRecordReference.
- Return type:
RecordReference
property target_records : list[NotatedTargetRecord]
Property target_records is a list ofNotatedTargetRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NotatedTargetRecord
OIDC
class OIDC(access_token=None, refresh_token=None, authorize_timeout=None)
Bases:object
An object to allow authorization using OpenID Connect. Contact Ansys Granta Technical Support for information
on supported identity providers, and for configuration and setup documentation.
If neither access_token nor refresh_token are provided then call authorize_with_authorization_code_flow() or
authorize_with_device_code_flow() for interactive login with the user’s credentials. If refresh_token is
provided then the session will attempt to obtain an access token from the identity provider. If access_token is
provided then the session will use it directly.
- Parameters:
- access_token (
str, optional) – Valid access token for the MI Service Layer - refresh_token (
str, optional) – Valid refresh token for the MI Service Layer - authorize_timeout (
int, default 300,000) – Number of milliseconds to wait for a response after callingauthorize_with_authorization_code_flow()orauthorize_with_device_code_flow().
- access_token (
authorize_with_authorization_code_flow()
Authorize a Granta MI session with an OpenID Connect provider. Uses the Authorization Code Flow with PKCE to authenticate.authorize_with_device_code_flow()
Authorize a Granta MI session with an OpenID Connect provider. Uses the Device Code Flow to authenticate.check_authentication()
Checks whether your access and refresh tokens are valid.- Returns:
- is_valid (bool) – Whether the tokens could be used to connect to the Granta MI Service layer
- message (str) – Error message if the tokens could not be used to connect to the Granta MI Service Layer.
- Return type: Tuple[bool, str]
test_authentication()
Checks whether your access and refresh tokens are valid.- Raises: GRANTA_Exception – If the tokens could not be used to connect to the Granta MI Service Layer.
property access_token : str
OIDC access token.- Return type: str
property authorize_timeout : int
The number of milliseconds to wait for the user to authenticate in their browser.- Return type: int
property refresh_token : str
OIDC refresh token, if one is available from the OpenID Identity Provider.NOTE
The identity provider must provide theoffline_access scope for refresh tokens to be available
- Return type: str
ParameterDetail
class ParameterDetail(applies_to_attribute=None, applies_to_record=None, default_value=None, interpolation_type=None, name=None, order=None, parameter_reference=None, parameter_type=None, parameter_values=None, revision_info=None, scale_type=None, unit=None, help_info=None, _is_owner=True)
Bases:object
Detailed information about a Parameter in a Granta MI Database.
- Parameters:
- applies_to_attribute (
AttributeReference) - applies_to_record (
RecordReference) - default_value (
MIParameterValue) - interpolation_type (int)
- name (str)
- order (int)
- parameter_reference (
ParameterReference) - parameter_type (int)
- parameter_values (list of
MIParameterValue) - revision_info (
RevisionInfo) - scale_type (int)
- unit (
UnitInformation) - help_info (
HelpInfo)
- applies_to_attribute (
class Interpolation
Bases:object
CubicSpline = 2
Linear = 1
NONE = 0
class ParameterType
Bases:object
Discrete = 2
NumericRestricted = 1
NumericUnrestricted = 0
class ScaleType
Bases:object
Linear = 1
Log = 2
NotSet = 0
property applies_to_attribute : AttributeReference
Property applies_to_attribute is of typeAttributeReference.
- Return type:
AttributeReference
property applies_to_record : RecordReference
Property applies_to_record is of typeRecordReference.
- Return type:
RecordReference
property default_value : MIParameterValue
Property default_value is of typeMIParameterValue.
- Return type:
MIParameterValue
property help_info : HelpInfo
Property help_info is of typeHelpInfo.
- Return type:
HelpInfo
property interpolation_type : int
Property interpolation_type is of type int. SeeParameterDetail.Interpolation for supported values.
- Return type: int
property name : str
Property name is of type str.- Return type: str
property order : int
Property order is of type int.- Return type: int
property parameter_reference : ParameterReference
Property parameter_reference is of typeParameterReference.
- Return type:
ParameterReference
property parameter_type : int
Property parameter_type is of type int. SeeParameterDetail.ParameterType for supported values.
- Return type: int
property parameter_values : list[MIParameterValue]
Property parameter_values is a list ofMIParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
MIParameterValue
property revision_info : RevisionInfo
Property revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property scale_type : int
Property scale_type is of type int. SeeParameterDetail.ScaleType for supported values.
- Return type: int
property unit : UnitInformation
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
ParameterDomain
class ParameterDomain(exporter_parameter_id=None, interpolable=None, values=None, _is_owner=True)
Bases:object
A type to contain a list of parameter values.
- Parameters:
- exporter_parameter_id (str)
- interpolable (bool)
- values (list of
ParameterValue)
property exporter_parameter_id : str
Property exporter_parameter_id is of type str.- Return type: str
property interpolable : bool
Property interpolable is of type bool.- Return type: bool
property values : list[ParameterValue]
Property values is a list ofParameterValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterValue
ParameterInformation
class ParameterInformation(name=None, parameter_reference=None, unit=None, _is_owner=True)
Bases:object
Information for a parameter in a Granta MI database.
Contains the name and unit information for a parameter and a
ParameterReference to the parameter.
- Parameters:
- name (str)
- parameter_reference (
ParameterReference) - unit (
UnitInformation)
property name : str
Property name is of type str.- Return type: str
property parameter_reference : ParameterReference
Property parameter_reference is of typeParameterReference.
- Return type:
ParameterReference
property unit : UnitInformation
Property unit is of typeUnitInformation.
- Return type:
UnitInformation
ParameterReference
class ParameterReference(db_key=None, id_=None, name=None, _is_owner=True)
Bases:object
Identification of a particular parameter in a Granta MI database .
For requests a db_key is required, and either the parameter ID or the parameter name.
property db_key : str
Property db_key is of type str.- Return type: str
property id_ : int
Property id_ is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
ParameterReferenceAndValue
class ParameterReferenceAndValue(parameter=None, parameter_value=None, _is_owner=True)
Bases:object
Contains a ParameterReference and a
ParameterValue.
- Parameters:
- parameter (
ParameterReference) - parameter_value (
ParameterValue)
- parameter (
property parameter : ParameterReference
Property parameter is of typeParameterReference.
- Return type:
ParameterReference
property parameter_value : ParameterValue
Property parameter_value is of typeParameterValue.
- Return type:
ParameterValue
ParameterReferencesAndValues
class ParameterReferencesAndValues(parameter_with_values=None, _is_owner=True)
Bases:object
A collection of ParameterReferenceAndValue objects.
- Parameters:
parameter_with_values (list of
ParameterReferenceAndValue)
add_parameter_with_value(_parameterReferenceAndValue)
Appends _parameterReferenceAndValue to parameterWithValues property on ParameterReferencesAndValues C-object.- Parameters:
_parameterReferenceAndValue (
ParameterReferenceAndValue)
property parameter_with_values : list[ParameterReferenceAndValue]
Property parameter_with_values is a list ofParameterReferenceAndValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterReferenceAndValue
ParameterValue
class ParameterValue(discrete_value=None, numeric_value=None, type_=None, _is_owner=True)
Bases:object
A value of a Parameter in Functional data.
property discrete_value : str
Property discrete_value is of type str.- Return type: str
property numeric_value : float
Property numeric_value is of type float.- Return type: float
property type_ : str
Property type_ is of type str. There is no need to set this property manually. SeeGRANTA_Constants for supported values.
- Return type: str
Parameters
class Parameters(parameters=None, _is_owner=True)
Bases:object
A collection of ParameterInformation objects.
- Parameters:
parameters (list of
ParameterInformation)
add_parameter(_parameterInformation)
Appends _parameterInformation to parameters property on Parameters C-object.- Parameters:
_parameterInformation (
ParameterInformation)
property parameters : list[ParameterInformation]
Property parameters is a list ofParameterInformation objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterInformation
PartialTableReference
class PartialTableReference(table_guid=None, table_id=None, table_name=None, _is_owner=True)
Bases:object
A reference to a Granta MI table.
Usually, just one of the several optional fields should be provided; where more than one is
provided, the highest priority one is used, where the descending priority order is: table_identity,
table_guid, table_name.
property table_guid : str
Property table_guid is of type str.- Return type: str
property table_id : int
Property table_id is of type int.- Return type: int
property table_name : str
Property table_name is of type str.- Return type: str
PathLeaf
class PathLeaf(long_name=None, record_reference=None, short_name=None, _is_owner=True)
Bases:object
The folder furthest from the root record folder, for each path checked or created.
- Parameters:
- long_name (str)
- record_reference (
RecordReference) - short_name (str)
property long_name : str
Property long_name is of type str.- Return type: str
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property short_name : str
Property short_name is of type str.- Return type: str
PictureDataType
class PictureDataType(url=None, content_type=None, data=None, is_applicable=None, _is_owner=True)
Bases:IDataValue
A type representing a piece of Picture data in a Granta MI Database.
To get a byte-array representing the binary data, call read_binary_data(). To set the binary data
(as part of a data import), use modify_binary_data().
modify_binary_data(binary_data)
- Parameters: binary_data (bytes)
read_binary_data()
- Return type: bytes
property content_type : str
Property content_type is of type str.- Return type: str
property data : str
Property data is of type str.- Return type: str
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property url : str
Property url is of type str.- Return type: str
PointDataType
class PointDataType(is_applicable=None, is_estimated=None, parameters=None, points=None, unit_symbol=None, _is_owner=True)
Bases:IDataValue
A type to contain an array of float data types.
- Parameters:
- is_applicable (bool)
- is_estimated (bool)
- parameters (
Parameters) - points (list of
PointValueWithParameters) - unit_symbol (str)
add_point(_pointValueWithParameters)
Appends _pointValueWithParameters to points property on PointDataType C-object.- Parameters:
_pointValueWithParameters (
PointValueWithParameters)
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property parameters : Parameters
Property parameters is of typeParameters.
- Return type:
Parameters
property points : list[PointValueWithParameters]
Property points is a list ofPointValueWithParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PointValueWithParameters
property unit_symbol : str
Property unit_symbol is of type str.- Return type: str
PointValueWithParameters
class PointValueWithParameters(has_trailing_zero_info=None, trailing_zero_info=None, value=None, value_parameters=None, has_sig_figs_for_import=None, sig_figs_for_import=None, _is_owner=True)
Bases:object
A numeric value with associated ParameterReferencesAndValues
object.
- Parameters:
- has_trailing_zero_info (bool)
- trailing_zero_info (
TrailingZeroInformation) - value (float)
- value_parameters (
ParameterReferencesAndValues) - has_sig_figs_for_import (bool)
- sig_figs_for_import (int)
property has_sig_figs_for_import : bool
Property has_sig_figs_for_import is of type bool.- Return type: bool
property has_trailing_zero_info : bool
Property has_trailing_zero_info is of type bool.- Return type: bool
property sig_figs_for_import : int
Property sig_figs_for_import is of type int.- Return type: int
property trailing_zero_info : TrailingZeroInformation
Property trailing_zero_info is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property value : float
Property value is of type float.- Return type: float
property value_parameters : ParameterReferencesAndValues
Property value_parameters is of typeParameterReferencesAndValues.
- Return type:
ParameterReferencesAndValues
RangeDataType
class RangeDataType(has_high=None, has_high_trailing_zero_info=None, has_low=None, has_low_trailing_zero_info=None, high=None, high_value_trailing_zero_info=None, is_applicable=None, is_estimated=None, low=None, low_value_trailing_zero_info=None, unit_symbol=None, high_value_is_inclusive=None, low_value_is_inclusive=None, has_high_value_sig_figs_for_import=None, has_low_value_sig_figs_for_import=None, high_value_sig_figs_for_import=None, low_value_sig_figs_for_import=None, _is_owner=True)
Bases:IDataValue
Type for values of range data.
Both low_value and high_value must be populated.
- Parameters:
- has_high (bool)
- has_high_trailing_zero_info (bool)
- has_low (bool)
- has_low_trailing_zero_info (bool)
- high (float)
- high_value_trailing_zero_info (
TrailingZeroInformation) - is_applicable (bool)
- is_estimated (bool)
- low (float)
- low_value_trailing_zero_info (
TrailingZeroInformation) - unit_symbol (str)
- high_value_is_inclusive (bool)
- low_value_is_inclusive (bool)
- has_high_value_sig_figs_for_import (bool)
- has_low_value_sig_figs_for_import (bool)
- high_value_sig_figs_for_import (int)
- low_value_sig_figs_for_import (int)
property has_high : bool
Property has_high is of type bool.- Return type: bool
property has_high_trailing_zero_info : bool
Property has_high_trailing_zero_info is of type bool.- Return type: bool
property has_high_value_sig_figs_for_import : bool
Property has_high_value_sig_figs_for_import is of type bool.- Return type: bool
property has_low : bool
Property has_low is of type bool.- Return type: bool
property has_low_trailing_zero_info : bool
Property has_low_trailing_zero_info is of type bool.- Return type: bool
property has_low_value_sig_figs_for_import : bool
Property has_low_value_sig_figs_for_import is of type bool.- Return type: bool
property high : float
Property high is of type float.- Return type: float
property high_value_is_inclusive : bool
Property high_value_is_inclusive is of type bool.- Return type: bool
property high_value_sig_figs_for_import : int
Property high_value_sig_figs_for_import is of type int.- Return type: int
property high_value_trailing_zero_info : TrailingZeroInformation
Property high_value_trailing_zero_info is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property low : float
Property low is of type float.- Return type: float
property low_value_is_inclusive : bool
Property low_value_is_inclusive is of type bool.- Return type: bool
property low_value_sig_figs_for_import : int
Property low_value_sig_figs_for_import is of type int.- Return type: int
property low_value_trailing_zero_info : TrailingZeroInformation
Property low_value_trailing_zero_info is of typeTrailingZeroInformation.
- Return type:
TrailingZeroInformation
property unit_symbol : str
Property unit_symbol is of type str.- Return type: str
RasterSize
class RasterSize(height_pixels=None, width_pixels=None, _is_owner=True)
Bases:object
Gives the size in pixels of picture data.
property height_pixels : int
Property height_pixels is of type int.- Return type: int
property width_pixels : int
Property width_pixels is of type int.- Return type: int
RecordAttribute
class RecordAttribute(attribute=None, data_created_record_version=None, data_retired_record_version=None, data_revision_info=None, data_version_number=None, has_data=None, parameter_details=None, record_reference=None, _is_owner=True)
Bases:object
Meta-information about the data of a particular attribute of a particular Record in a Granta MI
database.
Does NOT include values of the data (see AttributeValue type).
- Parameters:
- attribute (
NamedAttribute) - data_created_record_version (int)
- data_retired_record_version (int)
- data_revision_info (
RevisionInfo) - data_version_number (int)
- has_data (bool)
- parameter_details (list of
ParameterDetail) - record_reference (
RecordReference)
- attribute (
property attribute : NamedAttribute
Property attribute is of typeNamedAttribute.
- Return type:
NamedAttribute
property data_created_record_version : int
Property data_created_record_version is of type int.- Return type: int
property data_retired_record_version : int
Property data_retired_record_version is of type int.- Return type: int
property data_revision_info : RevisionInfo
Property data_revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property data_version_number : int
Property data_version_number is of type int.- Return type: int
property has_data : bool
Property has_data is of type bool.- Return type: bool
property parameter_details : list[ParameterDetail]
Property parameter_details is a list ofParameterDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ParameterDetail
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
RecordData
class RecordData(attribute_values=None, record_reference=None, _is_owner=True)
Bases:object
The values of data for attribute(s) of a particular record.
- Parameters:
- attribute_values (list of
AttributeValue) - record_reference (
RecordReference)
- attribute_values (list of
property attribute_values : list[AttributeValue]
Property attribute_values is a list ofAttributeValue objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeValue
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
RecordExporterParameters
class RecordExporterParameters(attributes=None, record=None, _is_owner=True)
Bases:object
A type to contain a record and its associated attribute exporter parameters.
- Parameters:
- attributes (list of
AttributeExporterParameters) - record (
RecordReference)
- attributes (list of
property attributes : list[AttributeExporterParameters]
Property attributes is a list ofAttributeExporterParameters objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeExporterParameters
property record : RecordReference
Property record is of typeRecordReference.
- Return type:
RecordReference
RecordFilter
class RecordFilter(profile=None, subsets=None, record_lists=None, _is_owner=True)
Bases:object
A type allowing lists of Records to be filtered, e.g., by membership of Subset(s). You should
specify either a profile or a subset reference, but not both. You can pass in a list containing an
uninitialized SubsetReference to effectively disable the
subset filter. Note that subsets are not inherited; newly-created records will not be filtered
until they are added to a Subset.
- Parameters:
- profile (str)
- subsets (list of
SubsetReference) - record_lists (list of
RecordListReference)
add_record_list(_recordListReference)
Appends _recordListReference to recordLists property on RecordFilter C-object.- Parameters:
_recordListReference (
RecordListReference)
add_subset(_subsetReference)
Appends _subsetReference to subsets property on RecordFilter C-object.- Parameters:
_subsetReference (
SubsetReference)
property profile : str
Property profile is of type str.- Return type: str
property record_lists : list[RecordListReference]
Property record_lists is a list ofRecordListReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordListReference
property subsets : list[SubsetReference]
Property subsets is a list ofSubsetReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SubsetReference
RecordFolderPath
class RecordFolderPath(color=None, record_reference=None, tree_names=None, _is_owner=True)
Bases:object
The path to a Granta MI record folder. Contains the record folder at which the path starts as
parent, the tree names, and the color.
- Parameters:
- color (str)
- record_reference (
RecordReference) - tree_names (list of str)
add_tree_name(value)
Appends value to treeNames property on RecordFolderPath C-object.- Parameters: value (str)
property color : str
Property color is of type str.- Return type: str
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property tree_names : list[str]
Property tree_names is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.RecordLinkChanges
class RecordLinkChanges(linked=None, unlinked=None, _is_owner=True)
Bases:object
A set of changes to be made to record link groups.
- Parameters:
- linked (list of
NamedTargetedSourceRecord) - unlinked (list of
NamedTargetedSourceRecord)
- linked (list of
property linked : list[NamedTargetedSourceRecord]
Property linked is a list ofNamedTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedTargetedSourceRecord
property unlinked : list[NamedTargetedSourceRecord]
Property unlinked is a list ofNamedTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedTargetedSourceRecord
RecordLinkGroup
class RecordLinkGroup(linked_records=None, name=None, standard_names=None, table_filters=None, _is_owner=True)
Bases:object
A type representing a group of linked records.
- Parameters:
property linked_records : list[NamedRecord]
Property linked_records is a list ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
property name : str
Property name is of type str.- Return type: str
property standard_names : list[str]
Property standard_names is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property table_filters : list[int]
Property table_filters is a list of int objects. SeeGRANTA_Constants for supported values.
WARNING
Do not attempt to edit or append to the returned value.RecordLinkGroupDetail
class RecordLinkGroupDetail(from_table=None, link_group_type=None, name=None, reference=None, reverse_name=None, reverse_reference=None, standard_names=None, to_table=None, _is_owner=True)
Bases:object
Detailed information about a Record Link Group in a Granta MI Database.
- Parameters:
- from_table (
TableReference) - link_group_type (str)
- name (str)
- reference (
RecordLinkGroupReference) - reverse_name (str)
- reverse_reference (
RecordLinkGroupReference) - standard_names (list of str)
- to_table (
TableReference)
- from_table (
add_standard_name(value)
Appends value to standardNames property on RecordLinkGroupDetail C-object.- Parameters: value (str)
property from_table : TableReference
Property from_table is of typeTableReference.
- Return type:
TableReference
property link_group_type : str
Property link_group_type is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property name : str
Property name is of type str.- Return type: str
property reference : RecordLinkGroupReference
Property reference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property reverse_name : str
Property reverse_name is of type str.- Return type: str
property reverse_reference : RecordLinkGroupReference
Property reverse_reference is of typeRecordLinkGroupReference.
- Return type:
RecordLinkGroupReference
property standard_names : list[str]
Property standard_names is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property to_table : TableReference
Property to_table is of typeTableReference.
- Return type:
TableReference
RecordLinkGroupReference
class RecordLinkGroupReference(db_key=None, is_standard_name=None, name=None, partial_table_reference=None, record_link_group_identity=None, record_link_group_type=None, _is_owner=True)
Bases:object
A type that allows identification of a particular record link group in a Granta MI database.
This may be done by specifying the identity of the group, or its name and a partial table reference.
- Parameters:
property db_key : str
Property db_key is of type str.- Return type: str
property is_standard_name : bool
Property is_standard_name is of type bool.- Return type: bool
property name : str
Property name is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference.
- Return type:
PartialTableReference
property record_link_group_identity : int
Property record_link_group_identity is of type int.- Return type: int
property record_link_group_type : str
Property record_link_group_type is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
RecordLinkModifications
class RecordLinkModifications(link_all_combinations=None, link_records=None, unlink_all_records=None, unlink_records=None, _is_owner=True)
Bases:object
A set of modifications to be made to record link groups.
- Parameters:
- link_all_combinations (list of
LinkAllCombinations) - link_records (list of
LinkRecords) - unlink_all_records (list of
UnlinkAllRecords) - unlink_records (list of
UnlinkRecords)
- link_all_combinations (list of
add_link_all_combinations(_linkAllCombinations)
Appends _linkAllCombinations to linkAllCombinations property on RecordLinkModifications C-object.- Parameters:
_linkAllCombinations (
LinkAllCombinations)
add_link_records(_linkRecords)
Appends _linkRecords to linkRecords property on RecordLinkModifications C-object.- Parameters:
_linkRecords (
LinkRecords)
add_unlink_all_records(_unlinkAllRecords)
Appends _unlinkAllRecords to unlinkAllRecords property on RecordLinkModifications C-object.- Parameters:
_unlinkAllRecords (
UnlinkAllRecords)
add_unlink_records(_unlinkRecords)
Appends _unlinkRecords to unlinkRecords property on RecordLinkModifications C-object.- Parameters:
_unlinkRecords (
UnlinkRecords)
property link_all_combinations : list[LinkAllCombinations]
Property link_all_combinations is a list ofLinkAllCombinations objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LinkAllCombinations
property link_records : list[LinkRecords]
Property link_records is a list ofLinkRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
LinkRecords
property unlink_all_records : list[UnlinkAllRecords]
Property unlink_all_records is a list ofUnlinkAllRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnlinkAllRecords
property unlink_records : list[UnlinkRecords]
Property unlink_records is a list ofUnlinkRecords objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnlinkRecords
RecordListReference
class RecordListReference(guid=None, _is_owner=True)
Bases:object
A unique identifier for a record list.
- Parameters: guid (str)
property guid : str
Property guid is of type str.- Return type: str
RecordManipulatorService
class RecordManipulatorService(mi_session, retries=0)
Bases:Service
The Record Manipulator service provides a way to move a record whilst preserving its metadata and attribute values.
move_record(_req)
Reparents a record. Metadata such as creation date will be preserved, along with attribute values.- Parameters:
_req (
RecordMoveRequestobject) - Return type:
EmptyRestResponseobject
RecordMoveRequest
class RecordMoveRequest(db_key=None, new_parent_record_history_guid=None, record_history_guid=None, _is_owner=True)
Bases:object
The details of a MoveRecord operation.
The record to be moved and the new location are both specified with Record History GUIDs.
property db_key : str
Property db_key is of type str.- Return type: str
property new_parent_record_history_guid : str
Property new_parent_record_history_guid is of type str.- Return type: str
property record_history_guid : str
Property record_history_guid is of type str.- Return type: str
RecordNameSearchRequest
class RecordNameSearchRequest(case_sensitive_names=None, filter=None, populate_guids=None, record_name=None, search_full_names=None, search_short_names=None, table=None, _is_owner=True)
Bases:object
The input for the record_name_search operation. Both the table and record_name are required.
- Parameters:
- case_sensitive_names (bool)
- filter (
RecordFilter) - populate_guids (bool)
- record_name (str)
- search_full_names (bool)
- search_short_names (bool)
- table (
TableReference)
property case_sensitive_names : bool
Property case_sensitive_names is of type bool.- Return type: bool
property filter : RecordFilter
Property filter is of typeRecordFilter.
- Return type:
RecordFilter
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_name : str
Property record_name is of type str.- Return type: str
property search_full_names : bool
Property search_full_names is of type bool.- Return type: bool
property search_short_names : bool
Property search_short_names is of type bool.- Return type: bool
property table : TableReference
Property table is of typeTableReference.
- Return type:
TableReference
RecordReference
class RecordReference(db_key=None, history_guid=None, identity=None, lookup_value=None, record_guid=None, version=None, record_uid=None, _is_owner=True)
Bases:object
A type that allows identification of a particular record in a Granta MI database.
This is done directly by specifying the Identity or GUID of the record.
- Parameters:
property db_key : str
Property db_key is of type str.- Return type: str
property history_guid : str
Property history_guid is of type str.- Return type: str
property identity : int
Property identity is of type int.- Return type: int
property lookup_value : LookupValue
Property lookup_value is of typeLookupValue.
- Return type:
LookupValue
property record_guid : str
Property record_guid is of type str.- Return type: str
property record_uid : str
Property record_uid is of type str.- Return type: str
property version : int
Property version is of type int.- Return type: int
RecordSearchCriterion
class RecordSearchCriterion(between_date_times_search_value=None, between_search_value=None, contains_all_search_value=None, contains_any_search_value=None, contains_search_value=None, does_not_contain_search_value=None, does_not_exist_search_value=None, exactly_search_value=None, exists_search_value=None, greater_than_search_value=None, less_than_search_value=None, search_attribute=None, type_=None, equal_to_search_value=None, _is_owner=True)
Bases:object
One criterion that controls results returned from a search.
A search comprises one or more such criteria.
- Parameters:
- between_date_times_search_value (
BetweenDateTimesSearchValue) - between_search_value (
BetweenSearchValue) - contains_all_search_value (
ContainsAllSearchValue) - contains_any_search_value (
ContainsAnySearchValue) - contains_search_value (
ContainsSearchValue) - does_not_contain_search_value (
DoesNotContainSearchValue) - does_not_exist_search_value (
DoesNotExistSearchValue) - exactly_search_value (
ExactlySearchValue) - exists_search_value (
ExistsSearchValue) - greater_than_search_value (
GreaterThanSearchValue) - less_than_search_value (
LessThanSearchValue) - search_attribute (
AttributeReference) - type (str)
- equal_to_search_value (
EqualToSearchValue)
- between_date_times_search_value (
property between_date_times_search_value : BetweenDateTimesSearchValue
Property between_date_times_search_value is of typeBetweenDateTimesSearchValue.
- Return type:
BetweenDateTimesSearchValue
property between_search_value : BetweenSearchValue
Property between_search_value is of typeBetweenSearchValue.
- Return type:
BetweenSearchValue
property contains_all_search_value : ContainsAllSearchValue
Property contains_all_search_value is of typeContainsAllSearchValue.
- Return type:
ContainsAllSearchValue
property contains_any_search_value : ContainsAnySearchValue
Property contains_any_search_value is of typeContainsAnySearchValue.
- Return type:
ContainsAnySearchValue
property contains_search_value : ContainsSearchValue
Property contains_search_value is of typeContainsSearchValue.
- Return type:
ContainsSearchValue
property does_not_contain_search_value : DoesNotContainSearchValue
Property does_not_contain_search_value is of typeDoesNotContainSearchValue.
- Return type:
DoesNotContainSearchValue
property does_not_exist_search_value : DoesNotExistSearchValue
Property does_not_exist_search_value is of typeDoesNotExistSearchValue.
- Return type:
DoesNotExistSearchValue
property equal_to_search_value : EqualToSearchValue
Property equal_to_search_value is of typeEqualToSearchValue.
- Return type:
EqualToSearchValue
property exactly_search_value : ExactlySearchValue
Property exactly_search_value is of typeExactlySearchValue.
- Return type:
ExactlySearchValue
property exists_search_value : ExistsSearchValue
Property exists_search_value is of typeExistsSearchValue.
- Return type:
ExistsSearchValue
property greater_than_search_value : GreaterThanSearchValue
Property greater_than_search_value is of typeGreaterThanSearchValue.
- Return type:
GreaterThanSearchValue
property less_than_search_value : LessThanSearchValue
Property less_than_search_value is of typeLessThanSearchValue.
- Return type:
LessThanSearchValue
property search_attribute : AttributeReference
Property search_attribute is of typeAttributeReference.
- Return type:
AttributeReference
property type_ : str
Property type_ is of type str.- Return type: str
RecordVersionState
class RecordVersionState(record_reference=None, version_state=None, has_released_revision=None, has_superseded_revision=None, has_withdrawn_revision=None, created_revision=None, modified_revision=None, released_revision=None, superseded_revision=None, withdrawn_revision=None, _is_owner=True)
Bases:object
The version status of a particular Record in a Granta MI database.
- Parameters:
- record_reference (
RecordReference) - version_state (int)
- has_released_revision (bool)
- has_superseded_revision (bool)
- has_withdrawn_revision (bool)
- created_revision (
DatabaseRevision) - modified_revision (
DatabaseRevision) - released_revision (
DatabaseRevision) - superseded_revision (
DatabaseRevision) - withdrawn_revision (
DatabaseRevision)
- record_reference (
class VersionState
Bases:object
Released = 0
Superseded = 1
Unknown = 5
Unreleased = 3
Unversioned = 4
Withdrawn = 2
property created_revision : DatabaseRevision
Property created_revision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property has_released_revision : bool
Property has_released_revision is of type bool.- Return type: bool
property has_superseded_revision : bool
Property has_superseded_revision is of type bool.- Return type: bool
property has_withdrawn_revision : bool
Property has_withdrawn_revision is of type bool.- Return type: bool
property modified_revision : DatabaseRevision
Property modified_revision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property released_revision : DatabaseRevision
Property released_revision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property superseded_revision : DatabaseRevision
Property superseded_revision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property version_state : int
Property version_state is of type int. SeeRecordVersionState.VersionState for supported values.
- Return type: int
property withdrawn_revision : DatabaseRevision
Property withdrawn_revision is of typeDatabaseRevision.
- Return type:
DatabaseRevision
RecordWithAttributeAddresses
class RecordWithAttributeAddresses(attribute_addresses=None, record_reference=None, _is_owner=True)
Bases:object
A RecordReference with a list of attributes and their upload
URL addresses.
- Parameters:
- attribute_addresses (list of
AttributeAddress) - record_reference (
RecordReference)
- attribute_addresses (list of
add_attribute_address(_attributeAddress)
Appends _attributeAddress to attributeAddresses property on RecordWithAttributeAddresses C-object.- Parameters:
_attributeAddress (
AttributeAddress)
property attribute_addresses : list[AttributeAddress]
Property attribute_addresses is a list ofAttributeAddress objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeAddress
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
ResolveReferencesRequest
class ResolveReferencesRequest(entities=None, _is_owner=True)
Bases:object
Input for the resolve_references operation.
- Parameters:
entities (list of
RecordReference)
add_entitie(_recordReference)
Appends _recordReference to entities property on ResolveReferencesRequest C-object.- Parameters:
_recordReference (
RecordReference)
property entities : list[RecordReference]
Property entities is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
ResolveReferencesResponse
class ResolveReferencesResponse(c_obj)
Bases:Response
Output from the resolve_references operation.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a ResolveReferencesResponse object.
property entity_resolutions : list[MIEntityResolution]
Property entity_resolutions is a list ofMIEntityResolution objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
MIEntityResolution
Response
class Response(c_obj)
Bases:ABC
Base class for response types in Granta MI.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a response object.
property service_layer_response : ServiceLayerResponse
The raw response object received from the Granta MI Service Layer.- Return type:
ServiceLayerResponse
RevisionInfo
class RevisionInfo(created=None, modified=None, update_count=None, _is_owner=True)
Bases:object
Describes when an entity in a Granta MI database was created and updated.
- Parameters:
- created (
DatabaseRevision) - modified (
DatabaseRevision) - update_count (int)
- created (
property created : DatabaseRevision
Property created is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property modified : DatabaseRevision
Property modified is of typeDatabaseRevision.
- Return type:
DatabaseRevision
property update_count : int
Property update_count is of type int.- Return type: int
RichText
class RichText(type_=None, value=None, _is_owner=True)
Bases:object
Contains a piece of text and its type.
class Type
Bases:object
Markdown = 1
Plain = 0
property type_ : int
Property type_ is of type int.- Return type: int
property value : str
Property value is of type str.- Return type: str
SearchResult
class SearchResult(long_name=None, ranking=None, record_reference=None, short_name=None, color=None, record_type=None, _is_owner=True)
Bases:object
An extension of NamedRecord with a ranking. The higher the
ranking the better the match to your search criteria.
- Parameters:
property color : str
Property color is of type str.- Return type: str
property long_name : str
Property long_name is of type str.- Return type: str
property ranking : str
Property ranking is of type str.- Return type: str
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property record_type : str
Property record_type is of type str.- Return type: str
property short_name : str
Property short_name is of type str.- Return type: str
SearchService
class SearchService(mi_session, retries=0)
Bases:Service
The Search service finds Records, within Granta MI Databases, matching specified criteria.
criteria_search(_req)
Searches for records matching attribute-based criteria.- Parameters:
_req (
CriteriaSearchobject) - Return type:
SimpleTextSearchResponseobject
record_name_search(_req)
Searches for Records with a given exact Record name.- Parameters:
_req (
RecordNameSearchRequestobject) - Return type:
SimpleTextSearchResponseobject
simple_text_search(_req)
Searches for records matching simple text criteria.- Parameters:
_req (
SimpleTextSearchobject) - Return type:
SimpleTextSearchResponseobject
Series
class Series(xy_points=None, constraints=None, decoration=None, _is_owner=True)
Bases:object
Type for functional data which includes X-Y data and any constraints.
- Parameters:
- xy_points (
XYData) - constraints (
Constraints) - decoration (int)
- xy_points (
property constraints : Constraints
Property constraints is of typeConstraints.
- Return type:
Constraints
property decoration : int
Property decoration is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property xy_points : XYData
Property xy_points is of typeXYData.
- Return type:
XYData
Service
class Service(mi_session, retries=0)
Bases:object
Base class for Granta MI Service objects. For internal use only.
ServiceLayerResponse
class ServiceLayerResponse(error_message=None, request_message=None, response_code=None, response_message=None, _is_owner=True)
Bases:object
The HTTP response information from Granta MI Service Layer. Useful for debugging bad requests.
property error_message : str
Property error_message is of type str.- Return type: str
property request_message : str
Property request_message is of type str.- Return type: str
property response_code : int
Property response_code is of type int. This is an HTTP status code.- Return type: int
property response_message : str
Property response_message is of type str.- Return type: str
SetRecordAttributesRequest
class SetRecordAttributesRequest(import_error_mode=None, import_records=None, notes=None, release_notes=None, _is_owner=True)
Bases:object
The input to a set record attributes operation. Includes an array of records to import.
- Parameters:
- import_error_mode (str)
- import_records (list of
ImportRecord) - notes (str)
- release_notes (str)
add_import_record(_importRecord)
Appends _importRecord to importRecords property on SetRecordAttributesRequest C-object.- Parameters:
_importRecord (
ImportRecord)
property import_error_mode : str
Property import_error_mode is of type str. SeeGRANTA_Constants for supported values.
- Return type: str
property import_records : list[ImportRecord]
Property import_records is a list ofImportRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
ImportRecord
property notes : str
Property notes is of type str.- Return type: str
property release_notes : str
Property release_notes is of type str.- Return type: str
SetRecordAttributesResponse
class SetRecordAttributesResponse(c_obj)
Bases:Response
Response for set_record_attributes operation. Includes an array of import records.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a SetRecordAttributesResponse object.
property records_imported : list[NamedRecord]
Property records_imported is a list ofNamedRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedRecord
ShortTextDataType
class ShortTextDataType(is_applicable=None, value=None, _is_owner=True)
Bases:IDataValue
Type for values of short text (string) data.
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property value : str
Property value is of type str.- Return type: str
SimpleTextSearch
class SimpleTextSearch(db_key=None, populate_guids=None, record_filter=None, restrict_to_tables=None, search_filter=None, search_mode=None, search_value=None, _is_owner=True)
Bases:object
The input to a simple_text_search operation.
Both the db_key, and search value are required.
- Parameters:
- db_key (str)
- populate_guids (bool)
- record_filter (
RecordFilter) - restrict_to_tables (list of
PartialTableReference) - search_filter (int)
- search_mode (int)
- search_value (str)
add_restrict_to_table(_partialTableReference)
Appends _partialTableReference to restrictToTables property on SimpleTextSearch C-object.- Parameters:
_partialTableReference (
PartialTableReference)
property db_key : str
Property db_key is of type str.- Return type: str
property populate_guids : bool
Property populate_guids is of type bool.- Return type: bool
property record_filter : RecordFilter
Property record_filter is of typeRecordFilter.
- Return type:
RecordFilter
property restrict_to_tables : list[PartialTableReference]
Property restrict_to_tables is a list ofPartialTableReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
PartialTableReference
property search_filter : int
Property search_filter is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property search_mode : int
Property search_mode is of type int. SeeGRANTA_Constants for supported values.
- Return type: int
property search_value : str
Property search_value is of type str.- Return type: str
SimpleTextSearchResponse
class SimpleTextSearchResponse(c_obj)
Bases:Response
The output to the simple_text_search operation.
Contains a list of records returned by the search and a
ServiceLayerResponse object.
- Parameters: c_obj (ctypes._Pointer) – Pointer to a SimpleTextSearchResponse object.
add_search_result(_searchResult)
Appends _searchResult to searchResults property on SimpleTextSearchResponse C-object.- Parameters:
_searchResult (
SearchResult)
property search_results : list[SearchResult]
Property search_results is a list ofSearchResult objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
SearchResult
SourceRecord
class SourceRecord(record=None, record_link_groups=None, _is_owner=True)
Bases:object
A type that contains a record reference and associated record link groups.
- Parameters:
- record (
RecordReference) - record_link_groups (
LinkedRecordsDataType)
- record (
property record : RecordReference
Property record is of typeRecordReference.
- Return type:
RecordReference
property record_link_groups : LinkedRecordsDataType
Property record_link_groups is of typeLinkedRecordsDataType.
- Return type:
LinkedRecordsDataType
SourceUnitConversionSet
class SourceUnitConversionSet(conversions=None, source_symbol=None, _is_owner=True)
Bases:object
All the unit conversions available for a specified unit.
- Parameters:
- conversions (list of
UnitConversionTarget) - source_symbol (str)
- conversions (list of
property conversions : list[UnitConversionTarget]
Property conversions is a list ofUnitConversionTarget objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversionTarget
property source_symbol : str
Property source_symbol is of type str.- Return type: str
SpecificUnitConversionContext
class SpecificUnitConversionContext(absolute_units=None, currency=None, unit_symbol=None, _is_owner=True)
Bases:object
Type defining how values with convertible units should be represented.
property absolute_units : bool
Property absolute_units is of type bool.- Return type: bool
property currency : str
Property currency is of type str.- Return type: str
property unit_symbol : str
Property unit_symbol is of type str.- Return type: str
SubsetDetail
class SubsetDetail(name=None, subset=None, _is_owner=True)
Bases:object
Detailed meta-information about a subset in a Granta MI database.
- Parameters:
- name (str)
- subset (
SubsetReference)
property name : str
Property name is of type str.- Return type: str
property subset : SubsetReference
Property subset is of typeSubsetReference.
- Return type:
SubsetReference
SubsetReference
class SubsetReference(db_key=None, name=None, partial_table_reference=None, subset_identity=None, _is_owner=True)
Bases:object
A type that identifies a particular subset in a Granta MI database. This may be done by specifying
the identity of the subset, or by specifying a name that will match (only) the subset along with
the table to which the subset belongs.
- Parameters:
- db_key (str)
- name (str)
- partial_table_reference (
PartialTableReference) - subset_identity (int)
property db_key : str
Property db_key is of type str.- Return type: str
property name : str
Property name is of type str.- Return type: str
property partial_table_reference : PartialTableReference
Property partial_table_reference is of typePartialTableReference. When used for input, this only needs to be specified if you are specifying a name rather than an id.
- Return type:
PartialTableReference
property subset_identity : int
Property subset_identity is of type int.- Return type: int
SubsetsDataType
class SubsetsDataType(data_version_no=None, import_node_name=None, named_subsets=None, node_name=None, type_string=None, _is_owner=True)
Bases:IDataValue
Contains a list of subsets.
Contains a list of subsets (returned by DataExport for the pseudo attribute for Subsets).
- Parameters:
- data_version_no (int)
- import_node_name (str)
- named_subsets (list of
NamedSubset) - node_name (str)
- type_string (str)
property data_version_no : int
Property data_version_no is of type int.- Return type: int
property import_node_name : str
Property import_node_name is of type str.- Return type: str
property named_subsets : list[NamedSubset]
Property named_subsets is a list ofNamedSubset objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
NamedSubset
property node_name : str
Property node_name is of type str.- Return type: str
property type_string : str
Property type_string is of type str.- Return type: str
TableDetail
class TableDetail(attribute_references=None, default_layout=None, default_subset=None, standard_attribute_references=None, table_filters=None, table_reference=None, _is_owner=True)
Bases:object
Detailed meta-information about a table in a Granta MI database.
- Parameters:
- attribute_references (list of
AttributeReference) - default_layout (
NamedLayout) - default_subset (
SubsetDetail) - standard_attribute_references (list of
AttributeReference) - table_filters (list of int)
- table_reference (
TableReference)
- attribute_references (list of
add_attribute_references(_attributeReference)
Appends _attributeReference to attributeReferences property on TableDetail C-object.- Parameters:
_attributeReference (
AttributeReference)
property attribute_references : list[AttributeReference]
Property attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property default_layout : NamedLayout
Property default_layout is of typeNamedLayout.
- Return type:
NamedLayout
property default_subset : SubsetDetail
Property default_subset is of typeSubsetDetail.
- Return type:
SubsetDetail
property standard_attribute_references : list[AttributeReference]
Property standard_attribute_references is a list ofAttributeReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
AttributeReference
property table_filters : list[int]
Property table_filters is a list of int objects. SeeGRANTA_Constants for supported values.
WARNING
Do not attempt to edit or append to the returned value.property table_reference : TableReference
Property table_reference is of typeTableReference.
- Return type:
TableReference
TableReference
class TableReference(db_key=None, guid=None, id_=None, name=None, _is_owner=True)
Bases:object
A type that allows identification of a particular table in a particular Granta MI database.
The db_key is required in addition to at least one of either: id, guid, or name.
property db_key : str
Property db_key is of type str.- Return type: str
property guid : str
Property guid is of type str.- Return type: str
property id_ : int
Property id_ is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
TabularColumnDetail
class TabularColumnDetail(data_type=None, database_unit=None, discrete_values=None, name=None, revision_info=None, type_=None, identity=None, _is_owner=True)
Bases:object
Describes a Tabular Column, defined in a Tabular Attribute.
This details how the schema describes the Column, and does not provide information about the
contents of the Column in any particular Datum.
- Parameters:
property data_type : str
Property data_type is of type str.- Return type: str
property database_unit : str
Property database_unit is of type str.- Return type: str
property discrete_values : list[str]
Property discrete_values is a list of str objects.WARNING
Do not attempt to edit or append to the returned value.property identity : int
Property identity is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
property revision_info : RevisionInfo
Property revision_info is of typeRevisionInfo.
- Return type:
RevisionInfo
property type_ : int
Property type_ is of type int.- Return type: int
TabularDataCell
class TabularDataCell(data=None, data_type=None, date_data_value=None, discrete_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, list_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, empty_data_value=None, _is_owner=True)
Bases:object
A Cell within an exported item of Tabular Data. The data type property can be used to determine what
type of data the cell contains.
- Parameters:
- data (
IDataValue) - data_type (str)
- date_data_value (
DateDataType) - discrete_data_value (
DiscreteDataType) - file_data_value (
FileDataType) - hyperlink_data_value (
HyperlinkDataType) - integer_data_value (
IntegerDataType) - list_data_value (
ListDataType) - logical_data_value (
LogicalDataType) - long_text_data_value (
LongTextDataType) - picture_data_value (
PictureDataType) - point_data_value (
PointDataType) - range_data_value (
RangeDataType) - short_text_data_value (
ShortTextDataType) - empty_data_value (
EmptyDataType)
- data (
property data : IDataValue
Property data is of typeIDataValue.
- Return type:
IDataValue
property data_type : str
Property data_type is of type str.- Return type: str
property date_data_value : DateDataType
Property date_data_value is of typeDateDataType.
- Return type:
DateDataType
property discrete_data_value : DiscreteDataType
Property discrete_data_value is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property empty_data_value : EmptyDataType
Property empty_data_value is of typeEmptyDataType.
- Return type:
EmptyDataType
property file_data_value : FileDataType
Property file_data_value is of typeFileDataType.
- Return type:
FileDataType
property hyperlink_data_value : HyperlinkDataType
Property hyperlink_data_value is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integer_data_value : IntegerDataType
Property integer_data_value is of typeIntegerDataType.
- Return type:
IntegerDataType
property list_data_value : ListDataType
Property list_data_value is of typeListDataType.
- Return type:
ListDataType
property logical_data_value : LogicalDataType
Property logical_data_value is of typeLogicalDataType.
- Return type:
LogicalDataType
property long_text_data_value : LongTextDataType
Property long_text_data_value is of typeLongTextDataType.
- Return type:
LongTextDataType
property picture_data_value : PictureDataType
Property picture_data_value is of typePictureDataType.
- Return type:
PictureDataType
property point_data_value : PointDataType
Property point_data_value is of typePointDataType.
- Return type:
PointDataType
property range_data_value : RangeDataType
Property range_data_value is of typeRangeDataType.
- Return type:
RangeDataType
property short_text_data_value : ShortTextDataType
Property short_text_data_value is of typeShortTextDataType.
- Return type:
ShortTextDataType
TabularDataImportCell
class TabularDataImportCell(column_name=None, data_type=None, date_data_value=None, discrete_data_value=None, empty_data_value=None, file_data_value=None, hyperlink_data_value=None, integer_data_value=None, logical_data_value=None, long_text_data_value=None, picture_data_value=None, point_data_value=None, range_data_value=None, short_text_data_value=None, _is_owner=True)
Bases:object
A Cell within an item of Tabular Data for import. In contrast to
TabularDataCell that relates to existing data,
TabularDataImportCell includes the column name and that column name must be provided.
- Parameters:
- column_name (str)
- data_type (str)
- date_data_value (
DateDataType) - discrete_data_value (
DiscreteDataType) - empty_data_value (
EmptyDataType) - file_data_value (
FileDataType) - hyperlink_data_value (
HyperlinkDataType) - integer_data_value (
IntegerDataType) - logical_data_value (
LogicalDataType) - long_text_data_value (
LongTextDataType) - picture_data_value (
PictureDataType) - point_data_value (
PointDataType) - range_data_value (
RangeDataType) - short_text_data_value (
ShortTextDataType)
property column_name : str
Property column_name is of type str.- Return type: str
property data_type : str
Property data_type is of type str.- Return type: str
property date_data_value : DateDataType
Property date_data_value is of typeDateDataType.
- Return type:
DateDataType
property discrete_data_value : DiscreteDataType
Property discrete_data_value is of typeDiscreteDataType.
- Return type:
DiscreteDataType
property empty_data_value : EmptyDataType
Property empty_data_value is of typeEmptyDataType.
- Return type:
EmptyDataType
property file_data_value : FileDataType
Property file_data_value is of typeFileDataType.
- Return type:
FileDataType
property hyperlink_data_value : HyperlinkDataType
Property hyperlink_data_value is of typeHyperlinkDataType.
- Return type:
HyperlinkDataType
property integer_data_value : IntegerDataType
Property integer_data_value is of typeIntegerDataType.
- Return type:
IntegerDataType
property logical_data_value : LogicalDataType
Property logical_data_value is of typeLogicalDataType.
- Return type:
LogicalDataType
property long_text_data_value : LongTextDataType
Property long_text_data_value is of typeLongTextDataType.
- Return type:
LongTextDataType
property picture_data_value : PictureDataType
Property picture_data_value is of typePictureDataType.
- Return type:
PictureDataType
property point_data_value : PointDataType
Property point_data_value is of typePointDataType.
- Return type:
PointDataType
property range_data_value : RangeDataType
Property range_data_value is of typeRangeDataType.
- Return type:
RangeDataType
property short_text_data_value : ShortTextDataType
Property short_text_data_value is of typeShortTextDataType.
- Return type:
ShortTextDataType
TabularDataImportRow
class TabularDataImportRow(cells=None, linking_value=None, _is_owner=True)
Bases:object
A Row within an item of Tabular Data, this type is specifically for creating a new tabular datum, or
for overwriting existing data in an import operation.
- Parameters:
- cells (list of
TabularDataImportCell) - linking_value (str)
- cells (list of
add_cell_ref(_tabularDataImportCell)
Appends _tabularDataImportCell to cells property on TabularDataImportRow C-object.- Parameters:
_tabularDataImportCell (
TabularDataImportCell)
property cells : list[TabularDataImportCell]
Property cells is a list ofTabularDataImportCell objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataImportCell
property linking_value : str
Property linking_value is of type str.- Return type: str
TabularDataImportType
class TabularDataImportType(import_rows=None, is_applicable=None, update_rows=None, _is_owner=True)
Bases:IDataValue
Type representing an item of Tabular Data, this type is specifically for import operations.
- Parameters:
- import_rows (list of
TabularDataImportRow) - is_applicable (bool)
- update_rows (list of
TabularDataUpdateRow)
- import_rows (list of
add_import_row_refs(_tabularDataImportRow)
Appends _tabularDataImportRow to importRows property on TabularDataImportType C-object.- Parameters:
_tabularDataImportRow (
TabularDataImportRow)
add_update_row_refs(_tabularDataUpdateRow)
Appends _tabularDataUpdateRow to updateRows property on TabularDataImportType C-object.- Parameters:
_tabularDataUpdateRow (
TabularDataUpdateRow)
property import_rows : list[TabularDataImportRow]
Property import_rows is a list ofTabularDataImportRow objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataImportRow
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property update_rows : list[TabularDataUpdateRow]
Property update_rows is a list ofTabularDataUpdateRow objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataUpdateRow
TabularDataRow
class TabularDataRow(id_=None, cells=None, linked_records=None, linking_value=None, _is_owner=True)
Bases:object
A Row within an item of exported Tabular Data.
- Parameters:
- id (int)
- cells (list of
TabularDataCell) - linked_records (list of
RecordReference) - linking_value (str)
property cells : list[TabularDataCell]
Property cells is a list ofTabularDataCell objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataCell
property id_ : int
Property id_ is of type int.- Return type: int
property linked_records : list[RecordReference]
Property linked_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
property linking_value : str
Property linking_value is of type str.- Return type: str
TabularDataType
class TabularDataType(columns=None, is_applicable=None, tabular_data_rows=None, summary_columns=None, summary_row=None, _is_owner=True)
Bases:IDataValue
Type representing an item of exported Tabular Data, including metadata such as Column definitions.
This type is not used for importing Tabular Data; instead, use
TabularDataImportType.
- Parameters:
- columns (list of
TabularDataTypeColumn) - is_applicable (bool)
- tabular_data_rows (list of
TabularDataRow) - summary_columns (list of
TabularDataTypeSummaryColumn) - summary_row (
TabularDataRow)
- columns (list of
add_column_ref(_tabularDataTypeColumn)
Appends _tabularDataTypeColumn to columns property on TabularDataType C-object.- Parameters:
_tabularDataTypeColumn (
TabularDataTypeColumn)
property columns : list[TabularDataTypeColumn]
Property columns is a list ofTabularDataTypeColumn objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataTypeColumn
property is_applicable : bool
Property is_applicable is of type bool.- Return type: bool
property summary_columns : list[TabularDataTypeSummaryColumn]
Property summary_columns is a list ofTabularDataTypeSummaryColumn objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataTypeSummaryColumn
property summary_row : TabularDataRow
Property summary_row is of typeTabularDataRow.
- Return type:
TabularDataRow
property tabular_data_rows : list[TabularDataRow]
Property tabular_data_rows is a list ofTabularDataRow objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataRow
TabularDataTypeColumn
class TabularDataTypeColumn(column_type=None, data_type=None, database_unit=None, identity=None, name=None, _is_owner=True)
Bases:object
Information about a column in a specific tabular attribute.
class ColType
Bases:object
Local = 0
TargetAttribute = 1
TargetRecord = 2
TargetTabularColumn = 3
Unavailable = 4
property column_type : int
Property column_type is of type int.- Return type: int
property data_type : str
Property data_type is of type str.- Return type: str
property database_unit : str
Property database_unit is of type str.- Return type: str
property identity : int
Property identity is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
TabularDataTypeSummaryColumn
class TabularDataTypeSummaryColumn(column_type=None, data_type=None, database_unit=None, identity=None, name=None, summary_rollup_cell_type=None, summary_rollup_type=None, _is_owner=True)
Bases:object
Information about a summary column in a specific tabular attribute.
- Parameters:
class TabularRollupType
Bases:object
Chart = 10
CoefficientOfVariation = 9
Count = 6
CountDistinct = 7
List = 0
ListDistinct = 8
Max = 1
Mean = 3
Min = 2
StandardDeviation = 4
Sum = 5
property column_type : int
Property column_type is of type int.- Return type: int
property data_type : str
Property data_type is of type str.- Return type: str
property database_unit : str
Property database_unit is of type str.- Return type: str
property identity : int
Property identity is of type int.- Return type: int
property name : str
Property name is of type str.- Return type: str
property summary_rollup_cell_type : str
Property summary_rollup_cell_type is of type str.- Return type: str
property summary_rollup_type : int
Property summary_rollup_type is of type int.- Return type: int
TabularDataUpdateRow
class TabularDataUpdateRow(id_=None, cells=None, linking_value=None, update_type=None, _is_owner=True)
Bases:object
A Row within an item of Tabular Data, this type is specifically for updating existing tabular data.
The .update_type property must be used to specify the type of row operation, Update,
Append and Delete are supported. For delete operations, only the id_ property needs to
be provided. For all other operations, at least one cell must be provided.
- Parameters:
- id (int)
- cells (list of
TabularDataImportCell) - linking_value (str)
- update_type (str)
class ChangeType
Bases:object
Append = 1
Delete = 3
InsertBefore = 0
Update = 2
add_cell_ref(_tabularDataImportCell)
Appends _tabularDataImportCell to cells property on TabularDataUpdateRow C-object.- Parameters:
_tabularDataImportCell (
TabularDataImportCell)
property cells : list[TabularDataImportCell]
Property cells is a list ofTabularDataImportCell objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularDataImportCell
property id_ : int
Property id_ is of type int.- Return type: int
property linking_value : str
Property linking_value is of type str.- Return type: str
property update_type : str
Property update_type is of type str.- Return type: str
TabularDetail
class TabularDetail(columns=None, linked_table=None, linking_attribute=None, _is_owner=True)
Bases:object
Information about a specific tabular attribute. If the tabular attribute has a linking attribute,
you can specify the linking attribute and the linked table containing that attribute.
- Parameters:
- columns (list of
TabularColumnDetail) - linked_table (
TableReference) - linking_attribute (
NamedAttribute)
- columns (list of
property columns : list[TabularColumnDetail]
Property columns is a list ofTabularColumnDetail objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TabularColumnDetail
property linked_table : TableReference
Property linked_table is of typeTableReference.
- Return type:
TableReference
property linking_attribute : NamedAttribute
Property linking_attribute is of typeNamedAttribute.
- Return type:
NamedAttribute
TargetedSourceRecord
class TargetedSourceRecord(source_record=None, target_records=None, _is_owner=True)
Bases:object
A type for unlinking records, contains a source
RecordReference and an array of target
RecordReference objects.
- Parameters:
- source_record (
RecordReference) - target_records (list of
RecordReference)
- source_record (
add_target_record(_recordReference)
Appends _recordReference to targetRecords property on TargetedSourceRecord C-object.- Parameters:
_recordReference (
RecordReference)
property source_record : RecordReference
Property source_record is of typeRecordReference.
- Return type:
RecordReference
property target_records : list[RecordReference]
Property target_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
TrailingZeroInformation
class TrailingZeroInformation(entered_unit=None, entered_value=None, significant_figures=None, _is_owner=True)
Bases:object
Type representing the numerical value as originally entered, including original unit and significant
figures.
property entered_unit : str
Property entered_unit is of type str.- Return type: str
property entered_value : str
Property entered_value is of type str.- Return type: str
property significant_figures : int
Property significant_figures is of type int.- Return type: int
TreeRecord
class TreeRecord(children=None, color=None, long_name=None, parent_record_history_identity=None, record_reference=None, short_name=None, type_=None, _is_owner=True)
Bases:object
Type representing a single record in a Granta MI database, along with information about its position
in the node-tree.
- Parameters:
- children (list of
TreeRecord) - color (str)
- long_name (str)
- parent_record_history_identity (int)
- record_reference (
RecordReference) - short_name (str)
- type (str)
- children (list of
add_children(_treeRecord)
Appends _treeRecord to children property on TreeRecord C-object.- Parameters:
_treeRecord (
TreeRecord)
property children : list[TreeRecord]
Property children is a list ofTreeRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TreeRecord
property color : str
Property color is of type str.- Return type: str
property long_name : str
Property long_name is of type str.- Return type: str
property parent_record_history_identity : int
Property parent_record_history_identity is of type int.- Return type: int
property record_reference : RecordReference
Property record_reference is of typeRecordReference.
- Return type:
RecordReference
property short_name : str
Property short_name is of type str.- Return type: str
property type_ : str
Property type_ is of type str.- Return type: str
UnitConversion
class UnitConversion(factor=None, offset=None, source_symbol=None, target_symbol=None, _is_owner=True)
Bases:object
Information about how to convert from a specified source unit to a target unit.
property factor : float
Property factor is of type float.- Return type: float
property offset : float
Property offset is of type float.- Return type: float
property source_symbol : str
Property source_symbol is of type str.- Return type: str
property target_symbol : str
Property target_symbol is of type str.- Return type: str
UnitConversionContext
class UnitConversionContext(absolute_units=None, currency=None, unit_system=None, _is_owner=True)
Bases:object
Type defining how values with units should be represented.
- Parameters:
- absolute_units (bool)
- currency (str)
- unit_system (
UnitSystemDetail)
property absolute_units : bool
Property absolute_units is of type bool.- Return type: bool
property currency : str
Property currency is of type str.- Return type: str
property unit_system : UnitSystemDetail
Property unit_system is of typeUnitSystemDetail.
- Return type:
UnitSystemDetail
UnitConversionContextConversionSet
class UnitConversionContextConversionSet(unit_conversion_context=None, unit_conversions=None, _is_owner=True)
Bases:object
All the unit conversions available with a specified unit conversion context.
- Parameters:
- unit_conversion_context (
UnitConversionContext) - unit_conversions (list of
UnitConversion)
- unit_conversion_context (
add_unit_conversion(_unitConversion)
Appends _unitConversion to unitConversions property on UnitConversionContextConversionSet C-object.- Parameters:
_unitConversion (
UnitConversion)
property unit_conversion_context : UnitConversionContext
Property unit_conversion_context is of typeUnitConversionContext.
- Return type:
UnitConversionContext
property unit_conversions : list[UnitConversion]
Property unit_conversions is a list ofUnitConversion objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
UnitConversion
UnitConversionTarget
class UnitConversionTarget(factor=None, offset=None, target_symbol=None, _is_owner=True)
Bases:object
Information about how to convert to a target unit. When this type is used directly, the source unit
is assumed to be already known from a different type. To obtain a value in the target units,
multiply the source value by the factor, and then add the offset.
property factor : float
Property factor is of type float.- Return type: float
property offset : float
Property offset is of type float.- Return type: float
property target_symbol : str
Property target_symbol is of type str.- Return type: str
UnitInformation
class UnitInformation(unit_name=None, unit_symbol=None, _is_owner=True)
Bases:object
A type used to give details of units for quantities.
When this type is output by the Service Layer, both name and symbol will be populated. When passed
as input to the Service Layer, only name or symbol need to be populated; if both are populated,
only the symbol is used.
property unit_name : str
Property unit_name is of type str.- Return type: str
property unit_symbol : str
Property unit_symbol is of type str.- Return type: str
UnitSymbol
class UnitSymbol(has_currency=None, symbol=None, _is_owner=True)
Bases:object
A unit symbol known to MI, and whether it references a currency.
property has_currency : bool
Property has_currency is of type bool.- Return type: bool
property symbol : str
Property symbol is of type str.- Return type: str
UnitSystemDetail
class UnitSystemDetail(display_names=None, name=None, _is_owner=True)
Bases:object
A unit system, along with any localised names, if defined.
- Parameters:
- display_names (list of
DisplayName) - name (str)
- display_names (list of
property display_names : list[DisplayName]
Property display_names is a list ofDisplayName objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
DisplayName
property name : str
Property name is of type str.- Return type: str
UnittedParameterValue
class UnittedParameterValue(parameter_with_values=None, unit_symbol=None, _is_owner=True)
Bases:object
A Parameter, along with a single value of that Parameter, optionally with units.
- Parameters:
- parameter_with_values (
ParameterReferenceAndValue) - unit_symbol (str)
- parameter_with_values (
property parameter_with_values : ParameterReferenceAndValue
Property parameter_with_values is of typeParameterReferenceAndValue.
- Return type:
ParameterReferenceAndValue
property unit_symbol : str
Property unit_symbol is of type str.- Return type: str
UnlinkAllRecords
class UnlinkAllRecords(node_name=None, source_records=None, _is_owner=True)
Bases:object
For each given source record, remove all links in the Record Link Group.
- Parameters:
- node_name (str)
- source_records (list of
RecordReference)
add_source_record(_recordReference)
Appends _recordReference to sourceRecords property on UnlinkAllRecords C-object.- Parameters:
_recordReference (
RecordReference)
property node_name : str
Property node_name is of type str.- Return type: str
property source_records : list[RecordReference]
Property source_records is a list ofRecordReference objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
RecordReference
UnlinkRecords
class UnlinkRecords(node_name=None, source_records=None, _is_owner=True)
Bases:object
For each given source record, remove links to the target records specified for that source record.
Silently skip any links that do not exist.
- Parameters:
- node_name (str)
- source_records (list of
TargetedSourceRecord)
add_source_record(_targetedSourceRecord)
Appends _targetedSourceRecord to sourceRecords property on UnlinkRecords C-object.- Parameters:
_targetedSourceRecord (
TargetedSourceRecord)
property node_name : str
Property node_name is of type str.- Return type: str
property source_records : list[TargetedSourceRecord]
Property source_records is a list ofTargetedSourceRecord objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
TargetedSourceRecord
XYData
class XYData(xy_points=None, xy_ranges=None, type_=None, _is_owner=True)
Bases:object
A collection of y-axis values for a graph where the y-axis values are either point or range values.
add_xy_point(_XYPoint)
Appends _XYPoint to XYPoints property on XYData C-object.- Parameters:
_XYPoint (
XYPoint)
add_xy_range(_XYRange)
Appends _XYRange to XYRanges property on XYData C-object.- Parameters:
_XYRange (
XYRange)
property type_ : str
Property type_ is of type str.- Return type: str
property xy_points : list[XYPoint]
Property xy_points is a list ofXYPoint objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYPoint
property xy_ranges : list[XYRange]
Property xy_ranges is a list ofXYRange objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYRange
XYDiscrete
class XYDiscrete(y=None, is_estimated=None, parameter_value=None, _is_owner=True)
Bases:object
An x-y datum where the y-axis value is a discrete value.
- Parameters:
- y (str)
- is_estimated (bool)
- parameter_value (
ParameterValue)
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property parameter_value : ParameterValue
Property parameter_value is of typeParameterValue.
- Return type:
ParameterValue
property y : str
Property y is of type str.- Return type: str
XYDiscreteData
class XYDiscreteData(xy_discretes=None, _is_owner=True)
Bases:object
A collection of y-axis values for a graph where the y-axis values are discrete values.
- Parameters:
xy_discretes (list of
XYDiscrete)
add_xy_discrete(_XYDiscrete)
Appends _XYDiscrete to XYDiscretes property on XYDiscreteData C-object.- Parameters:
_XYDiscrete (
XYDiscrete)
property xy_discretes : list[XYDiscrete]
Property xy_discretes is a list ofXYDiscrete objects.
WARNING
Do not attempt to edit or append to the returned value.- Return type:
list of
XYDiscrete
XYPoint
class XYPoint(y=None, is_estimated=None, parameter_value=None, _is_owner=True)
Bases:object
An x-y datum where the y-axis value is a point.
- Parameters:
- y (float)
- is_estimated (bool)
- parameter_value (
ParameterValue)
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property parameter_value : ParameterValue
Property parameter_value is of typeParameterValue.
- Return type:
ParameterValue
property y : float
Property y is of type float.- Return type: float
XYRange
class XYRange(is_estimated=None, lower_y=None, parameter_value=None, upper_y=None, _is_owner=True)
Bases:object
An x-y datum where the y-axis value is a range.
- Parameters:
- is_estimated (bool)
- lower_y (float)
- parameter_value (
ParameterValue) - upper_y (float)
property is_estimated : bool
Property is_estimated is of type bool.- Return type: bool
property lower_y : float
Property lower_y is of type float.- Return type: float
property parameter_value : ParameterValue
Property parameter_value is of typeParameterValue.
- Return type:
ParameterValue
property upper_y : float
Property upper_y is of type float.- Return type: float