heimdall.models package
Submodules
heimdall.models.data module
heimdall.models.data_policy module
- class heimdall.models.data_policy.ColumnSelector(*, tags: List[str] | None = None, names: List[str] | None = None)[source]
Bases:
BaseModel
- names: List[str] | None
- tags: List[str] | None
- class heimdall.models.data_policy.DataPolicy(*, priority: int, type: str, selector: Selector | None = None, mask: Mask | None = None, filters: List[Filter] | None = None, dataset_id: str, name: str | None = None, description: str | None = None)[source]
Bases:
BaseModel
- dataset_id: str
- description: str | None
- name: str | None
- priority: int
- type: str
- class heimdall.models.data_policy.Selector(*, user: UserSelector | None = None, column: ColumnSelector | None = None)[source]
Bases:
BaseModel
- column: ColumnSelector | None
- user: UserSelector | None
heimdall.models.dataset module
heimdall.models.decision module
- class heimdall.models.decision.Decision(*, table: Dataset | None = None, user: AuthorizationResultData | None = None, masks: Dict[str, Mask] | None = None, filter: List[Filter] | None = None)[source]
Bases:
BaseModel
- user: AuthorizationResultData | None
heimdall.models.filter module
- class heimdall.models.filter.Filter(*, column: str | None = None, operator: str | None = None, value: str | None = None, valueFrom: ValueFrom | None = None, supported_data_types: List[str] | None = None)[source]
Bases:
BaseModel
- column: str | None
- operator: str | None
- supported_data_types: List[str] | None
- value: str | None
heimdall.models.heimdall_secret module
- class heimdall.models.heimdall_secret.HeimdallSecret(*, id: str, data: List[Data], _links: Links, ACCESS_KEY_ID: str = 'awsaccesskeyid', SECRET_KEY: str = 'awssecretaccesskey', AZURE_STORAGE_ACCOUNT_NAME: str = 'azurestorageaccountname', AZURE_STORAGE_ACCOUNT_KEY: str = 'azurestorageaccountkey', ABFSS_STORAGE_ACCOUNT_KEY_TEMPLATE: str = 'fs.azure.account.key.%s.dfs.core.windows.net', WASBS_STORAGE_ACCOUNT_KEY_TEMPLATE: str = 'fs.azure.account.key.%s.blob.core.windows.net', S3_ACCESS_KEY: str = 'fs.s3a.access.key', S3_SECRET_KEY: str = 'fs.s3a.secret.key', GCS_KEY_JSON: str = 'gcskey_json', PRIVATE_KEY: str = 'privatekey', PRIVATE_KEY_ID: str = 'privatekeyid', EMAIL: str = 'email', GCS_CLIENT_EMAIL: str = 'client_email', GCS_PRIVATE_KEY_ID: str = 'private_key_id', GCS_PRIVATE_KEY: str = 'private_key', GCS_SERVICE_ACCOUNT_EMAIL: str = 'fs.gs.auth.service.account.email', GCS_SERVICE_PRIVATE_KEY_ID: str = 'fs.gs.auth.service.account.private.key.id', GCS_SERVICE_PRIVATE_KEY: str = 'fs.gs.auth.service.account.private.key')[source]
Bases:
BaseModel
- ABFSS_STORAGE_ACCOUNT_KEY_TEMPLATE: str
- ACCESS_KEY_ID: str
- AZURE_STORAGE_ACCOUNT_KEY: str
- AZURE_STORAGE_ACCOUNT_NAME: str
- S3_ACCESS_KEY: str
- S3_SECRET_KEY: str
- SECRET_KEY: str
- WASBS_STORAGE_ACCOUNT_KEY_TEMPLATE: str
- id: str
heimdall.models.links module
- class heimdall.models.links.Links(*, self: str | None = None, tags: str | None = None, tokens: str | None = None, avatars: str | None = None, download_avatars: str | None = None, grants: str | None = None, policies: str | None = None)[source]
Bases:
BaseModel
- avatars: str | None
- download_avatars: str | None
- grants: str | None
- policies: str | None
- self: str | None
- tags: str | None
- tokens: str | None
heimdall.models.mask module
- class heimdall.models.mask.Mask(*, operator: str, pass_through: MaskPassThrough | None = None, hash: MaskHash | None = None, redact: Dict[str, Any] | None = None, bucket_number: MaskBucketNumber | None = None, bucket_date: MaskBucketDate | None = None, rand_pattern: MaskRandPattern | None = None, rand_regexify: MaskRandRegexify | None = None, regex_replace: MaskRegexReplace | None = None, supported_data_types: List[str] | None = None)[source]
Bases:
BaseModel
- bucket_date: MaskBucketDate | None
- bucket_number: MaskBucketNumber | None
- operator: str
- pass_through: MaskPassThrough | None
- rand_pattern: MaskRandPattern | None
- rand_regexify: MaskRandRegexify | None
- redact: Dict[str, Any] | None
- regex_replace: MaskRegexReplace | None
- supported_data_types: List[str] | None
- class heimdall.models.mask.MaskBucketDate(*, precision: str)[source]
Bases:
BaseModel
- precision: str
- class heimdall.models.mask.MaskBucketNumber(*, buckets: List[int])[source]
Bases:
BaseModel
- buckets: List[int]
heimdall.models.secret_response module
heimdall.models.token module
heimdall.models.user module
- class heimdall.models.user.User(*, name: str, type: str, id: str, email: str, cid: str, properties: List[Dict] | None = None, federated_user_id: str | None = None, federated_connector_id: str | None = None, tags: List[str] | None = None, _links: Links)[source]
Bases:
BaseModel
- cid: str
- email: str
- federated_connector_id: str | None
- federated_user_id: str | None
- id: str
- name: str
- properties: List[Dict] | None
- tags: List[str] | None
- type: str