lib/cloudflare_client/zone/dns.rb
##
# update a dns record.
# zone_id, id, type, and name are all required.  ttl and proxied are optional
update a dns record.
zone_id, id, type, and name are all required.  ttl and proxied are optional
update a dns record . zone_id id type and name are all required . ttl and proxied are optional
def update(id:, type:, name:, content:, ttl: nil, proxied: nil)
    id_check('dns record id', id)
    id_check('dns record type', type)
    id_check('dns record name', name)
    id_check('dns record content', content)
    raise('must suply type, name, and content') if (type.nil? || name.nil? || content.nil?)
    data           = {type: type, name: name, content: content}
    data[:ttl]     = ttl unless ttl.nil?
    data[:proxied] = proxied unless proxied.nil?
    cf_put(path: "/zones/#{zone_id}/dns_records/#{id}", data: data)
  end
def update ( id : , type : , name : , content : , ttl : nil , proxied : nil ) id_check ( 'dns record id' , id ) id_check ( 'dns record type' , type ) id_check ( 'dns record name' , name ) id_check ( 'dns record content' , content ) raise ( 'must suply type, name, and content' ) if ( type . nil? || name . nil? || content . nil? ) data = { type : type , name : name , content : content } data [ :ttl ] = ttl unless ttl . nil? data [ :proxied ] = proxied unless proxied . nil? cf_put ( path : "/zones/#{zone_id}/dns_records/#{id}" , data : data ) end
update a dns record.
update a dns record .
id
<not_specific>
type
<not_specific>
name
<not_specific>
content
<not_specific>
ttl
<not_specific>
proxied
<not_specific>