lib/cloudflare_client/virtual_dns_cluster.rb
##
# updates a dns cluster (user)
updates a dns cluster (user)
updates a dns cluster ( user )
def update(id:,
             name: nil,
             origin_ips: nil,
             minimum_cache_ttl: nil,
             maximum_cache_ttl: nil,
             deprecate_any_request: nil,
             ratelimit: nil)
    id_check(:id, id)
    data = {}
    unless name.nil?
      id_check(:name, name)
      max_length_check(:name, name, 160)
      data[:name] = name
    end
    unless origin_ips.nil?
      non_empty_array_check(:origin_ips, origin_ips)
      data[:origin_ips] = origin_ips
    end
    unless minimum_cache_ttl.nil?
      range_check(:minimum_cache_ttl, minimum_cache_ttl, 30, 36000)
      data[:minimum_cache_ttl] = minimum_cache_ttl
    end
    unless maximum_cache_ttl.nil?
      range_check(:maximum_cache_ttl, maximum_cache_ttl, 30, 36000)
      data[:maximum_cache_ttl] = maximum_cache_ttl
    end
    unless deprecate_any_request.nil?
      valid_value_check(:deprecate_any_request, deprecate_any_request, [true, false])
      data[:deprecate_any_request] = deprecate_any_request
    end
    unless ratelimit.nil?
      range_check(:ratelimit, ratelimit, 0, 100000000)
      data[:ratelimit] = ratelimit
    end
    cf_patch(path: "#{uri_prefix}/virtual_dns/#{id}", data: data)
  end
def update ( id : , name : nil , origin_ips : nil , minimum_cache_ttl : nil , maximum_cache_ttl : nil , deprecate_any_request : nil , ratelimit : nil ) id_check ( :id , id ) data = { } unless name . nil? id_check ( :name , name ) max_length_check ( :name , name , 160 ) data [ :name ] = name end unless origin_ips . nil? non_empty_array_check ( :origin_ips , origin_ips ) data [ :origin_ips ] = origin_ips end unless minimum_cache_ttl . nil? range_check ( :minimum_cache_ttl , minimum_cache_ttl , 30 , 36000 ) data [ :minimum_cache_ttl ] = minimum_cache_ttl end unless maximum_cache_ttl . nil? range_check ( :maximum_cache_ttl , maximum_cache_ttl , 30 , 36000 ) data [ :maximum_cache_ttl ] = maximum_cache_ttl end unless deprecate_any_request . nil? valid_value_check ( :deprecate_any_request , deprecate_any_request , [ true , false ] ) data [ :deprecate_any_request ] = deprecate_any_request end unless ratelimit . nil? range_check ( :ratelimit , ratelimit , 0 , 100000000 ) data [ :ratelimit ] = ratelimit end cf_patch ( path : "#{uri_prefix}/virtual_dns/#{id}" , data : data ) end
updates a dns cluster (user)
updates a dns cluster ( user )
id
<not_specific>
name
<not_specific>
origin_ips
<not_specific>
minimum_cache_ttl
<not_specific>
maximum_cache_ttl
<not_specific>
deprecate_any_request
<not_specific>
ratelimit
<not_specific>