1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
defmodule ExOvh.Ovh.Defaults do
@moduledoc :false
def ovh() do
[
endpoint: endpoints()["ovh-eu"],
api_version: "1.0"
]
end
def cloudstorage() do
[
keystone_endpoint: "https://auth.cloud.ovh.net/v2.0", # default endpoint for keystone (identity) auth
region: "SBG1"
]
end
def endpoints() do
%{
"ovh-eu" => "https://eu.api.ovh.com/",
"ovh-ca" => "https://ca.api.ovh.com/",
"kimsufi-eu" => "https://eu.api.kimsufi.com/",
"kimsufi-ca" => "https://ca.api.kimsufi.com/",
"soyoustart-eu" => "https://eu.api.soyoustart.com/",
"soyoustart-ca" => "https://ca.api.soyoustart.com/",
"runabove-ca" => "https://api.runabove.com/"
}
end
def create_app_uri_suffix(), do: "createApp/"
def consumer_key_suffix(), do: "/auth/credential"
def access_rules() do
[
%{
method: "GET",
path: "/*"
},
%{
method: "POST",
path: "/*"
},
%{
method: "PUT",
path: "/*"
},
%{
method: "DELETE",
path: "/*"
}
]
end
end