/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/__pycache__
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/__pycache__/action.cpython-313.pyc (9540B)
j% S SK r S SKJr S SKJr S SKJr SSKJr SSK J
r
SSKJrJ
r
\ R " \5 r " S S
5 r " S S\5 r " S
S5 r " S S5 rg) N)
xform_name)ActionDocstring)inject_attribute )Action)create_request_parameters)
RawHandlerResourceHandlerc ( \ rS rSrSrSS jrS rSrg)
ServiceAction au
A class representing a callable action on a resource, for example
``sqs.get_queue_by_name(...)`` or ``s3.Bucket('foo').delete()``.
The action may construct parameters from existing resource identifiers
and may return either a raw response or a new resource instance.
:type action_model: :py:class`~boto3.resources.model.Action`
:param action_model: The action model.
:type factory: ResourceFactory
:param factory: The factory that created the resource class to which
this action is attached.
:type service_context: :py:class:`~boto3.utils.ServiceContext`
:param service_context: Context about the AWS service
Nc Xl UR nU( a1 [ UR UUUUR R
S9U l g [ UR 5 U l g )N)search_pathfactoryresource_modelservice_contextoperation_name)
_action_modelresourcer
pathrequest operation_response_handlerr )selfaction_modelr r resource_response_models I/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/action.py__init__ServiceAction.__init__. s\ ) #/"7"7"%43886 /+33==&D" &00A0A%BD" c [ U R R R 5 n[ XR R 5 nUR U5 [ R SUR R UU5 [ UR R U5 " U0 UD6n[ R SU5 U R XU5 $ )a
Perform the action's request operation after building operation
parameters and build any defined resources from the response.
:type parent: :py:class:`~boto3.resources.base.ServiceResource`
:param parent: The resource instance to which this action is attached.
:rtype: dict or ServiceResource or list(ServiceResource)
:return: The response, either as a raw dict or resource instance(s).
Calling %s:%s with %rResponse: %r)
r r r r r updateloggerdebugmetaservice_namegetattrclientr )r parentargskwargsr paramsresponses r __call__ServiceAction.__call__? s $D$6$6$>$>$H$HI
+63E3E3M3MN
f#KK$$
6;;--~>OO^X.%%fh??r )r r )NN__name__
__module____qualname____firstlineno____doc__r r0 __static_attributes__ r r r r s "C"@r r c \ rS rSrSrS rSrg)BatchAction_ a
An action which operates on a batch of items in a collection, typically
a single page of results from the collection's underlying service
operation call. For example, this allows you to delete up to 999
S3 objects in a single operation rather than calling ``.delete()`` on
each one individually.
:type action_model: :py:class`~boto3.resources.model.Action`
:param action_model: The action model.
:type factory: ResourceFactory
:param factory: The factory that created the resource class to which
this action is attached.
:type service_context: :py:class:`~boto3.utils.ServiceContext`
:param service_context: Context about the AWS service
c V SnSn/ n[ U R R R 5 nUR 5 H n0 n [ U5 HW u pUc UR R nUc UR R n[ UU R R U U
S9 MY U ( d U$ U R U5 [ R SXGU 5 [ XW5 " U0 U D6n[ R SU5 UR U R XU5 5 M U$ )aI
Perform the batch action's operation on every page of results
from the collection.
:type parent:
:py:class:`~boto3.resources.collection.ResourceCollection`
:param parent: The collection iterator to which this action
is attached.
:rtype: list(dict)
:return: A list of low-level response dicts from each call.
N)r. indexr" r# )r r r r pages enumerater' r( r* r r$ r% r&