class Fog::DNS::Google::Changes
Public Instance Methods
all()
click to toggle source
Enumerates the list of Changes
@return [Array<Fog::DNS::Google::Change>] List of Changes resources
# File lib/fog/dns/google/models/changes.rb, line 13 def all requires :zone data = service.list_changes(zone.identity).to_h[:changes] || [] load(data) rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 [] end
get(identity)
click to toggle source
Fetches the representation of an existing Change
@param [String] identity Change identity @return [Fog::DNS::Google::Change] Change resource
# File lib/fog/dns/google/models/changes.rb, line 28 def get(identity) requires :zone if change = service.get_change(zone.identity, identity).to_h new(change) end rescue ::Google::Apis::ClientError => e raise e unless e.status_code == 404 nil end