Sha256: beb32f57fb987d050b995c33e3730cf0157fc5ac8b1a65589a8b8e8d7e8b8927

Contents?: true

Size: 792 Bytes

Versions: 7

Compression:

Stored size: 792 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_disks(_zone_name, _opts = {})
          # :no-coverage:
          Fog::Mock.not_implemented
          # :no-coverage:
        end
      end

      class Real
        # List disk resources in the specified zone
        # https://cloud.google.com/compute/docs/reference/latest/disks/list
        #
        # @param zone_name [String] Zone to list disks from
        def list_disks(zone_name, filter: nil, max_results: nil,
                       order_by: nil, page_token: nil)
          @compute.list_disks(
            @project, zone_name,
            :filter => filter, :max_results => max_results,
            :order_by => order_by, :page_token => page_token
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gitlab-fog-google-1.14.0 lib/fog/compute/google/requests/list_disks.rb
fog-google-1.13.0 lib/fog/compute/google/requests/list_disks.rb
gitlab-fog-google-1.13.0 lib/fog/compute/google/requests/list_disks.rb
fog-google-1.12.1 lib/fog/compute/google/requests/list_disks.rb
fog-google-1.12.0 lib/fog/compute/google/requests/list_disks.rb
fog-google-1.11.0 lib/fog/compute/google/requests/list_disks.rb
fog-google-1.10.0 lib/fog/compute/google/requests/list_disks.rb