diff --git a/docs/models/airbyteapiconnectionschedule.md b/docs/models/airbyteapiconnectionschedule.md index b3e54619..6f54f6fe 100644 --- a/docs/models/airbyteapiconnectionschedule.md +++ b/docs/models/airbyteapiconnectionschedule.md @@ -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 | \ No newline at end of file +| 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 | \ No newline at end of file diff --git a/src/airbyte_api/models/airbyteapiconnectionschedule.py b/src/airbyte_api/models/airbyteapiconnectionschedule.py index 1beb618c..0d3d0722 100644 --- a/src/airbyte_api/models/airbyteapiconnectionschedule.py +++ b/src/airbyte_api/models/airbyteapiconnectionschedule.py @@ -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): @@ -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 = {}