ds_provider_mock_py_lib.enums¶
File: enums.py
Region: ds_provider_mock_py_lib/enums
Constants for the mock provider.
Example
>>> ResourceType.LINKED_SERVICE
'ds.resource.linked-service.mock'
>>> ResourceType.DATASET
'ds.resource.dataset.mock'
>>> ConnectBehaviour.OK
'ok'
Classes¶
Resource type identifiers for the mock provider. |
|
What |
|
Synthetic column value generators used by |
|
Intended row kind for incremental generation and operation metadata. |
|
Which contract exception a dataset-level injected failure raises. |
Module Contents¶
- class ds_provider_mock_py_lib.enums.ResourceType[source]¶
Bases:
enum.StrEnumResource type identifiers for the mock provider.
- LINKED_SERVICE = 'ds.resource.linked-service.mock'¶
- DATASET = 'ds.resource.dataset.mock'¶
- class ds_provider_mock_py_lib.enums.ConnectBehaviour[source]¶
Bases:
enum.StrEnumWhat
connect()does. Values are lowercase per the linked-service contract.- OK = 'ok'¶
- CONNECTION_ERROR = 'connection_error'¶
- AUTHENTICATION_ERROR = 'authentication_error'¶
- AUTHORIZATION_ERROR = 'authorization_error'¶
- class ds_provider_mock_py_lib.enums.ColumnKind[source]¶
Bases:
enum.StrEnumSynthetic column value generators used by
MockDataset.- SEQUENCE = 'sequence'¶
- CONSTANT = 'constant'¶
- TEXT = 'text'¶
- RANDOM_INT = 'random_int'¶
- RANDOM_FLOAT = 'random_float'¶
- BOOL = 'bool'¶
- TIMESTAMP = 'timestamp'¶
- ENUM = 'enum'¶
- class ds_provider_mock_py_lib.enums.RowOp[source]¶
Bases:
enum.StrEnumIntended row kind for incremental generation and operation metadata.
These are not gold merge opcodes. Gold decides from primary key and row hash:
insert: new unique primary keyupdate: existing primary key, changed column values (hash changes)noop: existing primary key, identical row (same hash)
- INSERT = 'insert'¶
- UPDATE = 'update'¶
- NOOP = 'noop'¶