deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dko...@apache.org
Subject [1/3] git commit: CIMI: aligned to MachineCreate example in spec the root element names used in request bodies in client UI
Date Tue, 16 Jul 2013 11:38:00 GMT
Updated Branches:
  refs/heads/master 78ee64e84 -> 625221771


CIMI: aligned to MachineCreate example in spec the root element
names used in request bodies in client UI


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/08d8de93
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/08d8de93
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/08d8de93

Branch: refs/heads/master
Commit: 08d8de930403ae551e5a3b9838f509d3e6fcf4f7
Parents: 1177890
Author: Dies Koper <diesk@fast.au.fujitsu.com>
Authored: Tue Jul 16 13:10:36 2013 +1000
Committer: Dies Koper <diesk@fast.au.fujitsu.com>
Committed: Tue Jul 16 21:06:05 2013 +1000

----------------------------------------------------------------------
 clients/cimi/lib/entities/address.rb          | 2 +-
 clients/cimi/lib/entities/credential.rb       | 2 +-
 clients/cimi/lib/entities/machine.rb          | 2 +-
 clients/cimi/lib/entities/machine_template.rb | 2 +-
 clients/cimi/lib/entities/network.rb          | 2 +-
 clients/cimi/lib/entities/system.rb           | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/address.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/address.rb b/clients/cimi/lib/entities/address.rb
index 665561e..fc8e813 100644
--- a/clients/cimi/lib/entities/address.rb
+++ b/clients/cimi/lib/entities/address.rb
@@ -33,7 +33,7 @@ class CIMI::Frontend::Address < CIMI::Frontend::Entity
 
   post '/cimi/addresses' do
     address_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.Address(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.AddressCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:address][:name]
         xml.description params[:address][:description]
         xml.addressTemplate( :href => params[:address][:address_template] )

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/credential.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/credential.rb b/clients/cimi/lib/entities/credential.rb
index 5b123e6..17a9b92 100644
--- a/clients/cimi/lib/entities/credential.rb
+++ b/clients/cimi/lib/entities/credential.rb
@@ -43,7 +43,7 @@ class CIMI::Frontend::Credential < CIMI::Frontend::Entity
 
   post '/cimi/credential' do
     credential_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.Credential(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.CredentialCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:credential][:name]
         xml.description params[:credential][:description]
         xml.username params[:credential][:username]

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/machine.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/machine.rb b/clients/cimi/lib/entities/machine.rb
index d124f5f..44e3b26 100644
--- a/clients/cimi/lib/entities/machine.rb
+++ b/clients/cimi/lib/entities/machine.rb
@@ -98,7 +98,7 @@ class CIMI::Frontend::Machine < CIMI::Frontend::Entity
 
   post '/cimi/machines' do
     machine_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.Machine(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.MachineCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:machine][:name]
         xml.description params[:machine][:description]
         xml.machineTemplate {

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/machine_template.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/machine_template.rb b/clients/cimi/lib/entities/machine_template.rb
index 334b731..0c253a5 100644
--- a/clients/cimi/lib/entities/machine_template.rb
+++ b/clients/cimi/lib/entities/machine_template.rb
@@ -33,7 +33,7 @@ class CIMI::Frontend::MachineTemplate < CIMI::Frontend::Entity
 
   post '/cimi/machine_templates' do
     machine_template_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.MachineTemplate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.MachineTemplateCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:machine_template][:name]
         xml.description params[:machine_template][:description]
         xml.machineConfig( :href => params[:machine_template][:machine_config] )

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/network.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/network.rb b/clients/cimi/lib/entities/network.rb
index d0c0013..f8130a9 100644
--- a/clients/cimi/lib/entities/network.rb
+++ b/clients/cimi/lib/entities/network.rb
@@ -43,7 +43,7 @@ class CIMI::Frontend::Network < CIMI::Frontend::Entity
 
   post '/cimi/networks' do
     network_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.Network(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.NetworkCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:network][:name]
         xml.description params[:network][:description]
         xml.networkTemplate {

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/08d8de93/clients/cimi/lib/entities/system.rb
----------------------------------------------------------------------
diff --git a/clients/cimi/lib/entities/system.rb b/clients/cimi/lib/entities/system.rb
index 4661fec..665fcfd 100644
--- a/clients/cimi/lib/entities/system.rb
+++ b/clients/cimi/lib/entities/system.rb
@@ -168,7 +168,7 @@ class CIMI::Frontend::System < CIMI::Frontend::Entity
 
   post '/cimi/systems' do
     system_xml = Nokogiri::XML::Builder.new do |xml|
-      xml.System(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
+      xml.SystemCreate(:xmlns => CIMI::Frontend::CMWG_NAMESPACE) {
         xml.name params[:system][:name]
         xml.systemTemplate( :href => params[:system][:system_template])
       }


Mime
View raw message