Sha256: 34f28e47fdb64cbc738bb2d5932abde6bec6a6157b93d0ab33ae21023df85bd7

Contents?: true

Size: 442 Bytes

Versions: 20

Compression:

Stored size: 442 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def attach_disk(_instance, _zone, _disk = {})
          Fog::Mock.not_implemented
        end
      end

      class Real
        def attach_disk(instance, zone, disk = {})
          @compute.attach_disk(
            @project, zone.split("/")[-1], instance,
            ::Google::Apis::ComputeV1::AttachedDisk.new(disk)
          )
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-google-1.9.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.9.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.8.2 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.8.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.8.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.7.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.7.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.6.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.5.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.4.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.3.3 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.3.2 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.3.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.3.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.2.2 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.2.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.2.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.1.0 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.0.1 lib/fog/compute/google/requests/attach_disk.rb
fog-google-1.0.0 lib/fog/compute/google/requests/attach_disk.rb