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

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
# File 'lib/aws-sdk-core/api/customizations.rb', line 26

def apply_api_customizations(api)
   = api['metadata'] || {}
  prefix = ['endpointPrefix']
  @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.



32
33
34
35
# File 'lib/aws-sdk-core/api/customizations.rb', line 32

def apply_doc_customizations(api, docs)
  prefix = api.['endpointPrefix']
  @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.



37
38
39
40
41
42
43
# File 'lib/aws-sdk-core/api/customizations.rb', line 37

def apply_plugins(client_class)
  prefix = client_class.api.['endpointPrefix']
  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, options)
  @plugins[prefix] = {
    add: options[:add] || [],
    remove: options[:remove] || [],
  }
end