Skip to content

Commit 6908976

Browse files
Merge pull request #916 from gooddata/snapshot-master-291028f1-to-rel/dev
[bot] Merge master/291028f1 into rel/dev
2 parents 2e2a664 + 291028f commit 6908976

File tree

1 file changed

+1
-6
lines changed
  • gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model

1 file changed

+1
-6
lines changed

gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ class CatalogDeclarativeDataSource(Base):
104104
parameters: Optional[list[CatalogParameter]] = None
105105
decoded_parameters: Optional[list[CatalogParameter]] = None
106106
permissions: list[CatalogDeclarativeDataSourcePermission] = attr.field(factory=list)
107+
client_id: Optional[str] = None
107108

108109
def to_test_request(
109110
self,
110111
password: Optional[str] = None,
111112
token: Optional[str] = None,
112113
private_key: Optional[str] = None,
113114
private_key_passphrase: Optional[str] = None,
114-
client_id: Optional[str] = None,
115115
client_secret: Optional[str] = None,
116116
) -> TestDefinitionRequest:
117117
kwargs: dict[str, Any] = {"schema": self.schema}
@@ -125,8 +125,6 @@ def to_test_request(
125125
kwargs["private_key"] = private_key
126126
if private_key_passphrase is not None:
127127
kwargs["private_key_passphrase"] = private_key
128-
if client_id is not None:
129-
kwargs["client_id"] = client_id
130128
if client_secret is not None:
131129
kwargs["client_secret"] = client_secret
132130
return TestDefinitionRequest(type=self.type, url=self.url, **kwargs)
@@ -147,7 +145,6 @@ def to_api(
147145
token: Optional[str] = None,
148146
private_key: Optional[str] = None,
149147
private_key_passphrase: Optional[str] = None,
150-
client_id: Optional[str] = None,
151148
client_secret: Optional[str] = None,
152149
) -> DeclarativeDataSource:
153150
dictionary = self._get_snake_dict()
@@ -159,8 +156,6 @@ def to_api(
159156
dictionary["private_key"] = private_key
160157
if private_key_passphrase is not None:
161158
dictionary["private_key_passphrase"] = private_key_passphrase
162-
if client_id is not None:
163-
dictionary["client_id"] = client_id
164159
if client_secret is not None:
165160
dictionary["client_secret"] = client_secret
166161
return self.client_class().from_dict(dictionary)

0 commit comments

Comments
 (0)