Skip to content

Commit

Permalink
Release 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
polytomic-sdk-bot committed Jul 3, 2024
1 parent ad27f9f commit 5b2b1d2
Show file tree
Hide file tree
Showing 17 changed files with 442 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polytomic"
version = "1.7.0"
version = "1.8.0"
description = ""
readme = "README.md"
authors = []
Expand Down
22 changes: 22 additions & 0 deletions src/polytomic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@
BulkSchemaEnvelope,
BulkSchemaExecutionStatus,
BulkSelectiveMode,
BulkSyncCanceledEvent,
BulkSyncCompletedEvent,
BulkSyncCompletedWithErrorEvent,
BulkSyncDest,
BulkSyncDestEnvelope,
BulkSyncExecution,
BulkSyncExecutionEnvelope,
BulkSyncExecutionStatus,
BulkSyncFailedEvent,
BulkSyncListEnvelope,
BulkSyncResponse,
BulkSyncResponseEnvelope,
BulkSyncRunningEvent,
BulkSyncSchemaExecution,
BulkSyncSchemaExecutionStatus,
BulkSyncSource,
Expand Down Expand Up @@ -54,6 +59,7 @@
CreateModelRequest,
Enrichment,
Event,
EventBody,
EventTypesEnvelope,
EventsEnvelope,
ExecutionCounts,
Expand Down Expand Up @@ -130,7 +136,12 @@
StartModelSyncResponseEnvelope,
StartModelSyncResponseSchema,
SupportedMode,
SyncCanceledEvent,
SyncCompletedEvent,
SyncCompletedWithErrorsEvent,
SyncDestinationProperties,
SyncFailedEvent,
SyncRunningEvent,
SyncStatusEnvelope,
SyncStatusResponse,
Target,
Expand Down Expand Up @@ -198,14 +209,19 @@
"BulkSchemaEnvelope",
"BulkSchemaExecutionStatus",
"BulkSelectiveMode",
"BulkSyncCanceledEvent",
"BulkSyncCompletedEvent",
"BulkSyncCompletedWithErrorEvent",
"BulkSyncDest",
"BulkSyncDestEnvelope",
"BulkSyncExecution",
"BulkSyncExecutionEnvelope",
"BulkSyncExecutionStatus",
"BulkSyncFailedEvent",
"BulkSyncListEnvelope",
"BulkSyncResponse",
"BulkSyncResponseEnvelope",
"BulkSyncRunningEvent",
"BulkSyncSchemaExecution",
"BulkSyncSchemaExecutionStatus",
"BulkSyncSource",
Expand Down Expand Up @@ -234,6 +250,7 @@
"CreateModelRequest",
"Enrichment",
"Event",
"EventBody",
"EventTypesEnvelope",
"EventsEnvelope",
"ExecutionCounts",
Expand Down Expand Up @@ -314,7 +331,12 @@
"StartModelSyncResponseEnvelope",
"StartModelSyncResponseSchema",
"SupportedMode",
"SyncCanceledEvent",
"SyncCompletedEvent",
"SyncCompletedWithErrorsEvent",
"SyncDestinationProperties",
"SyncFailedEvent",
"SyncRunningEvent",
"SyncStatusEnvelope",
"SyncStatusResponse",
"Target",
Expand Down
10 changes: 8 additions & 2 deletions src/polytomic/bulk_sync/executions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ def list_status(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
client.bulk_sync.executions.list_status()
client.bulk_sync.executions.list_status(
all_=True,
active=True,
)
"""
_response = self._client_wrapper.httpx_client.request(
method="GET",
Expand Down Expand Up @@ -273,7 +276,10 @@ async def list_status(
version="YOUR_VERSION",
token="YOUR_TOKEN",
)
await client.bulk_sync.executions.list_status()
await client.bulk_sync.executions.list_status(
all_=True,
active=True,
)
"""
_response = await self._client_wrapper.httpx_client.request(
method="GET",
Expand Down
2 changes: 1 addition & 1 deletion src/polytomic/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "polytomic",
"X-Fern-SDK-Version": "1.7.0",
"X-Fern-SDK-Version": "1.8.0",
}
if self._version is not None:
headers["X-Polytomic-Version"] = self._version
Expand Down
22 changes: 22 additions & 0 deletions src/polytomic/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
from .bulk_schema_envelope import BulkSchemaEnvelope
from .bulk_schema_execution_status import BulkSchemaExecutionStatus
from .bulk_selective_mode import BulkSelectiveMode
from .bulk_sync_canceled_event import BulkSyncCanceledEvent
from .bulk_sync_completed_event import BulkSyncCompletedEvent
from .bulk_sync_completed_with_error_event import BulkSyncCompletedWithErrorEvent
from .bulk_sync_dest import BulkSyncDest
from .bulk_sync_dest_envelope import BulkSyncDestEnvelope
from .bulk_sync_execution import BulkSyncExecution
from .bulk_sync_execution_envelope import BulkSyncExecutionEnvelope
from .bulk_sync_execution_status import BulkSyncExecutionStatus
from .bulk_sync_failed_event import BulkSyncFailedEvent
from .bulk_sync_list_envelope import BulkSyncListEnvelope
from .bulk_sync_response import BulkSyncResponse
from .bulk_sync_response_envelope import BulkSyncResponseEnvelope
from .bulk_sync_running_event import BulkSyncRunningEvent
from .bulk_sync_schema_execution import BulkSyncSchemaExecution
from .bulk_sync_schema_execution_status import BulkSyncSchemaExecutionStatus
from .bulk_sync_source import BulkSyncSource
Expand Down Expand Up @@ -53,6 +58,7 @@
from .create_model_request import CreateModelRequest
from .enrichment import Enrichment
from .event import Event
from .event_body import EventBody
from .event_types_envelope import EventTypesEnvelope
from .events_envelope import EventsEnvelope
from .execution_counts import ExecutionCounts
Expand Down Expand Up @@ -129,7 +135,12 @@
from .start_model_sync_response_envelope import StartModelSyncResponseEnvelope
from .start_model_sync_response_schema import StartModelSyncResponseSchema
from .supported_mode import SupportedMode
from .sync_canceled_event import SyncCanceledEvent
from .sync_completed_event import SyncCompletedEvent
from .sync_completed_with_errors_event import SyncCompletedWithErrorsEvent
from .sync_destination_properties import SyncDestinationProperties
from .sync_failed_event import SyncFailedEvent
from .sync_running_event import SyncRunningEvent
from .sync_status_envelope import SyncStatusEnvelope
from .sync_status_response import SyncStatusResponse
from .target import Target
Expand Down Expand Up @@ -169,14 +180,19 @@
"BulkSchemaEnvelope",
"BulkSchemaExecutionStatus",
"BulkSelectiveMode",
"BulkSyncCanceledEvent",
"BulkSyncCompletedEvent",
"BulkSyncCompletedWithErrorEvent",
"BulkSyncDest",
"BulkSyncDestEnvelope",
"BulkSyncExecution",
"BulkSyncExecutionEnvelope",
"BulkSyncExecutionStatus",
"BulkSyncFailedEvent",
"BulkSyncListEnvelope",
"BulkSyncResponse",
"BulkSyncResponseEnvelope",
"BulkSyncRunningEvent",
"BulkSyncSchemaExecution",
"BulkSyncSchemaExecutionStatus",
"BulkSyncSource",
Expand Down Expand Up @@ -205,6 +221,7 @@
"CreateModelRequest",
"Enrichment",
"Event",
"EventBody",
"EventTypesEnvelope",
"EventsEnvelope",
"ExecutionCounts",
Expand Down Expand Up @@ -281,7 +298,12 @@
"StartModelSyncResponseEnvelope",
"StartModelSyncResponseSchema",
"SupportedMode",
"SyncCanceledEvent",
"SyncCompletedEvent",
"SyncCompletedWithErrorsEvent",
"SyncDestinationProperties",
"SyncFailedEvent",
"SyncRunningEvent",
"SyncStatusEnvelope",
"SyncStatusResponse",
"Target",
Expand Down
34 changes: 34 additions & 0 deletions src/polytomic/types/bulk_sync_canceled_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file was auto-generated from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1


class BulkSyncCanceledEvent(pydantic_v1.BaseModel):
destination_connection_id: typing.Optional[str] = None
execution_id: typing.Optional[str] = None
name: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
source_connection_id: typing.Optional[str] = None
sync_id: typing.Optional[str] = None

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}

return deep_union_pydantic_dicts(
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
)

class Config:
frozen = True
smart_union = True
extra = pydantic_v1.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}
35 changes: 35 additions & 0 deletions src/polytomic/types/bulk_sync_completed_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file was auto-generated from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1


class BulkSyncCompletedEvent(pydantic_v1.BaseModel):
destination_connection_id: typing.Optional[str] = None
execution_id: typing.Optional[str] = None
name: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
source_connection_id: typing.Optional[str] = None
sync_id: typing.Optional[str] = None
trigger_source: typing.Optional[str] = None

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}

return deep_union_pydantic_dicts(
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
)

class Config:
frozen = True
smart_union = True
extra = pydantic_v1.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}
35 changes: 35 additions & 0 deletions src/polytomic/types/bulk_sync_completed_with_error_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file was auto-generated from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1


class BulkSyncCompletedWithErrorEvent(pydantic_v1.BaseModel):
destination_connection_id: typing.Optional[str] = None
execution_id: typing.Optional[str] = None
name: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
source_connection_id: typing.Optional[str] = None
sync_id: typing.Optional[str] = None
trigger_source: typing.Optional[str] = None

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}

return deep_union_pydantic_dicts(
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
)

class Config:
frozen = True
smart_union = True
extra = pydantic_v1.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}
35 changes: 35 additions & 0 deletions src/polytomic/types/bulk_sync_failed_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file was auto-generated from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1


class BulkSyncFailedEvent(pydantic_v1.BaseModel):
destination_connection_id: typing.Optional[str] = None
error: typing.Optional[str] = None
execution_id: typing.Optional[str] = None
name: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
source_connection_id: typing.Optional[str] = None
sync_id: typing.Optional[str] = None

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}

return deep_union_pydantic_dicts(
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
)

class Config:
frozen = True
smart_union = True
extra = pydantic_v1.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}
34 changes: 34 additions & 0 deletions src/polytomic/types/bulk_sync_running_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This file was auto-generated from our API Definition.

import datetime as dt
import typing

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1


class BulkSyncRunningEvent(pydantic_v1.BaseModel):
destination_connection_id: typing.Optional[str] = None
execution_id: typing.Optional[str] = None
name: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
source_connection_id: typing.Optional[str] = None
sync_id: typing.Optional[str] = None

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults_exclude_unset: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
kwargs_with_defaults_exclude_none: typing.Any = {"by_alias": True, "exclude_none": True, **kwargs}

return deep_union_pydantic_dicts(
super().dict(**kwargs_with_defaults_exclude_unset), super().dict(**kwargs_with_defaults_exclude_none)
)

class Config:
frozen = True
smart_union = True
extra = pydantic_v1.Extra.allow
json_encoders = {dt.datetime: serialize_datetime}
3 changes: 2 additions & 1 deletion src/polytomic/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@

from ..core.datetime_utils import serialize_datetime
from ..core.pydantic_utilities import deep_union_pydantic_dicts, pydantic_v1
from .event_body import EventBody


class Event(pydantic_v1.BaseModel):
created_at: typing.Optional[dt.datetime] = None
event: typing.Optional[typing.Any] = None
event: typing.Optional[EventBody] = None
id: typing.Optional[str] = None
organization_id: typing.Optional[str] = None
type: typing.Optional[str] = None
Expand Down
Loading

0 comments on commit 5b2b1d2

Please sign in to comment.