Sha256: 561809d638a188477e40eba9a5aa14b48a021123493b5b4231f74160b5d2977f
Contents?: true
Size: 972 Bytes
Versions: 29
Compression:
Stored size: 972 Bytes
Contents
module Fog module DNS class OpenStack class V2 class Real def create_zone_transfer_accept(key, zone_transfer_request_id, options = {}) data = { :key => key, :zone_transfer_request_id => zone_transfer_request_id } headers, _options = Fog::DNS::OpenStack::V2.setup_headers(options) request( :headers => headers, :body => Fog::JSON.encode(data), :expects => 200, :method => 'POST', :path => "zones/tasks/transfer_accepts" ) end end class Mock def create_zone_transfer_accept(key, zone_transfer_request_id) response = Excon::Response.new response.status = 200 response.body = data[:zone_transfer_accepts]["transfer_accepts"].first response end end end end end end
Version data entries
29 entries across 27 versions & 3 rubygems