Sha256: a9fa9c13c15e5860f2651e41b1ff3019b0b6447f1c6f73af92bb1ab86c9cd7b2
Contents?: true
Size: 1008 Bytes
Versions: 9
Compression:
Stored size: 1008 Bytes
Contents
module Fog module AWS class DNS class Real require 'fog/dns/parsers/aws/get_change' # returns the current state of a change request # # ==== Parameters # * change_id<~String> # # ==== Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'Id'<~String> # * 'Status'<~String> # * 'SubmittedAt'<~String> # * status<~Integer> - 200 when successful def get_change(change_id) # AWS methods return change_ids that looks like '/change/id'. Let the caller either use # that form or just the actual id (which is what this request needs) change_id = change_id.sub('/change/', '') request({ :expects => 200, :parser => Fog::Parsers::AWS::DNS::GetChange.new, :method => 'GET', :path => "change/#{change_id}" }) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems