DataSync
interface DataSync
Entry point for the DataSync API, reached via pubnub.dataSync().
Functions
Link copied to clipboard
Create a DataSync channel.
Link copied to clipboard
Create a DataSync entity.
Link copied to clipboard
abstract fun createMembership(channelId: String, userId: String, classVersion: Int): CreateMembership
Create a DataSync membership linking a Channel and a User.
Link copied to clipboard
abstract fun createRelationship(entityAId: String, entityBId: String, className: String, classVersion: Int): CreateRelationship
Create a DataSync relationship linking two entities.
Link copied to clipboard
Create a DataSync user.
Link copied to clipboard
Get a DataSync channel by its id.
Link copied to clipboard
List DataSync channels.
Link copied to clipboard
List DataSync entities of a class.
Link copied to clipboard
Get a DataSync membership by its id.
Link copied to clipboard
List DataSync memberships, optionally filtered by channel and/or user.
Link copied to clipboard
Get a DataSync relationship by its id.
Link copied to clipboard
List DataSync relationships of a class, optionally filtered by entity A and/or entity B.
Link copied to clipboard
Remove a DataSync channel by its id.
Link copied to clipboard
Remove a DataSync entity by its id.
Link copied to clipboard
Remove a DataSync membership by its id.
Link copied to clipboard
Remove a DataSync relationship by its id.
Link copied to clipboard
Remove a DataSync user by its id.
Link copied to clipboard
Replaces a channel in full.
Link copied to clipboard
Replaces a membership in full.
Link copied to clipboard
Replaces a relationship in full.
Link copied to clipboard
abstract fun updateChannel(channelId: String, operations: List<PNJsonPatchOperation>): UpdateChannel
Partially update a DataSync channel via JSON Patch (RFC-6902).
Link copied to clipboard
Partially update a DataSync entity via JSON Patch (RFC-6902).
Link copied to clipboard
abstract fun updateMembership(membershipId: String, operations: List<PNJsonPatchOperation>): UpdateMembership
Partially update a DataSync membership via JSON Patch (RFC-6902).
Link copied to clipboard
abstract fun updateRelationship(relationshipId: String, operations: List<PNJsonPatchOperation>): UpdateRelationship
Partially update a DataSync relationship via JSON Patch (RFC-6902).
Link copied to clipboard
Partially update a DataSync user via JSON Patch (RFC-6902).