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