lib/ultradns/api/rrset.rb
# Creates a new RRSet in the specified zone.
#
# === Required Parameters
#
# * +zone_name+ - The zone that contains the RRSet.The trailing dot is optional.
# * +rtype+ - The type of the RRSet.This can be numeric (1) or
#             if a well-known name is defined for the type (A), you can use it instead.
# * +owner_name+ - The owner name for the RRSet.
#                  If no trailing dot is supplied, the owner_name is assumed to be relative (foo).
#                  If a trailing dot is supplied, the owner name is assumed to be absolute (foo.zonename.com.)
# * +ttl+ - The updated TTL value for the RRSet.
# * +rdata+ - The updated BIND data for the RRSet as a string.
#             If there is a single resource record in the RRSet, you can pass in the single string or an array with a single element.
#             If there are multiple resource records in this RRSet, pass in a list of strings.
#
# === Examples
#
#     c.zone('zone.invalid.').rrset('A', 'foo').create(300, '1.2.3.4')
Creates a new RRSet in the specified zone.
Required Parameters

+zone_name+ - The zone that contains the RRSet.The trailing dot is optional.
+rtype+ - The type of the RRSet.This can be numeric (1) or
if a well-known name is defined for the type (A), you can use it instead.
+owner_name+ - The owner name for the RRSet.
If no trailing dot is supplied, the owner_name is assumed to be relative (foo).
If a trailing dot is supplied, the owner name is assumed to be absolute (foo.zonename.com.)
+ttl+ - The updated TTL value for the RRSet.
+rdata+ - The updated BIND data for the RRSet as a string.
If there is a single resource record in the RRSet, you can pass in the single string or an array with a single element.
If there are multiple resource records in this RRSet, pass in a list of strings.

Examples


Creates a new RRSet in the specified zone . Required Parameters + zone_name + - The zone that contains the RRSet . The trailing dot is optional . + rtype + - The type of the RRSet . This can be numeric ( 1 ) or if a well - known name is defined for the type ( A ) you can use it instead . + owner_name + - The owner name for the RRSet . If no trailing dot is supplied the owner_name is assumed to be relative ( foo ) . If a trailing dot is supplied the owner name is assumed to be absolute ( foo . zonename . com . ) + ttl + - The updated TTL value for the RRSet . + rdata + - The updated BIND data for the RRSet as a string . If there is a single resource record in the RRSet you can pass in the single string or an array with a single element . If there are multiple resource records in this RRSet pass in a list of strings . Examples
def create(ttl, rdata)
    rrset = {:ttl => ttl, :rdata => rdata}
    rrset[:rdata] = [rdata] unless rdata.kind_of? Array
    client.with_auth_retry {|c| c.post rrset_path, request_options({body: rrset.to_json}) }
  end
def create ( ttl , rdata ) rrset = { :ttl => ttl , :rdata => rdata } rrset [ :rdata ] = [ rdata ] unless rdata . kind_of? Array client . with_auth_retry { | c | c . post rrset_path , request_options ( { body : rrset . to_json } ) } end
Creates a new RRSet in the specified zone.
Creates a new RRSet in the specified zone .
ttl
rdata