Class: Instance
- Inherits:
-
Object
- Object
- Instance
- Extended by:
- RightScale::Api::BaseExtend, RightScale::Api::TaggableExtend
- Includes:
- RightScale::Api::Base, RightScale::Api::Taggable
- Defined in:
- lib/rest_connection/rightscale/instance.rb
Overview
Requires instance token for authentication
Instance Attribute Summary
Attributes included from RightScale::Api::Base
Instance Method Summary collapse
-
#attach_ebs_volume(params) ⇒ Object
def create_ebs_volume_from_snap(snap_aws_id) connection.post(‘create_ebs_volume.js’, :aws_id => snap_aws_id ) end.
- #create_ebs_snapshot(params) ⇒ Object
- #create_ebs_volume(params) ⇒ Object
- #delete_ebs_volume(params) ⇒ Object
- #detach_ebs_volume(params) ⇒ Object
Methods included from RightScale::Api::BaseExtend
[], create, deny_methods, filters, find, find_all, find_by, find_by_cloud_id, find_by_id, find_by_nickname, find_by_nickname_speed, find_with_filter, resource_plural_name, resource_singular_name
Methods included from RightScale::Api::BaseConnection
Methods included from RightScale::Api::TaggableExtend
Methods included from RightScale::Api::Taggable
#add_tags, #clear_tags, #get_info_tags, #get_tags_by_namespace, #remove_info_tags, #remove_tags, #remove_tags_by_namespace, #set_info_tags, #set_tags_by_namespace, #set_tags_to, #tags
Methods included from RightScale::Api::Base
#[], #[]=, #destroy, #initialize, #method_missing, #reload, #resource_plural_name, #resource_singular_name, #rs_id, #save
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RightScale::Api::Base
Instance Method Details
#attach_ebs_volume(params) ⇒ Object
def create_ebs_volume_from_snap(snap_aws_id)
connection.post('create_ebs_volume.js', :aws_id => snap_aws_id )
end
38 39 40 |
# File 'lib/rest_connection/rightscale/instance.rb', line 38 def attach_ebs_volume(params) connection.put('attach_ebs_volume.js', params) end |
#create_ebs_snapshot(params) ⇒ Object
42 43 44 |
# File 'lib/rest_connection/rightscale/instance.rb', line 42 def create_ebs_snapshot(params) connection.post('create_ebs_snapshot.js', params) end |
#create_ebs_volume(params) ⇒ Object
54 55 56 |
# File 'lib/rest_connection/rightscale/instance.rb', line 54 def create_ebs_volume(params) connection.post('create_ebs_volume.js', params) end |
#delete_ebs_volume(params) ⇒ Object
50 51 52 |
# File 'lib/rest_connection/rightscale/instance.rb', line 50 def delete_ebs_volume(params) connection.delete('delete_ebs_volume.js', params) end |
#detach_ebs_volume(params) ⇒ Object
46 47 48 |
# File 'lib/rest_connection/rightscale/instance.rb', line 46 def detach_ebs_volume(params) connection.put('detach_ebs_volume.js', params) end |