Class: Fog::OpenStack::DNS

Inherits:
Service
  • Object
show all
Defined in:
lib/fog/openstack/dns.rb,
lib/fog/openstack/dns/v1.rb,
lib/fog/openstack/dns/v2.rb,
lib/fog/openstack/dns/v2/models/pool.rb,
lib/fog/openstack/dns/v2/models/zone.rb,
lib/fog/openstack/dns/v2/models/pools.rb,
lib/fog/openstack/dns/v2/models/zones.rb,
lib/fog/openstack/dns/v2/models/recordset.rb,
lib/fog/openstack/dns/v2/models/recordsets.rb,
lib/fog/openstack/dns/v2/requests/get_pool.rb,
lib/fog/openstack/dns/v2/requests/get_zone.rb,
lib/fog/openstack/dns/v1/requests/get_quota.rb,
lib/fog/openstack/dns/v2/requests/get_quota.rb,
lib/fog/openstack/dns/v2/requests/list_pools.rb,
lib/fog/openstack/dns/v2/requests/list_zones.rb,
lib/fog/openstack/dns/v2/requests/create_zone.rb,
lib/fog/openstack/dns/v2/requests/delete_zone.rb,
lib/fog/openstack/dns/v2/requests/update_zone.rb,
lib/fog/openstack/dns/v1/requests/list_domains.rb,
lib/fog/openstack/dns/v1/requests/update_quota.rb,
lib/fog/openstack/dns/v2/requests/update_quota.rb,
lib/fog/openstack/dns/v2/requests/get_recordset.rb,
lib/fog/openstack/dns/v2/requests/list_recordsets.rb,
lib/fog/openstack/dns/v2/requests/create_recordset.rb,
lib/fog/openstack/dns/v2/requests/delete_recordset.rb,
lib/fog/openstack/dns/v2/requests/update_recordset.rb,
lib/fog/openstack/dns/v2/models/zone_transfer_accept.rb,
lib/fog/openstack/dns/v2/models/zone_transfer_accepts.rb,
lib/fog/openstack/dns/v2/models/zone_transfer_request.rb,
lib/fog/openstack/dns/v2/models/zone_transfer_requests.rb,
lib/fog/openstack/dns/v2/requests/get_zone_transfer_accept.rb,
lib/fog/openstack/dns/v2/requests/get_zone_transfer_request.rb,
lib/fog/openstack/dns/v2/requests/list_zone_transfer_accepts.rb,
lib/fog/openstack/dns/v2/requests/create_zone_transfer_accept.rb,
lib/fog/openstack/dns/v2/requests/list_zone_transfer_requests.rb,
lib/fog/openstack/dns/v2/requests/create_zone_transfer_request.rb,
lib/fog/openstack/dns/v2/requests/delete_zone_transfer_request.rb,
lib/fog/openstack/dns/v2/requests/update_zone_transfer_request.rb

Defined Under Namespace

Classes: V1, V2

Class Method Summary collapse

Class Method Details

.new(args = {}) ⇒ Object

Fog::OpenStack::DNS.new() will return a Fog::OpenStack::DNS::V2 or a Fog::OpenStack::DNS::V1, choosing the latest available



9
10
11
12
13
14
15
16
17
18
# File 'lib/fog/openstack/dns.rb', line 9

def self.new(args = {})
  @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url]
  if inspect == 'Fog::OpenStack::DNS'
    service = Fog::OpenStack::DNS::V2.new(args) unless args.empty?
    service ||= Fog::OpenStack::DNS::V1.new(args)
  else
    service = Fog::Service.new(args)
  end
  service
end