Skip to content
Open
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "polytomic"

[tool.poetry]
name = "polytomic"
version = "1.15.5"
version = "0.0.0"
description = ""
readme = "README.md"
authors = []
Expand Down
40 changes: 18 additions & 22 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ client = Polytomic(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
client.bulk_sync.list(
active=True,
)
client.bulk_sync.list()

```
</dd>
Expand Down Expand Up @@ -2548,7 +2546,7 @@ client.models.get_enrichment_source(
<dl>
<dd>

**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`

</dd>
</dl>
Expand Down Expand Up @@ -3432,7 +3430,7 @@ client.model_sync.get_source(
<dl>
<dd>

**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`

</dd>
</dl>
Expand Down Expand Up @@ -3497,7 +3495,7 @@ client.model_sync.get_source_fields(
<dl>
<dd>

**params:** `typing.Optional[typing.Dict[str, typing.Optional[typing.Sequence[str]]]]`
**params:** `typing.Optional[typing.Dict[str, typing.Sequence[str]]]`

</dd>
</dl>
Expand Down Expand Up @@ -3537,7 +3535,6 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.model_sync.list(
active=True,
target_connection_id="0b155265-c537-44c9-9359-a3ceb468a4da",
)

Expand Down Expand Up @@ -4520,7 +4517,6 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.events.list(
organization_id="248df4b7-aa70-47b8-a036-33ac447e668d",
starting_after=datetime.datetime.fromisoformat(
"2020-01-01 00:00:00+00:00",
),
Expand Down Expand Up @@ -4663,8 +4659,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.jobs.get(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
type="createmodel",
id="248df4b7-aa70-47b8-a036-33ac447e668d",
)

```
Expand All @@ -4681,15 +4677,15 @@ client.jobs.get(
<dl>
<dd>

**id:** `str`
**type:** `str`

</dd>
</dl>

<dl>
<dd>

**type:** `str`
**id:** `str`

</dd>
</dl>
Expand Down Expand Up @@ -5519,8 +5515,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.get(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
id="248df4b7-aa70-47b8-a036-33ac447e668d",
)

```
Expand All @@ -5537,15 +5533,15 @@ client.users.get(
<dl>
<dd>

**id:** `str`
**org_id:** `str`

</dd>
</dl>

<dl>
<dd>

**org_id:** `str`
**id:** `str`

</dd>
</dl>
Expand Down Expand Up @@ -5601,8 +5597,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.update(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
id="248df4b7-aa70-47b8-a036-33ac447e668d",
email="mail@example.com",
)

Expand All @@ -5620,15 +5616,15 @@ client.users.update(
<dl>
<dd>

**id:** `str`
**org_id:** `str`

</dd>
</dl>

<dl>
<dd>

**org_id:** `str`
**id:** `str`

</dd>
</dl>
Expand Down Expand Up @@ -5700,8 +5696,8 @@ client = Polytomic(
token="YOUR_TOKEN",
)
client.users.remove(
id="248df4b7-aa70-47b8-a036-33ac447e668d",
org_id="248df4b7-aa70-47b8-a036-33ac447e668d",
id="248df4b7-aa70-47b8-a036-33ac447e668d",
)

```
Expand All @@ -5718,15 +5714,15 @@ client.users.remove(
<dl>
<dd>

**id:** `str`
**org_id:** `str`

</dd>
</dl>

<dl>
<dd>

**org_id:** `str`
**id:** `str`

</dd>
</dl>
Expand Down Expand Up @@ -6762,7 +6758,7 @@ client.bulk_sync.schemas.list(
<dl>
<dd>

**filters:** `typing.Optional[typing.Dict[str, typing.Optional[str]]]`
**filters:** `typing.Optional[typing.Dict[str, str]]`

</dd>
</dl>
Expand Down Expand Up @@ -6999,7 +6995,7 @@ client.bulk_sync.schemas.update(
<dl>
<dd>

**filters:** `typing.Optional[typing.Sequence[BulkFilter]]`
**filters:** `typing.Optional[typing.Sequence[BulkFilter2]]`

</dd>
</dl>
Expand Down
6 changes: 6 additions & 0 deletions src/polytomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
BulkFetchMode,
BulkField,
BulkFilter,
BulkFilter2,
BulkItemizedSchedule,
BulkMultiScheduleConfiguration,
BulkNormalizeNames,
Expand Down Expand Up @@ -50,6 +51,7 @@
CancelModelSyncResponseEnvelope,
CommonOutputActor,
ConfigurationValue,
ConfigurationValue2,
ConnectCardResponse,
ConnectCardResponseEnvelope,
ConnectionListResponseEnvelope,
Expand Down Expand Up @@ -122,6 +124,7 @@
Override,
Pagination,
PaginationDetails,
PaginationDetails2,
PickValue,
PolicyAction,
PolicyResponse,
Expand Down Expand Up @@ -247,6 +250,7 @@
"BulkFetchMode",
"BulkField",
"BulkFilter",
"BulkFilter2",
"BulkItemizedSchedule",
"BulkMultiScheduleConfiguration",
"BulkNormalizeNames",
Expand Down Expand Up @@ -282,6 +286,7 @@
"CancelModelSyncResponseEnvelope",
"CommonOutputActor",
"ConfigurationValue",
"ConfigurationValue2",
"ConflictError",
"ConnectCardResponse",
"ConnectCardResponseEnvelope",
Expand Down Expand Up @@ -358,6 +363,7 @@
"Override",
"Pagination",
"PaginationDetails",
"PaginationDetails2",
"PickValue",
"PolicyAction",
"PolicyResponse",
Expand Down
8 changes: 2 additions & 6 deletions src/polytomic/bulk_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ def list(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
client.bulk_sync.list(
active=True,
)
client.bulk_sync.list()
"""
_response = self._client_wrapper.httpx_client.request(
"api/bulk/syncs",
Expand Down Expand Up @@ -1201,9 +1199,7 @@ async def list(


async def main() -> None:
await client.bulk_sync.list(
active=True,
)
await client.bulk_sync.list()


asyncio.run(main())
Expand Down
22 changes: 11 additions & 11 deletions src/polytomic/bulk_sync/schemas/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from ...types.bulk_schema_envelope import BulkSchemaEnvelope
import datetime as dt
from ...types.update_bulk_field import UpdateBulkField
from ...types.bulk_filter import BulkFilter
from ...types.bulk_filter_2 import BulkFilter2
from ...core.client_wrapper import AsyncClientWrapper

# this is used as the default value for optional parameters
Expand All @@ -35,15 +35,15 @@ def list(
self,
id: str,
*,
filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
filters: typing.Optional[typing.Dict[str, str]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListBulkSchema:
"""
Parameters
----------
id : str

filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
filters : typing.Optional[typing.Dict[str, str]]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -298,7 +298,7 @@ def update(
disable_data_cutoff: typing.Optional[bool] = OMIT,
enabled: typing.Optional[bool] = OMIT,
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
partition_key: typing.Optional[str] = OMIT,
tracking_field: typing.Optional[str] = OMIT,
user_output_name: typing.Optional[str] = OMIT,
Expand All @@ -319,7 +319,7 @@ def update(

fields : typing.Optional[typing.Sequence[UpdateBulkField]]

filters : typing.Optional[typing.Sequence[BulkFilter]]
filters : typing.Optional[typing.Sequence[BulkFilter2]]

partition_key : typing.Optional[str]

Expand Down Expand Up @@ -359,7 +359,7 @@ def update(
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
),
"filters": convert_and_respect_annotation_metadata(
object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
),
"partition_key": partition_key,
"tracking_field": tracking_field,
Expand Down Expand Up @@ -434,15 +434,15 @@ async def list(
self,
id: str,
*,
filters: typing.Optional[typing.Dict[str, typing.Optional[str]]] = None,
filters: typing.Optional[typing.Dict[str, str]] = None,
request_options: typing.Optional[RequestOptions] = None,
) -> ListBulkSchema:
"""
Parameters
----------
id : str

filters : typing.Optional[typing.Dict[str, typing.Optional[str]]]
filters : typing.Optional[typing.Dict[str, str]]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -721,7 +721,7 @@ async def update(
disable_data_cutoff: typing.Optional[bool] = OMIT,
enabled: typing.Optional[bool] = OMIT,
fields: typing.Optional[typing.Sequence[UpdateBulkField]] = OMIT,
filters: typing.Optional[typing.Sequence[BulkFilter]] = OMIT,
filters: typing.Optional[typing.Sequence[BulkFilter2]] = OMIT,
partition_key: typing.Optional[str] = OMIT,
tracking_field: typing.Optional[str] = OMIT,
user_output_name: typing.Optional[str] = OMIT,
Expand All @@ -742,7 +742,7 @@ async def update(

fields : typing.Optional[typing.Sequence[UpdateBulkField]]

filters : typing.Optional[typing.Sequence[BulkFilter]]
filters : typing.Optional[typing.Sequence[BulkFilter2]]

partition_key : typing.Optional[str]

Expand Down Expand Up @@ -790,7 +790,7 @@ async def main() -> None:
object_=fields, annotation=typing.Sequence[UpdateBulkField], direction="write"
),
"filters": convert_and_respect_annotation_metadata(
object_=filters, annotation=typing.Sequence[BulkFilter], direction="write"
object_=filters, annotation=typing.Sequence[BulkFilter2], direction="write"
),
"partition_key": partition_key,
"tracking_field": tracking_field,
Expand Down
8 changes: 4 additions & 4 deletions src/polytomic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Polytomic:



version : typing.Optional[str]
version : typing.Optional[typing.Any]
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
Expand All @@ -79,7 +79,7 @@ def __init__(
*,
base_url: typing.Optional[str] = None,
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
version: typing.Optional[str] = None,
version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
Expand Down Expand Up @@ -131,7 +131,7 @@ class AsyncPolytomic:



version : typing.Optional[str]
version : typing.Optional[typing.Any]
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
Expand All @@ -157,7 +157,7 @@ def __init__(
*,
base_url: typing.Optional[str] = None,
environment: PolytomicEnvironment = PolytomicEnvironment.DEFAULT,
version: typing.Optional[str] = None,
version: typing.Optional[typing.Any] = None,
token: typing.Union[str, typing.Callable[[], str]],
timeout: typing.Optional[float] = None,
follow_redirects: typing.Optional[bool] = True,
Expand Down
Loading