Repository: apache/airflow
File: providers/google/src/airflow/providers/google/cloud/transfers/calendar_to_gcs.py (Python)

Code before:
    :param single_events: Optional. False by default
    :param sync_token: Optional. Token obtained from the ``nextSyncToken`` field returned
    :param time_max: Optional. Upper bound (exclusive) for an event's start time to filter by.
        Default is no filter
    :param time_min: Optional. Lower bound (exclusive) for an event's end time to filter by.
        Default is no filter
    :param time_zone: Optional. Time zone used in response. Default is calendars time zone.
    :param updated_min: Optional. Lower bound for an event's last modification time
    :param destination_bucket: The destination Google Cloud Storage bucket where the
        report should be written to. (templated)
    :param destination_path: The Google Cloud Storage URI array for the object created by the operator.
        For example: ``path/to/my/files``.
    :param gcp_conn_id: The connection ID to use when fetching connection info.
    :param impersonation_chain: Optional service account to impersonate using short-term
        credentials, or chained list of accounts required to get the access_token
        of the last account in the list, which will be impersonated in the request.
        If set as a string, the account must grant the originating account
        the Service Account Token Creator IAM role.
        If set as a sequence, the identities from the list must grant
        Service Account Token Creator IAM role to the directly preceding identity, with first
        account from the list granting this role to the originating account (templated).
    :param unwrap_single: If True (default), returns a single URI string when there's only one file.
        If False, always returns a list of URIs. Default will change to False in a future release.
    :param return_gcs_uri: If True, returns the full GCS URI (e.g., ``gs://bucket/path/to/file``).
        If False (default), returns the destination file name only (e.g., ``bucket/path/to/file``).
        This parameter cannot be used together with ``unwrap_single=True``.
    """

    template_fields = [
        "calendar_id",
        "destination_bucket",
        "destination_path",
        "impersonation_chain",
    ]

    def __init__(
        self,
        *,
        destination_bucket: str,
        api_version: str,
        calendar_id: str = "primary",
        i_cal_uid: str | None = None,
        max_attendees: int | None = None,
        max_results: int | None = None,
        order_by: str | None = None,
        private_extended_property: str | None = None,
        text_search_query: str | None = None,
        shared_extended_property: str | None = None,
        show_deleted: bool | None = None,
        show_hidden_invitation: bool | None = None,
        single_events: bool | None = None,

Review comment (suggestion):
```suggestion
        When this parameter's value is false, it cannot be used altogether with ``unwrap_single=False``.
```

Code after:
    :param single_events: Optional. False by default
    :param sync_token: Optional. Token obtained from the ``nextSyncToken`` field returned
    :param time_max: Optional. Upper bound (exclusive) for an event's start time to filter by.
        Default is no filter
    :param time_min: Optional. Lower bound (exclusive) for an event's end time to filter by.
        Default is no filter
    :param time_zone: Optional. Time zone used in response. Default is calendars time zone.
    :param updated_min: Optional. Lower bound for an event's last modification time
    :param destination_bucket: The destination Google Cloud Storage bucket where the
        report should be written to. (templated)
    :param destination_path: The Google Cloud Storage URI array for the object created by the operator.
        For example: ``path/to/my/files``.
    :param gcp_conn_id: The connection ID to use when fetching connection info.
    :param impersonation_chain: Optional service account to impersonate using short-term
        credentials, or chained list of accounts required to get the access_token
        of the last account in the list, which will be impersonated in the request.
        If set as a string, the account must grant the originating account
        the Service Account Token Creator IAM role.
        If set as a sequence, the identities from the list must grant
        Service Account Token Creator IAM role to the directly preceding identity, with first
        account from the list granting this role to the originating account (templated).
    :param unwrap_single: If True (default), returns a single URI string when there's only one file.
        If False, always returns a list of URIs. Default will change to False in a future release.
    :param return_gcs_uri: If True, returns the full GCS URI (e.g., ``gs://bucket/path/to/file``).
        If False (default), returns the destination file name only (e.g., ``bucket/path/to/file``).
        This parameter is deprecated and will be removed in a future release.
        When this parameter's value is False, it cannot be used altogether with ``unwrap_single=False``.
    """

    template_fields = [
        "calendar_id",
        "destination_bucket",
        "destination_path",
        "impersonation_chain",
    ]

    def __init__(
        self,
        *,
        destination_bucket: str,
        api_version: str,
        calendar_id: str = "primary",
        i_cal_uid: str | None = None,
        max_attendees: int | None = None,
        max_results: int | None = None,
        order_by: str | None = None,
        private_extended_property: str | None = None,
        text_search_query: str | None = None,
        shared_extended_property: str | None = None,
        show_deleted: bool | None = None,
        show_hidden_invitation: bool | None = None,