Commit 012172a1 authored by Spiros Koulouzis's avatar Spiros Koulouzis

implement max num of VMs

parent b9276067
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<h1 class="page-header">Files and Libraries</h1> <h1 class="page-header">Files and Libraries</h1>
<h3 id="artifact_gwt_json_overlay">GWT JSON Overlay</h3> <h3 id="artifact_gwt_json_overlay">GWT JSON Overlay</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p> <p> <p> <p>
The <a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> JSON Overlay library provides the JSON Overlays that The <a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> JSON Overlay library provides the JSON Overlays that
can be used to access the Web service API for this application. can be used to access the Web service API for this application.
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_java_json_client_library">Java JSON Client Library</h3> <h3 id="artifact_java_json_client_library">Java JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Java client-side library is used to provide the set of Java objects that can be serialized The Java client-side library is used to provide the set of Java objects that can be serialized
to/from JSON using <a href="http://jackson.codehaus.org/">Jackson</a>. This is useful for accessing the to/from JSON using <a href="http://jackson.codehaus.org/">Jackson</a>. This is useful for accessing the
...@@ -116,18 +116,18 @@ ...@@ -116,18 +116,18 @@
<tbody data-link="row" class="rowlink"> <tbody data-link="row" class="rowlink">
<tr class="clickable-row" data-href="drip-api-json-client.jar"> <tr class="clickable-row" data-href="drip-api-json-client.jar">
<td><span class="downloadfile-name">drip-api-json-client.jar</span></td> <td><span class="downloadfile-name">drip-api-json-client.jar</span></td>
<td><span class="downloadfile-size">18.03K</span></td> <td><span class="downloadfile-size">18.04K</span></td>
<td><span class="downloadfile-description">The binaries for the Java JSON client library.</span></td> <td><span class="downloadfile-description">The binaries for the Java JSON client library.</span></td>
</tr> </tr>
<tr class="clickable-row" data-href="drip-api-json-client-json-sources.jar"> <tr class="clickable-row" data-href="drip-api-json-client-json-sources.jar">
<td><span class="downloadfile-name">drip-api-json-client-json-sources.jar</span></td> <td><span class="downloadfile-name">drip-api-json-client-json-sources.jar</span></td>
<td><span class="downloadfile-size">14.89K</span></td> <td><span class="downloadfile-size">14.88K</span></td>
<td><span class="downloadfile-description">The sources for the Java JSON client library.</span></td> <td><span class="downloadfile-description">The sources for the Java JSON client library.</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_java_xml_client_library">Java XML Client Library</h3> <h3 id="artifact_java_xml_client_library">Java XML Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Java client-side library is used to access the Web service API for this application using Java. The Java client-side library is used to access the Web service API for this application using Java.
</p> </p>
...@@ -149,13 +149,13 @@ ...@@ -149,13 +149,13 @@
</tr> </tr>
<tr class="clickable-row" data-href="drip-api-xml-client-xml-sources.jar"> <tr class="clickable-row" data-href="drip-api-xml-client-xml-sources.jar">
<td><span class="downloadfile-name">drip-api-xml-client-xml-sources.jar</span></td> <td><span class="downloadfile-name">drip-api-xml-client-xml-sources.jar</span></td>
<td><span class="downloadfile-size">23.27K</span></td> <td><span class="downloadfile-size">23.28K</span></td>
<td><span class="downloadfile-description">The sources for the Java XML client library.</span></td> <td><span class="downloadfile-description">The sources for the Java XML client library.</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_js_client_library">JavaScript Client Library</h3> <h3 id="artifact_js_client_library">JavaScript Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The JavaScript client-side library defines classes that can be (de)serialized to/from JSON. The JavaScript client-side library defines classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_php_json_client_library">PHP JSON Client Library</h3> <h3 id="artifact_php_json_client_library">PHP JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -213,13 +213,13 @@ ...@@ -213,13 +213,13 @@
<tbody data-link="row" class="rowlink"> <tbody data-link="row" class="rowlink">
<tr class="clickable-row" data-href="drip-api-php.zip"> <tr class="clickable-row" data-href="drip-api-php.zip">
<td><span class="downloadfile-name">drip-api-php.zip</span></td> <td><span class="downloadfile-name">drip-api-php.zip</span></td>
<td><span class="downloadfile-size">6.67K</span></td> <td><span class="downloadfile-size">6.58K</span></td>
<td><span class="downloadfile-description">&nbsp;</span></td> <td><span class="downloadfile-description">&nbsp;</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_php_xml_client_library">PHP XML Client Library</h3> <h3 id="artifact_php_xml_client_library">PHP XML Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML. The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_ruby_json_client_library">Ruby JSON Client Library</h3> <h3 id="artifact_ruby_json_client_library">Ruby JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON. The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON.
This is useful for accessing the REST endpoints that are published by this application, but only This is useful for accessing the REST endpoints that are published by this application, but only
......
...@@ -93,92 +93,208 @@ module V1 ...@@ -93,92 +93,208 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class DeployParameter class AnsibleResult
# the IP # (no documentation provided)
attr_accessor :IP attr_accessor :msg
# the user # (no documentation provided)
attr_accessor :user attr_accessor :changed
# the role # (no documentation provided)
attr_accessor :role attr_accessor :end
# (no documentation provided)
attr_accessor :stdout
# (no documentation provided)
attr_accessor :cmd
# (no documentation provided)
attr_accessor :start
# (no documentation provided)
attr_accessor :stderr
# (no documentation provided)
attr_accessor :delta
# the json hash for this DeployParameter # the json hash for this AnsibleResult
def to_jaxb_json_hash def to_jaxb_json_hash
_h = {} _h = {}
_h['IP'] = IP.to_jaxb_json_hash unless IP.nil? _h['msg'] = msg.to_jaxb_json_hash unless msg.nil?
_h['user'] = user.to_jaxb_json_hash unless user.nil? _h['changed'] = changed.to_jaxb_json_hash unless changed.nil?
_h['role'] = role.to_jaxb_json_hash unless role.nil? _h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['stdout'] = stdout.to_jaxb_json_hash unless stdout.nil?
if !cmd.nil?
_ha = Array.new
cmd.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['cmd'] = _ha
end
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['stderr'] = stderr.to_jaxb_json_hash unless stderr.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
return _h return _h
end end
# the json (string form) for this DeployParameter # the json (string form) for this AnsibleResult
def to_json def to_json
to_jaxb_json_hash.to_json to_jaxb_json_hash.to_json
end end
#initializes this DeployParameter with a json hash #initializes this AnsibleResult with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
if !_o['IP'].nil? if !_o['msg'].nil?
_oa = _o['IP'] _oa = _o['msg']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@IP = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @msg = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@IP = String.from_json(_oa) unless _oa['@class'] @msg = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@IP = Array.new @msg = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@IP.push String.from_json(_item) @msg.push String.from_json(_item)
else else
@IP.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @msg.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@IP = _oa @msg = _oa
end end
end end
if !_o['user'].nil? if !_o['changed'].nil?
_oa = _o['user'] _oa = _o['changed']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@user = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @changed = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@user = String.from_json(_oa) unless _oa['@class'] @changed = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@user = Array.new @changed = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@user.push String.from_json(_item) @changed.push Boolean.from_json(_item)
else else
@user.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @changed.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@user = _oa @changed = _oa
end end
end end
if !_o['role'].nil? if !_o['end'].nil?
_oa = _o['role'] _oa = _o['end']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@role = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @end = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@role = String.from_json(_oa) unless _oa['@class'] @end = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@role = Array.new @end = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@role.push String.from_json(_item) @end.push Time.from_json(_item)
else else
@role.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @end.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@role = _oa @end = _oa
end
end
if !_o['stdout'].nil?
_oa = _o['stdout']
if(_oa.is_a? Hash)
@stdout = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stdout = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stdout = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stdout.push String.from_json(_item)
else
@stdout.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stdout = _oa
end
end
if !_o['cmd'].nil?
_oa = _o['cmd']
if(_oa.is_a? Hash)
@cmd = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cmd = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cmd = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cmd.push String.from_json(_item)
else
@cmd.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cmd = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@start = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item)
else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@start = _oa
end
end
if !_o['stderr'].nil?
_oa = _o['stderr']
if(_oa.is_a? Hash)
@stderr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stderr = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stderr = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stderr.push String.from_json(_item)
else
@stderr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stderr = _oa
end
end
if !_o['delta'].nil?
_oa = _o['delta']
if(_oa.is_a? Hash)
@delta = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@delta = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@delta = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@delta.push Time.from_json(_item)
else
@delta.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@delta = _oa
end end
end end
end end
# constructs a DeployParameter from a (parsed) JSON hash # constructs a AnsibleResult from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -208,6 +324,8 @@ end ...@@ -208,6 +324,8 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -319,248 +437,132 @@ module External ...@@ -319,248 +437,132 @@ module External
inst = new inst = new
inst.init_jaxb_json_hash o inst.init_jaxb_json_hash o
return inst return inst
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
module Nl module Nl
module Uva module Uva
module Sne module Sne
module Drip module Drip
module Drip module Drip
module Commons module Commons
module Data module Data
module V1 module V1
module External module External
module Ansible # (no documentation provided)
class DeployParameter
# (no documentation provided)
class AnsibleResult # the IP
attr_accessor :IP
# (no documentation provided) # the user
attr_accessor :msg attr_accessor :user
# (no documentation provided) # the role
attr_accessor :changed attr_accessor :role
# (no documentation provided)
attr_accessor :end # the json hash for this DeployParameter
# (no documentation provided) def to_jaxb_json_hash
attr_accessor :stdout _h = {}
# (no documentation provided) _h['IP'] = IP.to_jaxb_json_hash unless IP.nil?
attr_accessor :cmd _h['user'] = user.to_jaxb_json_hash unless user.nil?
# (no documentation provided) _h['role'] = role.to_jaxb_json_hash unless role.nil?
attr_accessor :start return _h
# (no documentation provided) end
attr_accessor :stderr
# (no documentation provided) # the json (string form) for this DeployParameter
attr_accessor :delta def to_json
to_jaxb_json_hash.to_json
# the json hash for this AnsibleResult end
def to_jaxb_json_hash
_h = {} #initializes this DeployParameter with a json hash
_h['msg'] = msg.to_jaxb_json_hash unless msg.nil? def init_jaxb_json_hash(_o)
_h['changed'] = changed.to_jaxb_json_hash unless changed.nil? if !_o['IP'].nil?
_h['end'] = end.to_jaxb_json_hash unless end.nil? _oa = _o['IP']
_h['stdout'] = stdout.to_jaxb_json_hash unless stdout.nil?
if !cmd.nil?
_ha = Array.new
cmd.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['cmd'] = _ha
end
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['stderr'] = stderr.to_jaxb_json_hash unless stderr.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
return _h
end
# the json (string form) for this AnsibleResult
def to_json
to_jaxb_json_hash.to_json
end
#initializes this AnsibleResult with a json hash
def init_jaxb_json_hash(_o)
if !_o['msg'].nil?
_oa = _o['msg']
if(_oa.is_a? Hash)
@msg = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@msg = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@msg = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@msg.push String.from_json(_item)
else
@msg.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@msg = _oa
end
end
if !_o['changed'].nil?
_oa = _o['changed']
if(_oa.is_a? Hash)
@changed = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@changed = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@changed = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@changed.push Boolean.from_json(_item)
else
@changed.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@changed = _oa
end
end
if !_o['end'].nil?
_oa = _o['end']
if(_oa.is_a? Hash)
@end = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@end = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@end = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@end.push Time.from_json(_item)
else
@end.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@end = _oa
end
end
if !_o['stdout'].nil?
_oa = _o['stdout']
if(_oa.is_a? Hash)
@stdout = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stdout = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stdout = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stdout.push String.from_json(_item)
else
@stdout.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stdout = _oa
end
end
if !_o['cmd'].nil?
_oa = _o['cmd']
if(_oa.is_a? Hash)
@cmd = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cmd = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cmd = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cmd.push String.from_json(_item)
else
@cmd.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cmd = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @IP = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class'] @IP = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@start = Array.new @IP = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item) @IP.push String.from_json(_item)
else else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @IP.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@start = _oa @IP = _oa
end end
end end
if !_o['stderr'].nil? if !_o['user'].nil?
_oa = _o['stderr'] _oa = _o['user']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@stderr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @user = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stderr = String.from_json(_oa) unless _oa['@class'] @user = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@stderr = Array.new @user = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@stderr.push String.from_json(_item) @user.push String.from_json(_item)
else else
@stderr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @user.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@stderr = _oa @user = _oa
end end
end end
if !_o['delta'].nil? if !_o['role'].nil?
_oa = _o['delta'] _oa = _o['role']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@delta = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @role = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@delta = Time.from_json(_oa) unless _oa['@class'] @role = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@delta = Array.new @role = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@delta.push Time.from_json(_item) @role.push String.from_json(_item)
else else
@delta.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @role.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@delta = _oa @role = _oa
end end
end end
end end
# constructs a AnsibleResult from a (parsed) JSON hash # constructs a DeployParameter from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -590,8 +592,6 @@ end ...@@ -590,8 +592,6 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -1012,156 +1012,88 @@ module V1 ...@@ -1012,156 +1012,88 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class AnsibleOutput < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class ScaleRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the host # the scaleTargetID
attr_accessor :host attr_accessor :scaleTargetID
# the result # the scaleTargetName
attr_accessor :result attr_accessor :scaleTargetName
# the domain # the numOfInstances
attr_accessor :cloudDeploymentDomain attr_accessor :numOfInstances
#
attr_accessor :vmType
# the provision ID
attr_accessor :provisionID
# the cloudProvider
attr_accessor :cloudProvider
# the json hash for this AnsibleOutput # the json hash for this ScaleRequest
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['host'] = host.to_jaxb_json_hash unless host.nil? _h['scaleTargetID'] = scaleTargetID.to_jaxb_json_hash unless scaleTargetID.nil?
_h['result'] = result.to_jaxb_json_hash unless result.nil? _h['scaleTargetName'] = scaleTargetName.to_jaxb_json_hash unless scaleTargetName.nil?
_h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil? _h['numOfInstances'] = numOfInstances.to_jaxb_json_hash unless numOfInstances.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['cloudProvider'] = cloudProvider.to_jaxb_json_hash unless cloudProvider.nil?
return _h return _h
end end
#initializes this AnsibleOutput with a json hash #initializes this ScaleRequest with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['host'].nil? if !_o['scaleTargetID'].nil?
_oa = _o['host'] _oa = _o['scaleTargetID']
if(_oa.is_a? Hash)
@host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@host = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@host.push String.from_json(_item)
else
@host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@host = _oa
end
end
if !_o['result'].nil?
_oa = _o['result']
if(_oa.is_a? Hash)
@result = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@result = Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@result = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@result.push Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_item)
else
@result.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@result = _oa
end
end
if !_o['cloudDeploymentDomain'].nil?
_oa = _o['cloudDeploymentDomain']
if(_oa.is_a? Hash)
@cloudDeploymentDomain = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudDeploymentDomain = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cloudDeploymentDomain = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudDeploymentDomain.push String.from_json(_item)
else
@cloudDeploymentDomain.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cloudDeploymentDomain = _oa
end
end
if !_o['vmType'].nil?
_oa = _o['vmType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @scaleTargetID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class'] @scaleTargetID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@vmType = Array.new @scaleTargetID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item) @scaleTargetID.push String.from_json(_item)
else else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @scaleTargetID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@vmType = _oa @scaleTargetID = _oa
end end
end end
if !_o['provisionID'].nil? if !_o['scaleTargetName'].nil?
_oa = _o['provisionID'] _oa = _o['scaleTargetName']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @scaleTargetName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class'] @scaleTargetName = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@provisionID = Array.new @scaleTargetName = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item) @scaleTargetName.push String.from_json(_item)
else else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @scaleTargetName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@provisionID = _oa @scaleTargetName = _oa
end end
end end
if !_o['cloudProvider'].nil? if !_o['numOfInstances'].nil?
_oa = _o['cloudProvider'] _oa = _o['numOfInstances']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@cloudProvider = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @numOfInstances = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudProvider = String.from_json(_oa) unless _oa['@class'] @numOfInstances = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@cloudProvider = Array.new @numOfInstances = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudProvider.push String.from_json(_item) @numOfInstances.push Fixnum.from_json(_item)
else else
@cloudProvider.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @numOfInstances.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@cloudProvider = _oa @numOfInstances = _oa
end end
end end
end end
# constructs a AnsibleOutput from a (parsed) JSON hash # constructs a ScaleRequest from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -1191,8 +1123,6 @@ end ...@@ -1191,8 +1123,6 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -1216,27 +1146,27 @@ module Ansible ...@@ -1216,27 +1146,27 @@ module Ansible
# (no documentation provided) # (no documentation provided)
class BenchmarkResult < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class BenchmarkResult < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# (no documentation provided)
attr_accessor :start
# (no documentation provided) # (no documentation provided)
attr_accessor :delta attr_accessor :delta
# (no documentation provided) # (no documentation provided)
attr_accessor :host attr_accessor :vmType
# (no documentation provided) # (no documentation provided)
attr_accessor :end attr_accessor :end
# (no documentation provided) # (no documentation provided)
attr_accessor :vmType attr_accessor :host
# (no documentation provided)
attr_accessor :start
# (no documentation provided) # (no documentation provided)
attr_accessor :cloudDeploymentDomain attr_accessor :cloudDeploymentDomain
# the json hash for this BenchmarkResult # the json hash for this BenchmarkResult
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil? _h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
_h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil? _h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['start'] = start.to_jaxb_json_hash unless start.nil? _h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil? _h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil?
return _h return _h
end end
...@@ -1244,6 +1174,25 @@ module Ansible ...@@ -1244,6 +1174,25 @@ module Ansible
#initializes this BenchmarkResult with a json hash #initializes this BenchmarkResult with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@start = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item)
else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@start = _oa
end
end
if !_o['delta'].nil? if !_o['delta'].nil?
_oa = _o['delta'] _oa = _o['delta']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
...@@ -1263,23 +1212,23 @@ module Ansible ...@@ -1263,23 +1212,23 @@ module Ansible
@delta = _oa @delta = _oa
end end
end end
if !_o['host'].nil? if !_o['vmType'].nil?
_oa = _o['host'] _oa = _o['vmType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@host = String.from_json(_oa) unless _oa['@class'] @vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@host = Array.new @vmType = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@host.push String.from_json(_item) @vmType.push String.from_json(_item)
else else
@host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@host = _oa @vmType = _oa
end end
end end
if !_o['end'].nil? if !_o['end'].nil?
...@@ -1301,42 +1250,23 @@ module Ansible ...@@ -1301,42 +1250,23 @@ module Ansible
@end = _oa @end = _oa
end end
end end
if !_o['vmType'].nil? if !_o['host'].nil?
_oa = _o['vmType'] _oa = _o['host']
if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@vmType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item)
else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@vmType = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class'] @host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@start = Array.new @host = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item) @host.push String.from_json(_item)
else else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@start = _oa @host = _oa
end end
end end
if !_o['cloudDeploymentDomain'].nil? if !_o['cloudDeploymentDomain'].nil?
...@@ -1781,87 +1711,153 @@ module V1 ...@@ -1781,87 +1711,153 @@ module V1
module External module External
# (no documentation provided) # (no documentation provided)
class DeployRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class MonitorringMessage < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the provisionID # the metricMame
attr_accessor :provisionID attr_accessor :metricMame
# the managerType # the subid
attr_accessor :managerType attr_accessor :subid
# the configurationID # the value
attr_accessor :configurationID attr_accessor :value
# the messageType
attr_accessor :messageType
# the date
attr_accessor :date
# the time
attr_accessor :time
# the json hash for this DeployRequest # the json hash for this MonitorringMessage
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil? _h['metricMame'] = metricMame.to_jaxb_json_hash unless metricMame.nil?
_h['managerType'] = managerType.to_jaxb_json_hash unless managerType.nil? _h['subid'] = subid.to_jaxb_json_hash unless subid.nil?
_h['configurationID'] = configurationID.to_jaxb_json_hash unless configurationID.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil?
_h['messageType'] = messageType.to_jaxb_json_hash unless messageType.nil?
_h['date'] = date.to_jaxb_json_hash unless date.nil?
_h['time'] = time.to_jaxb_json_hash unless time.nil?
return _h return _h
end end
#initializes this DeployRequest with a json hash #initializes this MonitorringMessage with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['provisionID'].nil? if !_o['metricMame'].nil?
_oa = _o['provisionID'] _oa = _o['metricMame']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @metricMame = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class'] @metricMame = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@provisionID = Array.new @metricMame = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item) @metricMame.push String.from_json(_item)
else else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @metricMame.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@provisionID = _oa @metricMame = _oa
end end
end end
if !_o['managerType'].nil? if !_o['subid'].nil?
_oa = _o['managerType'] _oa = _o['subid']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@managerType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @subid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@managerType = String.from_json(_oa) unless _oa['@class'] @subid = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@managerType = Array.new @subid = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@managerType.push String.from_json(_item) @subid.push String.from_json(_item)
else else
@managerType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @subid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@managerType = _oa @subid = _oa
end end
end end
if !_o['configurationID'].nil? if !_o['value'].nil?
_oa = _o['configurationID'] _oa = _o['value']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@configurationID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @value = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@configurationID = String.from_json(_oa) unless _oa['@class'] @value = Float.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@configurationID = Array.new @value = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@configurationID.push String.from_json(_item) @value.push Float.from_json(_item)
else else
@configurationID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @value.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@configurationID = _oa @value = _oa
end
end
if !_o['messageType'].nil?
_oa = _o['messageType']
if(_oa.is_a? Hash)
@messageType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@messageType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@messageType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@messageType.push String.from_json(_item)
else
@messageType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@messageType = _oa
end
end
if !_o['date'].nil?
_oa = _o['date']
if(_oa.is_a? Hash)
@date = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@date = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@date = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@date.push Time.from_json(_item)
else
@date.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@date = _oa
end
end
if !_o['time'].nil?
_oa = _o['time']
if(_oa.is_a? Hash)
@time = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@time = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@time = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@time.push Time.from_json(_item)
else
@time.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@time = _oa
end end
end end
end end
# constructs a DeployRequest from a (parsed) JSON hash # constructs a MonitorringMessage from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -1910,153 +1906,87 @@ module V1 ...@@ -1910,153 +1906,87 @@ module V1
module External module External
# (no documentation provided) # (no documentation provided)
class MonitorringMessage < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class DeployRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the metricMame # the provisionID
attr_accessor :metricMame attr_accessor :provisionID
# the subid # the managerType
attr_accessor :subid attr_accessor :managerType
# the value # the configurationID
attr_accessor :value attr_accessor :configurationID
# the messageType
attr_accessor :messageType
# the date
attr_accessor :date
# the time
attr_accessor :time
# the json hash for this MonitorringMessage # the json hash for this DeployRequest
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['metricMame'] = metricMame.to_jaxb_json_hash unless metricMame.nil? _h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['subid'] = subid.to_jaxb_json_hash unless subid.nil? _h['managerType'] = managerType.to_jaxb_json_hash unless managerType.nil?
_h['value'] = value.to_jaxb_json_hash unless value.nil? _h['configurationID'] = configurationID.to_jaxb_json_hash unless configurationID.nil?
_h['messageType'] = messageType.to_jaxb_json_hash unless messageType.nil?
_h['date'] = date.to_jaxb_json_hash unless date.nil?
_h['time'] = time.to_jaxb_json_hash unless time.nil?
return _h return _h
end end
#initializes this MonitorringMessage with a json hash #initializes this DeployRequest with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['metricMame'].nil? if !_o['provisionID'].nil?
_oa = _o['metricMame'] _oa = _o['provisionID']
if(_oa.is_a? Hash)
@metricMame = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@metricMame = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@metricMame = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@metricMame.push String.from_json(_item)
else
@metricMame.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@metricMame = _oa
end
end
if !_o['subid'].nil?
_oa = _o['subid']
if(_oa.is_a? Hash)
@subid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@subid = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@subid = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@subid.push String.from_json(_item)
else
@subid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@subid = _oa
end
end
if !_o['value'].nil?
_oa = _o['value']
if(_oa.is_a? Hash)
@value = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@value = Float.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@value = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@value.push Float.from_json(_item)
else
@value.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@value = _oa
end
end
if !_o['messageType'].nil?
_oa = _o['messageType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@messageType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@messageType = String.from_json(_oa) unless _oa['@class'] @provisionID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@messageType = Array.new @provisionID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@messageType.push String.from_json(_item) @provisionID.push String.from_json(_item)
else else
@messageType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@messageType = _oa @provisionID = _oa
end end
end end
if !_o['date'].nil? if !_o['managerType'].nil?
_oa = _o['date'] _oa = _o['managerType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@date = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @managerType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@date = Time.from_json(_oa) unless _oa['@class'] @managerType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@date = Array.new @managerType = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@date.push Time.from_json(_item) @managerType.push String.from_json(_item)
else else
@date.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @managerType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@date = _oa @managerType = _oa
end end
end end
if !_o['time'].nil? if !_o['configurationID'].nil?
_oa = _o['time'] _oa = _o['configurationID']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@time = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @configurationID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@time = Time.from_json(_oa) unless _oa['@class'] @configurationID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@time = Array.new @configurationID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@time.push Time.from_json(_item) @configurationID.push String.from_json(_item)
else else
@time.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @configurationID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@time = _oa @configurationID = _oa
end end
end end
end end
# constructs a MonitorringMessage from a (parsed) JSON hash # constructs a DeployRequest from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -2340,88 +2270,156 @@ module V1 ...@@ -2340,88 +2270,156 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class ScaleRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class AnsibleOutput < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the scaleTargetID # the host
attr_accessor :scaleTargetID attr_accessor :host
# the scaleTargetName # the result
attr_accessor :scaleTargetName attr_accessor :result
# the numOfInstances # the domain
attr_accessor :numOfInstances attr_accessor :cloudDeploymentDomain
#
attr_accessor :vmType
# the provision ID
attr_accessor :provisionID
# the cloudProvider
attr_accessor :cloudProvider
# the json hash for this ScaleRequest # the json hash for this AnsibleOutput
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['scaleTargetID'] = scaleTargetID.to_jaxb_json_hash unless scaleTargetID.nil? _h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['scaleTargetName'] = scaleTargetName.to_jaxb_json_hash unless scaleTargetName.nil? _h['result'] = result.to_jaxb_json_hash unless result.nil?
_h['numOfInstances'] = numOfInstances.to_jaxb_json_hash unless numOfInstances.nil? _h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['cloudProvider'] = cloudProvider.to_jaxb_json_hash unless cloudProvider.nil?
return _h return _h
end end
#initializes this ScaleRequest with a json hash #initializes this AnsibleOutput with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['scaleTargetID'].nil? if !_o['host'].nil?
_oa = _o['scaleTargetID'] _oa = _o['host']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@scaleTargetID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@scaleTargetID = String.from_json(_oa) unless _oa['@class'] @host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@scaleTargetID = Array.new @host = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@scaleTargetID.push String.from_json(_item) @host.push String.from_json(_item)
else else
@scaleTargetID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@scaleTargetID = _oa @host = _oa
end end
end end
if !_o['scaleTargetName'].nil? if !_o['result'].nil?
_oa = _o['scaleTargetName'] _oa = _o['result']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@scaleTargetName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @result = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@scaleTargetName = String.from_json(_oa) unless _oa['@class'] @result = Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@scaleTargetName = Array.new @result = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@scaleTargetName.push String.from_json(_item) @result.push Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_item)
else else
@scaleTargetName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @result.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@scaleTargetName = _oa @result = _oa
end end
end end
if !_o['numOfInstances'].nil? if !_o['cloudDeploymentDomain'].nil?
_oa = _o['numOfInstances'] _oa = _o['cloudDeploymentDomain']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@numOfInstances = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @cloudDeploymentDomain = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@numOfInstances = Fixnum.from_json(_oa) unless _oa['@class'] @cloudDeploymentDomain = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@numOfInstances = Array.new @cloudDeploymentDomain = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@numOfInstances.push Fixnum.from_json(_item) @cloudDeploymentDomain.push String.from_json(_item)
else else
@numOfInstances.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @cloudDeploymentDomain.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@numOfInstances = _oa @cloudDeploymentDomain = _oa
end
end
if !_o['vmType'].nil?
_oa = _o['vmType']
if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@vmType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item)
else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@vmType = _oa
end
end
if !_o['provisionID'].nil?
_oa = _o['provisionID']
if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@provisionID = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item)
else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@provisionID = _oa
end
end
if !_o['cloudProvider'].nil?
_oa = _o['cloudProvider']
if(_oa.is_a? Hash)
@cloudProvider = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudProvider = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cloudProvider = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudProvider.push String.from_json(_item)
else
@cloudProvider.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cloudProvider = _oa
end end
end end
end end
# constructs a ScaleRequest from a (parsed) JSON hash # constructs a AnsibleOutput from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -2451,6 +2449,8 @@ end ...@@ -2451,6 +2449,8 @@ end
end end
end
module Nl module Nl
module Uva module Uva
......
...@@ -81,7 +81,7 @@ class</p> ...@@ -81,7 +81,7 @@ class</p>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td> <span class="property-name">cloudDeploymentDomain</span> <td> <span class="property-name">vmType</span>
</td> </td>
<td> <span class="datatype-reference">string <td> <span class="datatype-reference">string
</span> </span>
...@@ -90,7 +90,7 @@ class</p> ...@@ -90,7 +90,7 @@ class</p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">start</span> <td> <span class="property-name">end</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">number
</span> </span>
...@@ -99,36 +99,36 @@ class</p> ...@@ -99,36 +99,36 @@ class</p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">end</span> <td> <span class="property-name">host</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">string
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">vmType</span> <td> <span class="property-name">delta</span>
</td> </td>
<td> <span class="datatype-reference">string <td> <span class="datatype-reference">number
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">host</span> <td> <span class="property-name">start</span>
</td> </td>
<td> <span class="datatype-reference">string <td> <span class="datatype-reference">number
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">delta</span> <td> <span class="property-name">cloudDeploymentDomain</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">string
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
...@@ -167,12 +167,12 @@ No need to set during a POST</span></td> ...@@ -167,12 +167,12 @@ No need to set during a POST</span></td>
<p class="lead">Example</p> <p class="lead">Example</p>
<pre class="prettyprint language-js example">{ <pre class="prettyprint language-js example">{
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;start&quot; : 12345,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;, &quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;start&quot; : 12345,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
&quot;timestamp&quot; : 1499793079011 &quot;timestamp&quot; : 1499793079011
......
...@@ -821,17 +821,17 @@ class]]> ...@@ -821,17 +821,17 @@ class]]>
<xs:complexContent> <xs:complexContent>
<xs:extension base="ownedObject"> <xs:extension base="ownedObject">
<xs:sequence> <xs:sequence>
<xs:element name="vmType" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="delta" type="xs:dateTime" minOccurs="0"> <xs:element name="delta" type="xs:dateTime" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="host" type="xs:string" minOccurs="0"> <xs:element name="vmType" type="xs:string" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="start" type="xs:dateTime" minOccurs="0"> <xs:element name="start" type="xs:dateTime" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="end" type="xs:dateTime" minOccurs="0">
</xs:element>
<xs:element name="cloudDeploymentDomain" type="xs:string" minOccurs="0"> <xs:element name="cloudDeploymentDomain" type="xs:string" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="end" type="xs:dateTime" minOccurs="0"> <xs:element name="host" type="xs:string" minOccurs="0">
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
</xs:extension> </xs:extension>
......
...@@ -144,12 +144,12 @@ Content-Type: application/json ...@@ -144,12 +144,12 @@ Content-Type: application/json
<code class="prettyprint language-js"> <code class="prettyprint language-js">
[ { [ {
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;start&quot; : 12345,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;, &quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;start&quot; : 12345,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
&quot;timestamp&quot; : 1499793079011 &quot;timestamp&quot; : 1499793079011
...@@ -514,12 +514,12 @@ Content-Type: application/json ...@@ -514,12 +514,12 @@ Content-Type: application/json
<code class="prettyprint language-js"> <code class="prettyprint language-js">
{ {
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;start&quot; : 12345,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;, &quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;start&quot; : 12345,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
&quot;timestamp&quot; : 1499793079011 &quot;timestamp&quot; : 1499793079011
......
...@@ -554,6 +554,12 @@ Content-Type: application/json ...@@ -554,6 +554,12 @@ Content-Type: application/json
<td><span class="parameter-description">&nbsp;</span></td> <td><span class="parameter-description">&nbsp;</span></td>
<td><span class="parameter-constraints">required</span></td> <td><span class="parameter-constraints">required</span></td>
</tr> </tr>
<tr>
<td><span class="parameter-name">max_vm</span></td>
<td>query</td>
<td><span class="parameter-description">&nbsp;</span></td>
<td><span class="parameter-constraints">int</span></td>
</tr>
<tr> <tr>
<td><span class="parameter-name">preferred_provider</span></td> <td><span class="parameter-name">preferred_provider</span></td>
<td>query</td> <td>query</td>
......
...@@ -220,12 +220,12 @@ It is created automatically. No need to set during a POST</span></td> ...@@ -220,12 +220,12 @@ It is created automatically. No need to set during a POST</span></td>
<p class="lead">Example</p> <p class="lead">Example</p>
<pre class="prettyprint language-xml example">&lt;b-----&gt; <pre class="prettyprint language-xml example">&lt;b-----&gt;
&lt;vmType&gt;...&lt;/vmType&gt;
&lt;delta&gt;...&lt;/delta&gt; &lt;delta&gt;...&lt;/delta&gt;
&lt;host&gt;147.228.242.58&lt;/host&gt; &lt;vmType&gt;...&lt;/vmType&gt;
&lt;start&gt;...&lt;/start&gt; &lt;start&gt;...&lt;/start&gt;
&lt;cloudDeploymentDomain&gt;us-east-1&lt;/cloudDeploymentDomain&gt;
&lt;end&gt;...&lt;/end&gt; &lt;end&gt;...&lt;/end&gt;
&lt;cloudDeploymentDomain&gt;us-east-1&lt;/cloudDeploymentDomain&gt;
&lt;host&gt;147.228.242.58&lt;/host&gt;
&lt;owner&gt;user1&lt;/owner&gt; &lt;owner&gt;user1&lt;/owner&gt;
&lt;/b-----&gt; &lt;/b-----&gt;
</pre> </pre>
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<h1 class="page-header">Files and Libraries</h1> <h1 class="page-header">Files and Libraries</h1>
<h3 id="artifact_gwt_json_overlay">GWT JSON Overlay</h3> <h3 id="artifact_gwt_json_overlay">GWT JSON Overlay</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p> <p> <p> <p>
The <a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> JSON Overlay library provides the JSON Overlays that The <a href="http://code.google.com/webtoolkit/">Google Web Toolkit</a> JSON Overlay library provides the JSON Overlays that
can be used to access the Web service API for this application. can be used to access the Web service API for this application.
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_java_json_client_library">Java JSON Client Library</h3> <h3 id="artifact_java_json_client_library">Java JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Java client-side library is used to provide the set of Java objects that can be serialized The Java client-side library is used to provide the set of Java objects that can be serialized
to/from JSON using <a href="http://jackson.codehaus.org/">Jackson</a>. This is useful for accessing the to/from JSON using <a href="http://jackson.codehaus.org/">Jackson</a>. This is useful for accessing the
...@@ -116,18 +116,18 @@ ...@@ -116,18 +116,18 @@
<tbody data-link="row" class="rowlink"> <tbody data-link="row" class="rowlink">
<tr class="clickable-row" data-href="drip-api-json-client.jar"> <tr class="clickable-row" data-href="drip-api-json-client.jar">
<td><span class="downloadfile-name">drip-api-json-client.jar</span></td> <td><span class="downloadfile-name">drip-api-json-client.jar</span></td>
<td><span class="downloadfile-size">18.03K</span></td> <td><span class="downloadfile-size">18.04K</span></td>
<td><span class="downloadfile-description">The binaries for the Java JSON client library.</span></td> <td><span class="downloadfile-description">The binaries for the Java JSON client library.</span></td>
</tr> </tr>
<tr class="clickable-row" data-href="drip-api-json-client-json-sources.jar"> <tr class="clickable-row" data-href="drip-api-json-client-json-sources.jar">
<td><span class="downloadfile-name">drip-api-json-client-json-sources.jar</span></td> <td><span class="downloadfile-name">drip-api-json-client-json-sources.jar</span></td>
<td><span class="downloadfile-size">14.89K</span></td> <td><span class="downloadfile-size">14.88K</span></td>
<td><span class="downloadfile-description">The sources for the Java JSON client library.</span></td> <td><span class="downloadfile-description">The sources for the Java JSON client library.</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_java_xml_client_library">Java XML Client Library</h3> <h3 id="artifact_java_xml_client_library">Java XML Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Java client-side library is used to access the Web service API for this application using Java. The Java client-side library is used to access the Web service API for this application using Java.
</p> </p>
...@@ -149,13 +149,13 @@ ...@@ -149,13 +149,13 @@
</tr> </tr>
<tr class="clickable-row" data-href="drip-api-xml-client-xml-sources.jar"> <tr class="clickable-row" data-href="drip-api-xml-client-xml-sources.jar">
<td><span class="downloadfile-name">drip-api-xml-client-xml-sources.jar</span></td> <td><span class="downloadfile-name">drip-api-xml-client-xml-sources.jar</span></td>
<td><span class="downloadfile-size">23.27K</span></td> <td><span class="downloadfile-size">23.28K</span></td>
<td><span class="downloadfile-description">The sources for the Java XML client library.</span></td> <td><span class="downloadfile-description">The sources for the Java XML client library.</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_js_client_library">JavaScript Client Library</h3> <h3 id="artifact_js_client_library">JavaScript Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The JavaScript client-side library defines classes that can be (de)serialized to/from JSON. The JavaScript client-side library defines classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_php_json_client_library">PHP JSON Client Library</h3> <h3 id="artifact_php_json_client_library">PHP JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -213,13 +213,13 @@ ...@@ -213,13 +213,13 @@
<tbody data-link="row" class="rowlink"> <tbody data-link="row" class="rowlink">
<tr class="clickable-row" data-href="drip-api-php.zip"> <tr class="clickable-row" data-href="drip-api-php.zip">
<td><span class="downloadfile-name">drip-api-php.zip</span></td> <td><span class="downloadfile-name">drip-api-php.zip</span></td>
<td><span class="downloadfile-size">6.67K</span></td> <td><span class="downloadfile-size">6.58K</span></td>
<td><span class="downloadfile-description">&nbsp;</span></td> <td><span class="downloadfile-description">&nbsp;</span></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<h3 id="artifact_php_xml_client_library">PHP XML Client Library</h3> <h3 id="artifact_php_xml_client_library">PHP XML Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML. The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML.
This is useful for accessing the resources that are published by this application, but only This is useful for accessing the resources that are published by this application, but only
...@@ -251,7 +251,7 @@ ...@@ -251,7 +251,7 @@
</tbody> </tbody>
</table> </table>
<h3 id="artifact_ruby_json_client_library">Ruby JSON Client Library</h3> <h3 id="artifact_ruby_json_client_library">Ruby JSON Client Library</h3>
<p class="lead">Created January 25, 2018</p> <p class="lead">Created January 26, 2018</p>
<p><p> <p><p>
The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON. The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON.
This is useful for accessing the REST endpoints that are published by this application, but only This is useful for accessing the REST endpoints that are published by this application, but only
......
...@@ -93,92 +93,208 @@ module V1 ...@@ -93,92 +93,208 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class DeployParameter class AnsibleResult
# the IP # (no documentation provided)
attr_accessor :IP attr_accessor :msg
# the user # (no documentation provided)
attr_accessor :user attr_accessor :changed
# the role # (no documentation provided)
attr_accessor :role attr_accessor :end
# (no documentation provided)
attr_accessor :stdout
# (no documentation provided)
attr_accessor :cmd
# (no documentation provided)
attr_accessor :start
# (no documentation provided)
attr_accessor :stderr
# (no documentation provided)
attr_accessor :delta
# the json hash for this DeployParameter # the json hash for this AnsibleResult
def to_jaxb_json_hash def to_jaxb_json_hash
_h = {} _h = {}
_h['IP'] = IP.to_jaxb_json_hash unless IP.nil? _h['msg'] = msg.to_jaxb_json_hash unless msg.nil?
_h['user'] = user.to_jaxb_json_hash unless user.nil? _h['changed'] = changed.to_jaxb_json_hash unless changed.nil?
_h['role'] = role.to_jaxb_json_hash unless role.nil? _h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['stdout'] = stdout.to_jaxb_json_hash unless stdout.nil?
if !cmd.nil?
_ha = Array.new
cmd.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['cmd'] = _ha
end
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['stderr'] = stderr.to_jaxb_json_hash unless stderr.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
return _h return _h
end end
# the json (string form) for this DeployParameter # the json (string form) for this AnsibleResult
def to_json def to_json
to_jaxb_json_hash.to_json to_jaxb_json_hash.to_json
end end
#initializes this DeployParameter with a json hash #initializes this AnsibleResult with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
if !_o['IP'].nil? if !_o['msg'].nil?
_oa = _o['IP'] _oa = _o['msg']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@IP = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @msg = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@IP = String.from_json(_oa) unless _oa['@class'] @msg = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@IP = Array.new @msg = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@IP.push String.from_json(_item) @msg.push String.from_json(_item)
else else
@IP.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @msg.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@IP = _oa @msg = _oa
end end
end end
if !_o['user'].nil? if !_o['changed'].nil?
_oa = _o['user'] _oa = _o['changed']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@user = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @changed = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@user = String.from_json(_oa) unless _oa['@class'] @changed = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@user = Array.new @changed = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@user.push String.from_json(_item) @changed.push Boolean.from_json(_item)
else else
@user.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @changed.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@user = _oa @changed = _oa
end end
end end
if !_o['role'].nil? if !_o['end'].nil?
_oa = _o['role'] _oa = _o['end']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@role = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @end = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@role = String.from_json(_oa) unless _oa['@class'] @end = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@role = Array.new @end = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@role.push String.from_json(_item) @end.push Time.from_json(_item)
else else
@role.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @end.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@role = _oa @end = _oa
end
end
if !_o['stdout'].nil?
_oa = _o['stdout']
if(_oa.is_a? Hash)
@stdout = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stdout = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stdout = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stdout.push String.from_json(_item)
else
@stdout.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stdout = _oa
end
end
if !_o['cmd'].nil?
_oa = _o['cmd']
if(_oa.is_a? Hash)
@cmd = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cmd = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cmd = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cmd.push String.from_json(_item)
else
@cmd.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cmd = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@start = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item)
else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@start = _oa
end
end
if !_o['stderr'].nil?
_oa = _o['stderr']
if(_oa.is_a? Hash)
@stderr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stderr = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stderr = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stderr.push String.from_json(_item)
else
@stderr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stderr = _oa
end
end
if !_o['delta'].nil?
_oa = _o['delta']
if(_oa.is_a? Hash)
@delta = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@delta = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@delta = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@delta.push Time.from_json(_item)
else
@delta.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@delta = _oa
end end
end end
end end
# constructs a DeployParameter from a (parsed) JSON hash # constructs a AnsibleResult from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -208,6 +324,8 @@ end ...@@ -208,6 +324,8 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -319,248 +437,132 @@ module External ...@@ -319,248 +437,132 @@ module External
inst = new inst = new
inst.init_jaxb_json_hash o inst.init_jaxb_json_hash o
return inst return inst
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
end end
module Nl module Nl
module Uva module Uva
module Sne module Sne
module Drip module Drip
module Drip module Drip
module Commons module Commons
module Data module Data
module V1 module V1
module External module External
module Ansible # (no documentation provided)
class DeployParameter
# (no documentation provided)
class AnsibleResult # the IP
attr_accessor :IP
# (no documentation provided) # the user
attr_accessor :msg attr_accessor :user
# (no documentation provided) # the role
attr_accessor :changed attr_accessor :role
# (no documentation provided)
attr_accessor :end # the json hash for this DeployParameter
# (no documentation provided) def to_jaxb_json_hash
attr_accessor :stdout _h = {}
# (no documentation provided) _h['IP'] = IP.to_jaxb_json_hash unless IP.nil?
attr_accessor :cmd _h['user'] = user.to_jaxb_json_hash unless user.nil?
# (no documentation provided) _h['role'] = role.to_jaxb_json_hash unless role.nil?
attr_accessor :start return _h
# (no documentation provided) end
attr_accessor :stderr
# (no documentation provided) # the json (string form) for this DeployParameter
attr_accessor :delta def to_json
to_jaxb_json_hash.to_json
# the json hash for this AnsibleResult end
def to_jaxb_json_hash
_h = {} #initializes this DeployParameter with a json hash
_h['msg'] = msg.to_jaxb_json_hash unless msg.nil? def init_jaxb_json_hash(_o)
_h['changed'] = changed.to_jaxb_json_hash unless changed.nil? if !_o['IP'].nil?
_h['end'] = end.to_jaxb_json_hash unless end.nil? _oa = _o['IP']
_h['stdout'] = stdout.to_jaxb_json_hash unless stdout.nil?
if !cmd.nil?
_ha = Array.new
cmd.each { | _item | _ha.push _item.to_jaxb_json_hash }
_h['cmd'] = _ha
end
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['stderr'] = stderr.to_jaxb_json_hash unless stderr.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
return _h
end
# the json (string form) for this AnsibleResult
def to_json
to_jaxb_json_hash.to_json
end
#initializes this AnsibleResult with a json hash
def init_jaxb_json_hash(_o)
if !_o['msg'].nil?
_oa = _o['msg']
if(_oa.is_a? Hash)
@msg = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@msg = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@msg = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@msg.push String.from_json(_item)
else
@msg.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@msg = _oa
end
end
if !_o['changed'].nil?
_oa = _o['changed']
if(_oa.is_a? Hash)
@changed = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@changed = Boolean.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@changed = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@changed.push Boolean.from_json(_item)
else
@changed.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@changed = _oa
end
end
if !_o['end'].nil?
_oa = _o['end']
if(_oa.is_a? Hash)
@end = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@end = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@end = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@end.push Time.from_json(_item)
else
@end.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@end = _oa
end
end
if !_o['stdout'].nil?
_oa = _o['stdout']
if(_oa.is_a? Hash)
@stdout = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stdout = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@stdout = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@stdout.push String.from_json(_item)
else
@stdout.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@stdout = _oa
end
end
if !_o['cmd'].nil?
_oa = _o['cmd']
if(_oa.is_a? Hash)
@cmd = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cmd = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cmd = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cmd.push String.from_json(_item)
else
@cmd.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cmd = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @IP = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class'] @IP = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@start = Array.new @IP = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item) @IP.push String.from_json(_item)
else else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @IP.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@start = _oa @IP = _oa
end end
end end
if !_o['stderr'].nil? if !_o['user'].nil?
_oa = _o['stderr'] _oa = _o['user']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@stderr = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @user = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@stderr = String.from_json(_oa) unless _oa['@class'] @user = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@stderr = Array.new @user = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@stderr.push String.from_json(_item) @user.push String.from_json(_item)
else else
@stderr.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @user.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@stderr = _oa @user = _oa
end end
end end
if !_o['delta'].nil? if !_o['role'].nil?
_oa = _o['delta'] _oa = _o['role']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@delta = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @role = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@delta = Time.from_json(_oa) unless _oa['@class'] @role = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@delta = Array.new @role = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@delta.push Time.from_json(_item) @role.push String.from_json(_item)
else else
@delta.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @role.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@delta = _oa @role = _oa
end end
end end
end end
# constructs a AnsibleResult from a (parsed) JSON hash # constructs a DeployParameter from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -590,8 +592,6 @@ end ...@@ -590,8 +592,6 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -1012,156 +1012,88 @@ module V1 ...@@ -1012,156 +1012,88 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class AnsibleOutput < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class ScaleRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the host # the scaleTargetID
attr_accessor :host attr_accessor :scaleTargetID
# the result # the scaleTargetName
attr_accessor :result attr_accessor :scaleTargetName
# the domain # the numOfInstances
attr_accessor :cloudDeploymentDomain attr_accessor :numOfInstances
#
attr_accessor :vmType
# the provision ID
attr_accessor :provisionID
# the cloudProvider
attr_accessor :cloudProvider
# the json hash for this AnsibleOutput # the json hash for this ScaleRequest
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['host'] = host.to_jaxb_json_hash unless host.nil? _h['scaleTargetID'] = scaleTargetID.to_jaxb_json_hash unless scaleTargetID.nil?
_h['result'] = result.to_jaxb_json_hash unless result.nil? _h['scaleTargetName'] = scaleTargetName.to_jaxb_json_hash unless scaleTargetName.nil?
_h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil? _h['numOfInstances'] = numOfInstances.to_jaxb_json_hash unless numOfInstances.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['cloudProvider'] = cloudProvider.to_jaxb_json_hash unless cloudProvider.nil?
return _h return _h
end end
#initializes this AnsibleOutput with a json hash #initializes this ScaleRequest with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['host'].nil? if !_o['scaleTargetID'].nil?
_oa = _o['host'] _oa = _o['scaleTargetID']
if(_oa.is_a? Hash)
@host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@host = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@host.push String.from_json(_item)
else
@host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@host = _oa
end
end
if !_o['result'].nil?
_oa = _o['result']
if(_oa.is_a? Hash)
@result = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@result = Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@result = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@result.push Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_item)
else
@result.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@result = _oa
end
end
if !_o['cloudDeploymentDomain'].nil?
_oa = _o['cloudDeploymentDomain']
if(_oa.is_a? Hash)
@cloudDeploymentDomain = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudDeploymentDomain = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cloudDeploymentDomain = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudDeploymentDomain.push String.from_json(_item)
else
@cloudDeploymentDomain.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cloudDeploymentDomain = _oa
end
end
if !_o['vmType'].nil?
_oa = _o['vmType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @scaleTargetID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class'] @scaleTargetID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@vmType = Array.new @scaleTargetID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item) @scaleTargetID.push String.from_json(_item)
else else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @scaleTargetID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@vmType = _oa @scaleTargetID = _oa
end end
end end
if !_o['provisionID'].nil? if !_o['scaleTargetName'].nil?
_oa = _o['provisionID'] _oa = _o['scaleTargetName']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @scaleTargetName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class'] @scaleTargetName = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@provisionID = Array.new @scaleTargetName = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item) @scaleTargetName.push String.from_json(_item)
else else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @scaleTargetName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@provisionID = _oa @scaleTargetName = _oa
end end
end end
if !_o['cloudProvider'].nil? if !_o['numOfInstances'].nil?
_oa = _o['cloudProvider'] _oa = _o['numOfInstances']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@cloudProvider = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @numOfInstances = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudProvider = String.from_json(_oa) unless _oa['@class'] @numOfInstances = Fixnum.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@cloudProvider = Array.new @numOfInstances = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudProvider.push String.from_json(_item) @numOfInstances.push Fixnum.from_json(_item)
else else
@cloudProvider.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @numOfInstances.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@cloudProvider = _oa @numOfInstances = _oa
end end
end end
end end
# constructs a AnsibleOutput from a (parsed) JSON hash # constructs a ScaleRequest from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -1191,8 +1123,6 @@ end ...@@ -1191,8 +1123,6 @@ end
end end
end
module Nl module Nl
module Uva module Uva
...@@ -1216,27 +1146,27 @@ module Ansible ...@@ -1216,27 +1146,27 @@ module Ansible
# (no documentation provided) # (no documentation provided)
class BenchmarkResult < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class BenchmarkResult < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# (no documentation provided)
attr_accessor :start
# (no documentation provided) # (no documentation provided)
attr_accessor :delta attr_accessor :delta
# (no documentation provided) # (no documentation provided)
attr_accessor :host attr_accessor :vmType
# (no documentation provided) # (no documentation provided)
attr_accessor :end attr_accessor :end
# (no documentation provided) # (no documentation provided)
attr_accessor :vmType attr_accessor :host
# (no documentation provided)
attr_accessor :start
# (no documentation provided) # (no documentation provided)
attr_accessor :cloudDeploymentDomain attr_accessor :cloudDeploymentDomain
# the json hash for this BenchmarkResult # the json hash for this BenchmarkResult
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['start'] = start.to_jaxb_json_hash unless start.nil?
_h['delta'] = delta.to_jaxb_json_hash unless delta.nil? _h['delta'] = delta.to_jaxb_json_hash unless delta.nil?
_h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil? _h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['start'] = start.to_jaxb_json_hash unless start.nil? _h['end'] = end.to_jaxb_json_hash unless end.nil?
_h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil? _h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil?
return _h return _h
end end
...@@ -1244,6 +1174,25 @@ module Ansible ...@@ -1244,6 +1174,25 @@ module Ansible
#initializes this BenchmarkResult with a json hash #initializes this BenchmarkResult with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@start = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item)
else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@start = _oa
end
end
if !_o['delta'].nil? if !_o['delta'].nil?
_oa = _o['delta'] _oa = _o['delta']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
...@@ -1263,23 +1212,23 @@ module Ansible ...@@ -1263,23 +1212,23 @@ module Ansible
@delta = _oa @delta = _oa
end end
end end
if !_o['host'].nil? if !_o['vmType'].nil?
_oa = _o['host'] _oa = _o['vmType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@host = String.from_json(_oa) unless _oa['@class'] @vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@host = Array.new @vmType = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@host.push String.from_json(_item) @vmType.push String.from_json(_item)
else else
@host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@host = _oa @vmType = _oa
end end
end end
if !_o['end'].nil? if !_o['end'].nil?
...@@ -1301,42 +1250,23 @@ module Ansible ...@@ -1301,42 +1250,23 @@ module Ansible
@end = _oa @end = _oa
end end
end end
if !_o['vmType'].nil? if !_o['host'].nil?
_oa = _o['vmType'] _oa = _o['host']
if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@vmType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item)
else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@vmType = _oa
end
end
if !_o['start'].nil?
_oa = _o['start']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@start = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@start = Time.from_json(_oa) unless _oa['@class'] @host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@start = Array.new @host = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@start.push Time.from_json(_item) @host.push String.from_json(_item)
else else
@start.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@start = _oa @host = _oa
end end
end end
if !_o['cloudDeploymentDomain'].nil? if !_o['cloudDeploymentDomain'].nil?
...@@ -1781,87 +1711,153 @@ module V1 ...@@ -1781,87 +1711,153 @@ module V1
module External module External
# (no documentation provided) # (no documentation provided)
class DeployRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class MonitorringMessage < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the provisionID # the metricMame
attr_accessor :provisionID attr_accessor :metricMame
# the managerType # the subid
attr_accessor :managerType attr_accessor :subid
# the configurationID # the value
attr_accessor :configurationID attr_accessor :value
# the messageType
attr_accessor :messageType
# the date
attr_accessor :date
# the time
attr_accessor :time
# the json hash for this DeployRequest # the json hash for this MonitorringMessage
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil? _h['metricMame'] = metricMame.to_jaxb_json_hash unless metricMame.nil?
_h['managerType'] = managerType.to_jaxb_json_hash unless managerType.nil? _h['subid'] = subid.to_jaxb_json_hash unless subid.nil?
_h['configurationID'] = configurationID.to_jaxb_json_hash unless configurationID.nil? _h['value'] = value.to_jaxb_json_hash unless value.nil?
_h['messageType'] = messageType.to_jaxb_json_hash unless messageType.nil?
_h['date'] = date.to_jaxb_json_hash unless date.nil?
_h['time'] = time.to_jaxb_json_hash unless time.nil?
return _h return _h
end end
#initializes this DeployRequest with a json hash #initializes this MonitorringMessage with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['provisionID'].nil? if !_o['metricMame'].nil?
_oa = _o['provisionID'] _oa = _o['metricMame']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @metricMame = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class'] @metricMame = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@provisionID = Array.new @metricMame = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item) @metricMame.push String.from_json(_item)
else else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @metricMame.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@provisionID = _oa @metricMame = _oa
end end
end end
if !_o['managerType'].nil? if !_o['subid'].nil?
_oa = _o['managerType'] _oa = _o['subid']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@managerType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @subid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@managerType = String.from_json(_oa) unless _oa['@class'] @subid = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@managerType = Array.new @subid = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@managerType.push String.from_json(_item) @subid.push String.from_json(_item)
else else
@managerType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @subid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@managerType = _oa @subid = _oa
end end
end end
if !_o['configurationID'].nil? if !_o['value'].nil?
_oa = _o['configurationID'] _oa = _o['value']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@configurationID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @value = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@configurationID = String.from_json(_oa) unless _oa['@class'] @value = Float.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@configurationID = Array.new @value = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@configurationID.push String.from_json(_item) @value.push Float.from_json(_item)
else else
@configurationID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @value.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@configurationID = _oa @value = _oa
end
end
if !_o['messageType'].nil?
_oa = _o['messageType']
if(_oa.is_a? Hash)
@messageType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@messageType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@messageType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@messageType.push String.from_json(_item)
else
@messageType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@messageType = _oa
end
end
if !_o['date'].nil?
_oa = _o['date']
if(_oa.is_a? Hash)
@date = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@date = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@date = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@date.push Time.from_json(_item)
else
@date.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@date = _oa
end
end
if !_o['time'].nil?
_oa = _o['time']
if(_oa.is_a? Hash)
@time = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@time = Time.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@time = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@time.push Time.from_json(_item)
else
@time.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@time = _oa
end end
end end
end end
# constructs a DeployRequest from a (parsed) JSON hash # constructs a MonitorringMessage from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -1910,153 +1906,87 @@ module V1 ...@@ -1910,153 +1906,87 @@ module V1
module External module External
# (no documentation provided) # (no documentation provided)
class MonitorringMessage < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class DeployRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the metricMame # the provisionID
attr_accessor :metricMame attr_accessor :provisionID
# the subid # the managerType
attr_accessor :subid attr_accessor :managerType
# the value # the configurationID
attr_accessor :value attr_accessor :configurationID
# the messageType
attr_accessor :messageType
# the date
attr_accessor :date
# the time
attr_accessor :time
# the json hash for this MonitorringMessage # the json hash for this DeployRequest
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['metricMame'] = metricMame.to_jaxb_json_hash unless metricMame.nil? _h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['subid'] = subid.to_jaxb_json_hash unless subid.nil? _h['managerType'] = managerType.to_jaxb_json_hash unless managerType.nil?
_h['value'] = value.to_jaxb_json_hash unless value.nil? _h['configurationID'] = configurationID.to_jaxb_json_hash unless configurationID.nil?
_h['messageType'] = messageType.to_jaxb_json_hash unless messageType.nil?
_h['date'] = date.to_jaxb_json_hash unless date.nil?
_h['time'] = time.to_jaxb_json_hash unless time.nil?
return _h return _h
end end
#initializes this MonitorringMessage with a json hash #initializes this DeployRequest with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['metricMame'].nil? if !_o['provisionID'].nil?
_oa = _o['metricMame'] _oa = _o['provisionID']
if(_oa.is_a? Hash)
@metricMame = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@metricMame = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@metricMame = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@metricMame.push String.from_json(_item)
else
@metricMame.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@metricMame = _oa
end
end
if !_o['subid'].nil?
_oa = _o['subid']
if(_oa.is_a? Hash)
@subid = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@subid = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@subid = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@subid.push String.from_json(_item)
else
@subid.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@subid = _oa
end
end
if !_o['value'].nil?
_oa = _o['value']
if(_oa.is_a? Hash)
@value = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@value = Float.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@value = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@value.push Float.from_json(_item)
else
@value.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@value = _oa
end
end
if !_o['messageType'].nil?
_oa = _o['messageType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@messageType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@messageType = String.from_json(_oa) unless _oa['@class'] @provisionID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@messageType = Array.new @provisionID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@messageType.push String.from_json(_item) @provisionID.push String.from_json(_item)
else else
@messageType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@messageType = _oa @provisionID = _oa
end end
end end
if !_o['date'].nil? if !_o['managerType'].nil?
_oa = _o['date'] _oa = _o['managerType']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@date = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @managerType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@date = Time.from_json(_oa) unless _oa['@class'] @managerType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@date = Array.new @managerType = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@date.push Time.from_json(_item) @managerType.push String.from_json(_item)
else else
@date.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @managerType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@date = _oa @managerType = _oa
end end
end end
if !_o['time'].nil? if !_o['configurationID'].nil?
_oa = _o['time'] _oa = _o['configurationID']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@time = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @configurationID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@time = Time.from_json(_oa) unless _oa['@class'] @configurationID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@time = Array.new @configurationID = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@time.push Time.from_json(_item) @configurationID.push String.from_json(_item)
else else
@time.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @configurationID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@time = _oa @configurationID = _oa
end end
end end
end end
# constructs a MonitorringMessage from a (parsed) JSON hash # constructs a DeployRequest from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -2340,88 +2270,156 @@ module V1 ...@@ -2340,88 +2270,156 @@ module V1
module External module External
module Ansible
# (no documentation provided) # (no documentation provided)
class ScaleRequest < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject class AnsibleOutput < Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::OwnedObject
# the scaleTargetID # the host
attr_accessor :scaleTargetID attr_accessor :host
# the scaleTargetName # the result
attr_accessor :scaleTargetName attr_accessor :result
# the numOfInstances # the domain
attr_accessor :numOfInstances attr_accessor :cloudDeploymentDomain
#
attr_accessor :vmType
# the provision ID
attr_accessor :provisionID
# the cloudProvider
attr_accessor :cloudProvider
# the json hash for this ScaleRequest # the json hash for this AnsibleOutput
def to_jaxb_json_hash def to_jaxb_json_hash
_h = super _h = super
_h['scaleTargetID'] = scaleTargetID.to_jaxb_json_hash unless scaleTargetID.nil? _h['host'] = host.to_jaxb_json_hash unless host.nil?
_h['scaleTargetName'] = scaleTargetName.to_jaxb_json_hash unless scaleTargetName.nil? _h['result'] = result.to_jaxb_json_hash unless result.nil?
_h['numOfInstances'] = numOfInstances.to_jaxb_json_hash unless numOfInstances.nil? _h['cloudDeploymentDomain'] = cloudDeploymentDomain.to_jaxb_json_hash unless cloudDeploymentDomain.nil?
_h['vmType'] = vmType.to_jaxb_json_hash unless vmType.nil?
_h['provisionID'] = provisionID.to_jaxb_json_hash unless provisionID.nil?
_h['cloudProvider'] = cloudProvider.to_jaxb_json_hash unless cloudProvider.nil?
return _h return _h
end end
#initializes this ScaleRequest with a json hash #initializes this AnsibleOutput with a json hash
def init_jaxb_json_hash(_o) def init_jaxb_json_hash(_o)
super _o super _o
if !_o['scaleTargetID'].nil? if !_o['host'].nil?
_oa = _o['scaleTargetID'] _oa = _o['host']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@scaleTargetID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @host = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@scaleTargetID = String.from_json(_oa) unless _oa['@class'] @host = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@scaleTargetID = Array.new @host = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@scaleTargetID.push String.from_json(_item) @host.push String.from_json(_item)
else else
@scaleTargetID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @host.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@scaleTargetID = _oa @host = _oa
end end
end end
if !_o['scaleTargetName'].nil? if !_o['result'].nil?
_oa = _o['scaleTargetName'] _oa = _o['result']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@scaleTargetName = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @result = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@scaleTargetName = String.from_json(_oa) unless _oa['@class'] @result = Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@scaleTargetName = Array.new @result = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@scaleTargetName.push String.from_json(_item) @result.push Nl::Uva::Sne::Drip::Drip::Commons::Data::V1::External::Ansible::AnsibleResult.from_json(_item)
else else
@scaleTargetName.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @result.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@scaleTargetName = _oa @result = _oa
end end
end end
if !_o['numOfInstances'].nil? if !_o['cloudDeploymentDomain'].nil?
_oa = _o['numOfInstances'] _oa = _o['cloudDeploymentDomain']
if(_oa.is_a? Hash) if(_oa.is_a? Hash)
@numOfInstances = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class'] @cloudDeploymentDomain = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@numOfInstances = Fixnum.from_json(_oa) unless _oa['@class'] @cloudDeploymentDomain = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array) elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar #an array(of hashes hopefully) or scalar
@numOfInstances = Array.new @cloudDeploymentDomain = Array.new
_oa.each { | _item | _oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true) if ((_item.nil? || _item['@class'].nil?)rescue true)
@numOfInstances.push Fixnum.from_json(_item) @cloudDeploymentDomain.push String.from_json(_item)
else else
@numOfInstances.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item) @cloudDeploymentDomain.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end end
} }
else else
@numOfInstances = _oa @cloudDeploymentDomain = _oa
end
end
if !_o['vmType'].nil?
_oa = _o['vmType']
if(_oa.is_a? Hash)
@vmType = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@vmType = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@vmType = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@vmType.push String.from_json(_item)
else
@vmType.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@vmType = _oa
end
end
if !_o['provisionID'].nil?
_oa = _o['provisionID']
if(_oa.is_a? Hash)
@provisionID = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@provisionID = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@provisionID = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@provisionID.push String.from_json(_item)
else
@provisionID.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@provisionID = _oa
end
end
if !_o['cloudProvider'].nil?
_oa = _o['cloudProvider']
if(_oa.is_a? Hash)
@cloudProvider = EnunciateHelpers::LAMB_CLASS_AWARE.call(_oa) if _oa['@class']
@cloudProvider = String.from_json(_oa) unless _oa['@class']
elsif (_oa.is_a? Array)
#an array(of hashes hopefully) or scalar
@cloudProvider = Array.new
_oa.each { | _item |
if ((_item.nil? || _item['@class'].nil?)rescue true)
@cloudProvider.push String.from_json(_item)
else
@cloudProvider.push EnunciateHelpers::LAMB_CLASS_AWARE.call(_item)
end
}
else
@cloudProvider = _oa
end end
end end
end end
# constructs a ScaleRequest from a (parsed) JSON hash # constructs a AnsibleOutput from a (parsed) JSON hash
def self.from_json(o) def self.from_json(o)
if o.nil? if o.nil?
return nil return nil
...@@ -2451,6 +2449,8 @@ end ...@@ -2451,6 +2449,8 @@ end
end end
end
module Nl module Nl
module Uva module Uva
......
...@@ -81,7 +81,7 @@ class</p> ...@@ -81,7 +81,7 @@ class</p>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td> <span class="property-name">delta</span> <td> <span class="property-name">start</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">number
</span> </span>
...@@ -90,36 +90,36 @@ class</p> ...@@ -90,36 +90,36 @@ class</p>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">host</span> <td> <span class="property-name">delta</span>
</td> </td>
<td> <span class="datatype-reference">string <td> <span class="datatype-reference">number
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">end</span> <td> <span class="property-name">vmType</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">string
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">vmType</span> <td> <span class="property-name">end</span>
</td> </td>
<td> <span class="datatype-reference">string <td> <span class="datatype-reference">number
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <span class="property-name">start</span> <td> <span class="property-name">host</span>
</td> </td>
<td> <span class="datatype-reference">number <td> <span class="datatype-reference">string
</span> </span>
</td> </td>
<td> <span class="property-description"></span> <td> <span class="property-description"></span>
...@@ -167,11 +167,11 @@ No need to set during a POST</span></td> ...@@ -167,11 +167,11 @@ No need to set during a POST</span></td>
<p class="lead">Example</p> <p class="lead">Example</p>
<pre class="prettyprint language-js example">{ <pre class="prettyprint language-js example">{
&quot;start&quot; : 12345,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;start&quot; : 12345, &quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;, &quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
......
...@@ -69,7 +69,7 @@ class</p> ...@@ -69,7 +69,7 @@ class</p>
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt>Subtypes</dt> <dt>Subtypes</dt>
<dd><a href="json_KeyPair.html">KeyPair</a>, <a href="json_ScaleRequest.html">ScaleRequest</a>, <a href="json_AnsibleOutput.html">AnsibleOutput</a>, <a href="json_CloudCredentials.html">CloudCredentials</a>, <a href="json_BenchmarkResult.html">BenchmarkResult</a>, <a href="json_DeployResponse.html">DeployResponse</a>, <a href="json_DRIPLogRecord.html">DRIPLogRecord</a>, <a href="json_ProvisionRequest.html">ProvisionRequest</a>, <a href="json_Script.html">Script</a>, <a href="json_KeyValueHolder.html">KeyValueHolder</a>, <a href="json_DeployRequest.html">DeployRequest</a>, <a href="json_ProvisionResponse.html">ProvisionResponse</a>, <a href="json_MonitorringMessage.html">MonitorringMessage</a></dd> <dd><a href="json_KeyPair.html">KeyPair</a>, <a href="json_AnsibleOutput.html">AnsibleOutput</a>, <a href="json_ScaleRequest.html">ScaleRequest</a>, <a href="json_CloudCredentials.html">CloudCredentials</a>, <a href="json_BenchmarkResult.html">BenchmarkResult</a>, <a href="json_DeployResponse.html">DeployResponse</a>, <a href="json_DRIPLogRecord.html">DRIPLogRecord</a>, <a href="json_ProvisionRequest.html">ProvisionRequest</a>, <a href="json_Script.html">Script</a>, <a href="json_KeyValueHolder.html">KeyValueHolder</a>, <a href="json_DeployRequest.html">DeployRequest</a>, <a href="json_MonitorringMessage.html">MonitorringMessage</a>, <a href="json_ProvisionResponse.html">ProvisionResponse</a></dd>
</dl> </dl>
<table class="table datatype-properties"> <table class="table datatype-properties">
......
...@@ -821,17 +821,17 @@ class]]> ...@@ -821,17 +821,17 @@ class]]>
<xs:complexContent> <xs:complexContent>
<xs:extension base="ownedObject"> <xs:extension base="ownedObject">
<xs:sequence> <xs:sequence>
<xs:element name="host" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="delta" type="xs:dateTime" minOccurs="0"> <xs:element name="delta" type="xs:dateTime" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="cloudDeploymentDomain" type="xs:string" minOccurs="0"> <xs:element name="cloudDeploymentDomain" type="xs:string" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="vmType" type="xs:string" minOccurs="0"> <xs:element name="start" type="xs:dateTime" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="end" type="xs:dateTime" minOccurs="0"> <xs:element name="end" type="xs:dateTime" minOccurs="0">
</xs:element> </xs:element>
<xs:element name="start" type="xs:dateTime" minOccurs="0"> <xs:element name="vmType" type="xs:string" minOccurs="0">
</xs:element>
<xs:element name="host" type="xs:string" minOccurs="0">
</xs:element> </xs:element>
</xs:sequence> </xs:sequence>
</xs:extension> </xs:extension>
......
...@@ -144,11 +144,11 @@ Content-Type: application/json ...@@ -144,11 +144,11 @@ Content-Type: application/json
<code class="prettyprint language-js"> <code class="prettyprint language-js">
[ { [ {
&quot;start&quot; : 12345,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;start&quot; : 12345, &quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;, &quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
...@@ -514,11 +514,11 @@ Content-Type: application/json ...@@ -514,11 +514,11 @@ Content-Type: application/json
<code class="prettyprint language-js"> <code class="prettyprint language-js">
{ {
&quot;start&quot; : 12345,
&quot;delta&quot; : 12345, &quot;delta&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;end&quot; : 12345,
&quot;vmType&quot; : &quot;...&quot;, &quot;vmType&quot; : &quot;...&quot;,
&quot;start&quot; : 12345, &quot;end&quot; : 12345,
&quot;host&quot; : &quot;147.228.242.58&quot;,
&quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;, &quot;cloudDeploymentDomain&quot; : &quot;us-east-1&quot;,
&quot;owner&quot; : &quot;user1&quot;, &quot;owner&quot; : &quot;user1&quot;,
&quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;, &quot;id&quot; : &quot;58e3946e0fb4f562d84ba1ad&quot;,
......
...@@ -554,6 +554,12 @@ Content-Type: application/json ...@@ -554,6 +554,12 @@ Content-Type: application/json
<td><span class="parameter-description">&nbsp;</span></td> <td><span class="parameter-description">&nbsp;</span></td>
<td><span class="parameter-constraints">required</span></td> <td><span class="parameter-constraints">required</span></td>
</tr> </tr>
<tr>
<td><span class="parameter-name">max_vm</span></td>
<td>query</td>
<td><span class="parameter-description">&nbsp;</span></td>
<td><span class="parameter-constraints">int</span></td>
</tr>
<tr> <tr>
<td><span class="parameter-name">preferred_provider</span></td> <td><span class="parameter-name">preferred_provider</span></td>
<td>query</td> <td>query</td>
......
...@@ -220,12 +220,12 @@ It is created automatically. No need to set during a POST</span></td> ...@@ -220,12 +220,12 @@ It is created automatically. No need to set during a POST</span></td>
<p class="lead">Example</p> <p class="lead">Example</p>
<pre class="prettyprint language-xml example">&lt;b-----&gt; <pre class="prettyprint language-xml example">&lt;b-----&gt;
&lt;host&gt;147.228.242.58&lt;/host&gt;
&lt;delta&gt;...&lt;/delta&gt; &lt;delta&gt;...&lt;/delta&gt;
&lt;cloudDeploymentDomain&gt;us-east-1&lt;/cloudDeploymentDomain&gt; &lt;cloudDeploymentDomain&gt;us-east-1&lt;/cloudDeploymentDomain&gt;
&lt;vmType&gt;...&lt;/vmType&gt;
&lt;end&gt;...&lt;/end&gt;
&lt;start&gt;...&lt;/start&gt; &lt;start&gt;...&lt;/start&gt;
&lt;end&gt;...&lt;/end&gt;
&lt;vmType&gt;...&lt;/vmType&gt;
&lt;host&gt;147.228.242.58&lt;/host&gt;
&lt;owner&gt;user1&lt;/owner&gt; &lt;owner&gt;user1&lt;/owner&gt;
&lt;/b-----&gt; &lt;/b-----&gt;
</pre> </pre>
......
...@@ -79,9 +79,9 @@ public class PlannerService { ...@@ -79,9 +79,9 @@ public class PlannerService {
logger.addHandler(new DRIPLogHandler(messageBrokerHost)); logger.addHandler(new DRIPLogHandler(messageBrokerHost));
} }
public PlanResponse getPlan(String toscaId, String cloudProvider) throws JSONException, UnsupportedEncodingException, IOException, TimeoutException, InterruptedException { public PlanResponse getPlan(String toscaId, String cloudProvider, int maxVM) throws JSONException, UnsupportedEncodingException, IOException, TimeoutException, InterruptedException {
try (DRIPCaller planner = new PlannerCaller(messageBrokerHost)) { try (DRIPCaller planner = new PlannerCaller(messageBrokerHost)) {
Message plannerInvokationMessage = buildPlannerMessage(toscaId); Message plannerInvokationMessage = buildPlannerMessage(toscaId,maxVM);
logger.log(Level.INFO, "Calling planner"); logger.log(Level.INFO, "Calling planner");
plannerInvokationMessage.setOwner(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername()); plannerInvokationMessage.setOwner(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getUsername());
Message plannerReturnedMessage = (planner.call(plannerInvokationMessage)); Message plannerReturnedMessage = (planner.call(plannerInvokationMessage));
...@@ -104,8 +104,7 @@ public class PlannerService { ...@@ -104,8 +104,7 @@ public class PlannerService {
cloudProvider = getBestCloudProvider(); cloudProvider = getBestCloudProvider();
} }
String domainName = getBestDomain(cloudProvider); String domainName = getBestDomain(cloudProvider);
// SimplePlanContainer simplePlan = P2PConverter.convert(jsonArrayString.toString(), "vm_user", "Ubuntu 16.04", clusterType);
SimplePlanContainer simplePlan = P2PConverter.transfer(jsonArrayString.toString(), "vm_user", domainName, cloudProvider); SimplePlanContainer simplePlan = P2PConverter.transfer(jsonArrayString.toString(), "vm_user", domainName, cloudProvider);
PlanResponse topLevel = new PlanResponse(); PlanResponse topLevel = new PlanResponse();
...@@ -132,14 +131,14 @@ public class PlannerService { ...@@ -132,14 +131,14 @@ public class PlannerService {
} }
} }
private Message buildPlannerMessage(String toscaId) throws JSONException, UnsupportedEncodingException { private Message buildPlannerMessage(String toscaId, int maxVM) throws JSONException, UnsupportedEncodingException {
ToscaRepresentation t2 = toscaService.findOne(toscaId); ToscaRepresentation toscaRepresentation = toscaService.findOne(toscaId);
if (t2 == null) { if (toscaRepresentation == null) {
throw new BadRequestException(); throw new BadRequestException();
} }
logger.log(Level.INFO, "Building invokation message for planner"); logger.log(Level.INFO, "Building invokation message for planner");
Map<String, Object> map = t2.getKeyValue(); Map<String, Object> map = toscaRepresentation.getKeyValue();
String json = Converter.map2JsonString(map); String json = Converter.map2JsonString(map);
json = json.replaceAll("\\uff0E", "."); json = json.replaceAll("\\uff0E", ".");
byte[] bytes = json.getBytes(); byte[] bytes = json.getBytes();
...@@ -150,8 +149,15 @@ public class PlannerService { ...@@ -150,8 +149,15 @@ public class PlannerService {
String charset = "UTF-8"; String charset = "UTF-8";
jsonArgument.setValue(new String(bytes, charset)); jsonArgument.setValue(new String(bytes, charset));
jsonArgument.setEncoding(charset); jsonArgument.setEncoding(charset);
jsonArgument.setName("input"); jsonArgument.setName("tosca_input");
parameters.add(jsonArgument); parameters.add(jsonArgument);
MessageParameter maxVMsArgument = new MessageParameter();
maxVMsArgument.setValue(String.valueOf(maxVM));
maxVMsArgument.setEncoding(charset);
maxVMsArgument.setName("max_vm");
parameters.add(maxVMsArgument);
invokationMessage.setParameters(parameters); invokationMessage.setParameters(parameters);
invokationMessage.setCreationDate((System.currentTimeMillis())); invokationMessage.setCreationDate((System.currentTimeMillis()));
......
...@@ -65,7 +65,7 @@ public class PlannerController0 { ...@@ -65,7 +65,7 @@ public class PlannerController0 {
String yaml = plan0.file; String yaml = plan0.file;
yaml = yaml.replaceAll("\\\\n", "\n"); yaml = yaml.replaceAll("\\\\n", "\n");
String id = toscaService.saveYamlString(yaml, null); String id = toscaService.saveYamlString(yaml, null);
nl.uva.sne.drip.drip.commons.data.v1.external.PlanResponse plan1 = plannerService.getPlan(id, null); nl.uva.sne.drip.drip.commons.data.v1.external.PlanResponse plan1 = plannerService.getPlan(id, null,-1);
Result r = new Result(); Result r = new Result();
r.info = ("INFO"); r.info = ("INFO");
r.status = ("Success"); r.status = ("Success");
......
...@@ -79,16 +79,18 @@ public class PlannerController { ...@@ -79,16 +79,18 @@ public class PlannerController {
* *
* @param toscaId. The id of the TOSCA description * @param toscaId. The id of the TOSCA description
* @param preferredProvider * @param preferredProvider
* @param maxVm
* @return the id of the created plan * @return the id of the created plan
*/ */
@RequestMapping(value = "/plan/{tosca_id}", method = RequestMethod.GET, params = {"preferred_provider"}) @RequestMapping(value = "/plan/{tosca_id}", method = RequestMethod.GET, params = {"preferred_provider", "max_vm"})
@RolesAllowed({UserService.USER, UserService.ADMIN}) @RolesAllowed({UserService.USER, UserService.ADMIN})
public @ResponseBody public @ResponseBody
String plan(@PathVariable("tosca_id") String toscaId, String plan(@PathVariable("tosca_id") String toscaId,
@RequestParam(value = "preferred_provider", required = false) String preferredProvider) { @RequestParam(value = "preferred_provider", required = false) String preferredProvider,
@RequestParam(value = "max_vm", required = false) int maxVm) {
try { try {
PlanResponse plan = plannerService.getPlan(toscaId, preferredProvider); PlanResponse plan = plannerService.getPlan(toscaId, preferredProvider, maxVm);
if (plan == null) { if (plan == null) {
throw new NotFoundException("Could not make plan"); throw new NotFoundException("Could not make plan");
} }
......
...@@ -270,4 +270,20 @@ public class Converter { ...@@ -270,4 +270,20 @@ public class Converter {
return msg; return msg;
} }
public static Number castToNumber(Object value) {
if (value instanceof Number) {
return (Number) value;
}
if (value instanceof String) {
Pattern p = Pattern.compile("-?\\d+");
Matcher m = p.matcher((CharSequence) value);
while (m.find()) {
return Integer.valueOf(m.group());
}
}
return null;
}
} }
...@@ -112,15 +112,10 @@ public class P2PConverter { ...@@ -112,15 +112,10 @@ public class P2PConverter {
private static int analyzeRequirements(Map<String, String> map) { private static int analyzeRequirements(Map<String, String> map) {
int size = 5; int size = 5;
String memSizeGB = map.get("mem_size");
Pattern p = Pattern.compile("-?\\d+");
Matcher m = p.matcher(memSizeGB);
int memSize = 0;
while (m.find()) {
memSize = Integer.valueOf(m.group());
}
if (Integer.valueOf(map.get("num_cpus")) >= 16 && memSize >= 32) { Number memSize = Converter.castToNumber(map.get("mem_size"));
Number num_cpus = Converter.castToNumber(map.get("num_cpus"));
if (num_cpus.intValue() >= 16 && memSize.intValue() >= 32) {
size = 10; size = 10;
} }
return size; return size;
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
from toscaparser import * from toscaparser import *
from toscaparser.tosca_template import ToscaTemplate from toscaparser.tosca_template import ToscaTemplate
import toscaparser.utils.yamlparser import toscaparser.utils.yamlparser
import re
import operator
class DumpPlanner: class DumpPlanner:
...@@ -39,7 +41,10 @@ class DumpPlanner: ...@@ -39,7 +41,10 @@ class DumpPlanner:
return self.yaml_dict_tpl['topology_template']['node_templates'] return self.yaml_dict_tpl['topology_template']['node_templates']
def get_network_templates(self): def get_network_templates(self):
return self.yaml_dict_tpl['topology_template']['network_templates'] if 'network_templates' in self.yaml_dict_tpl:
return self.yaml_dict_tpl['topology_template']['network_templates']
else:
return None
def get_artifacts(self, node): def get_artifacts(self, node):
if 'artifacts' in node: if 'artifacts' in node:
...@@ -64,11 +69,42 @@ class DumpPlanner: ...@@ -64,11 +69,42 @@ class DumpPlanner:
if 'properties' in node: if 'properties' in node:
return node['properties'] return node['properties']
def plan(self): def cast_to_int(self,value):
if isinstance(value, int):
return value
if isinstance(value, str):
return int(re.findall("\d+", value)[0])
def sort_vms(self,vms,max_vms):
sorted_vms = []
vms_dict = {}
for vm in vms:
score = 0
score += self.cast_to_int(vm['host']['cpu_frequency'])
score += self.cast_to_int(vm['host']['mem_size'])
score += self.cast_to_int(vm['host']['num_cpus'])
score += self.cast_to_int(vm['host']['disk_size'])
vms_dict[vm['name']] = score
sorted_vms_dict = sorted(vms_dict.items(), key=operator.itemgetter(1),reverse=True)
counter = 0
for sorted_vm in sorted_vms_dict:
if counter >= max_vms:
break
for vm in vms:
if sorted_vm[0] == vm['name']:
counter+=1
sorted_vms.append(vm)
break
return sorted_vms
def plan(self,max_vms):
network_templates = self.get_network_templates() network_templates = self.get_network_templates()
vms = [] vms = []
if network_templates and network_templates['network'] and network_templates['network']['multicast'] == True: if network_templates and network_templates['network'] and network_templates['network']['multicast'] == True:
vm = {} vm = {}
vm['name'] = 'id'
vm['type'] = self.COMPUTE_TYPE vm['type'] = self.COMPUTE_TYPE
host = {} host = {}
host['cpu_frequency'] = '2.6GHz' host['cpu_frequency'] = '2.6GHz'
...@@ -84,7 +120,8 @@ class DumpPlanner: ...@@ -84,7 +120,8 @@ class DumpPlanner:
vm['os'] = os vm['os'] = os
vm['scaling_mode'] = 'multiple' vm['scaling_mode'] = 'multiple'
vms.append(vm) vms.append(vm)
return vms return vms
node_templates = self.get_node_templates() node_templates = self.get_node_templates()
hosted_nodes = self.get_hosted_nodes(node_templates) hosted_nodes = self.get_hosted_nodes(node_templates)
...@@ -120,4 +157,8 @@ class DumpPlanner: ...@@ -120,4 +157,8 @@ class DumpPlanner:
else: else:
vm['scaling_mode'] = 'single' vm['scaling_mode'] = 'single'
vms.append(vm) vms.append(vm)
if max_vms > -1 and len(vms) > max_vms:
vms = self.sort_vms(vms,max_vms)
return vms return vms
...@@ -60,9 +60,20 @@ def handle_delivery(message): ...@@ -60,9 +60,20 @@ def handle_delivery(message):
parsed_json_message = json.loads(message) parsed_json_message = json.loads(message)
params = parsed_json_message["parameters"] params = parsed_json_message["parameters"]
owner = parsed_json_message['owner'] owner = parsed_json_message['owner']
param = params[0] tosca_value = {}
value = json.loads(param['value']) tosca_file_name = ''
tosca_file_name = param["name"] max_vms = -1
for param in params:
value = param['value']
name = param["name"]
if name == 'tosca_input':
tosca_value = json.loads(value)
tosca_file_name = name
if name == 'max_vm':
max_vms = int(value)
current_milli_time = lambda: int(round(time.time() * 1000)) current_milli_time = lambda: int(round(time.time() * 1000))
...@@ -78,7 +89,7 @@ def handle_delivery(message): ...@@ -78,7 +89,7 @@ def handle_delivery(message):
if not os.path.exists(tosca_file_path): if not os.path.exists(tosca_file_path):
os.makedirs(tosca_file_path) os.makedirs(tosca_file_path)
with open(tosca_file_path + "/" + tosca_file_name + ".yml", 'w') as outfile: with open(tosca_file_path + "/" + tosca_file_name + ".yml", 'w') as outfile:
outfile.write(json.dumps(value)) outfile.write(json.dumps(tosca_value))
response = {} response = {}
current_milli_time = lambda: int(round(time.time() * 1000)) current_milli_time = lambda: int(round(time.time() * 1000))
...@@ -86,7 +97,7 @@ def handle_delivery(message): ...@@ -86,7 +97,7 @@ def handle_delivery(message):
response["parameters"] = [] response["parameters"] = []
if queue_name == "planner_queue": if queue_name == "planner_queue":
planner = DumpPlanner(tosca_file_path + "/" + tosca_file_name + ".yml"); planner = DumpPlanner(tosca_file_path + "/" + tosca_file_name + ".yml");
vm_nodes = planner.plan() vm_nodes = planner.plan(max_vms)
for vm in vm_nodes: for vm in vm_nodes:
parameter = {} parameter = {}
parameter['value'] = str(json.dumps(vm)) parameter['value'] = str(json.dumps(vm))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment