Sha256: 6390ba5d8a5a37a8e7e95fc0d82a6324b97bb82442a32d3c00ad8f143e2ae853

Contents?: true

Size: 506 Bytes

Versions: 41

Compression:

Stored size: 506 Bytes

Contents

module Fog
  module Google
    class Pubsub
      class Real
        # Retrieves a resource describing a topic.
        #
        # @param topic_name [#to_s] name of topic to retrieve
        # @see https://cloud.google.com/pubsub/reference/rest/v1/projects.topics/get
        def get_topic(topic_name)
          @pubsub.get_topic(topic_name)
        end
      end

      class Mock
        def get_topic(_topic_name)
          raise Fog::Errors::MockNotImplemented
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
fog-google-1.10.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.9.1 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.9.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.8.2 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.8.1 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.8.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.7.1 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.7.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.6.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.5.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.4.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.3.3 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.3.2 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.3.1 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.3.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.2.2 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.2.1 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.2.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.1.0 lib/fog/google/requests/pubsub/get_topic.rb
fog-google-1.0.1 lib/fog/google/requests/pubsub/get_topic.rb