Sha256: fbaf52388fa30d2c16802963953faab412f0d533f7d445eda01a11b13fa64c1a

Contents?: true

Size: 896 Bytes

Versions: 25

Compression:

Stored size: 896 Bytes

Contents

module Fog
  module Compute
    class Linode
      class Real
        def linode_disk_update(linode_id, disk_id, label, isreadonly)
          request(
            :expects  => 200,
            :method   => 'GET',
            :query    => {
              :api_action => 'linode.disk.update',
              :linodeId => linode_id,
              :diskId => disk_id,
              :label => label,
              :isReadOnly => isreadonly
            }
          )
        end
      end

      class Mock
        def linode_disk_update(linode_id, disk_id, label, isreadonly)
          response = Excon::Response.new
          response.status = 200
          response.body = {
            "ERRORARRAY" => [],
            "ACTION"     => "linode.disk.update",
            "DATA"       => { "DiskID" => Fog::Mock.random_numbers(5) }
          }
          response
        end
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 4 rubygems

Version Path
fog-2.3.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-ifeel-2.2.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-2.2.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-2.1.0 lib/fog/linode/requests/compute/linode_disk_update.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/linode/requests/compute/linode_disk_update.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/linode/requests/compute/linode_disk_update.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.42.1 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-2.0.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.42.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.41.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.40.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.39.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.38.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.37.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.36.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.35.0 lib/fog/linode/requests/compute/linode_disk_update.rb
fog-2.0.0.pre.0 lib/fog/linode/requests/compute/linode_disk_update.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/linode/requests/compute/linode_disk_update.rb
fog-1.34.0 lib/fog/linode/requests/compute/linode_disk_update.rb