rest_connection 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. data/LICENSE +22 -0
  2. data/VERSION +1 -1
  3. data/examples/console.rb +23 -0
  4. data/examples/cucumber/step_definitions/deployment_steps.rb +23 -0
  5. data/examples/cucumber/step_definitions/mysql_steps.rb +23 -0
  6. data/examples/cucumber/step_definitions/recipe_steps.rb +23 -0
  7. data/examples/cucumber/step_definitions/spot_check_steps.rb +23 -0
  8. data/examples/relaunch_deployment.rb +24 -0
  9. data/examples/right_scale_ec2_instances_api_test.rb +23 -0
  10. data/lib/rest_connection.rb +19 -11
  11. data/lib/rest_connection/patches.rb +23 -0
  12. data/lib/rest_connection/rightscale/account.rb +19 -11
  13. data/lib/rest_connection/rightscale/alert_spec.rb +20 -12
  14. data/lib/rest_connection/rightscale/alert_spec_subject.rb +20 -12
  15. data/lib/rest_connection/rightscale/audit_entry.rb +21 -12
  16. data/lib/rest_connection/rightscale/backup.rb +19 -11
  17. data/lib/rest_connection/rightscale/child_account.rb +19 -11
  18. data/lib/rest_connection/rightscale/cloud.rb +19 -11
  19. data/lib/rest_connection/rightscale/cloud_account.rb +19 -11
  20. data/lib/rest_connection/rightscale/credential.rb +19 -12
  21. data/lib/rest_connection/rightscale/deployment.rb +19 -11
  22. data/lib/rest_connection/rightscale/ec2_ebs_snapshot.rb +19 -12
  23. data/lib/rest_connection/rightscale/ec2_ebs_volume.rb +19 -12
  24. data/lib/rest_connection/rightscale/ec2_elastic_ip.rb +19 -12
  25. data/lib/rest_connection/rightscale/ec2_security_group.rb +19 -11
  26. data/lib/rest_connection/rightscale/ec2_server_array.rb +19 -11
  27. data/lib/rest_connection/rightscale/ec2_server_array_internal.rb +19 -11
  28. data/lib/rest_connection/rightscale/ec2_ssh_key.rb +19 -11
  29. data/lib/rest_connection/rightscale/ec2_ssh_key_internal.rb +19 -11
  30. data/lib/rest_connection/rightscale/executable.rb +23 -0
  31. data/lib/rest_connection/rightscale/instance.rb +19 -11
  32. data/lib/rest_connection/rightscale/instance_type.rb +19 -11
  33. data/lib/rest_connection/rightscale/macro.rb +20 -12
  34. data/lib/rest_connection/rightscale/mc_audit_entry.rb +19 -11
  35. data/lib/rest_connection/rightscale/mc_datacenter.rb +19 -11
  36. data/lib/rest_connection/rightscale/mc_deployment.rb +19 -11
  37. data/lib/rest_connection/rightscale/mc_image.rb +19 -11
  38. data/lib/rest_connection/rightscale/mc_instance.rb +19 -11
  39. data/lib/rest_connection/rightscale/mc_instance_type.rb +19 -11
  40. data/lib/rest_connection/rightscale/mc_multi_cloud_image.rb +19 -11
  41. data/lib/rest_connection/rightscale/mc_multi_cloud_image_setting.rb +19 -11
  42. data/lib/rest_connection/rightscale/mc_security_group.rb +19 -11
  43. data/lib/rest_connection/rightscale/mc_server.rb +22 -14
  44. data/lib/rest_connection/rightscale/mc_server_array.rb +19 -11
  45. data/lib/rest_connection/rightscale/mc_server_template.rb +19 -11
  46. data/lib/rest_connection/rightscale/mc_server_template_multi_cloud_image.rb +19 -11
  47. data/lib/rest_connection/rightscale/mc_ssh_key.rb +19 -11
  48. data/lib/rest_connection/rightscale/mc_tag.rb +19 -11
  49. data/lib/rest_connection/rightscale/mc_volume.rb +19 -11
  50. data/lib/rest_connection/rightscale/mc_volume_attachment.rb +19 -11
  51. data/lib/rest_connection/rightscale/mc_volume_snapshot.rb +19 -11
  52. data/lib/rest_connection/rightscale/mc_volume_type.rb +19 -11
  53. data/lib/rest_connection/rightscale/monitoring_metric.rb +19 -11
  54. data/lib/rest_connection/rightscale/multi_cloud_image.rb +19 -11
  55. data/lib/rest_connection/rightscale/multi_cloud_image_cloud_setting_internal.rb +19 -11
  56. data/lib/rest_connection/rightscale/multi_cloud_image_internal.rb +19 -11
  57. data/lib/rest_connection/rightscale/permission.rb +19 -11
  58. data/lib/rest_connection/rightscale/right_script.rb +19 -11
  59. data/lib/rest_connection/rightscale/right_script_attachment_internal.rb +19 -11
  60. data/lib/rest_connection/rightscale/right_script_internal.rb +19 -11
  61. data/lib/rest_connection/rightscale/rightscale_api_base.rb +19 -11
  62. data/lib/rest_connection/rightscale/rightscale_api_gateway.rb +23 -0
  63. data/lib/rest_connection/rightscale/rightscale_api_internal.rb +23 -0
  64. data/lib/rest_connection/rightscale/rightscale_api_mc_input.rb +19 -11
  65. data/lib/rest_connection/rightscale/rightscale_api_mc_taggable.rb +19 -11
  66. data/lib/rest_connection/rightscale/rightscale_api_resources.rb +19 -12
  67. data/lib/rest_connection/rightscale/rightscale_api_taggable.rb +19 -11
  68. data/lib/rest_connection/rightscale/rs_internal.rb +19 -11
  69. data/lib/rest_connection/rightscale/s3_bucket.rb +20 -12
  70. data/lib/rest_connection/rightscale/security_group_rule.rb +19 -11
  71. data/lib/rest_connection/rightscale/server.rb +27 -17
  72. data/lib/rest_connection/rightscale/server_ec2_ebs_volume.rb +19 -12
  73. data/lib/rest_connection/rightscale/server_interface.rb +19 -11
  74. data/lib/rest_connection/rightscale/server_internal.rb +19 -11
  75. data/lib/rest_connection/rightscale/server_template.rb +19 -11
  76. data/lib/rest_connection/rightscale/server_template_internal.rb +19 -11
  77. data/lib/rest_connection/rightscale/session.rb +19 -11
  78. data/lib/rest_connection/rightscale/sqs_queue.rb +19 -12
  79. data/lib/rest_connection/rightscale/status.rb +20 -11
  80. data/lib/rest_connection/rightscale/tag.rb +19 -11
  81. data/lib/rest_connection/rightscale/task.rb +19 -11
  82. data/lib/rest_connection/rightscale/user.rb +19 -11
  83. data/lib/rest_connection/rightscale/vpc_dhcp_option.rb +19 -11
  84. data/lib/rest_connection/ssh_hax.rb +19 -12
  85. data/spec/ec2_server_array_spec.rb +23 -1
  86. data/spec/ec2_ssh_key_internal_spec.rb +23 -1
  87. data/spec/image_jockey.rb +23 -1
  88. data/spec/mcserver_spec.rb +23 -1
  89. data/spec/method_missing_spec.rb +23 -1
  90. data/spec/multi.rb +23 -1
  91. data/spec/right_script_internal.rb +23 -0
  92. data/spec/rs_internal_spec.rb +23 -1
  93. data/spec/runtests +9 -0
  94. data/spec/server_internal_spec.rb +23 -1
  95. data/spec/server_spec.rb +23 -1
  96. data/spec/server_template_internal.rb +23 -0
  97. data/spec/spec_helper.rb +23 -1
  98. data/spec/tag_spec.rb +0 -1
  99. metadata +7 -4
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  module RightScale
17
25
  module Api
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  #
17
25
  # You must have special API access to use these internal API calls.
@@ -1,18 +1,26 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
15
14
  #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
23
+
16
24
  class S3Bucket
17
25
  include RightScale::Api::Base
18
26
  extend RightScale::Api::BaseExtend
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  #
17
25
  # You must have Beta v1.5 API access to use these internal API calls.
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  class Server
17
25
  include RightScale::Api::Base
@@ -282,13 +290,14 @@ class Server
282
290
  end
283
291
 
284
292
  # takes Bool argument to wait for state change (insurance that we can detect a reboot happened)
285
- def reboot(wait_for_state = false)
293
+ # *timeout <~Integer> optional, how long to wait for the stopped state before declare failure (in seconds).
294
+ def reboot(wait_for_state = false, timeout = 60*7)
286
295
  reload
287
296
  old_state = self.state
288
297
  serv_href = URI.parse(self.href)
289
298
  connection.post(serv_href.path + "/reboot")
290
299
  if wait_for_state
291
- wait_for_state_change(old_state)
300
+ wait_for_state_change(old_state, timeout)
292
301
  end
293
302
  end
294
303
 
@@ -296,14 +305,15 @@ class Server
296
305
  # TODO
297
306
  end
298
307
 
299
- def relaunch
308
+ # *timeout <~Integer> optional, how long to wait for the stopped state before declare failure (in seconds).
309
+ def relaunch(timeout=1200)
300
310
  self.stop
301
- self.wait_for_state("stopped")
311
+ self.wait_for_state("stopped", timeout)
302
312
  self.start
303
313
  end
304
314
 
305
- def wait_for_state_change(old_state = nil)
306
- timeout = 60*7
315
+ # *timeout <~Integer> optional, how long to wait for the stopped state before declare failure (in seconds).
316
+ def wait_for_state_change(old_state = nil, timeout = 60*7)
307
317
  timer = 0
308
318
  while(timer < timeout)
309
319
  reload
@@ -1,18 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
15
14
  #
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
16
23
 
17
24
  class ServerEc2EbsVolume
18
25
  include RightScale::Api::Base
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  require 'rest_connection/ssh_hax'
17
25
 
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  #
17
25
  # You must have special API access to use these internal API calls.
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  class ServerTemplate
17
25
  include RightScale::Api::Base
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  class ServerTemplateInternal
17
25
  include RightScale::Api::Base
@@ -1,17 +1,25 @@
1
- # This file is part of RestConnection
1
+ #--
2
+ # Copyright (c) 2010-2012 RightScale Inc
2
3
  #
3
- # RestConnection is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
4
+ # Permission is hereby granted, free of charge, to any person obtaining
5
+ # a copy of this software and associated documentation files (the
6
+ # "Software"), to deal in the Software without restriction, including
7
+ # without limitation the rights to use, copy, modify, merge, publish,
8
+ # distribute, sublicense, and/or sell copies of the Software, and to
9
+ # permit persons to whom the Software is furnished to do so, subject to
10
+ # the following conditions:
7
11
  #
8
- # RestConnection is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
+ # The above copyright notice and this permission notice shall be
13
+ # included in all copies or substantial portions of the Software.
12
14
  #
13
- # You should have received a copy of the GNU General Public License
14
- # along with RestConnection. If not, see <http://www.gnu.org/licenses/>.
15
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ #++
15
23
 
16
24
  #
17
25
  # You must have Beta v1.5 API access to use these internal API calls.