/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/__pycache__
NameSizeModeActions
action.cpython-313.pyc95400644editdlrm
base.cpython-313.pyc49520644editdlrm
collection.cpython-313.pyc186930644editdlrm
factory.cpython-313.pyc190120644editdlrm
model.cpython-313.pyc217460644editdlrm
params.cpython-313.pyc49810644editdlrm
response.cpython-313.pyc96200644editdlrm
__init__.cpython-313.pyc1720644editdlrm
Edit: /usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/__pycache__/model.cpython-313.pyc (21746B)
jpOSrSSKrSSKJr \R"\5r"SS5r"SS5r"SS 5r "S S 5r "S S \ 5r "SS\ 5r "SS5r "SS\5r"SS5rg)a The models defined in this file represent the resource JSON description format and provide a layer of abstraction from the raw JSON. The advantages of this are: * Pythonic interface (e.g. ``action.request.operation``) * Consumers need not change for minor JSON changes (e.g. renamed field) These models are used both by the resource factory to generate resource classes as well as by the documentation generator. N) xform_namec"\rSrSrSrSSjrSrg) Identifier!zg A resource identifier, given by its name. :type name: string :param name: The name of the identifier NcXlX lgN)name member_name)selfr r s H/usr/lib/rads/venv/lib/python3.13/site-packages/boto3/resources/model.py__init__Identifier.__init__)s  &)r r r__name__ __module__ __qualname____firstlineno____doc__r __static_attributes__rr rr!s 'rrc\rSrSrSrSrSrg)Action/z A service operation action. :type name: string :param name: The name of the action :type definition: dict :param definition: The JSON definition :type resource_defs: dict :param resource_defs: All resources defined in the service cX lXlSUlSU;a [UR S055UlSUlSU;a![ UR S05U5UlUR S5Ulg)Nrequestresourcepath) _definitionr rRequestgetrResponseResourcerr r definition resource_defss r r Action.__init__;sr%   "":>>)R#@ADL  #,z2. DMNN6* r)rr rrrNrrrr rr/s  +rrc.\rSrSrSrSr\S5rSrg)DefinitionWithParamsNz An item which has parameters exposed via the ``params`` property. A request has an operation and parameters, while a waiter has a name, a low-level waiter name and parameters. :type definition: dict :param definition: The JSON definition cXlgrr)r r$s r r DefinitionWithParams.__init__Xs%rc/nURRS/5HnUR[S0UD65 M U$)z\ Get a list of auto-filled parameters for this request. :type: list(:py:class:`Parameter`) paramsrrr!append Parameter)r r.items r r.DefinitionWithParams.params[sA$$((26D MM)+d+ ,7 rr+N) rrrrrr propertyr.rrrr r(r(Ns &  rr(c$\rSrSrSrSSjrSrg)r1ja An auto-filled parameter which has a source and target. For example, the ``QueueUrl`` may be auto-filled from a resource's ``url`` identifier when making calls to ``queue.receive_messages``. :type target: string :param target: The destination parameter name, e.g. ``QueueUrl`` :type source_type: string :param source_type: Where the source is defined. :type source: string :param source: The source name, e.g. ``Url`` Nc |XlX lX0lX@lXPlU(a[ R SU5 gg)Nz#Unknown parameter options found: %s)targetsourcer rvalueloggerwarning)r r8r9r rr:kwargss r r Parameter.__init__xs6       NN@& I r)r rr9r8r:)NNNrrrr r1r1js ;?Jrr1c,^\rSrSrSrU4SjrSrU=r$)r zd A service operation action request. :type definition: dict :param definition: The JSON definition cP>[TU]U5 URS5Ulg)N operation)superr r!rB)r r$ __class__s r r Request.__init__s" $$ 4r)rB)rrrrrr r __classcell__rDs@r r r s55rr c0^\rSrSrSrSrU4SjrSrU=r$)Waiterz An event waiter specification. :type name: string :param name: Name of the waiter :type definition: dict :param definition: The JSON definition WaitUntilc\>[TU]U5 XlURS5Ulg)N waiterName)rCr r r! waiter_name)r r r$rDs r r Waiter.__init__s* $ &>>,7r)r rN) rrrrrPREFIXr rrFrGs@r rIrIsF88rrIc>\rSrSrSrSr\S5r\S5rSr g)r"z A resource response to create after performing an action. :type definition: dict :param definition: The JSON definition :type resource_defs: dict :param resource_defs: All resources defined in the service ctXlX lURS5UlURS5Ulg)Ntyper)r_resource_defsr!rTr)r r$r%s r r ResponseResource.__init__s2%+NN6* NN6* rc/nURRS/5HnUR[S0UD65 M U$)zF A list of resource identifiers. :type: list(:py:class:`Identifier`) identifiersrr/)r rXr2s r rXResponseResource.identifierssD $$((;D   y040 1<rcr[URURURUR5$)zU Get the resource model for the response resource. :type: :py:class:`ResourceModel` ) ResourceModelrTrUr s r modelResponseResource.models1 IIt**4995t7J7J  r)rrUrrTN) rrrrrr r4rXr]rrrr r"r"s4+    rr"c(\rSrSrSr\S5rSrg) Collectionz A group of resources. See :py:class:`Action`. :type name: string :param name: The name of the collection :type definition: dict :param definition: The JSON definition :type resource_defs: dict :param resource_defs: All resources defined in the service cBURRR$)z Get a list of batch actions supported by the resource type contained in this action. This is a shortcut for accessing the same information through the resource model. :rtype: list(:py:class:`Action`) )rr] batch_actionsr\s r rcCollection.batch_actionss}}""000rrN)rrrrrr4rcrrrr r`r`s 11rr`c\rSrSrSrSrSSjrSSjrSSjrSr \ S 5r \ S 5r \ S 5r \ S 5rS rSr\ S5r\ S5r\ S5r\ S5rSrg)r[a A model representing a resource, defined via a JSON description format. A resource has identifiers, attributes, actions, sub-resources, references and collections. For more information on resources, see :ref:`guide_resources`. :type name: string :param name: The name of this resource, e.g. ``sqs`` or ``Queue`` :type definition: dict :param definition: The JSON definition :type resource_defs: dict :param resource_defs: All resources defined in the service cbX lX0l0UlXlUR S5Ulg)Nshape)rrU_renamedr r!rhr#s r r ResourceModel.__init__s,%+  ^^G, rNcS1n0UlURRS5(aURS5 URRS/5HnUR X#SS5 M URRS05HnUR X$S5 M UR 5R 5HOupESnUS SHnUS S :XdMS n O U(dUR X$S SS9 M=UR X$S5 MQ URRS05HnUR X$S5 M URRS05H'nUR U[RU-S5 M) Ub4URR5HnUR X$S5 M gg)a Load a name translation map given a shape. This will set up renamed values for any collisions, e.g. if the shape, an action, and a subresource all are all named ``foo`` then the resource will have an action ``foo``, a subresource named ``Foo`` and a property named ``foo_attribute``. This is the order of precedence, from most important to least important: * Load action (resource.load) * Identifiers * Actions * Subresources * References * Collections * Waiters * Attributes (shape members) Batch actions are only exposed on collections, so do not get modified here. Subresources use upper camel casing, so are unlikely to collide with anything but other subresources. Creates a structure like this:: renames = { ('action', 'id'): 'id_action', ('collection', 'id'): 'id_collection', ('attribute', 'id'): 'id_attribute' } # Get the final name for an action named 'id' name = renames.get(('action', 'id'), 'id') :type shape: botocore.model.Shape :param shape: The underlying shape for this resource. metaloadrXr identifieractionsactionFrr9dataT subresource snake_case referencehasMany collectionwaiterswaiterN attribute) rirr!add_load_name_with_category_get_has_definitionitemsrIrPmemberskeys)r rhnamesr2r ref data_requiredrns r load_rename_mapResourceModel.load_rename_mapsL      ' ' IIf $$((;D  ) )%f| L<$$((B7D  ) )%x @811399;ID"M!*om< h'61$(M= !--5.--e;G< $$((B7D  ) )%| D8$$((B7D  ) )v}}t+X 8   **,--e;G- rc (U(a [U5nX!;aj[RSURSUSU35 US-U-URX24'USU-- nX!;a[ SURSUSUS35eUR U5 g)a Load a name with a given category, possibly renaming it if that name is already in use. The name will be stored in ``names`` and possibly be set up in ``self._renamed``. :type names: set :param names: Existing names (Python attributes, properties, or methods) on the resource. :type name: string :param name: The original name of the value. :type category: string :param category: The value type, such as 'identifier' or 'action' :type snake_case: bool :param snake_case: True (default) if the name should be snake cased. z Renaming  _zProblem renaming z to !N)rr;debugr ri ValueErrorr{)r rr categoryrts r r|&ResourceModel._load_name_with_category]s d#D = LL9TYYKq !D6B C.2Sj8.CDMM8* + C(N "D}!' {!H:T$qI  $rc`U(a [U5nURRX4U5$)a Get a possibly renamed value given a category and name. This uses the rename map set up in ``load_rename_map``, so that method must be called once first. :type category: string :param category: The value type, such as 'identifier' or 'action' :type name: string :param name: The original name of the value :type snake_case: bool :param snake_case: True (default) if the name should be snake cased. :rtype: string :return: Either the renamed value if it is set, otherwise the original name. )rrir!)r rr rts r _get_nameResourceModel._get_name~s+ d#D}}  (!1488rc0nURVs/sHo3RPM nnURR5H-upV[ U5nXt;aMUR SUSS9nXV4X''M/ U$s snf)a[ Get a dictionary of attribute names to original name and shape models that represent the attributes of this resource. Looks like the following: { 'some_name': ('SomeName', ) } :type shape: botocore.model.Shape :param shape: The underlying shape for this resource. :rtype: dict :return: Mapping of resource attributes. rzFrs)rXr rr~rr)r rh attributesiidentifier_namesr member snake_caseds r get_attributesResourceModel.get_attributess ,0,<,<=,sA5c/nURRS/5H]nURSUS5nURSS5nU(aURSU5nUR[ X455 M_ U$)zJ Get a list of resource identifiers. :type: list(:py:class:`Identifier`) rXrnr memberNameNrz)rr!rr0r)r rXr2r r s r rXResourceModel.identifierssx $$((;D>>,V =D((<6K"nn[+F   z$< = <rcnURRS5nUb[SXR5nU$)za Get the load action for this resource, if it is defined. :type: :py:class:`Action` or ``None`` rm)rr!rrU)r rps r rmResourceModel.loads7!!%%f-  FF,?,?@F rc/nURRS05R5H<up#URSU5nUR [ X#UR 55 M> U$)zK Get a list of actions for this resource. :type: list(:py:class:`Action`) rorprr!r~rr0rrUr ror r2s r roResourceModel.actionssb**..y"=CCEJD>>(D1D NN6$d.A.AB CFrc/nURRS05R5H<up#URSU5nUR [ X#UR 55 M> U$)zQ Get a list of batch actions for this resource. :type: list(:py:class:`Action`) batchActions batch_actionrrs r rcResourceModel.batch_actionssb**..~rBHHJJD>>.$7D NN6$d.A.AB CKrcURUR;a0nURR5Hup#SnURR S05R5nUH2upgUR S05R S5U:XdM,XqU'SnM4 U(aMrSU/S.0nUR S/5H n USSR U SS S .5 M" XU'M U$URR S05nU$) a Get a ``has`` relationship definition from a model, where the service resource model is treated special in that it contains a relationship to every resource defined for the service. This allows things like ``s3.Object('bucket-name', 'key')`` to work even though the JSON doesn't define it explicitly. :rtype: dict :return: Mapping of names to subresource and reference definitions. FhasrrTT)rTrXrXr input)r8r9)r rUr~rr!r0) r r$r resource_deffound has_itemshas_namehas_deffake_hasrns r r}!ResourceModel._get_has_definitions# 99D// /J&*&9&9&?&?&A"  ,,00;AAC )2%H{{:r266v>$F/68, $*3 u !+T",MNH&2&6&6}b&I  ,];BB'1&'9WM'J (0t$G'BN))--eR8Jrc/nUR5R5Hup4U(aURSUSS9nOURSU5n[X4UR5nSnUR R HnURS:XdMSn O U(aU(dURU5 MU(aMU(dMURU5 M U$)z Get a list of sub-resources or references. :type subresources: bool :param subresources: ``True`` to get sub-resources, ``False`` to get references. :rtype: list(:py:class:`Action`) rrFrsrurqT) r}r~rrrUrrXr9r0)r subresources resourcesr r$rprrns r _get_related_resources$ResourceModel._get_related_resources)s $ 8 8 : @ @ B D~~mTe~L~~k48Dd.A.ABF!M$oo99 $$.$(M: M  (!\mm  (!!C$rc$URS5$)z? Get a list of sub-resources. :type: list(:py:class:`Action`) Trr\s r rResourceModel.subresourcesHs**400rc$URS5$)zE Get a list of reference resources. :type: list(:py:class:`Action`) Frr\s r referencesResourceModel.referencesQs**511rc/nURRS05R5H<up#URSU5nUR [ X#UR 55 M> U$)zS Get a list of collections for this resource. :type: list(:py:class:`Collection`) rvrw)rr!r~rr0r`rU)r collectionsr r2s r rResourceModel.collectionsZse **..y"=CCEJD>>,5D   z$d6I6IJ KFrc/nURRS05R5HBup#URS[R U-5nUR [ X#55 MD U$)zK Get a list of waiters for this resource. :type: list(:py:class:`Waiter`) rxry)rr!r~rrIrPr0)r rxr r2s r rxResourceModel.waitersisc**..y"=CCEJD>>(FMMD,@AD NN6$- .Fr)rrirUr rhr)T)rrrrrr rr|rrr4rXrmrorcr}rrrrrxrrrr r[r[s -LH\B9*<"      8t>1122    rr[)rloggingbotocorer getLoggerrr;rrr(r1r rIr"r`r[rrr rs    8 $ ' '++>8JJB 5" 58 !8,+ + \110@@r