Class: Fog::Compute::Joyent

Inherits:
Service
  • Object
show all
Defined in:
lib/fog/joyent/errors.rb,
lib/fog/joyent/compute.rb,
lib/fog/joyent/models/compute/key.rb,
lib/fog/joyent/models/compute/keys.rb,
lib/fog/joyent/models/compute/image.rb,
lib/fog/joyent/models/compute/flavor.rb,
lib/fog/joyent/models/compute/images.rb,
lib/fog/joyent/models/compute/server.rb,
lib/fog/joyent/models/compute/flavors.rb,
lib/fog/joyent/models/compute/servers.rb,
lib/fog/joyent/models/compute/snapshot.rb,
lib/fog/joyent/models/compute/snapshots.rb,
lib/fog/joyent/requests/compute/get_key.rb,
lib/fog/joyent/requests/compute/list_keys.rb,
lib/fog/joyent/requests/compute/create_key.rb,
lib/fog/joyent/requests/compute/delete_key.rb,
lib/fog/joyent/requests/compute/get_dataset.rb,
lib/fog/joyent/requests/compute/get_machine.rb,
lib/fog/joyent/requests/compute/get_package.rb,
lib/fog/joyent/requests/compute/stop_machine.rb,
lib/fog/joyent/requests/compute/list_datasets.rb,
lib/fog/joyent/requests/compute/list_machines.rb,
lib/fog/joyent/requests/compute/list_packages.rb,
lib/fog/joyent/requests/compute/start_machine.rb,
lib/fog/joyent/requests/compute/create_machine.rb,
lib/fog/joyent/requests/compute/delete_machine.rb,
lib/fog/joyent/requests/compute/reboot_machine.rb,
lib/fog/joyent/requests/compute/resize_machine.rb,
lib/fog/joyent/requests/compute/get_machine_tag.rb,
lib/fog/joyent/requests/compute/add_machine_tags.rb,
lib/fog/joyent/requests/compute/list_datacenters.rb,
lib/fog/joyent/requests/compute/list_machine_tags.rb,
lib/fog/joyent/requests/compute/delete_machine_tag.rb,
lib/fog/joyent/requests/compute/get_machine_metadata.rb,
lib/fog/joyent/requests/compute/get_machine_snapshot.rb,
lib/fog/joyent/requests/compute/list_machine_snapshots.rb,
lib/fog/joyent/requests/compute/create_machine_snapshot.rb,
lib/fog/joyent/requests/compute/delete_all_machine_tags.rb,
lib/fog/joyent/requests/compute/delete_machine_metadata.rb,
lib/fog/joyent/requests/compute/delete_machine_snapshot.rb,
lib/fog/joyent/requests/compute/update_machine_metadata.rb,
lib/fog/joyent/requests/compute/delete_all_machine_metadata.rb,
lib/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/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