Skip to content

Commit

Permalink
fixup! [u r] Add type and domain fields to TDRSourceSpec (#6426)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadove-ucsc committed Aug 1, 2024
1 parent b5617d8 commit a5f7692
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/azul/terra.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
from collections.abc import (
Sequence,
)
import enum
from enum import (
StrEnum,
auto,
)
import json
import logging
from time import (
Expand Down Expand Up @@ -95,13 +98,13 @@

@attrs.frozen(kw_only=True)
class TDRSourceSpec(SourceSpec):
class Type(enum.Enum):
bigquery = 'bigquery'
parquet = 'parquet'
class Type(StrEnum):
bigquery = auto()
parquet = auto()

class Domain(enum.Enum):
gcp = 'gcp'
azure = 'azure'
class Domain(StrEnum):
gcp = auto()
azure = auto()

type: Type
domain: Domain
Expand Down

0 comments on commit a5f7692

Please sign in to comment.