lib/fog/cloudstack/requests/compute/create_domain.rb in fog-1.22.1 vs lib/fog/cloudstack/requests/compute/create_domain.rb in fog-1.23.0
- old
+ new
@@ -1,18 +1,21 @@
module Fog
module Compute
class Cloudstack
+
class Real
- # Creates a domain.
+ # Creates a domain
#
- # {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/createDomain.html]
- def create_domain(options={})
+ # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createDomain.html]
+ def create_domain(name, options={})
options.merge!(
- 'command' => 'createDomain'
+ 'command' => 'createDomain',
+ 'name' => name
)
-
request(options)
end
end
+
end
end
end
+