From f6bd3126c8807af8b63f339c458faf89fcf6e54e Mon Sep 17 00:00:00 2001 From: bdorry Date: Wed, 1 Feb 2012 12:17:37 -0500 Subject: [PATCH] [cloudstack|compute] added update resource count action --- lib/fog/cloudstack/compute.rb | 1 + .../requests/compute/update_resource_count.rb | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 lib/fog/cloudstack/requests/compute/update_resource_count.rb diff --git a/lib/fog/cloudstack/compute.rb b/lib/fog/cloudstack/compute.rb index bb96a804b..2a29a3679 100644 --- a/lib/fog/cloudstack/compute.rb +++ b/lib/fog/cloudstack/compute.rb @@ -103,6 +103,7 @@ module Fog request :update_account request :update_domain request :update_user + request :update_resource_count request :update_virtual_machine class Mock diff --git a/lib/fog/cloudstack/requests/compute/update_resource_count.rb b/lib/fog/cloudstack/requests/compute/update_resource_count.rb new file mode 100644 index 000000000..a7c4133e6 --- /dev/null +++ b/lib/fog/cloudstack/requests/compute/update_resource_count.rb @@ -0,0 +1,20 @@ +module Fog + module Compute + class Cloudstack + class Real + + # Updates a user account. + # + # {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/updateResourceCount.html] + def update_resource_count(options={}) + options.merge!( + 'command' => 'updateResourceCount' + ) + + request(options) + end + + end + end + end +end