Sha256: 7281bfd87a54276939b21e48ca9a9e0234c27730bc28a1e48c8c38b3fa4b15d2

Contents?: true

Size: 841 Bytes

Versions: 41

Compression:

Stored size: 841 Bytes

Contents

module Fog
  module Google
    class Pubsub
      class Real
        # Gets a list of all subscriptions for a given project.
        #
        # @param_name project [#to_s] Project path to list subscriptions under;
        #   must be a project url prefix (e.g. 'projects/my-project'). If nil,
        #   the project configured on the client is used.
        # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/list
        def list_subscriptions(project = nil)
          if project.nil?
            project = "projects/#{@project}"
          else
            project = project.to_s
          end

          @pubsub.list_subscriptions(project)
        end
      end

      class Mock
        def list_subscriptions(_project = nil)
          raise Fog::Errors::MockNotImplemented
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.24.1 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.24.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.23.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.22.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.21.1 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.21.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.20.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.19.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.18.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.17.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.16.1 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.16.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.15.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.14.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
gitlab-fog-google-1.14.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.13.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
gitlab-fog-google-1.13.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.12.1 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.12.0 lib/fog/google/requests/pubsub/list_subscriptions.rb
fog-google-1.11.0 lib/fog/google/requests/pubsub/list_subscriptions.rb