com.granturing.spark.powerbi

Client

class Client extends Logging

A very basic PowerBI client using the Scala Dispatch HTTP library. Requires that an app be registered in your Azure Active Directory to allow access to your PowerBI service.

See also

com.granturing.spark.powerbi.ClientConf

Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Client
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Client(conf: ClientConf, initialToken: Option[String] = scala.None)

    conf

    a client configuration

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addRows(dataset: String, table: String, rows: Seq[_], group: Option[String] = None): Future[Unit]

    Adds a collection of rows to the specified dataset and table.

    Adds a collection of rows to the specified dataset and table. If the dataset or table do not exist an error will be returned.

    dataset

    a dataset GUID

    table

    a table name within the dataset

    rows

    a sequence of JSON serializable objects with property names matching the schema

    group

    optional id of group

    returns

    a success or failure result

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clearTable(dataset: String, table: String, group: Option[String] = None): Future[Unit]

    Clears all rows in the specified table.

    Clears all rows in the specified table.

    dataset

    a dataset GUID

    table

    a table name within the dataset

    group

    optional id of group

    returns

    a success or failure result

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def createDataset(schema: Schema, group: Option[String] = None, retentionPolicy: EnumVal = RetentionPolicy.None): Future[Dataset]

    Creates a new dataset with the specified schema

    Creates a new dataset with the specified schema

    schema

    a schema for the new dataset

    group

    optional id of group

    retentionPolicy

    data retention policy to use for dataset

    returns

    a dataset object for the newly created dataset

    See also

    com.granturing.spark.powerbi.Dataset

    com.granturing.spark.powerbi.Schema

  11. def currentToken: String

    Gets the current OAuth token being used for authentication.

    Gets the current OAuth token being used for authentication.

    returns

    an OAuth authorization token

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getDatasets(group: Option[String] = None): Future[List[Dataset]]

    Gets a list of datasets for the current account.

    Gets a list of datasets for the current account.

    group

    optional id of group

    returns

    a list of datasets

    See also

    com.granturing.spark.powerbi.Dataset

  17. def getGroups: Future[List[Group]]

  18. def getTables(dataset: String, group: Option[String] = None): Future[Seq[String]]

    Gets a list of tables for the specified dataset.

    Gets a list of tables for the specified dataset.

    dataset

    a dataset GUID

    group

    optional id of group

    returns

    a list of tables

  19. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  22. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  23. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  24. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  27. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  30. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  37. def shutdown(): Unit

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  39. def toString(): String

    Definition Classes
    AnyRef → Any
  40. def updateTableSchema(dataset: String, table: String, schema: Table, group: Option[String] = None): Future[Unit]

    Updates the schema of an existing table

    Updates the schema of an existing table

    dataset

    a dataset GUID

    table

    the table name which to update

    group

    optional id of group

    returns

    a success or failure result

  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped