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

code gen #131

Closed
wants to merge 1 commit into from
Closed
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
1 change: 1 addition & 0 deletions datasource_api_client/models/datasource_dto_auth_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class DatasourceDtoAuthType(str, Enum):
AWSIAMROLEWITHUSERNAME = "AWSIAMRoleWithUsername"
GCPBASIC = "GCPBasic"
OAUTH = "OAuth"
OAUTHTOKEN = "OAuthToken"
CLIENTIDSECRET = "ClientIdSecret"
PERSONALTOKEN = "PersonalToken"

Expand Down
11 changes: 8 additions & 3 deletions 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-09-27 17:47:39.546325"""
2024-01-18 15:07:06.671668"""
from typing import Any, Dict, Optional, Union

from enum import Enum
Expand Down Expand Up @@ -74,9 +74,10 @@ class ConfigElem(Enum):
REGION = "region"
ROLE = "role"
SCHEMA = "schema"
QUERYTIMEOUT = "queryTimeout"
SUBFOLDER = "subfolder"
WAREHOUSE = "warehouse"
CATALOGCODE = "catalogCode"
ENVIRONMENT = "environment"


class CredElem(Enum):
Expand All @@ -92,7 +93,9 @@ class CredElem(Enum):
USERNAME = "username"
CLIENTID = "clientId"
CLIENTSECRET = "clientSecret"
OAUTHTOKEN = "oAuthToken"
PERSONALACCESSTOKEN = "personalAccessToken"
APIKEY = "apiKey"


def _cred(elem: CredElem) -> Any:
Expand Down Expand Up @@ -154,7 +157,6 @@ class DatabricksConfig(Config):

catalog: Optional[str] = _config(elem=ConfigElem.CATALOG)
schema: Optional[str] = _config(elem=ConfigElem.SCHEMA)
query_timeout: Optional[str] = _config(elem=ConfigElem.QUERYTIMEOUT)

personal_access_token: Optional[str] = _cred(elem=CredElem.PERSONALACCESSTOKEN)

Expand Down Expand Up @@ -197,6 +199,7 @@ class GenericS3Config(Config):
"""GenericS3Config datasource configuration."""

bucket: Optional[str] = _config(elem=ConfigElem.BUCKET)
subfolder: Optional[str] = _config(elem=ConfigElem.SUBFOLDER)
host: Optional[str] = _config(elem=ConfigElem.HOST)
region: Optional[str] = _config(elem=ConfigElem.REGION)

Expand Down Expand Up @@ -274,6 +277,7 @@ class PalantirConfig(Config):

client_id: Optional[str] = _cred(elem=CredElem.CLIENTID)
client_secret: Optional[str] = _cred(elem=CredElem.CLIENTSECRET)
o_auth_token: Optional[str] = _cred(elem=CredElem.OAUTHTOKEN)


@attr.s(auto_attribs=True)
Expand Down Expand Up @@ -309,6 +313,7 @@ class S3Config(Config):
"""S3Config datasource configuration."""

bucket: Optional[str] = _config(elem=ConfigElem.BUCKET)
subfolder: Optional[str] = _config(elem=ConfigElem.SUBFOLDER)
region: Optional[str] = _config(elem=ConfigElem.REGION)

aws_access_key_id: Optional[str] = _cred(elem=CredElem.ACCESSKEYID)
Expand Down
1 change: 1 addition & 0 deletions openapi/datasource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ components:
- AWSIAMRoleWithUsername
- GCPBasic
- OAuth
- OAuthToken
- ClientIdSecret
- PersonalToken
config:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "dominodatalab-data"
version = "5.10.0.dev2"
version = "5.10.0.dev3"
description = "Domino Data API for interacting with Domino Data features"
readme = "README.md"
authors = [
Expand Down
2 changes: 1 addition & 1 deletion services
Loading