Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 36 additions & 21 deletions src/pipedream/actions/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from ..types.component import Component
from ..types.configure_prop_response import ConfigurePropResponse
from ..types.reload_props_response import ReloadPropsResponse
from ..types.run_action_opts_stash_id import RunActionOptsStashId
from ..types.run_action_response import RunActionResponse
from .raw_client import AsyncRawActionsClient, RawActionsClient

Expand Down Expand Up @@ -126,10 +125,11 @@ def configure_prop(
id: str,
external_user_id: str,
prop_name: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
configure_prop_opts_async_handle: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
query: typing.Optional[str] = OMIT,
Expand All @@ -147,6 +147,8 @@ def configure_prop(
prop_name : str
The name of the prop to configure

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -156,7 +158,7 @@ def configure_prop(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

async_handle : typing.Optional[str]
configure_prop_opts_async_handle : typing.Optional[str]
Handle for async operations

page : typing.Optional[float]
Expand Down Expand Up @@ -196,10 +198,11 @@ def configure_prop(
id=id,
external_user_id=external_user_id,
prop_name=prop_name,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
async_handle=async_handle,
configure_prop_opts_async_handle=configure_prop_opts_async_handle,
page=page,
prev_context=prev_context,
query=query,
Expand All @@ -212,10 +215,11 @@ def reload_props(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
reload_props_opts_async_handle: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
"""
Expand All @@ -227,6 +231,8 @@ def reload_props(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -236,7 +242,7 @@ def reload_props(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

async_handle : typing.Optional[str]
reload_props_opts_async_handle : typing.Optional[str]
Handle for async operations

request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -265,10 +271,11 @@ def reload_props(
_response = self._raw_client.reload_props(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
async_handle=async_handle,
reload_props_opts_async_handle=reload_props_opts_async_handle,
request_options=request_options,
)
return _response.data
Expand All @@ -278,9 +285,9 @@ def run(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> RunActionResponse:
"""
Expand All @@ -292,14 +299,14 @@ def run(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
The configured properties for the action

dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand All @@ -326,9 +333,9 @@ def run(
_response = self._raw_client.run(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
request_options=request_options,
)
return _response.data
Expand Down Expand Up @@ -463,10 +470,11 @@ async def configure_prop(
id: str,
external_user_id: str,
prop_name: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
configure_prop_opts_async_handle: typing.Optional[str] = OMIT,
page: typing.Optional[float] = OMIT,
prev_context: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
query: typing.Optional[str] = OMIT,
Expand All @@ -484,6 +492,8 @@ async def configure_prop(
prop_name : str
The name of the prop to configure

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -493,7 +503,7 @@ async def configure_prop(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

async_handle : typing.Optional[str]
configure_prop_opts_async_handle : typing.Optional[str]
Handle for async operations

page : typing.Optional[float]
Expand Down Expand Up @@ -541,10 +551,11 @@ async def main() -> None:
id=id,
external_user_id=external_user_id,
prop_name=prop_name,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
async_handle=async_handle,
configure_prop_opts_async_handle=configure_prop_opts_async_handle,
page=page,
prev_context=prev_context,
query=query,
Expand All @@ -557,10 +568,11 @@ async def reload_props(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
blocking: typing.Optional[bool] = OMIT,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
async_handle: typing.Optional[str] = OMIT,
reload_props_opts_async_handle: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> ReloadPropsResponse:
"""
Expand All @@ -572,6 +584,8 @@ async def reload_props(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

blocking : typing.Optional[bool]
Whether this operation should block until completion

Expand All @@ -581,7 +595,7 @@ async def reload_props(
dynamic_props_id : typing.Optional[str]
The ID for dynamic props

async_handle : typing.Optional[str]
reload_props_opts_async_handle : typing.Optional[str]
Handle for async operations

request_options : typing.Optional[RequestOptions]
Expand Down Expand Up @@ -618,10 +632,11 @@ async def main() -> None:
_response = await self._raw_client.reload_props(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
blocking=blocking,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
async_handle=async_handle,
reload_props_opts_async_handle=reload_props_opts_async_handle,
request_options=request_options,
)
return _response.data
Expand All @@ -631,9 +646,9 @@ async def run(
*,
id: str,
external_user_id: str,
async_handle: typing.Optional[str] = None,
configured_props: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
dynamic_props_id: typing.Optional[str] = OMIT,
stash_id: typing.Optional[RunActionOptsStashId] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> RunActionResponse:
"""
Expand All @@ -645,14 +660,14 @@ async def run(
external_user_id : str
The external user ID

async_handle : typing.Optional[str]

configured_props : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
The configured properties for the action

dynamic_props_id : typing.Optional[str]
The ID for dynamic props

stash_id : typing.Optional[RunActionOptsStashId]

request_options : typing.Optional[RequestOptions]
Request-specific configuration.

Expand Down Expand Up @@ -687,9 +702,9 @@ async def main() -> None:
_response = await self._raw_client.run(
id=id,
external_user_id=external_user_id,
async_handle=async_handle,
configured_props=configured_props,
dynamic_props_id=dynamic_props_id,
stash_id=stash_id,
request_options=request_options,
)
return _response.data
Loading
Loading