zachliu commented on issue #14635:
URL: https://github.com/apache/airflow/issues/14635#issuecomment-791825913
btw, this would be more of an issue once we start using the generated client
for example, in Python client, this example in the doc won't work:
```python
dag = DAG(
dag_id="dag_id_example",
root_dag_id="root_dag_id_example",
is_paused=True,
is_subdag=True,
fileloc="fileloc_example",
file_token="file_token_example",
owners=[
"owners_example",
],
description="description_example",
schedule_interval=ScheduleInterval(
type="CronExpression",
value="value_example",
),
tags=[
Tag(
name="name_example",
),
],
)
update_mask = [
"is_paused",
]
api_response = api_instance.patch_dag(dag_id, dag,
update_mask=update_mask)
```
we need to do
```python
dag = DAG(is_paused=True)
api_response = api_instance.patch_dag(dag_id, dag)
```
which looks funny
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]