Module: Aws::Api::Customizations Private
- Defined in:
- lib/aws-sdk-core/api/customizations.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .api(prefix, &block) ⇒ Object private
- .apply_api_customizations(api) ⇒ Object private
- .apply_doc_customizations(api, docs) ⇒ Object private
- .apply_plugins(client_class) ⇒ Object private
- .doc(prefix, &block) ⇒ Object private
- .plugins(prefix, options) ⇒ Object private
Class Method Details
.api(prefix, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 11 def api(prefix, &block) @apis[prefix] = block end |
.apply_api_customizations(api) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 29 30 31 32 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 26 def apply_api_customizations(api) = api['metadata'] || {} prefix = ['serviceFullName'] # event stream is not supported at V2 api = exclude_eventstream(api) if api['operations'] @apis[prefix].call(api) if @apis[prefix] end |
.apply_doc_customizations(api, docs) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
34 35 36 37 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 34 def apply_doc_customizations(api, docs) prefix = api.['serviceFullName'] @docs[prefix].call(docs) if @docs[prefix] end |
.apply_plugins(client_class) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 42 43 44 45 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 39 def apply_plugins(client_class) prefix = client_class.api.['serviceFullName'] if @plugins[prefix] @plugins[prefix][:add].each { |p| client_class.add_plugin(p) } @plugins[prefix][:remove].each { |p| client_class.remove_plugin(p) } end end |
.doc(prefix, &block) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 15 def doc(prefix, &block) @docs[prefix] = block end |
.plugins(prefix, options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 22 23 24 |
# File 'lib/aws-sdk-core/api/customizations.rb', line 19 def plugins(prefix, ) @plugins[prefix] = { add: [:add] || [], remove: [:remove] || [], } end |