Class: RightScale::CloudApi::ECS::PA::ApiManager
- Inherits:
-
AWS::ApiManager
- Object
- CloudApi::ApiManager
- AWS::ApiManager
- RightScale::CloudApi::ECS::PA::ApiManager
- Defined in:
- lib/cloud/ecs/pa/manager.rb
Overview
Thread un-safe parent class for almost all the AWS services.
Constant Summary collapse
- DEFAULT_API_VERSION =
'2013-08-01'
Constants inherited from AWS::ApiManager
AWS::ApiManager::COMMON_QUERY_PARAMS
Instance Method Summary collapse
Methods inherited from AWS::ApiManager
#initialize, #method_missing, #parametrize
Constructor Details
This class inherits a constructor from RightScale::CloudApi::AWS::ApiManager
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightScale::CloudApi::AWS::ApiManager
Instance Method Details
#api(action, params = {}, &block) ⇒ Object
123 124 125 126 127 128 129 130 131 132 |
# File 'lib/cloud/ecs/pa/manager.rb', line 123 def api(action, params={}, &block) params['Operation'] ||= action.to_s._snake_case._camelize opts = {} verb = params.delete(:verb) || :post opts[:body] = params.delete(:body) opts[:headers] = params.delete(:headers) || {} opts[:options] = params.delete(:options) || {} opts[:params] = parametrize(params) process_api_request(verb, 'onca/xml', opts, &block) end |