Class: Fog::Compute::Joyent
- Defined in:
- lib/rackspace-fog/joyent/errors.rb,
lib/rackspace-fog/joyent/compute.rb,
lib/rackspace-fog/joyent/models/compute/key.rb,
lib/rackspace-fog/joyent/models/compute/keys.rb,
lib/rackspace-fog/joyent/models/compute/image.rb,
lib/rackspace-fog/joyent/models/compute/flavor.rb,
lib/rackspace-fog/joyent/models/compute/images.rb,
lib/rackspace-fog/joyent/models/compute/server.rb,
lib/rackspace-fog/joyent/models/compute/flavors.rb,
lib/rackspace-fog/joyent/models/compute/servers.rb,
lib/rackspace-fog/joyent/models/compute/snapshot.rb,
lib/rackspace-fog/joyent/models/compute/snapshots.rb,
lib/rackspace-fog/joyent/requests/compute/get_key.rb,
lib/rackspace-fog/joyent/requests/compute/list_keys.rb,
lib/rackspace-fog/joyent/requests/compute/create_key.rb,
lib/rackspace-fog/joyent/requests/compute/delete_key.rb,
lib/rackspace-fog/joyent/requests/compute/get_dataset.rb,
lib/rackspace-fog/joyent/requests/compute/get_machine.rb,
lib/rackspace-fog/joyent/requests/compute/get_package.rb,
lib/rackspace-fog/joyent/requests/compute/stop_machine.rb,
lib/rackspace-fog/joyent/requests/compute/list_datasets.rb,
lib/rackspace-fog/joyent/requests/compute/list_machines.rb,
lib/rackspace-fog/joyent/requests/compute/list_packages.rb,
lib/rackspace-fog/joyent/requests/compute/start_machine.rb,
lib/rackspace-fog/joyent/requests/compute/create_machine.rb,
lib/rackspace-fog/joyent/requests/compute/delete_machine.rb,
lib/rackspace-fog/joyent/requests/compute/reboot_machine.rb,
lib/rackspace-fog/joyent/requests/compute/resize_machine.rb,
lib/rackspace-fog/joyent/requests/compute/get_machine_tag.rb,
lib/rackspace-fog/joyent/requests/compute/add_machine_tags.rb,
lib/rackspace-fog/joyent/requests/compute/list_datacenters.rb,
lib/rackspace-fog/joyent/requests/compute/list_machine_tags.rb,
lib/rackspace-fog/joyent/requests/compute/delete_machine_tag.rb,
lib/rackspace-fog/joyent/requests/compute/get_machine_metadata.rb,
lib/rackspace-fog/joyent/requests/compute/get_machine_snapshot.rb,
lib/rackspace-fog/joyent/requests/compute/list_machine_snapshots.rb,
lib/rackspace-fog/joyent/requests/compute/create_machine_snapshot.rb,
lib/rackspace-fog/joyent/requests/compute/delete_all_machine_tags.rb,
lib/rackspace-fog/joyent/requests/compute/delete_machine_metadata.rb,
lib/rackspace-fog/joyent/requests/compute/delete_machine_snapshot.rb,
lib/rackspace-fog/joyent/requests/compute/update_machine_metadata.rb,
lib/rackspace-fog/joyent/requests/compute/delete_all_machine_metadata.rb,
lib/rackspace-fog/joyent/requests/compute/start_machine_from_snapshot.rb
Defined Under Namespace
Classes: Errors, Flavor, Flavors, Image, Images, Key, Keys, Mock, Real, Server, Servers, Snapshot, Snapshots
Instance Method Summary collapse
Methods inherited from Service
coerce_options, collection, collections, fetch_credentials, inherited, mocked_requests, model, model_path, models, new, recognized, recognizes, request, request_path, requests, requirements, requires, secrets, setup_requirements, validate_options
Instance Method Details
#resize_machine(id, package) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rackspace-fog/joyent/requests/compute/resize_machine.rb', line 4 def resize_machine(id, package) request( :method => "POST", :path => "/my/machines/#{id}", :query => {"action" => "resize", "package" => package} ) end |