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.
13from botocore.docs.docstring import LazyLoadedDocstring
14
15from boto3.docs.action import document_action, document_load_reload_action
16from boto3.docs.attr import (
17 document_attribute,
18 document_identifier,
19 document_reference,
20)
21from boto3.docs.collection import (
22 document_batch_action,
23 document_collection_method,
24 document_collection_object,
25)
26from boto3.docs.subresource import document_sub_resource
27from boto3.docs.waiter import document_resource_waiter
28
29
30class ActionDocstring(LazyLoadedDocstring):
31 def _write_docstring(self, *args, **kwargs):
32 document_action(*args, **kwargs)
33
34
35class LoadReloadDocstring(LazyLoadedDocstring):
36 def _write_docstring(self, *args, **kwargs):
37 document_load_reload_action(*args, **kwargs)
38
39
40class SubResourceDocstring(LazyLoadedDocstring):
41 def _write_docstring(self, *args, **kwargs):
42 document_sub_resource(*args, **kwargs)
43
44
45class AttributeDocstring(LazyLoadedDocstring):
46 def _write_docstring(self, *args, **kwargs):
47 document_attribute(*args, **kwargs)
48
49
50class IdentifierDocstring(LazyLoadedDocstring):
51 def _write_docstring(self, *args, **kwargs):
52 document_identifier(*args, **kwargs)
53
54
55class ReferenceDocstring(LazyLoadedDocstring):
56 def _write_docstring(self, *args, **kwargs):
57 document_reference(*args, **kwargs)
58
59
60class CollectionDocstring(LazyLoadedDocstring):
61 def _write_docstring(self, *args, **kwargs):
62 document_collection_object(*args, **kwargs)
63
64
65class CollectionMethodDocstring(LazyLoadedDocstring):
66 def _write_docstring(self, *args, **kwargs):
67 document_collection_method(*args, **kwargs)
68
69
70class BatchActionDocstring(LazyLoadedDocstring):
71 def _write_docstring(self, *args, **kwargs):
72 document_batch_action(*args, **kwargs)
73
74
75class ResourceWaiterDocstring(LazyLoadedDocstring):
76 def _write_docstring(self, *args, **kwargs):
77 document_resource_waiter(*args, **kwargs)