Main
cognite.neat._issues.warnings
#
All warnings raised by the neat package are defined here. Note this module is called 'warnings' which conflicts with the built-in Python warnings module. However, it is expected to always be used in an absolute import, and should thus not cause a naming conflict.
DefaultWarning
dataclass
#
CDFAuthWarning
dataclass
#
CDFMaxIterationsWarning
dataclass
#
FileItemNotSupportedWarning
dataclass
#
FileMissingRequiredFieldWarning
dataclass
#
FileReadWarning
dataclass
#
FileTypeUnexpectedWarning
dataclass
#
MissingCogniteClientWarning
dataclass
#
NeatValueWarning
dataclass
#
NotSupportedWarning
dataclass
#
RegexViolationWarning
dataclass
#
Bases: NeatWarning
The value '{value}' of {identifier} does not match the {pattern_name} pattern '{pattern}'
BreakingModelingPrincipleWarning
dataclass
#
Bases: NeatWarning
, ABC
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
CDFNotSupportedWarning
dataclass
#
Bases: NeatWarning
, ABC
This is a base class for warnings for modeling issues that will likely lead to the CDF API rejecting the model.
NotSupportedHasDataFilterLimitWarning
dataclass
#
Bases: CDFNotSupportedWarning
The view {view_id} uses a hasData filter applied to {count} containers, which is more than the limit {limit}.
NotSupportedViewContainerLimitWarning
dataclass
#
Bases: CDFNotSupportedWarning
The view {view_id} maps, {count} containers, which is more than the limit {limit}.
PrincipleMatchingSpaceAndVersionWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
PrincipleOneModelOneSpaceWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
PrincipleSolutionBuildsOnEnterpriseWarning
dataclass
#
Bases: BreakingModelingPrincipleWarning
{warning_class}: {specific} violates the {principle} principle. See {url} for more information.
UndefinedViewWarning
dataclass
#
Bases: UserModelingWarning
Undefined view {value_type} has been referred as value type for property <{view_property}> of view {view_id}.
UserModelingWarning
dataclass
#
Bases: NeatWarning
, ABC
This is a generic warning for user modeling issues. These warnings will not cause the resulting model to be invalid, but will likely lead to suboptimal performance, unnecessary complexity, or other issues.
PropertyDataTypeConversionWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The {resource_type} with identifier {identifier} failed to convert the property {property_name}: {error}
PropertyDefinitionDuplicatedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
Got multiple values for the {resource_type} {identifier}.{property_name} {values}.
PropertyDirectRelationLimitWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The listable direct relation property {property_name} in the {resource_type} with identifier {identifier} has more than {limit} relations. The relations will be sorted by (space, externalId) and truncated.
PropertyNotFoundWarning
dataclass
#
Bases: PropertyWarning
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} does not have a property {property_name} referred to by {referred_type} {referred_by} does not exist. This will be ignored.
PropertyOverwritingWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
Overwriting the {overwriting} for {property_name} in the {resource_type} with identifier {identifier}.
PropertyTypeNotSupportedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The {resource_type} with identifier {identifier} has a property {property_name} of unsupported type {property_type}. This will be ignored.
PropertyValueTypeUndefinedWarning
dataclass
#
Bases: PropertyWarning[T_Identifier]
The {resource_type} with identifier {identifier} has a property {property_name} which has undefined value type. This may result in unexpected behavior when exporting rules.
ResourceNeatWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Base class for resource warnings {resource_type} with identifier {identifier}
ResourceNotFoundWarning
dataclass
#
Bases: ResourceNeatWarning
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} referred by {referred_type} {referred_by} does not exist. This will be ignored.
ResourceRegexViolationWarning
dataclass
#
Bases: ResourceNeatWarning
The {resource_type} with identifier {identifier} in the {location} is violating the CDF regex {regex}. This will lead to errors when converting to DMS data model.
ResourceRetrievalWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Failed to retrieve {resource_type} with identifier(s) {resources}. Continuing without these resources.
ResourcesDuplicatedWarning
dataclass
#
Bases: NeatWarning
, Generic[T_Identifier]
Duplicated {resource_type} with identifiers {resources} were found. {default_action}
ResourceTypeNotSupportedWarning
dataclass
#
Bases: ResourceNeatWarning[T_Identifier]
The {resource_type} with identifier {identifier} is not supported. This will be ignored.
ResourceUnknownWarning
dataclass
#
Bases: ResourceNeatWarning
, Generic[T_Identifier, T_ReferenceIdentifier]
The {resource_type} with identifier {identifier} referred by {referred_type} {referred_by} is unknown. Will continue, but the model is incomplete.