Skip to content

Commit 6d24e7e

Browse files
SDK regeneration
1 parent 0ff0d74 commit 6d24e7e

27 files changed

+563
-101
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "pipedream"
33

44
[tool.poetry]
55
name = "pipedream"
6-
version = "1.0.10"
6+
version = "1.0.11"
77
description = ""
88
readme = "README.md"
99
authors = []

src/pipedream/actions/client.py

Lines changed: 52 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ def list(
9797
after=after, before=before, limit=limit, q=q, app=app, request_options=request_options
9898
)
9999

100-
def retrieve(self, component_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Component:
100+
def retrieve(
101+
self,
102+
component_id: str,
103+
*,
104+
version: typing.Optional[str] = None,
105+
request_options: typing.Optional[RequestOptions] = None,
106+
) -> Component:
101107
"""
102108
Get detailed configuration for a specific action by its key
103109
@@ -106,6 +112,9 @@ def retrieve(self, component_id: str, *, request_options: typing.Optional[Reques
106112
component_id : str
107113
The key that uniquely identifies the component (e.g., 'slack-send-message')
108114
115+
version : typing.Optional[str]
116+
Optional semantic version of the component to retrieve (for example '1.0.0')
117+
109118
request_options : typing.Optional[RequestOptions]
110119
Request-specific configuration.
111120
@@ -126,9 +135,10 @@ def retrieve(self, component_id: str, *, request_options: typing.Optional[Reques
126135
)
127136
client.actions.retrieve(
128137
component_id="component_id",
138+
version="1.2.3",
129139
)
130140
"""
131-
_response = self._raw_client.retrieve(component_id, request_options=request_options)
141+
_response = self._raw_client.retrieve(component_id, version=version, request_options=request_options)
132142
return _response.data
133143

134144
def configure_prop(
@@ -137,6 +147,7 @@ def configure_prop(
137147
id: str,
138148
external_user_id: str,
139149
prop_name: str,
150+
version: typing.Optional[str] = OMIT,
140151
blocking: typing.Optional[bool] = OMIT,
141152
configured_props: typing.Optional[ConfiguredProps] = OMIT,
142153
dynamic_props_id: typing.Optional[str] = OMIT,
@@ -159,6 +170,9 @@ def configure_prop(
159170
prop_name : str
160171
The name of the prop to configure
161172
173+
version : typing.Optional[str]
174+
Optional component version (in SemVer format, for example '1.0.0'), defaults to latest
175+
162176
blocking : typing.Optional[bool]
163177
Whether this operation should block until completion
164178
@@ -204,6 +218,7 @@ def configure_prop(
204218
id=id,
205219
external_user_id=external_user_id,
206220
prop_name=prop_name,
221+
version=version,
207222
blocking=blocking,
208223
configured_props=configured_props,
209224
dynamic_props_id=dynamic_props_id,
@@ -219,6 +234,7 @@ def reload_props(
219234
*,
220235
id: str,
221236
external_user_id: str,
237+
version: typing.Optional[str] = OMIT,
222238
blocking: typing.Optional[bool] = OMIT,
223239
configured_props: typing.Optional[ConfiguredProps] = OMIT,
224240
dynamic_props_id: typing.Optional[str] = OMIT,
@@ -235,6 +251,9 @@ def reload_props(
235251
external_user_id : str
236252
The external user ID
237253
254+
version : typing.Optional[str]
255+
Optional component version (in SemVer format, for example '1.0.0'), defaults to latest
256+
238257
blocking : typing.Optional[bool]
239258
Whether this operation should block until completion
240259
@@ -269,6 +288,7 @@ def reload_props(
269288
_response = self._raw_client.reload_props(
270289
id=id,
271290
external_user_id=external_user_id,
291+
version=version,
272292
blocking=blocking,
273293
configured_props=configured_props,
274294
dynamic_props_id=dynamic_props_id,
@@ -281,6 +301,7 @@ def run(
281301
*,
282302
id: str,
283303
external_user_id: str,
304+
version: typing.Optional[str] = OMIT,
284305
configured_props: typing.Optional[ConfiguredProps] = OMIT,
285306
dynamic_props_id: typing.Optional[str] = OMIT,
286307
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
@@ -297,6 +318,9 @@ def run(
297318
external_user_id : str
298319
The external user ID
299320
321+
version : typing.Optional[str]
322+
Optional action component version (in SemVer format, for example '1.0.0'), defaults to latest
323+
300324
configured_props : typing.Optional[ConfiguredProps]
301325
302326
dynamic_props_id : typing.Optional[str]
@@ -330,6 +354,7 @@ def run(
330354
_response = self._raw_client.run(
331355
id=id,
332356
external_user_id=external_user_id,
357+
version=version,
333358
configured_props=configured_props,
334359
dynamic_props_id=dynamic_props_id,
335360
stash_id=stash_id,
@@ -428,7 +453,11 @@ async def main() -> None:
428453
)
429454

430455
async def retrieve(
431-
self, component_id: str, *, request_options: typing.Optional[RequestOptions] = None
456+
self,
457+
component_id: str,
458+
*,
459+
version: typing.Optional[str] = None,
460+
request_options: typing.Optional[RequestOptions] = None,
432461
) -> Component:
433462
"""
434463
Get detailed configuration for a specific action by its key
@@ -438,6 +467,9 @@ async def retrieve(
438467
component_id : str
439468
The key that uniquely identifies the component (e.g., 'slack-send-message')
440469
470+
version : typing.Optional[str]
471+
Optional semantic version of the component to retrieve (for example '1.0.0')
472+
441473
request_options : typing.Optional[RequestOptions]
442474
Request-specific configuration.
443475
@@ -463,12 +495,13 @@ async def retrieve(
463495
async def main() -> None:
464496
await client.actions.retrieve(
465497
component_id="component_id",
498+
version="1.2.3",
466499
)
467500
468501
469502
asyncio.run(main())
470503
"""
471-
_response = await self._raw_client.retrieve(component_id, request_options=request_options)
504+
_response = await self._raw_client.retrieve(component_id, version=version, request_options=request_options)
472505
return _response.data
473506

474507
async def configure_prop(
@@ -477,6 +510,7 @@ async def configure_prop(
477510
id: str,
478511
external_user_id: str,
479512
prop_name: str,
513+
version: typing.Optional[str] = OMIT,
480514
blocking: typing.Optional[bool] = OMIT,
481515
configured_props: typing.Optional[ConfiguredProps] = OMIT,
482516
dynamic_props_id: typing.Optional[str] = OMIT,
@@ -499,6 +533,9 @@ async def configure_prop(
499533
prop_name : str
500534
The name of the prop to configure
501535
536+
version : typing.Optional[str]
537+
Optional component version (in SemVer format, for example '1.0.0'), defaults to latest
538+
502539
blocking : typing.Optional[bool]
503540
Whether this operation should block until completion
504541
@@ -552,6 +589,7 @@ async def main() -> None:
552589
id=id,
553590
external_user_id=external_user_id,
554591
prop_name=prop_name,
592+
version=version,
555593
blocking=blocking,
556594
configured_props=configured_props,
557595
dynamic_props_id=dynamic_props_id,
@@ -567,6 +605,7 @@ async def reload_props(
567605
*,
568606
id: str,
569607
external_user_id: str,
608+
version: typing.Optional[str] = OMIT,
570609
blocking: typing.Optional[bool] = OMIT,
571610
configured_props: typing.Optional[ConfiguredProps] = OMIT,
572611
dynamic_props_id: typing.Optional[str] = OMIT,
@@ -583,6 +622,9 @@ async def reload_props(
583622
external_user_id : str
584623
The external user ID
585624
625+
version : typing.Optional[str]
626+
Optional component version (in SemVer format, for example '1.0.0'), defaults to latest
627+
586628
blocking : typing.Optional[bool]
587629
Whether this operation should block until completion
588630
@@ -625,6 +667,7 @@ async def main() -> None:
625667
_response = await self._raw_client.reload_props(
626668
id=id,
627669
external_user_id=external_user_id,
670+
version=version,
628671
blocking=blocking,
629672
configured_props=configured_props,
630673
dynamic_props_id=dynamic_props_id,
@@ -637,6 +680,7 @@ async def run(
637680
*,
638681
id: str,
639682
external_user_id: str,
683+
version: typing.Optional[str] = OMIT,
640684
configured_props: typing.Optional[ConfiguredProps] = OMIT,
641685
dynamic_props_id: typing.Optional[str] = OMIT,
642686
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
@@ -653,6 +697,9 @@ async def run(
653697
external_user_id : str
654698
The external user ID
655699
700+
version : typing.Optional[str]
701+
Optional action component version (in SemVer format, for example '1.0.0'), defaults to latest
702+
656703
configured_props : typing.Optional[ConfiguredProps]
657704
658705
dynamic_props_id : typing.Optional[str]
@@ -694,6 +741,7 @@ async def main() -> None:
694741
_response = await self._raw_client.run(
695742
id=id,
696743
external_user_id=external_user_id,
744+
version=version,
697745
configured_props=configured_props,
698746
dynamic_props_id=dynamic_props_id,
699747
stash_id=stash_id,

0 commit comments

Comments
 (0)