fixes for some of the cloud queries
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
diff --git a/lib/ex_ovh/v1/cloud.ex b/lib/ex_ovh/v1/cloud.ex
index 9393d01..953eed2 100644
--- a/lib/ex_ovh/v1/cloud.ex
+++ b/lib/ex_ovh/v1/cloud.ex
@@ -107,8 +107,8 @@ defmodule ExOvh.V1.Cloud do
method: :post,
url: "/cloud/project/#{service_name}/storage"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -247,8 +247,8 @@ defmodule ExOvh.V1.Cloud do
method: :post,
url: "/cloud/project/#{service_name}/storage/#{container_id}/cors"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -368,8 +368,8 @@ defmodule ExOvh.V1.Cloud do
method: :get,
url: "/cloud/project/#{service_name}/user"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -507,8 +507,8 @@ defmodule ExOvh.V1.Cloud do
method: :post,
url: "/cloud/project/#{service_name}/user/#{user_id}/token"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -539,8 +539,8 @@ defmodule ExOvh.V1.Cloud do
method: :post,
url: "/cloud/createProject"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -572,10 +572,10 @@ defmodule ExOvh.V1.Cloud do
body = if params == %{}, do: "", else: Poison.encode!(params)
req = %HTTPipe.Request{
method: :get,
- url: "/cloud/createProject"
+ url: "/cloud/price"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -629,8 +629,8 @@ defmodule ExOvh.V1.Cloud do
method: :put,
url: "/cloud/project/#{service_name}"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -856,8 +856,8 @@ defmodule ExOvh.V1.Cloud do
method: :post,
url: "/cloud/project/#{service_name}/alerting"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end
@@ -918,8 +918,8 @@ defmodule ExOvh.V1.Cloud do
method: :put,
url: "/cloud/project/#{service_name}/alerting/#{alert_id}"
}
- |> Body.apply(body)
Map.put(HTTPipe.Conn.new(), :request, req)
+ |> Body.apply(body)
end