Sha256: 15ee21607a608fbeed2599a77cb3b6ea34e559df77b88ab2d31293e37661e9a4

Contents?: true

Size: 550 Bytes

Versions: 14

Compression:

Stored size: 550 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def get_snapshot(_snap_name)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def get_snapshot(snap_name, project = @project)
          raise ArgumentError.new "snap_name must not be nil." if snap_name.nil?

          api_method = @compute.snapshots.get
          parameters = {
            "snapshot" => snap_name,
            "project"  => project
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.5 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.4 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.3 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.2 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.1 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.5.0 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.4.2 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.4.1 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.4.0 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.3.2 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.3.1 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.3.0 lib/fog/compute/google/requests/get_snapshot.rb
fog-google-0.2.0 lib/fog/compute/google/requests/get_snapshot.rb