Skip to content

Commit

Permalink
Allow updating subscriptions assigned to flows
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Apr 5, 2024
1 parent 7479975 commit 28d655c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Added
~~~~~

- Support updating subscriptions assigned to flows in the Flows service. (:pr:`NUMBER`)
1 change: 1 addition & 0 deletions src/globus_sdk/_testing/data/flows/update_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
_two_hop_transfer_update_request = {
"subtitle": "Specifically, in two steps",
"description": "Transfer from source to destination, stopping off at staging",
"subscription_id": "00000000-3ba7-456e-9df7-fc40028f3331",
}


Expand Down
3 changes: 3 additions & 0 deletions src/globus_sdk/services/flows/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def update_flow(
flow_starters: list[str] | None = None,
flow_administrators: list[str] | None = None,
keywords: list[str] | None = None,
subscription_id: UUIDLike | t.Literal["DEFAULT"] | None = None,
additional_fields: dict[str, t.Any] | None = None,
) -> GlobusHTTPResponse:
"""
Expand Down Expand Up @@ -393,6 +394,7 @@ def update_flow(
:param keywords: A set of terms used to categorize the flow used in query and
discovery operations (0 - 1024 items)
:param subscription_id: A subscription ID to assign to the flow.
:param additional_fields: Additional Key/Value pairs sent to the create API
.. tab-set::
Expand Down Expand Up @@ -433,6 +435,7 @@ def update_flow(
"flow_starters": flow_starters,
"flow_administrators": flow_administrators,
"keywords": keywords,
"subscription_id": subscription_id,
}.items()
if v is not None
}
Expand Down

0 comments on commit 28d655c

Please sign in to comment.