Sha256: 2ad555e5b9d6745901d2b5406c30c9f328073189ecf8ff5c0209d6dff494b2d6

Contents?: true

Size: 519 Bytes

Versions: 4

Compression:

Stored size: 519 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, next_page_token = nil)
          api_method = @compute.snapshots.list
          project = @project if project.nil?
          parameters = {
            "project" => project,
            "pageToken" => next_page_token
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.5.5 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.5.4 lib/fog/compute/google/requests/list_snapshots.rb
fog-google-0.5.3 lib/fog/compute/google/requests/list_snapshots.rb