This is an automated email from the ASF dual-hosted git repository.
bugraoz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new e1bea44197d Amend update method name for dags (#56125)
e1bea44197d is described below
commit e1bea44197d0b86953e6744f78e6238712f56860
Author: Bugra Ozturk <[email protected]>
AuthorDate: Fri Sep 26 18:42:27 2025 +0200
Amend update method name for dags (#56125)
---
airflow-ctl/docs/images/command_hashes.txt | 2 +-
airflow-ctl/docs/images/output_dags.svg | 104 ++++++++++-----------
airflow-ctl/src/airflowctl/api/operations.py | 2 +-
.../tests/airflow_ctl/api/test_operations.py | 4 +-
4 files changed, 56 insertions(+), 56 deletions(-)
diff --git a/airflow-ctl/docs/images/command_hashes.txt
b/airflow-ctl/docs/images/command_hashes.txt
index 49725974d0c..80a7ac0cbf4 100644
--- a/airflow-ctl/docs/images/command_hashes.txt
+++ b/airflow-ctl/docs/images/command_hashes.txt
@@ -4,7 +4,7 @@ auth:f396d4bce90215599dde6ad0a8f30f29
backfill:bbce9859a2d1ce054ad22db92dea8c05
config:cb175bedf29e8a2c2c6a2ebd13d770a7
connections:a16225e1c7d28488d0da612752669b4b
-dags:bd230e5bb9bf017b3450b20848696fd7
+dags:6928d0192e95fde5b0c092e0ea5a0703
dagrun:ec1b6098822419967e621687bd7e5e4b
jobs:7f8680afff230eb9940bc7fca727bd52
pools:03fc7d948cbecf16ff8d640eb8f0ce43
diff --git a/airflow-ctl/docs/images/output_dags.svg
b/airflow-ctl/docs/images/output_dags.svg
index cf95861f177..73c7b63a48f 100644
--- a/airflow-ctl/docs/images/output_dags.svg
+++ b/airflow-ctl/docs/images/output_dags.svg
@@ -19,90 +19,90 @@
font-weight: 700;
}
- .terminal-2939553784-matrix {
+ .terminal-3052996798-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
- .terminal-2939553784-title {
+ .terminal-3052996798-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
- .terminal-2939553784-r1 { fill: #ff8700 }
-.terminal-2939553784-r2 { fill: #c5c8c6 }
-.terminal-2939553784-r3 { fill: #808080 }
-.terminal-2939553784-r4 { fill: #68a0b3 }
+ .terminal-3052996798-r1 { fill: #ff8700 }
+.terminal-3052996798-r2 { fill: #c5c8c6 }
+.terminal-3052996798-r3 { fill: #808080 }
+.terminal-3052996798-r4 { fill: #68a0b3 }
</style>
<defs>
- <clipPath id="terminal-2939553784-clip-terminal">
+ <clipPath id="terminal-3052996798-clip-terminal">
<rect x="0" y="0" width="792.0" height="535.8" />
</clipPath>
- <clipPath id="terminal-2939553784-line-0">
+ <clipPath id="terminal-3052996798-line-0">
<rect x="0" y="1.5" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-1">
+<clipPath id="terminal-3052996798-line-1">
<rect x="0" y="25.9" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-2">
+<clipPath id="terminal-3052996798-line-2">
<rect x="0" y="50.3" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-3">
+<clipPath id="terminal-3052996798-line-3">
<rect x="0" y="74.7" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-4">
+<clipPath id="terminal-3052996798-line-4">
<rect x="0" y="99.1" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-5">
+<clipPath id="terminal-3052996798-line-5">
<rect x="0" y="123.5" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-6">
+<clipPath id="terminal-3052996798-line-6">
<rect x="0" y="147.9" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-7">
+<clipPath id="terminal-3052996798-line-7">
<rect x="0" y="172.3" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-8">
+<clipPath id="terminal-3052996798-line-8">
<rect x="0" y="196.7" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-9">
+<clipPath id="terminal-3052996798-line-9">
<rect x="0" y="221.1" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-10">
+<clipPath id="terminal-3052996798-line-10">
<rect x="0" y="245.5" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-11">
+<clipPath id="terminal-3052996798-line-11">
<rect x="0" y="269.9" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-12">
+<clipPath id="terminal-3052996798-line-12">
<rect x="0" y="294.3" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-13">
+<clipPath id="terminal-3052996798-line-13">
<rect x="0" y="318.7" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-14">
+<clipPath id="terminal-3052996798-line-14">
<rect x="0" y="343.1" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-15">
+<clipPath id="terminal-3052996798-line-15">
<rect x="0" y="367.5" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-16">
+<clipPath id="terminal-3052996798-line-16">
<rect x="0" y="391.9" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-17">
+<clipPath id="terminal-3052996798-line-17">
<rect x="0" y="416.3" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-18">
+<clipPath id="terminal-3052996798-line-18">
<rect x="0" y="440.7" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-19">
+<clipPath id="terminal-3052996798-line-19">
<rect x="0" y="465.1" width="793" height="24.65"/>
</clipPath>
-<clipPath id="terminal-2939553784-line-20">
+<clipPath id="terminal-3052996798-line-20">
<rect x="0" y="489.5" width="793" height="24.65"/>
</clipPath>
</defs>
@@ -114,31 +114,31 @@
<circle cx="44" cy="0" r="7" fill="#28c840"/>
</g>
- <g transform="translate(9, 41)"
clip-path="url(#terminal-2939553784-clip-terminal)">
+ <g transform="translate(9, 41)"
clip-path="url(#terminal-3052996798-clip-terminal)">
- <g class="terminal-2939553784-matrix">
- <text class="terminal-2939553784-r1" x="0" y="20" textLength="73.2"
clip-path="url(#terminal-2939553784-line-0)">Usage:</text><text
class="terminal-2939553784-r3" x="85.4" y="20" textLength="183"
clip-path="url(#terminal-2939553784-line-0)">airflowctl dags</text><text
class="terminal-2939553784-r2" x="268.4" y="20" textLength="24.4"
clip-path="url(#terminal-2939553784-line-0)"> [</text><text
class="terminal-2939553784-r4" x="292.8" y="20" textLength="24.4"
clip-path="url(#t [...]
-</text><text class="terminal-2939553784-r2" x="793" y="44.4" textLength="12.2"
clip-path="url(#terminal-2939553784-line-1)">
-</text><text class="terminal-2939553784-r2" x="0" y="68.8" textLength="280.6"
clip-path="url(#terminal-2939553784-line-2)">Perform Dags operations</text><text
class="terminal-2939553784-r2" x="793" y="68.8" textLength="12.2"
clip-path="url(#terminal-2939553784-line-2)">
-</text><text class="terminal-2939553784-r2" x="793" y="93.2" textLength="12.2"
clip-path="url(#terminal-2939553784-line-3)">
-</text><text class="terminal-2939553784-r1" x="0" y="117.6" textLength="256.2"
clip-path="url(#terminal-2939553784-line-4)">Positional Arguments:</text><text
class="terminal-2939553784-r2" x="793" y="117.6" textLength="12.2"
clip-path="url(#terminal-2939553784-line-4)">
-</text><text class="terminal-2939553784-r4" x="24.4" y="142" textLength="85.4"
clip-path="url(#terminal-2939553784-line-5)">COMMAND</text><text
class="terminal-2939553784-r2" x="793" y="142" textLength="12.2"
clip-path="url(#terminal-2939553784-line-5)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="166.4"
textLength="73.2"
clip-path="url(#terminal-2939553784-line-6)">delete</text><text
class="terminal-2939553784-r2" x="268.4" y="166.4" textLength="292.8"
clip-path="url(#terminal-2939553784-line-6)">Perform delete operation</text><text
class="terminal-2939553784-r2" x="793" y="166.4" textLength="12.2"
clip-path="url(#terminal-2939553784-line-6)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="190.8"
textLength="36.6" clip-path="url(#terminal-2939553784-line-7)">get</text><text
class="terminal-2939553784-r2" x="268.4" y="190.8" textLength="256.2"
clip-path="url(#terminal-2939553784-line-7)">Perform get operation</text><text
class="terminal-2939553784-r2" x="793" y="190.8" textLength="12.2"
clip-path="url(#terminal-2939553784-line-7)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="215.2"
textLength="134.2"
clip-path="url(#terminal-2939553784-line-8)">get-details</text><text
class="terminal-2939553784-r2" x="268.4" y="215.2" textLength="353.8"
clip-path="url(#terminal-2939553784-line-8)">Perform get_details operation</text><text
class="terminal-2939553784-r2" x="793" y="215.2" textLength="12.2"
clip-path="url(#terminal-2939553784-line-8)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="239.6"
textLength="195.2"
clip-path="url(#terminal-2939553784-line-9)">get-import-error</text><text
class="terminal-2939553784-r2" x="268.4" y="239.6" textLength="414.8"
clip-path="url(#terminal-2939553784-line-9)">Perform get_import_error operation</text><text
class="terminal-2939553784-r2" x="793" y="239.6" textLength="12.2"
clip-path="url(#terminal-2939553784-line-9)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="264"
textLength="109.8"
clip-path="url(#terminal-2939553784-line-10)">get-stats</text><text
class="terminal-2939553784-r2" x="268.4" y="264" textLength="329.4"
clip-path="url(#terminal-2939553784-line-10)">Perform get_stats operation</text><text
class="terminal-2939553784-r2" x="793" y="264" textLength="12.2"
clip-path="url(#terminal-2939553784-line-10)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="288.4"
textLength="97.6"
clip-path="url(#terminal-2939553784-line-11)">get-tags</text><text
class="terminal-2939553784-r2" x="268.4" y="288.4" textLength="317.2"
clip-path="url(#terminal-2939553784-line-11)">Perform get_tags operation</text><text
class="terminal-2939553784-r2" x="793" y="288.4" textLength="12.2"
clip-path="url(#terminal-2939553784-line-11)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="312.8"
textLength="134.2"
clip-path="url(#terminal-2939553784-line-12)">get-version</text><text
class="terminal-2939553784-r2" x="268.4" y="312.8" textLength="353.8"
clip-path="url(#terminal-2939553784-line-12)">Perform get_version operation</text><text
class="terminal-2939553784-r2" x="793" y="312.8" textLength="12.2"
clip-path="url(#terminal-2939553784-line-12)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="337.2"
textLength="48.8"
clip-path="url(#terminal-2939553784-line-13)">list</text><text
class="terminal-2939553784-r2" x="268.4" y="337.2" textLength="268.4"
clip-path="url(#terminal-2939553784-line-13)">Perform list operation</text><text
class="terminal-2939553784-r2" x="793" y="337.2" textLength="12.2"
clip-path="url(#terminal-2939553784-line-13)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="361.6"
textLength="219.6"
clip-path="url(#terminal-2939553784-line-14)">list-import-errors</text><text
class="terminal-2939553784-r2" x="793" y="361.6" textLength="12.2"
clip-path="url(#terminal-2939553784-line-14)">
-</text><text class="terminal-2939553784-r2" x="268.4" y="386"
textLength="439.2"
clip-path="url(#terminal-2939553784-line-15)">Perform list_import_errors operation</text><text
class="terminal-2939553784-r2" x="793" y="386" textLength="12.2"
clip-path="url(#terminal-2939553784-line-15)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="410.4"
textLength="146.4"
clip-path="url(#terminal-2939553784-line-16)">list-version</text><text
class="terminal-2939553784-r2" x="268.4" y="410.4" textLength="366"
clip-path="url(#terminal-2939553784-line-16)">Perform list_version operation</text><text
class="terminal-2939553784-r2" x="793" y="410.4" textLength="12.2"
clip-path="url(#terminal-2939553784-line-16)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="434.8"
textLength="146.4"
clip-path="url(#terminal-2939553784-line-17)">list-warning</text><text
class="terminal-2939553784-r2" x="268.4" y="434.8" textLength="366"
clip-path="url(#terminal-2939553784-line-17)">Perform list_warning operation</text><text
class="terminal-2939553784-r2" x="793" y="434.8" textLength="12.2"
clip-path="url(#terminal-2939553784-line-17)">
-</text><text class="terminal-2939553784-r4" x="48.8" y="459.2" textLength="61"
clip-path="url(#terminal-2939553784-line-18)">patch</text><text
class="terminal-2939553784-r2" x="268.4" y="459.2" textLength="280.6"
clip-path="url(#terminal-2939553784-line-18)">Perform patch operation</text><text
class="terminal-2939553784-r2" x="793" y="459.2" textLength="12.2"
clip-path="url(#terminal-2939553784-line-18)">
-</text><text class="terminal-2939553784-r2" x="793" y="483.6"
textLength="12.2" clip-path="url(#terminal-2939553784-line-19)">
-</text><text class="terminal-2939553784-r1" x="0" y="508" textLength="97.6"
clip-path="url(#terminal-2939553784-line-20)">Options:</text><text
class="terminal-2939553784-r2" x="793" y="508" textLength="12.2"
clip-path="url(#terminal-2939553784-line-20)">
-</text><text class="terminal-2939553784-r4" x="24.4" y="532.4"
textLength="24.4" clip-path="url(#terminal-2939553784-line-21)">-h</text><text
class="terminal-2939553784-r2" x="48.8" y="532.4" textLength="24.4"
clip-path="url(#terminal-2939553784-line-21)">, </text><text
class="terminal-2939553784-r4" x="73.2" y="532.4" textLength="73.2"
clip-path="url(#terminal-2939553784-line-21)">--help</text><text
class="terminal-2939553784-r2" x="268.4" y="532.4" textLength="378.2"
clip-path="ur [...]
+ <g class="terminal-3052996798-matrix">
+ <text class="terminal-3052996798-r1" x="0" y="20" textLength="73.2"
clip-path="url(#terminal-3052996798-line-0)">Usage:</text><text
class="terminal-3052996798-r3" x="85.4" y="20" textLength="183"
clip-path="url(#terminal-3052996798-line-0)">airflowctl dags</text><text
class="terminal-3052996798-r2" x="268.4" y="20" textLength="24.4"
clip-path="url(#terminal-3052996798-line-0)"> [</text><text
class="terminal-3052996798-r4" x="292.8" y="20" textLength="24.4"
clip-path="url(#t [...]
+</text><text class="terminal-3052996798-r2" x="793" y="44.4" textLength="12.2"
clip-path="url(#terminal-3052996798-line-1)">
+</text><text class="terminal-3052996798-r2" x="0" y="68.8" textLength="280.6"
clip-path="url(#terminal-3052996798-line-2)">Perform Dags operations</text><text
class="terminal-3052996798-r2" x="793" y="68.8" textLength="12.2"
clip-path="url(#terminal-3052996798-line-2)">
+</text><text class="terminal-3052996798-r2" x="793" y="93.2" textLength="12.2"
clip-path="url(#terminal-3052996798-line-3)">
+</text><text class="terminal-3052996798-r1" x="0" y="117.6" textLength="256.2"
clip-path="url(#terminal-3052996798-line-4)">Positional Arguments:</text><text
class="terminal-3052996798-r2" x="793" y="117.6" textLength="12.2"
clip-path="url(#terminal-3052996798-line-4)">
+</text><text class="terminal-3052996798-r4" x="24.4" y="142" textLength="85.4"
clip-path="url(#terminal-3052996798-line-5)">COMMAND</text><text
class="terminal-3052996798-r2" x="793" y="142" textLength="12.2"
clip-path="url(#terminal-3052996798-line-5)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="166.4"
textLength="73.2"
clip-path="url(#terminal-3052996798-line-6)">delete</text><text
class="terminal-3052996798-r2" x="268.4" y="166.4" textLength="292.8"
clip-path="url(#terminal-3052996798-line-6)">Perform delete operation</text><text
class="terminal-3052996798-r2" x="793" y="166.4" textLength="12.2"
clip-path="url(#terminal-3052996798-line-6)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="190.8"
textLength="36.6" clip-path="url(#terminal-3052996798-line-7)">get</text><text
class="terminal-3052996798-r2" x="268.4" y="190.8" textLength="256.2"
clip-path="url(#terminal-3052996798-line-7)">Perform get operation</text><text
class="terminal-3052996798-r2" x="793" y="190.8" textLength="12.2"
clip-path="url(#terminal-3052996798-line-7)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="215.2"
textLength="134.2"
clip-path="url(#terminal-3052996798-line-8)">get-details</text><text
class="terminal-3052996798-r2" x="268.4" y="215.2" textLength="353.8"
clip-path="url(#terminal-3052996798-line-8)">Perform get_details operation</text><text
class="terminal-3052996798-r2" x="793" y="215.2" textLength="12.2"
clip-path="url(#terminal-3052996798-line-8)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="239.6"
textLength="195.2"
clip-path="url(#terminal-3052996798-line-9)">get-import-error</text><text
class="terminal-3052996798-r2" x="268.4" y="239.6" textLength="414.8"
clip-path="url(#terminal-3052996798-line-9)">Perform get_import_error operation</text><text
class="terminal-3052996798-r2" x="793" y="239.6" textLength="12.2"
clip-path="url(#terminal-3052996798-line-9)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="264"
textLength="109.8"
clip-path="url(#terminal-3052996798-line-10)">get-stats</text><text
class="terminal-3052996798-r2" x="268.4" y="264" textLength="329.4"
clip-path="url(#terminal-3052996798-line-10)">Perform get_stats operation</text><text
class="terminal-3052996798-r2" x="793" y="264" textLength="12.2"
clip-path="url(#terminal-3052996798-line-10)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="288.4"
textLength="97.6"
clip-path="url(#terminal-3052996798-line-11)">get-tags</text><text
class="terminal-3052996798-r2" x="268.4" y="288.4" textLength="317.2"
clip-path="url(#terminal-3052996798-line-11)">Perform get_tags operation</text><text
class="terminal-3052996798-r2" x="793" y="288.4" textLength="12.2"
clip-path="url(#terminal-3052996798-line-11)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="312.8"
textLength="134.2"
clip-path="url(#terminal-3052996798-line-12)">get-version</text><text
class="terminal-3052996798-r2" x="268.4" y="312.8" textLength="353.8"
clip-path="url(#terminal-3052996798-line-12)">Perform get_version operation</text><text
class="terminal-3052996798-r2" x="793" y="312.8" textLength="12.2"
clip-path="url(#terminal-3052996798-line-12)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="337.2"
textLength="48.8"
clip-path="url(#terminal-3052996798-line-13)">list</text><text
class="terminal-3052996798-r2" x="268.4" y="337.2" textLength="268.4"
clip-path="url(#terminal-3052996798-line-13)">Perform list operation</text><text
class="terminal-3052996798-r2" x="793" y="337.2" textLength="12.2"
clip-path="url(#terminal-3052996798-line-13)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="361.6"
textLength="219.6"
clip-path="url(#terminal-3052996798-line-14)">list-import-errors</text><text
class="terminal-3052996798-r2" x="793" y="361.6" textLength="12.2"
clip-path="url(#terminal-3052996798-line-14)">
+</text><text class="terminal-3052996798-r2" x="268.4" y="386"
textLength="439.2"
clip-path="url(#terminal-3052996798-line-15)">Perform list_import_errors operation</text><text
class="terminal-3052996798-r2" x="793" y="386" textLength="12.2"
clip-path="url(#terminal-3052996798-line-15)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="410.4"
textLength="146.4"
clip-path="url(#terminal-3052996798-line-16)">list-version</text><text
class="terminal-3052996798-r2" x="268.4" y="410.4" textLength="366"
clip-path="url(#terminal-3052996798-line-16)">Perform list_version operation</text><text
class="terminal-3052996798-r2" x="793" y="410.4" textLength="12.2"
clip-path="url(#terminal-3052996798-line-16)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="434.8"
textLength="146.4"
clip-path="url(#terminal-3052996798-line-17)">list-warning</text><text
class="terminal-3052996798-r2" x="268.4" y="434.8" textLength="366"
clip-path="url(#terminal-3052996798-line-17)">Perform list_warning operation</text><text
class="terminal-3052996798-r2" x="793" y="434.8" textLength="12.2"
clip-path="url(#terminal-3052996798-line-17)">
+</text><text class="terminal-3052996798-r4" x="48.8" y="459.2"
textLength="73.2"
clip-path="url(#terminal-3052996798-line-18)">update</text><text
class="terminal-3052996798-r2" x="268.4" y="459.2" textLength="292.8"
clip-path="url(#terminal-3052996798-line-18)">Perform update operation</text><text
class="terminal-3052996798-r2" x="793" y="459.2" textLength="12.2"
clip-path="url(#terminal-3052996798-line-18)">
+</text><text class="terminal-3052996798-r2" x="793" y="483.6"
textLength="12.2" clip-path="url(#terminal-3052996798-line-19)">
+</text><text class="terminal-3052996798-r1" x="0" y="508" textLength="97.6"
clip-path="url(#terminal-3052996798-line-20)">Options:</text><text
class="terminal-3052996798-r2" x="793" y="508" textLength="12.2"
clip-path="url(#terminal-3052996798-line-20)">
+</text><text class="terminal-3052996798-r4" x="24.4" y="532.4"
textLength="24.4" clip-path="url(#terminal-3052996798-line-21)">-h</text><text
class="terminal-3052996798-r2" x="48.8" y="532.4" textLength="24.4"
clip-path="url(#terminal-3052996798-line-21)">, </text><text
class="terminal-3052996798-r4" x="73.2" y="532.4" textLength="73.2"
clip-path="url(#terminal-3052996798-line-21)">--help</text><text
class="terminal-3052996798-r2" x="268.4" y="532.4" textLength="378.2"
clip-path="ur [...]
</text>
</g>
</g>
diff --git a/airflow-ctl/src/airflowctl/api/operations.py
b/airflow-ctl/src/airflowctl/api/operations.py
index 3475357bf41..a2cb27eafc4 100644
--- a/airflow-ctl/src/airflowctl/api/operations.py
+++ b/airflow-ctl/src/airflowctl/api/operations.py
@@ -475,7 +475,7 @@ class DagsOperations(BaseOperations):
"""List DAGs."""
return super().execute_list(path="dags",
data_model=DAGCollectionResponse)
- def patch(self, dag_id: str, dag_body: DAGPatchBody) -> DAGResponse |
ServerResponseError:
+ def update(self, dag_id: str, dag_body: DAGPatchBody) -> DAGResponse |
ServerResponseError:
try:
self.response = self.client.patch(f"dags/{dag_id}",
json=dag_body.model_dump(mode="json"))
return DAGResponse.model_validate_json(self.response.content)
diff --git a/airflow-ctl/tests/airflow_ctl/api/test_operations.py
b/airflow-ctl/tests/airflow_ctl/api/test_operations.py
index 11100e3912f..e9d2ebceff1 100644
--- a/airflow-ctl/tests/airflow_ctl/api/test_operations.py
+++ b/airflow-ctl/tests/airflow_ctl/api/test_operations.py
@@ -812,13 +812,13 @@ class TestDagOperations:
response = client.dags.list()
assert response == self.dag_collection_response
- def test_patch(self):
+ def test_update(self):
def handle_request(request: httpx.Request) -> httpx.Response:
assert request.url.path == "/api/v2/dags/dag_id"
return httpx.Response(200,
json=json.loads(self.dag_response.model_dump_json()))
client = make_api_client(transport=httpx.MockTransport(handle_request))
- response = client.dags.patch(dag_id="dag_id",
dag_body=self.dag_patch_body)
+ response = client.dags.update(dag_id="dag_id",
dag_body=self.dag_patch_body)
assert response == self.dag_response
def test_delete(self):