MCPcopy Create free account
hub / github.com/aws/aws-cli / _add_client_methods

Method _add_client_methods

awscli/botocore/docs/client.py:125–139  ·  view source on GitHub ↗
(self, client_methods)

Source from the content-addressed store, hash-verified

123 section.style.end_codeblock()
124
125 def _add_client_methods(self, client_methods):
126 for method_name in sorted(client_methods):
127 # Create a new DocumentStructure for each client method and add contents.
128 method_doc_structure = DocumentStructure(
129 method_name, target='html'
130 )
131 self._add_client_method(
132 method_doc_structure, method_name, client_methods[method_name]
133 )
134 # Write client methods in individual/nested files.
135 # Path: <root>/reference/services/<service>/client/<method_name>.rst
136 client_dir_path = os.path.join(
137 self._root_docs_path, self._service_name, 'client'
138 )
139 method_doc_structure.write_to_file(client_dir_path, method_name)
140
141 def _add_client_method(self, section, method_name, method):
142 section.add_title_section(method_name)

Callers 1

document_clientMethod · 0.95

Calls 3

_add_client_methodMethod · 0.95
write_to_fileMethod · 0.95
DocumentStructureClass · 0.90

Tested by

no test coverage detected