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

Version Path
fog-openstack-0.1.31 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.10 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.1.30 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.1.29 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.9 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.1.28 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.8 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.7 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.6 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.5 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.4 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.3 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.2 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.3.0 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.2.4 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.2.3 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.2.2 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.2.1 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-openstack-0.2.0 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb
fog-zj-0.1.28 lib/fog/dns/openstack/v2/requests/create_zone_transfer_accept.rb