Skip to content

Commit 54b70cc

Browse files
Release 1.0.0
1 parent aeb1931 commit 54b70cc

File tree

12 files changed

+152
-324
lines changed

12 files changed

+152
-324
lines changed

poetry.lock

Lines changed: 90 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "polytomic"
3-
version = "0.2.0"
3+
version = "1.0.0"
44
description = ""
55
readme = "README.md"
66
authors = []

src/polytomic/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2323
headers: typing.Dict[str, str] = {
2424
"X-Fern-Language": "Python",
2525
"X-Fern-SDK-Name": "polytomic",
26-
"X-Fern-SDK-Version": "0.2.0",
26+
"X-Fern-SDK-Version": "1.0.0",
2727
}
2828
headers["Authorization"] = f"Bearer {self._get_token()}"
2929
headers["X-Polytomic-Version"] = "2024-02-08"

src/polytomic/resources/bulk_sync/client.py

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,9 @@ def create(
150150
)
151151
client.bulk_sync.create(
152152
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
153-
mode="replicate",
154153
name="My Bulk Sync",
155154
schedule=BulkSchedule(
156-
day_of_month="1",
157-
day_of_week="monday",
158155
frequency=ScheduleFrequency.MANUAL,
159-
hour="0",
160-
minute="0",
161-
month="1",
162156
),
163157
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
164158
)
@@ -323,7 +317,7 @@ def update(
323317
"""
324318
> 📘 Updating schemas
325319
>
326-
> Schema updates can be performed using the [Update Bulk Sync Schemas](https://docs.polytomic.com/reference/apiv3updatebulksyncschemas) endpoint.
320+
> Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
327321
328322
Parameters:
329323
- id: str.
@@ -369,15 +363,9 @@ def update(
369363
client.bulk_sync.update(
370364
id="248df4b7-aa70-47b8-a036-33ac447e668d",
371365
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
372-
mode="replicate",
373366
name="My Bulk Sync",
374367
schedule=BulkSchedule(
375-
day_of_month="1",
376-
day_of_week="monday",
377368
frequency=ScheduleFrequency.MANUAL,
378-
hour="0",
379-
minute="0",
380-
month="1",
381369
),
382370
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
383371
)
@@ -620,8 +608,6 @@ def start(
620608
)
621609
client.bulk_sync.start(
622610
id="248df4b7-aa70-47b8-a036-33ac447e668d",
623-
resync=False,
624-
test=False,
625611
)
626612
"""
627613
_request: typing.Dict[str, typing.Any] = {}
@@ -964,15 +950,9 @@ async def create(
964950
)
965951
await client.bulk_sync.create(
966952
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
967-
mode="replicate",
968953
name="My Bulk Sync",
969954
schedule=BulkSchedule(
970-
day_of_month="1",
971-
day_of_week="monday",
972955
frequency=ScheduleFrequency.MANUAL,
973-
hour="0",
974-
minute="0",
975-
month="1",
976956
),
977957
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
978958
)
@@ -1137,7 +1117,7 @@ async def update(
11371117
"""
11381118
> 📘 Updating schemas
11391119
>
1140-
> Schema updates can be performed using the [Update Bulk Sync Schemas](https://docs.polytomic.com/reference/apiv3updatebulksyncschemas) endpoint.
1120+
> Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
11411121
11421122
Parameters:
11431123
- id: str.
@@ -1183,15 +1163,9 @@ async def update(
11831163
await client.bulk_sync.update(
11841164
id="248df4b7-aa70-47b8-a036-33ac447e668d",
11851165
destination_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
1186-
mode="replicate",
11871166
name="My Bulk Sync",
11881167
schedule=BulkSchedule(
1189-
day_of_month="1",
1190-
day_of_week="monday",
11911168
frequency=ScheduleFrequency.MANUAL,
1192-
hour="0",
1193-
minute="0",
1194-
month="1",
11951169
),
11961170
source_connection_id="248df4b7-aa70-47b8-a036-33ac447e668d",
11971171
)
@@ -1434,8 +1408,6 @@ async def start(
14341408
)
14351409
await client.bulk_sync.start(
14361410
id="248df4b7-aa70-47b8-a036-33ac447e668d",
1437-
resync=False,
1438-
test=False,
14391411
)
14401412
"""
14411413
_request: typing.Dict[str, typing.Any] = {}

src/polytomic/resources/bulk_sync/resources/schemas/client.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,6 @@ def update(
259259
client.bulk_sync.schemas.update(
260260
id="248df4b7-aa70-47b8-a036-33ac447e668d",
261261
schema_id="contact",
262-
enabled=True,
263-
partition_key="email",
264262
)
265263
"""
266264
_request: typing.Dict[str, typing.Any] = {}
@@ -546,8 +544,6 @@ async def update(
546544
await client.bulk_sync.schemas.update(
547545
id="248df4b7-aa70-47b8-a036-33ac447e668d",
548546
schema_id="contact",
549-
enabled=True,
550-
partition_key="email",
551547
)
552548
"""
553549
_request: typing.Dict[str, typing.Any] = {}

src/polytomic/resources/connections/client.py

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ def create(
162162
)
163163
client.connections.create(
164164
name="My Postgres Connection",
165-
redirect_url="https://example.com/oauth_redirect",
166165
type="postgresql",
167-
validate=True,
168166
)
169167
"""
170168
_request: typing.Dict[str, typing.Any] = {"name": name, "type": type}
@@ -257,10 +255,8 @@ def connect(
257255
token="YOUR_TOKEN",
258256
)
259257
client.connections.connect(
260-
connection="248df4b7-aa70-47b8-a036-33ac447e668d",
261258
name="Salesforce Connection",
262259
redirect_url="redirect_url",
263-
type="salesforce",
264260
)
265261
"""
266262
_request: typing.Dict[str, typing.Any] = {"name": name, "redirect_url": redirect_url}
@@ -274,7 +270,7 @@ def connect(
274270
_request["whitelist"] = whitelist
275271
_response = self._client_wrapper.httpx_client.request(
276272
"POST",
277-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/connections/connect"),
273+
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/connections/connect/"),
278274
params=jsonable_encoder(
279275
request_options.get("additional_query_parameters") if request_options is not None else None
280276
),
@@ -407,9 +403,6 @@ def update(
407403
client.connections.update(
408404
id="248df4b7-aa70-47b8-a036-33ac447e668d",
409405
name="My Postgres Connection",
410-
reconnect=False,
411-
type="postgresql",
412-
validate=True,
413406
)
414407
"""
415408
_request: typing.Dict[str, typing.Any] = {"name": name}
@@ -729,9 +722,7 @@ async def create(
729722
)
730723
await client.connections.create(
731724
name="My Postgres Connection",
732-
redirect_url="https://example.com/oauth_redirect",
733725
type="postgresql",
734-
validate=True,
735726
)
736727
"""
737728
_request: typing.Dict[str, typing.Any] = {"name": name, "type": type}
@@ -824,10 +815,8 @@ async def connect(
824815
token="YOUR_TOKEN",
825816
)
826817
await client.connections.connect(
827-
connection="248df4b7-aa70-47b8-a036-33ac447e668d",
828818
name="Salesforce Connection",
829819
redirect_url="redirect_url",
830-
type="salesforce",
831820
)
832821
"""
833822
_request: typing.Dict[str, typing.Any] = {"name": name, "redirect_url": redirect_url}
@@ -841,7 +830,7 @@ async def connect(
841830
_request["whitelist"] = whitelist
842831
_response = await self._client_wrapper.httpx_client.request(
843832
"POST",
844-
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/connections/connect"),
833+
urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "api/connections/connect/"),
845834
params=jsonable_encoder(
846835
request_options.get("additional_query_parameters") if request_options is not None else None
847836
),
@@ -976,9 +965,6 @@ async def update(
976965
await client.connections.update(
977966
id="248df4b7-aa70-47b8-a036-33ac447e668d",
978967
name="My Postgres Connection",
979-
reconnect=False,
980-
type="postgresql",
981-
validate=True,
982968
)
983969
"""
984970
_request: typing.Dict[str, typing.Any] = {"name": name}

0 commit comments

Comments
 (0)