Sha256: 8647beb0f38c39332ca22dac45859053f1035a9a497280fe17ac5618d8b3d74d

Contents?: true

Size: 806 Bytes

Versions: 41

Compression:

Stored size: 806 Bytes

Contents

module Fog
  module Google
    class Pubsub
      class Real
        # Gets a list of all topics for a given project.
        #
        # @param_name project [#to_s] Project path to list topics 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_topics(project = nil)
          if project.nil?
            project = "projects/#{@project}"
          else
            project = project.to_s
          end

          @pubsub.list_topics(project)
        end
      end

      class Mock
        def list_topics(_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_topics.rb
fog-google-1.24.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.23.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.22.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.21.1 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.21.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.20.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.19.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.18.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.17.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.16.1 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.16.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.15.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.14.0 lib/fog/google/requests/pubsub/list_topics.rb
gitlab-fog-google-1.14.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.13.0 lib/fog/google/requests/pubsub/list_topics.rb
gitlab-fog-google-1.13.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.12.1 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.12.0 lib/fog/google/requests/pubsub/list_topics.rb
fog-google-1.11.0 lib/fog/google/requests/pubsub/list_topics.rb