- export_report_image - ExportPowerBIReportImage
- generate_embed_token - GeneratePowerBIEmbedToken
- get_dataset_preview - GetPowerBIDatasetPreview
- get_synced_items - GetSyncedPowerBIItems
- list - ListPowerBIDatasets
- list_reports - ListPowerBIReports
- list_workspaces - ListPowerBIWorkspaces
- sync_power_bi_items - SyncPowerBIItems
- test_connection - TestPowerBIConnection
- unsync_items - UnsyncPowerBIItems
ExportPowerBIReportImage
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.export_report_image()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
report_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceExportPowerBIReportImageResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GeneratePowerBIEmbedToken
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.generate_embed_token()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
report_id |
Optional[str] | ➖ | N/A |
dataset_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceGeneratePowerBIEmbedTokenResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetPowerBIDatasetPreview
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.get_dataset_preview()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
dataset_id |
Optional[str] | ➖ | N/A |
dataset_name |
Optional[str] | ➖ | N/A |
limit |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceGetPowerBIDatasetPreviewResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
GetSyncedPowerBIItems
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.get_synced_items()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceGetSyncedPowerBIItemsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListPowerBIDatasets
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.list()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceListPowerBIDatasetsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListPowerBIReports
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.list_reports()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceListPowerBIReportsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
ListPowerBIWorkspaces
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.list_workspaces()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceListPowerBIWorkspacesResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
SyncPowerBIItems
import os
from textql_sdk import Textql
from textql_sdk.utils import parse_datetime
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.sync_power_bi_items(reports=[
{
"created_date": parse_datetime("2023-01-15T01:30:15.01Z"),
},
], datasets=[
{
"created_date": parse_datetime("2023-01-15T01:30:15.01Z"),
},
])
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
workspace_id |
Optional[str] | ➖ | N/A |
workspace_name |
Optional[str] | ➖ | N/A |
reports |
List[models.TextqlRPCPublicPowerbiPowerBIReport] | ➖ | N/A |
datasets |
List[models.TextqlRPCPublicPowerbiPowerBIDataset] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceSyncPowerBIItemsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
TestPowerBIConnection
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.test_connection()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
OptionalNullable[int] | ➖ | N/A |
tenant_id |
OptionalNullable[str] | ➖ | N/A |
client_id |
OptionalNullable[str] | ➖ | N/A |
client_secret |
OptionalNullable[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceTestPowerBIConnectionResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |
UnsyncPowerBIItems
import os
from textql_sdk import Textql
with Textql(
api_key=os.getenv("TEXTQL_API_KEY", ""),
) as textql:
res = textql.powerbi.unsync_items()
# Handle response
print(res)| Parameter | Type | Required | Description |
|---|---|---|---|
connect_timeout_ms |
Optional[float] | ➖ | N/A |
connector_id |
Optional[int] | ➖ | N/A |
report_ids |
List[str] | ➖ | N/A |
dataset_ids |
List[str] | ➖ | N/A |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
models.PowerBIServiceUnsyncPowerBIItemsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.TextqlDefaultError | 4XX, 5XX | */* |