Sha256: 869b2b547b0934e1e09cc2adb563ad22fe087b8a9b0409ec37733e573e75e5ba

Contents?: true

Size: 452 Bytes

Versions: 10

Compression:

Stored size: 452 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_snapshots
          Fog::Mock.not_implemented
        end
      end

      class Real
        def list_snapshots(project = nil)
          api_method = @compute.snapshots.list
          project = @project if project.nil?
          parameters = {
            "project" => project
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-google-0.5.2 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.5.1 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.5.0 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.4.2 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.4.1 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.4.0 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.3.2 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.3.1 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.3.0 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.2.0 lib/fog/compute/google/requests/list_snapshots.rb