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
12 changes: 4 additions & 8 deletions src/polytomic/bulk_sync/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
import datetime as dt
from ..types.bulk_sync_mode import BulkSyncMode
from ..types.bulk_normalize_names import BulkNormalizeNames
from .types.v_2_create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
from .types.v2create_bulk_sync_request_schemas_item import V2CreateBulkSyncRequestSchemasItem
from ..types.bulk_sync_response_envelope import BulkSyncResponseEnvelope
from ..core.serialization import convert_and_respect_annotation_metadata
from ..errors.bad_request_error import BadRequestError
from ..errors.forbidden_error import ForbiddenError
from ..errors.unprocessable_entity_error import UnprocessableEntityError
from ..core.jsonable_encoder import jsonable_encoder
from ..errors.not_found_error import NotFoundError
from .types.v_2_update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
from .types.v2update_bulk_sync_request_schemas_item import V2UpdateBulkSyncRequestSchemasItem
from ..types.activate_sync_envelope import ActivateSyncEnvelope
from ..types.bulk_fetch_mode import BulkFetchMode
from ..types.bulk_sync_execution_envelope import BulkSyncExecutionEnvelope
Expand Down 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
4 changes: 2 additions & 2 deletions src/polytomic/bulk_sync/executions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
from ...types.list_bulk_sync_executions_envelope import ListBulkSyncExecutionsEnvelope
from ...core.jsonable_encoder import jsonable_encoder
from ...types.bulk_sync_execution_envelope import BulkSyncExecutionEnvelope
from ...types.v_4_bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
from ...types.v_4_export_sync_logs_envelope import V4ExportSyncLogsEnvelope
from ...types.v4bulk_sync_execution_logs_envelope import V4BulkSyncExecutionLogsEnvelope
from ...types.v4export_sync_logs_envelope import V4ExportSyncLogsEnvelope
from ...errors.bad_request_error import BadRequestError
from ...errors.internal_server_error import InternalServerError
from ...core.client_wrapper import AsyncClientWrapper
Expand Down
2 changes: 1 addition & 1 deletion src/polytomic/bulk_sync/schedules/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from ...errors.internal_server_error import InternalServerError
from json.decoder import JSONDecodeError
from ...core.api_error import ApiError as core_api_error_ApiError
from ...types.v_4_bulk_sync_schedule_api import V4BulkSyncScheduleApi
from ...types.v4bulk_sync_schedule_api import V4BulkSyncScheduleApi
from ...types.schedule_envelope import ScheduleEnvelope
from ...core.serialization import convert_and_respect_annotation_metadata
from ...errors.bad_request_error import BadRequestError
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_filter2 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
Loading