Debian Codegraph @

boto3/docs/docstring.py

raw
1 # Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"). You
4 # may not use this file except in compliance with the License. A copy of
5 # the License is located at
6 #
7 # https://aws.amazon.com/apache2.0/
8 #
9 # or in the "license" file accompanying this file. This file is
10 # distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11 # ANY KIND, either express or implied. See the License for the specific
12 # language governing permissions and limitations under the License.
13 from botocore.docs.docstring import LazyLoadedDocstring
14
15 from boto3.docs.action import document_action, document_load_reload_action
16 from boto3.docs.attr import (
17 document_attribute,
18 document_identifier,
19 document_reference,
20 )
21 from boto3.docs.collection import (
22 document_batch_action,
23 document_collection_method,
24 document_collection_object,
25 )
26 from boto3.docs.subresource import document_sub_resource
27 from boto3.docs.waiter import document_resource_waiter
28
29
30 class ActionDocstring(LazyLoadedDocstring):
31 def _write_docstring(self, *args, **kwargs):
32 document_action(*args, **kwargs)
33
34
35 class LoadReloadDocstring(LazyLoadedDocstring):
36 def _write_docstring(self, *args, **kwargs):
37 document_load_reload_action(*args, **kwargs)
38
39
40 class SubResourceDocstring(LazyLoadedDocstring):
41 def _write_docstring(self, *args, **kwargs):
42 document_sub_resource(*args, **kwargs)
43
44
45 class AttributeDocstring(LazyLoadedDocstring):
46 def _write_docstring(self, *args, **kwargs):
47 document_attribute(*args, **kwargs)
48
49
50 class IdentifierDocstring(LazyLoadedDocstring):
51 def _write_docstring(self, *args, **kwargs):
52 document_identifier(*args, **kwargs)
53
54
55 class ReferenceDocstring(LazyLoadedDocstring):
56 def _write_docstring(self, *args, **kwargs):
57 document_reference(*args, **kwargs)
58
59
60 class CollectionDocstring(LazyLoadedDocstring):
61 def _write_docstring(self, *args, **kwargs):
62 document_collection_object(*args, **kwargs)
63
64
65 class CollectionMethodDocstring(LazyLoadedDocstring):
66 def _write_docstring(self, *args, **kwargs):
67 document_collection_method(*args, **kwargs)
68
69
70 class BatchActionDocstring(LazyLoadedDocstring):
71 def _write_docstring(self, *args, **kwargs):
72 document_batch_action(*args, **kwargs)
73
74
75 class ResourceWaiterDocstring(LazyLoadedDocstring):
76 def _write_docstring(self, *args, **kwargs):
77 document_resource_waiter(*args, **kwargs)