Class: Fog::DNS::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::Shared
Defined in:
lib/fog/dns/storm_on_demand.rb,
lib/fog/dns/storm_on_demand/requests/get_zone.rb,
lib/fog/dns/storm_on_demand/requests/get_record.rb,
lib/fog/dns/storm_on_demand/requests/list_zones.rb,
lib/fog/dns/storm_on_demand/requests/create_zone.rb,
lib/fog/dns/storm_on_demand/requests/delete_zone.rb,
lib/fog/dns/storm_on_demand/requests/update_zone.rb,
lib/fog/dns/storm_on_demand/requests/list_domains.rb,
lib/fog/dns/storm_on_demand/requests/list_records.rb,
lib/fog/dns/storm_on_demand/requests/renew_domain.rb,
lib/fog/dns/storm_on_demand/requests/create_record.rb,
lib/fog/dns/storm_on_demand/requests/delete_record.rb,
lib/fog/dns/storm_on_demand/requests/update_record.rb,
lib/fog/dns/storm_on_demand/requests/delete_reverse.rb,
lib/fog/dns/storm_on_demand/requests/update_reverse.rb,
lib/fog/dns/storm_on_demand/requests/create_record_region.rb,
lib/fog/dns/storm_on_demand/requests/delete_record_region.rb,
lib/fog/dns/storm_on_demand/requests/update_record_region.rb,
lib/fog/dns/storm_on_demand/requests/check_zone_delegation.rb

Constant Summary

Constants included from StormOnDemand::Shared

StormOnDemand::Shared::API_URL, StormOnDemand::Shared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::Shared

#initialize, #reload, #request

Instance Method Details

#check_zone_delegation(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/check_zone_delegation.rb', line 5

def check_zone_delegation(options = {})
  request(
    :path => "/Network/DNS/Zone/delegation",
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_record(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/create_record.rb', line 5

def create_record(options = {})
  request(
    :path => "/Network/DNS/Record/create",
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_record_region(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/create_record_region.rb', line 5

def create_record_region(options = {})
  request(
    :path => "/Network/DNS/Record/Region/create",
    :body => Fog::JSON.encode(:params => options)
  )
end

#create_zone(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/create_zone.rb', line 5

def create_zone(options = {})
  request(
    :path => "/Network/DNS/Zone/create",
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_record(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/delete_record.rb', line 5

def delete_record(options = {})
  request(
    :path => "/Network/DNS/Record/delete",
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_record_region(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/delete_record_region.rb', line 5

def delete_record_region(options = {})
  request(
    :path => "/Network/DNS/Record/Region/delete",
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_reverse(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/delete_reverse.rb', line 5

def delete_reverse(options = {})
  request(
    :path => "/Network/DNS/Reverse/delete",
    :body => Fog::JSON.encode(:params => options)
  )
end

#delete_zone(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/delete_zone.rb', line 5

def delete_zone(options = {})
  request(
    :path => "/Network/DNS/Zone/delete",
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_record(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/get_record.rb', line 5

def get_record(options = {})
  request(
    :path => "/Network/DNS/Record/details",
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_zone(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/get_zone.rb', line 5

def get_zone(options = {})
  request(
    :path => "/Network/DNS/Zone/details",
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_domains(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/list_domains.rb', line 5

def list_domains(options = {})
  request(
    :path => "/Network/DNS/Domain/list",
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_records(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/list_records.rb', line 5

def list_records(options = {})
  request(
    :path => "/Network/DNS/Record/list",
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_zones(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/list_zones.rb', line 5

def list_zones(options = {})
  request(
    :path => "/Network/DNS/Zone/list",
    :body => Fog::JSON.encode(:params => options)
  )
end

#renew_domain(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/renew_domain.rb', line 5

def renew_domain(options = {})
  request(
    :path => "/Network/DNS/Domain/renew",
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_record(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/update_record.rb', line 5

def update_record(options = {})
  request(
    :path => "/Network/DNS/Record/update",
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_record_region(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/update_record_region.rb', line 5

def update_record_region(options = {})
  request(
    :path => "/Network/DNS/Record/Region/update",
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_reverse(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/update_reverse.rb', line 5

def update_reverse(options = {})
  request(
    :path => "/Network/DNS/Reverse/update",
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_zone(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/dns/storm_on_demand/requests/update_zone.rb', line 5

def update_zone(options = {})
  request(
    :path => "/Network/DNS/Zone/update",
    :body => Fog::JSON.encode(:params => options)
  )
end