Skip to content
Merged
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
9 changes: 5 additions & 4 deletions docs/models/airbyteapiconnectionschedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ schedule for when the the connection should run, per the schedule type

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
| `cron_expression` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `schedule_type` | [models.ScheduleTypeEnum](../models/scheduletypeenum.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| `cron_expression` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `cron_time_zone` | *Optional[str]* | :heavy_minus_sign: | Supported timezone ID or fixed offset for the cron schedule; defaults to UTC and cannot start with Etc. |
| `schedule_type` | [models.ScheduleTypeEnum](../models/scheduletypeenum.md) | :heavy_check_mark: | N/A |
9 changes: 8 additions & 1 deletion src/airbyte_api/models/airbyteapiconnectionschedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class AirbyteAPIConnectionScheduleTypedDict(TypedDict):

schedule_type: ScheduleTypeEnum
cron_expression: NotRequired[str]
cron_time_zone: NotRequired[str]
r"""Supported timezone ID or fixed offset for the cron schedule; defaults to UTC and cannot start with Etc."""


class AirbyteAPIConnectionSchedule(BaseModel):
Expand All @@ -25,9 +27,14 @@ class AirbyteAPIConnectionSchedule(BaseModel):
Optional[str], pydantic.Field(alias="cronExpression")
] = None

cron_time_zone: Annotated[Optional[str], pydantic.Field(alias="cronTimeZone")] = (
None
)
r"""Supported timezone ID or fixed offset for the cron schedule; defaults to UTC and cannot start with Etc."""

@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = set(["cronExpression"])
optional_fields = set(["cronExpression", "cronTimeZone"])
serialized = handler(self)
m = {}

Expand Down
Loading