Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Source of Truth for Data-Services to Include Azure Blob Storage #110

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class DatasourceDtoDataSourceType(str, Enum):
ADLSCONFIG = "ADLSConfig"
AZUREBLOBSTORAGECONFIG = "AzureBlobStorageConfig"
BIGQUERYCONFIG = "BigQueryConfig"
CLICKHOUSECONFIG = "ClickHouseConfig"
DB2CONFIG = "DB2Config"
Expand Down
1 change: 1 addition & 0 deletions datasource_api_client/models/log_metric_t.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

class LogMetricT(str, Enum):
ADLSCONFIG = "ADLSConfig"
AZUREBLOBSTORAGECONFIG = "AzureBlobStorageConfig"
GCSCONFIG = "GCSConfig"
GENERICS3CONFIG = "GenericS3Config"
S3CONFIG = "S3Config"
Expand Down
13 changes: 12 additions & 1 deletion domino_data/configuration_gen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Code generated by gen.py; DO NOT EDIT.
This file was generated by robots at
2023-08-04 21:24:25.982748"""
2023-08-25 23:13:26.525981"""
from typing import Any, Dict, Optional, Union

from enum import Enum
Expand Down Expand Up @@ -118,6 +118,15 @@ class ADLSConfig(Config):
access_key: Optional[str] = _cred(elem=CredElem.ACCESSKEY)


@attr.s(auto_attribs=True)
class AzureBlobStorageConfig(Config):
"""AzureBlobStorageConfig datasource configuration."""

container: Optional[str] = _config(elem=ConfigElem.BUCKET)

access_key: Optional[str] = _cred(elem=CredElem.ACCESSKEY)


@attr.s(auto_attribs=True)
class BigQueryConfig(Config):
"""BigQueryConfig datasource configuration."""
Expand Down Expand Up @@ -377,6 +386,7 @@ class VerticaConfig(Config):

DatasourceConfig = Union[
ADLSConfig,
AzureBlobStorageConfig,
BigQueryConfig,
ClickHouseConfig,
DB2Config,
Expand Down Expand Up @@ -409,6 +419,7 @@ class VerticaConfig(Config):

DATASOURCES = {
DatasourceDtoDataSourceType.ADLSCONFIG: "ObjectStoreDatasource",
DatasourceDtoDataSourceType.AZUREBLOBSTORAGECONFIG: "ObjectStoreDatasource",
DatasourceDtoDataSourceType.BIGQUERYCONFIG: "TabularDatasource",
DatasourceDtoDataSourceType.CLICKHOUSECONFIG: "TabularDatasource",
DatasourceDtoDataSourceType.DB2CONFIG: "TabularDatasource",
Expand Down
2 changes: 2 additions & 0 deletions openapi/datasource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ paths:
type: string
enum:
- ADLSConfig
- AzureBlobStorageConfig
- GCSConfig
- GenericS3Config
- S3Config
Expand Down Expand Up @@ -219,6 +220,7 @@ components:
type: string
enum:
- ADLSConfig
- AzureBlobStorageConfig
- BigQueryConfig
- ClickHouseConfig
- DB2Config
Expand Down
511 changes: 251 additions & 260 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ backoff==1.11.1 ; python_version >= "3.8" and python_version < "4.0"
bson==0.5.10 ; python_version >= "3.8" and python_version < "4.0"
certifi==2023.7.22 ; python_version >= "3.8" and python_version < "4.0"
colorama==0.4.6 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
exceptiongroup==1.1.2 ; python_version >= "3.8" and python_version < "3.11"
exceptiongroup==1.1.3 ; python_version >= "3.8" and python_version < "3.11"
h11==0.14.0 ; python_version >= "3.8" and python_version < "4.0"
httpcore==0.16.3 ; python_version >= "3.8" and python_version < "4.0"
httpx==0.23.3 ; python_version >= "3.8" and python_version < "4.0"
Expand All @@ -18,5 +18,5 @@ pytz==2023.3 ; python_version >= "3.8" and python_version < "4.0"
rfc3986[idna2008]==1.5.0 ; python_version >= "3.8" and python_version < "4.0"
six==1.16.0 ; python_version >= "3.8" and python_version < "4.0"
sniffio==1.3.0 ; python_version >= "3.8" and python_version < "4.0"
urllib3==2.0.4 ; python_version >= "3.8" and python_version < "4.0"
urllib3==1.26.16 ; python_version >= "3.8" and python_version < "4.0"
win32-setctime==1.1.0 ; python_version >= "3.8" and python_version < "4.0" and sys_platform == "win32"
2 changes: 1 addition & 1 deletion services