PSTopic

gcp4zio.pubsub.topic.PSTopic
See thePSTopic companion trait
object PSTopic

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
PSTopic.type

Members list

Value members

Concrete methods

def addIAMPolicyBindingToTopic(project: String, topic: String, member: String, role: String): ZIO[PSTopic, Throwable, Policy]

Value parameters

member

serviceAccount or userAccount name

project

GCP Project ID

role

role which needs to be assigned

topic

The name of topic for policy update

Attributes

Returns

Updated IAM policy

def createTopic(project: String, topic: String): ZIO[PSTopic, Throwable, Topic]

Value parameters

project

GCP Project ID

topic

The name of the topic to be created

Attributes

def deleteTopic(project: String, topic: String): ZIO[PSTopic, Throwable, Unit]

Value parameters

project

GCP Project ID

topic

The name of the topic to be deleted

Attributes

def live(path: Option[String]): TaskLayer[PSTopic]

Value parameters

path

Optional path to google service account credential file

Attributes

Returns

PSTopic

Concrete fields

val test: TaskLayer[PSTopic]

Test layer

Test layer

Attributes

Returns

PSTopic