1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #1164: add aliases ended in ! for info methods

This commit is contained in:
Javi Fontan 2013-02-25 12:52:03 +01:00
parent 41e138be10
commit 4af724fc54
24 changed files with 63 additions and 0 deletions

View File

@ -126,6 +126,8 @@ module OpenNebula
return nil
end
alias_method :info!, :info
# Parses a rule string, e.g. "#5 HOST+VM/@12 INFO+CREATE+DELETE"
#
# @param rule_str [String] an ACL rule in string format

View File

@ -49,5 +49,7 @@ module OpenNebula
# Retrieves all the Acls in the pool.
super(ACL_POOL_METHODS[:info])
end
alias_method :info!, :info
end
end

View File

@ -67,6 +67,8 @@ module OpenNebula
super(CLUSTER_METHODS[:info], 'CLUSTER')
end
alias_method :info!, :info
# Allocates a new Cluster in OpenNebula
#
# +clustername+ A string containing the name of the Cluster.

View File

@ -52,5 +52,7 @@ module OpenNebula
def info()
super(CLUSTER_POOL_METHODS[:info])
end
alias_method :info!, :info
end
end

View File

@ -85,6 +85,8 @@ module OpenNebula
super(DATASTORE_METHODS[:info], 'DATASTORE')
end
alias_method :info!, :info
# Allocates a new Datastore in OpenNebula
#
# @param description [String] The template of the Datastore.

View File

@ -49,5 +49,7 @@ module OpenNebula
def info()
super(DATASTORE_POOL_METHODS[:info])
end
alias_method :info!, :info
end
end

View File

@ -94,6 +94,8 @@ module OpenNebula
return rc
end
alias_method :info!, :info
# Allocates a new Document in OpenNebula
#
# @param description [String] The contents of the Document.

View File

@ -50,6 +50,8 @@ module OpenNebula
load_body
end
alias_method :info!, :info
# Updates the current state of this Service in the OpenNebula DB
#
# @params [String, nil] template_json string to be inserted in the

View File

@ -90,6 +90,11 @@ module OpenNebula
return super(DOCUMENT_POOL_METHODS[:info], document_type)
end
alias_method :info!, :info
alias_method :info_all!, :info_all
alias_method :info_mine!, :info_mine
alias_method :info_group!, :info_group
def document_type
self.class::DOCUMENT_TYPE
end

View File

@ -108,6 +108,8 @@ module OpenNebula
super(GROUP_METHODS[:info], 'GROUP')
end
alias_method :info!, :info
# Allocates a new Group in OpenNebula
#
# +groupname+ A string containing the name of the Group.

View File

@ -50,5 +50,7 @@ module OpenNebula
def info()
super(GROUP_POOL_METHODS[:info])
end
alias_method :info!, :info
end
end

View File

@ -78,6 +78,8 @@ module OpenNebula
super(HOST_METHODS[:info], 'HOST')
end
alias_method :info!, :info
# Allocates a new Host in OpenNebula
#
# @param hostname [String] Name of the new Host.

View File

@ -53,6 +53,8 @@ module OpenNebula
super(HOST_POOL_METHODS[:info])
end
alias_method :info!, :info
# Retrieves the monitoring data for all the Hosts in the pool
#
# @param [Array<String>] xpath_expressions Elements to retrieve.

View File

@ -99,6 +99,8 @@ module OpenNebula
super(IMAGE_METHODS[:info], 'IMAGE')
end
alias_method :info!, :info
# Allocates a new Image in OpenNebula
#
# @param description [String] A string containing the template of the Image.

View File

@ -70,5 +70,10 @@ module OpenNebula
def info_group()
return super(IMAGE_POOL_METHODS[:info])
end
alias_method :info!, :info
alias_method :info_all!, :info_all
alias_method :info_mine!, :info_mine
alias_method :info_group!, :info_group
end
end

View File

@ -55,6 +55,8 @@ module OpenNebula
return xmlrpc_info(xml_method)
end
alias_method :info!, :info
def info_all(xml_method, *args)
return xmlrpc_info(xml_method,INFO_ALL,-1,-1, *args)
end

View File

@ -69,6 +69,8 @@ module OpenNebula
super(TEMPLATE_METHODS[:info], 'VMTEMPLATE')
end
alias_method :info!, :info
# Allocates a new Template in OpenNebula
#
# @param description [String] The contents of the Template.

View File

@ -70,5 +70,10 @@ module OpenNebula
def info_group()
return super(TEMPLATE_POOL_METHODS[:info])
end
alias_method :info!, :info
alias_method :info_all!, :info_all
alias_method :info_mine!, :info_mine
alias_method :info_group!, :info_group
end
end

View File

@ -84,6 +84,8 @@ module OpenNebula
super(USER_METHODS[:info], 'USER')
end
alias_method :info!, :info
# Allocates a new User in OpenNebula
#
# +username+ Name of the new user.

View File

@ -49,5 +49,7 @@ module OpenNebula
def info()
super(USER_POOL_METHODS[:info])
end
alias_method :info!, :info
end
end

View File

@ -134,6 +134,8 @@ module OpenNebula
super(VM_METHODS[:info], 'VM')
end
alias_method :info!, :info
# Allocates a new VirtualMachine in OpenNebula
#
# @param description [String] A string containing the template of

View File

@ -113,6 +113,11 @@ module OpenNebula
INFO_NOT_DONE)
end
alias_method :info!, :info
alias_method :info_all!, :info_all
alias_method :info_mine!, :info_mine
alias_method :info_group!, :info_group
# Retrieves the monitoring data for all the VMs in the pool
#
# @param [Array<String>] xpath_expressions Elements to retrieve.

View File

@ -76,6 +76,8 @@ module OpenNebula
super(VN_METHODS[:info], 'VNET')
end
alias_method :info!, :info
# Allocates a new VirtualNetwork in OpenNebula
#
# @param description [String] The template of the VirtualNetwork.

View File

@ -70,5 +70,10 @@ module OpenNebula
def info_group()
return super(VN_POOL_METHODS[:info])
end
alias_method :info!, :info
alias_method :info_all!, :info_all
alias_method :info_mine!, :info_mine
alias_method :info_group!, :info_group
end
end