Class: AdwordsApi::V201109::AlertService::AlertServiceRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/adwords_api/v201109/alert_service_registry.rb

Constant Summary collapse

ALERTSERVICE_METHODS =
{:get=>{:input=>[{:name=>:selector, :type=>"AlertSelector", :min_occurs=>0, :max_occurs=>1}], :output=>{:name=>"get_response", :fields=>[{:name=>:rval, :type=>"AlertPage", :min_occurs=>0, :max_occurs=>1}]}}}
ALERTSERVICE_TYPES =
{:Paging=>{:fields=>[{:name=>:start_index, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:number_results, :type=>"int", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapHeader=>{:fields=>[{:name=>:auth_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:developer_token, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:user_agent, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:validate_only, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}, {:name=>:partial_failure, :type=>"boolean", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :SoapResponseHeader=>{:fields=>[{:name=>:request_id, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:service_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:method_name, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:operations, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:response_time, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:units, :type=>"long", :min_occurs=>0, :max_occurs=>1}], :ns=>0}, :Page=>{:fields=>[{:name=>:total_num_entries, :type=>"int", :min_occurs=>0, :max_occurs=>1}, {:name=>:page_type, :type=>"string", :min_occurs=>0, :max_occurs=>1}], :abstract=>true, :ns=>0}, :AlertQuery=>{:fields=>[{:name=>:client_spec, :type=>"ClientSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:filter_spec, :type=>"FilterSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:types, :type=>"AlertType", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:severities, :type=>"AlertSeverity", :min_occurs=>0, :max_occurs=>:unbounded}, {:name=>:trigger_time_spec, :type=>"TriggerTimeSpec", :min_occurs=>0, :max_occurs=>1}, {:name=>:trigger_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_ids, :type=>"long", :min_occurs=>0, :max_occurs=>:unbounded}]}, :AlertSelector=>{:fields=>[{:name=>:query, :type=>"AlertQuery", :min_occurs=>0, :max_occurs=>1}, {:name=>:paging, :type=>"Paging", :min_occurs=>0, :max_occurs=>1}]}, :Detail=>{:fields=>[{:name=>:trigger_time, :type=>"string", :min_occurs=>0, :max_occurs=>1}]}, :Alert=>{:fields=>[{:name=>:alert_severity, :type=>"AlertSeverity", :min_occurs=>0, :max_occurs=>1}, {:name=>:alert_type, :type=>"AlertType", :min_occurs=>0, :max_occurs=>1}, {:name=>:client_customer_id, :type=>"long", :min_occurs=>0, :max_occurs=>1}, {:name=>:details, :type=>"Detail", :min_occurs=>0, :max_occurs=>:unbounded}]}, :AlertPage=>{:fields=>[{:name=>:entries, :type=>"Alert", :min_occurs=>0, :max_occurs=>:unbounded}], :base=>"NoStatsPage"}, :NoStatsPage=>{:fields=>[], :abstract=>true, :base=>"Page"}, :AlertSeverity=>{:fields=>[]}, :AlertType=>{:fields=>[]}, :ClientSpec=>{:fields=>[]}, :FilterSpec=>{:fields=>[]}, :TriggerTimeSpec=>{:fields=>[]}}
ALERTSERVICE_NAMESPACES =
["https://adwords.google.com/api/adwords/cm/v201109"]

Class Method Summary collapse

Class Method Details

.get_method_signature(method_name) ⇒ Object



18
19
20
# File 'lib/adwords_api/v201109/alert_service_registry.rb', line 18

def self.get_method_signature(method_name)
  return ALERTSERVICE_METHODS[method_name.to_sym]
end

.get_namespace(index) ⇒ Object



26
27
28
# File 'lib/adwords_api/v201109/alert_service_registry.rb', line 26

def self.get_namespace(index)
  return ALERTSERVICE_NAMESPACES[index]
end

.get_type_signature(type_name) ⇒ Object



22
23
24
# File 'lib/adwords_api/v201109/alert_service_registry.rb', line 22

def self.get_type_signature(type_name)
  return ALERTSERVICE_TYPES[type_name.to_sym]
end