gateway.models package
Submodules
gateway.models.data module
gateway.models.data_policy module
- class gateway.models.data_policy.DataPolicy(*, actions: List[str], priority: int, condition: str, mask: bool, filter: bool, name: str, version: str, type: str, tags: List[str], description: str, owner: str, layer: str, policy: Policy)[source]
Bases:
BaseModel
- actions: List[str]
- condition: str
- description: str
- filter: bool
- layer: str
- mask: bool
- name: str
- owner: str
- priority: int
- tags: List[str]
- type: str
- version: str
gateway.models.dataset module
- class gateway.models.dataset.Column(*, name: str, dataType: str)[source]
Bases:
BaseModel
- dataType: str
- name: str
- class gateway.models.dataset.Dataset(*, id: str, fullyQualifiedName: str, name: str, version: float, updatedAt: int, updatedBy: str, href: str, service: Service, serviceType: str, depot: str, collection: str, dataset: str, tags: List[Tag], columns: List[Column])[source]
Bases:
BaseModel
- collection: str
- dataset: str
- depot: str
- fullyQualifiedName: str
- href: str
- id: str
- name: str
- serviceType: str
- updatedAt: int
- updatedBy: str
- version: float
gateway.models.decision module
gateway.models.filter module
- class gateway.models.filter.Filter(*, column: str | None = None, operator: str | None = None, value: str | None = None, valueFrom: ValueFrom | None = None, supportedDataTypes: List[str] | None = None)[source]
Bases:
BaseModel
- column: str | None
- operator: str | None
- supported_data_types: List[str] | None
- value: str | None
gateway.models.links module
- class gateway.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
gateway.models.mask module
- class gateway.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, supportedDataTypes: 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 gateway.models.mask.MaskBucketDate(*, precision: str)[source]
Bases:
BaseModel
- precision: str
gateway.models.policy module
- class gateway.models.policy.Policy(*, data: PolicyData)[source]
Bases:
BaseModel
- data: PolicyData
gateway.models.policy_data module
- class gateway.models.policy_data.ColumnSelector(*, column: str | None = None, policyName: str | None = None, masks: List[str] | None = None, tags: List[str] | None = None)[source]
Bases:
BaseModel
- column: str | None
- masks: List[str] | None
- policyName: str | None
- tags: List[str] | None
- class gateway.models.policy_data.PolicyData(*, priority: int, type: str, selector: Selector | None = None, mask: Mask | None = None, filters: List[Filter] | None = None, name: str | None = None, description: str | None = None, depot: str | None = None, collection: str | None = None, dataset: str | None = None)[source]
Bases:
BaseModel
- collection: str | None
- dataset: str | None
- depot: str | None
- description: str | None
- name: str | None
- priority: int
- type: str
- class gateway.models.policy_data.Selector(*, user: UserSelector | None = None, column: ColumnSelector | None = None)[source]
Bases:
BaseModel
- column: ColumnSelector | None
- user: UserSelector | None