Sha256: 34dc2b86c111546a41776af9557578927d9cb06663a63539d8074a170a31533c

Contents?: true

Size: 987 Bytes

Versions: 88

Compression:

Stored size: 987 Bytes

Contents

module Fog
  module Compute
    class Vsphere
      class Real
        def vm_reconfig_memory(options = {})
          raise ArgumentError, "memory is a required parameter" unless options.has_key? 'memory'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          hardware_spec={'memoryMB' => options['memory']}
          vm_reconfig_hardware('instance_uuid' => options['instance_uuid'], 'hardware_spec' => hardware_spec )
        end
      end

      class Mock
        def vm_reconfig_memory(options = {})
          raise ArgumentError, "memory is a required parameter" unless options.has_key? 'memory'
          raise ArgumentError, "instance_uuid is a required parameter" unless options.has_key? 'instance_uuid'
          hardware_spec={'memoryMB' => options['memory']}
          vm_reconfig_hardware('instance_uuid' => options['instance_uuid'], 'hardware_spec' => hardware_spec )
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 16 rubygems

Version Path
michiels-fog-1.3.1 lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
fog-1.3.1 lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
fog-1.3.0 lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
fog-1.2.0 lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb
ktheory-fog-1.1.2 lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb