lib/cloudflare_client/zone/custom_hostname.rb
##
# create custom_hostname
# - :custom_metadata may only work for enterprise or better customers
# - :ssl has undocumented properties: 'custom_certificate' and 'custom_key', or can be nulled
create custom_hostname
:custom_metadata may only work for enterprise or better customers
:ssl has undocumented properties: 'custom_certificate' and 'custom_key', or can be nulled
create custom_hostname : custom_metadata may only work for enterprise or better customers : ssl has undocumented properties : ' custom_certificate ' and ' custom_key ' or can be nulled
def create(hostname:, ssl: DEFAULT_SSL_PROPERTIES, custom_metadata: {}, custom_origin_server: nil)
    id_check('hostname', hostname)
    if ssl && ssl[:method] && ssl[:type]
      valid_value_check(:method, ssl[:method], VALID_METHODS)
      valid_value_check(:type,   ssl[:type],   VALID_TYPES)
    end
    data                   = { hostname: hostname, ssl: ssl }
    data[:custom_origin_server] = custom_origin_server unless custom_origin_server.nil?
    data[:custom_metadata] = custom_metadata unless custom_metadata.empty?
    cf_post(path: "/zones/#{zone_id}/custom_hostnames", data: data)
  end
def create ( hostname : , ssl : DEFAULT_SSL_PROPERTIES , custom_metadata : { } , custom_origin_server : nil ) id_check ( 'hostname' , hostname ) if ssl && ssl [ :method ] && ssl [ :type ] valid_value_check ( :method , ssl [ :method ] , VALID_METHODS ) valid_value_check ( :type , ssl [ :type ] , VALID_TYPES ) end data = { hostname : hostname , ssl : ssl } data [ :custom_origin_server ] = custom_origin_server unless custom_origin_server . nil? data [ :custom_metadata ] = custom_metadata unless custom_metadata . empty? cf_post ( path : "/zones/#{zone_id}/custom_hostnames" , data : data ) end
create custom_hostname
 :custom_metadata may only work for enterprise or better customers
 :ssl has undocumented properties: 'custom_certificate' and 'custom_key', or can be nulled
create custom_hostname : custom_metadata may only work for enterprise or better customers : ssl has undocumented properties : ' custom_certificate ' and ' custom_key ' or can be nulled
#FIXME: implement checks for the custom_metedata/find out of it's going to be exposed to anyone else #"custom_metadata":{"hsts_enabled":"true"} #"custom_metadata":{"hsts_enabled":"true","custom_maxage":value}
hostname
<not_specific>
ssl
<not_specific>
custom_metadata
<not_specific>
custom_origin_server
<not_specific>