1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[compute|cloudstack] added domain management support, added documentation links to existing cloudstack requests

This commit is contained in:
bdorry 2011-08-02 15:18:00 -04:00
parent 263fe7ce81
commit 81841f2357
43 changed files with 199 additions and 9 deletions

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Creates an account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/createAccount.html]
def create_account(options={})
options.merge!(
'command' => 'createAccount'
)
request(options)
end
end
end
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# 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={})

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Creates a user for an account that already exists.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/createUser.html]
def create_user(options={})

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Deletes a account, and all users associated with this account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/deleteAccount.html]
def delete_account(options={})
options.merge!(
'command' => 'deleteAccount'
)
request(options)
end
end
end
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Deletes a specified domain.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/deleteDomain.html]
def delete_domain(options={})

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Deletes a specified user.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/deleteUser.html]
def delete_user(options={})

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Disables an account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/disableAccount.html]
def disable_account(options={})
options.merge!(
'command' => 'disableAccount'
)
request(options)
end
end
end
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Disables a user account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/disableUser.html]
def disable_user(options={})

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Enables an account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/enableAccount.html]
def enable_account(options={})
options.merge!(
'command' => 'enableAccount'
)
request(options)
end
end
end
end
end

View file

@ -3,9 +3,9 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Enables a user account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/disableUser.html]
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/enableUser.html]
def enable_user(options={})
options.merge!(
'command' => 'enableUser'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists accounts and provides detailed account information for listed accounts.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listAccounts.html]
def list_accounts(options={})
options.merge!(
'command' => 'listAccounts'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all alerts.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listAlerts.html]
def list_alerts(options={})
options.merge!(
'command' => 'listAlerts'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all pending asynchronous jobs for the account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listAsyncJobs.html]
def list_async_jobs(options={})
options.merge!(
'command' => 'listAsyncJobs'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available disk offerings.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listDiskOfferings.html]
def list_disk_offerings(options={})
options.merge!(
'command' => 'listDiskOfferings'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all children domains belonging to a specified domain.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listDomainChildren.html]
def list_domain_children(options={})
options.merge!(
'command' => 'listDomainChildren'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists domains and provides detailed information for listed domains.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listDomains.html]
def list_domains(options={})
options.merge!(
'command' => 'listDomains'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# A command to list events.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listEvents.html]
def list_events(options={})
options.merge!(
'command' => 'listEvents'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# List external firewall appliances.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listExternalFirewalls.html]
def list_external_firewalls(options={})
options.merge!(
'command' => 'listExternalFirewalls'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# List external load balancer appliances.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listExternalLoadBalancers.html]
def list_external_load_balancers(options={})
options.merge!(
'command' => 'listExternalLoadBalancers'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists hosts.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listHosts.html]
def list_hosts(options={})
options.merge!(
'command' => 'listHosts'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists hypervisors.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listHypervisors.html]
def list_hypervisors(options={})
options.merge!(
'command' => 'listHypervisors'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists VM groups.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listInstanceGroups.html]
def list_instance_groups(options={})
options.merge!(
'command' => 'listInstanceGroups'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available ISO files.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listIsos.html]
def list_isos(options={})
options.merge!(
'command' => 'listIsos'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available network offerings.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listNetworkOfferings.html]
def list_network_offerings(options={})
options.merge!(
'command' => 'listNetworkOfferings'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available networks.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listNetworks.html]
def list_networks(options={})
options.merge!(
'command' => 'listNetworks'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all supported OS categories for this cloud.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listOsCategories.html]
def list_os_categories(options={})
options.merge!(
'command' => 'listOsCategories'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all supported OS types for this cloud.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listOsTypes.html]
def list_os_types(options={})
options.merge!(
'command' => 'listOsTypes'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all Pods.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listPods.html]
def list_pods(options={})
options.merge!(
'command' => 'listPods'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists resource limits.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listResourceLimits.html]
def list_resource_limits(options={})
options.merge!(
'command' => 'listResourceLimits'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists security groups.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listSecurityGroups.html]
def list_security_groups(options={})
options.merge!(
'command' => 'listSecurityGroups'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available service offerings.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listServiceOfferings.html]
def list_service_offerings(options={})
options.merge!(
'command' => 'listServiceOfferings'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all available snapshots for the account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listSnapshots.html]
def list_snapshots(options={})
options.merge!(
'command' => 'listSnapshots'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# List registered keypairs.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listSSHKeyPairs.html]
def list_ssh_key_pairs(options={})
options.merge!(
'command' => 'listSSHKeyPairs'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists storage pools.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listStoragePools.html]
def list_storage_pools(options={})
options.merge!(
'command' => 'listStoragePools'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# List all public, private, and privileged templates.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listTemplates.html]
def list_templates(options={})
options.merge!(
'command' => 'listTemplates'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists usage records for accounts.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listUsageRecords.html]
def list_usage_records(options={})
options.merge!(
'command' => 'listUsageRecords'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists user accounts.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listUsers.html]
def list_users(options={})
options.merge!(
'command' => 'listUsers'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# List the virtual machines owned by the account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listVirtualMachines.html]
def list_virtual_machines(options={})
options.merge!(
'command' => 'listVirtualMachines'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists all volumes.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listVolumes.html]
def list_volumes(options={})
options.merge!(
'command' => 'listVolumes'

View file

@ -3,6 +3,9 @@ module Fog
class Cloudstack
class Real
# Lists zones.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listZones.html]
def list_zones(options={})
options.merge!(
'command' => 'listZones'

View file

@ -0,0 +1,20 @@
module Fog
module Compute
class Cloudstack
class Real
# Updates account information for the authenticated user.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/updateAccount.html]
def update_account(options={})
options.merge!(
'command' => 'updateAccount'
)
request(options)
end
end
end
end
end

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Updates a domain with a new name.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/updateDomain.html]
def update_domain(options={})

View file

@ -3,7 +3,7 @@ module Fog
class Cloudstack
class Real
# Creates a user for an account that already exists
# Updates a user account.
#
# {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/updateUser.html]
def update_user(options={})