Skip to content

PowerbiClient

Attributes

GoalValueCheckinNoteInput module-attribute

GoalValueCheckinNoteInput = str

GoalNotes module-attribute

GoalNotes = List[Dict[str, Any]]

TRIGGER_OPERATIONS module-attribute

TRIGGER_OPERATIONS: Dict[str, Dict[str, Any]] = {'GoalsAssignedTrigger': {'operation_id': 'GoalsAssignedTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'pollingInterval'], 'callback_payload_type': 'GoalsAssigned'}, 'GoalChangeTrigger': {'operation_id': 'GoalChangeTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals({goalId})', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'goalId', 'pollingInterval'], 'callback_payload_type': 'GoalChanged'}, 'GoalStatusChangeTrigger': {'operation_id': 'GoalStatusChangeTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals({goalId})/GetFlowTriggerStatus', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'goalId', 'pollingInterval'], 'callback_payload_type': 'GoalStatusChanged'}, 'GoalValueChangeTrigger': {'operation_id': 'GoalValueChangeTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals({goalId})/GetFlowTriggerValue', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'goalId', 'pollingInterval'], 'callback_payload_type': 'GoalValueChanged'}, 'GoalRefreshFailedTrigger': {'operation_id': 'GoalRefreshFailedTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals({goalId})/GetRefreshHistory', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'goalId', 'trackTargetSource', 'trackValueSource', 'pollingInterval'], 'callback_payload_type': 'GoalRefreshIssues'}, 'GoalValueOrNoteUpsertTrigger': {'operation_id': 'GoalValueOrNoteUpsertTrigger', 'path': '/{connectionId}/internalFlowTriggerGoalChange/v1.0/myOrg/groups/{groupid}/internalScorecards({scorecardId})/goals({goalId})/goalValues', 'method': 'get', 'required_parameters': ['groupid', 'scorecardId', 'goalId', 'pollingInterval'], 'callback_payload_type': 'GoalValueOrNoteUpserted'}, 'CheckAlertStatus': {'operation_id': 'CheckAlertStatus', 'path': '/{connectionId}/metadata/v201606/alerts/{alertId}/status', 'method': 'get', 'required_parameters': ['alertId'], 'callback_payload_type': 'EvaluatedAlert'}}

Classes

ListedScorecards dataclass

ListedScorecards(value: Optional[List[ListedScorecard]] = None)

Response for Get scorecards

Attributes

value class-attribute instance-attribute
value: Optional[List[ListedScorecard]] = None

The list of scorecards.

CreatedScorecard dataclass

CreatedScorecard(id: Optional[str] = None)

Response for Create a scorecard

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the scorecard.

FetchedGoals dataclass

FetchedGoals(value: Optional[List[FetchedGoal]] = None)

Response for Get multiple goals

Attributes

value class-attribute instance-attribute
value: Optional[List[FetchedGoal]] = None

The list of the goals.

CreateGoalResponse dataclass

CreateGoalResponse(id: Optional[str] = None)

Response for Create a goal

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the goal.

FetchedGoal dataclass

FetchedGoal(id: Optional[str] = None, name: Optional[str] = None, owner: Optional[str] = None, start_date: Optional[str] = None, completion_date: Optional[str] = None, parent_id: Optional[str] = None, current_value: Optional[float] = None, current_value_timestamp: Optional[str] = None, target_value: Optional[float] = None, target_value_timestamp: Optional[str] = None, status: Optional[str] = None, status_timestamp: Optional[str] = None, cycle: Optional[str] = None, cycle_period: Optional[str] = None)

Response for Get a goal

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the goal.

name class-attribute instance-attribute
name: Optional[str] = None

The name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = None

The email address of the goal's owner.

start_date class-attribute instance-attribute
start_date: Optional[str] = field(default=None, metadata={'wire_name': 'startDate'})

The start date for the goal. Example: 2021-07-15.

completion_date class-attribute instance-attribute
completion_date: Optional[str] = field(default=None, metadata={'wire_name': 'completionDate'})

The due date for the goal to be completed by. Example: 2021-07-29.

parent_id class-attribute instance-attribute
parent_id: Optional[str] = field(default=None, metadata={'wire_name': 'parentId'})

If this goal is a subgoal, the unique id of its parent goal.

current_value class-attribute instance-attribute
current_value: Optional[float] = field(default=None, metadata={'wire_name': 'currentValue'})

The current value of the goal being tracked.

current_value_timestamp class-attribute instance-attribute
current_value_timestamp: Optional[str] = field(default=None, metadata={'wire_name': 'currentValueTimestamp'})

The timestamp when the current value of the goal was set.

target_value class-attribute instance-attribute
target_value: Optional[float] = field(default=None, metadata={'wire_name': 'targetValue'})

The target value of the goal.

target_value_timestamp class-attribute instance-attribute
target_value_timestamp: Optional[str] = field(default=None, metadata={'wire_name': 'targetValueTimestamp'})

The timestamp when the target value of the goal was set.

status class-attribute instance-attribute
status: Optional[str] = None

The status of the goal.

status_timestamp class-attribute instance-attribute
status_timestamp: Optional[str] = field(default=None, metadata={'wire_name': 'statusTimestamp'})

The timestamp when the status of the goal was set.

cycle class-attribute instance-attribute
cycle: Optional[str] = None

Tracking cycle frequency interval shown on this goal's visuals.

cycle_period class-attribute instance-attribute
cycle_period: Optional[str] = field(default=None, metadata={'wire_name': 'cyclePeriod'})

Date to find out extra properties of tracking cycle.

GoalsAssigned dataclass

GoalsAssigned(assigned_goals: Optional[List[Dict[str, Any]]] = None)

Response for When someone assigns a new owner to a goal

Attributes

assigned_goals class-attribute instance-attribute
assigned_goals: Optional[List[Dict[str, Any]]] = field(default=None, metadata={'wire_name': 'assignedGoals'})

The list of goals that were assigned to the new owner.

GoalChanged dataclass

GoalChanged(id: Optional[str] = None, old_name: Optional[str] = None, old_owner: Optional[str] = None, old_start_date: Optional[str] = None, old_completion_date: Optional[str] = None, old_parent_id: Optional[str] = None, old_current_value: Optional[float] = None, old_target_value: Optional[float] = None, old_status: Optional[str] = None, old_cycle: Optional[str] = None, old_cycle_period: Optional[str] = None, new_name: Optional[str] = None, new_owner: Optional[str] = None, new_start_date: Optional[str] = None, new_completion_date: Optional[str] = None, new_parent_id: Optional[str] = None, new_current_value: Optional[float] = None, new_target_value: Optional[float] = None, new_status: Optional[str] = None, new_cycle: Optional[str] = None, new_cycle_period: Optional[str] = None, change_list: Optional[str] = None)

Response for When a goal changes

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the goal.

old_name class-attribute instance-attribute
old_name: Optional[str] = field(default=None, metadata={'wire_name': 'oldName'})

The name of the goal.

old_owner class-attribute instance-attribute
old_owner: Optional[str] = field(default=None, metadata={'wire_name': 'oldOwner'})

The email address of the goal's owner.

old_start_date class-attribute instance-attribute
old_start_date: Optional[str] = field(default=None, metadata={'wire_name': 'oldStartDate'})

The start date for the goal. Example: 2021-07-15.

old_completion_date class-attribute instance-attribute
old_completion_date: Optional[str] = field(default=None, metadata={'wire_name': 'oldCompletionDate'})

The due date for the goal to be completed by. Example: 2021-07-29.

old_parent_id class-attribute instance-attribute
old_parent_id: Optional[str] = field(default=None, metadata={'wire_name': 'oldParentId'})

If this goal is a subgoal, the unique id of its parent goal.

old_current_value class-attribute instance-attribute
old_current_value: Optional[float] = field(default=None, metadata={'wire_name': 'oldCurrentValue'})

The current value of the goal being tracked.

old_target_value class-attribute instance-attribute
old_target_value: Optional[float] = field(default=None, metadata={'wire_name': 'oldTargetValue'})

The target value of the goal.

old_status class-attribute instance-attribute
old_status: Optional[str] = field(default=None, metadata={'wire_name': 'oldStatus'})

The status of the goal.

old_cycle class-attribute instance-attribute
old_cycle: Optional[str] = field(default=None, metadata={'wire_name': 'oldCycle'})

Old tracking cycle frequency interval shown on this goal's visuals.

old_cycle_period class-attribute instance-attribute
old_cycle_period: Optional[str] = field(default=None, metadata={'wire_name': 'oldCyclePeriod'})

Old date to find out extra properties of tracking cycle.

new_name class-attribute instance-attribute
new_name: Optional[str] = field(default=None, metadata={'wire_name': 'newName'})

The name of the goal.

new_owner class-attribute instance-attribute
new_owner: Optional[str] = field(default=None, metadata={'wire_name': 'newOwner'})

The email address of the goal's owner.

new_start_date class-attribute instance-attribute
new_start_date: Optional[str] = field(default=None, metadata={'wire_name': 'newStartDate'})

The start date for the goal.

new_completion_date class-attribute instance-attribute
new_completion_date: Optional[str] = field(default=None, metadata={'wire_name': 'newCompletionDate'})

The due date for the goal to be completed by.

new_parent_id class-attribute instance-attribute
new_parent_id: Optional[str] = field(default=None, metadata={'wire_name': 'newParentId'})

If this goal is a subgoal, the unique id of its parent goal.

new_current_value class-attribute instance-attribute
new_current_value: Optional[float] = field(default=None, metadata={'wire_name': 'newCurrentValue'})

The current value of the goal being tracked.

new_target_value class-attribute instance-attribute
new_target_value: Optional[float] = field(default=None, metadata={'wire_name': 'newTargetValue'})

The target value of the goal.

new_status class-attribute instance-attribute
new_status: Optional[str] = field(default=None, metadata={'wire_name': 'newStatus'})

The status of the goal.

new_cycle class-attribute instance-attribute
new_cycle: Optional[str] = field(default=None, metadata={'wire_name': 'newCycle'})

New tracking cycle interval shown on this goal's visuals.

new_cycle_period class-attribute instance-attribute
new_cycle_period: Optional[str] = field(default=None, metadata={'wire_name': 'newCyclePeriod'})

New date to find out extra properties of tracking cycle.

change_list class-attribute instance-attribute
change_list: Optional[str] = field(default=None, metadata={'wire_name': 'changeList'})

Comma separated list of changes. Example: 'status,currentValue'.

GoalStatusChanged dataclass

GoalStatusChanged(id: Optional[str] = None, old_status: Optional[str] = None, new_status: Optional[str] = None)

Response for When status of a goal changes

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the goal.

old_status class-attribute instance-attribute
old_status: Optional[str] = field(default=None, metadata={'wire_name': 'oldStatus'})

The status of the goal.

new_status class-attribute instance-attribute
new_status: Optional[str] = field(default=None, metadata={'wire_name': 'newStatus'})

The status of the goal.

GoalValueChanged dataclass

GoalValueChanged(id: Optional[str] = None, old_current_value: Optional[float] = None, new_current_value: Optional[float] = None)

Response for When current value of a goal changes

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the goal.

old_current_value class-attribute instance-attribute
old_current_value: Optional[float] = field(default=None, metadata={'wire_name': 'oldCurrentValue'})

The current value of the goal being tracked.

new_current_value class-attribute instance-attribute
new_current_value: Optional[float] = field(default=None, metadata={'wire_name': 'newCurrentValue'})

The current value of the goal being tracked.

GoalRefreshIssues dataclass

GoalRefreshIssues(issues: Optional[List[GoalRefreshIssue]] = None)

Response for When a data refresh for a goal fails

Attributes

issues class-attribute instance-attribute
issues: Optional[List[GoalRefreshIssue]] = None

Goal refresh issues.

GoalValueOrNoteUpserted dataclass

GoalValueOrNoteUpserted(values: Optional[List[Dict[str, Any]]] = None, notes: Optional[List[Dict[str, Any]]] = None)

Response for When someone adds or edits a goal check-in

Attributes

values class-attribute instance-attribute
values: Optional[List[Dict[str, Any]]] = None

Added or updated check-ins.

notes class-attribute instance-attribute
notes: Optional[List[Dict[str, Any]]] = None

Added or changed notes.

EvaluatedAlert dataclass

EvaluatedAlert(alert_title: Optional[str] = None, alert_threshold: Optional[float] = None, is_alert_triggered: Optional[bool] = None, tile_url: Optional[str] = None, tile_value: Optional[Any] = None)

Response for When a data driven alert is triggered

Attributes

alert_title class-attribute instance-attribute
alert_title: Optional[str] = field(default=None, metadata={'wire_name': 'alertTitle'})

The title of the alert.

alert_threshold class-attribute instance-attribute
alert_threshold: Optional[float] = field(default=None, metadata={'wire_name': 'alertThreshold'})

The threshold at which the alert is triggered.

is_alert_triggered class-attribute instance-attribute
is_alert_triggered: Optional[bool] = field(default=None, metadata={'wire_name': 'isAlertTriggered'})

A boolean value (true, false) determining Whether or not the alert was triggered.

tile_url class-attribute instance-attribute
tile_url: Optional[str] = field(default=None, metadata={'wire_name': 'tileUrl'})

URL linking to the dashboard tile where the alert is set up.

tile_value class-attribute instance-attribute
tile_value: Optional[Any] = field(default=None, metadata={'wire_name': 'tileValue'})

The value of the tile.

QueryExecutionResults dataclass

QueryExecutionResults(first_table_rows: Optional[List[Dict[str, Any]]] = None)

Response for Run a query against a dataset

Attributes

first_table_rows class-attribute instance-attribute
first_table_rows: Optional[List[Dict[str, Any]]] = field(default=None, metadata={'wire_name': 'firstTableRows'})

Query results as an array of rows.

ExecuteDatasetQueriesJsonInput dataclass

ExecuteDatasetQueriesJsonInput(additional_properties: Dict[str, Any] = dict())

Run a json query against a dataset

Attributes

additional_properties class-attribute instance-attribute
additional_properties: Dict[str, Any] = field(default_factory=dict)

Dynamic properties determined at runtime (similar to .NET [JsonExtensionData])

ExecuteDatasetQueriesJsonResponse dataclass

ExecuteDatasetQueriesJsonResponse(additional_properties: Dict[str, Any] = dict())

Response for Run a json query against a dataset

Attributes

additional_properties class-attribute instance-attribute
additional_properties: Dict[str, Any] = field(default_factory=dict)

Dynamic properties determined at runtime (similar to .NET [JsonExtensionData])

GetGoalCheckinsResponse dataclass

GetGoalCheckinsResponse(value: Optional[List[Dict[str, Any]]] = None)

Response for Get goal check-ins

Attributes

value class-attribute instance-attribute
value: Optional[List[Dict[str, Any]]] = None

List of check-ins.

GetGoalCheckinResponse dataclass

GetGoalCheckinResponse(timestamp: Optional[str] = None, value: Optional[float] = None, status: Optional[str] = None, notes: Optional[GoalNotes] = None)

Response for Get a goal check-in

Attributes

timestamp class-attribute instance-attribute
timestamp: Optional[str] = None

The date that the check-in was made.

value class-attribute instance-attribute
value: Optional[float] = None

The value at the time of check in, if set.

status class-attribute instance-attribute
status: Optional[str] = None

The goal status at the time of check in.

Groups dataclass

Groups(value: Optional[List[Dict[str, Any]]] = None)

Response for ListGroups

Alert dataclass

Alert(alert_id: Optional[str] = None, alert_title: Optional[str] = None, group_id: Optional[str] = None)

Response for Get alerts from Power BI

Attributes

alert_id class-attribute instance-attribute
alert_id: Optional[str] = field(default=None, metadata={'wire_name': 'alertId'})

The ID of the alert.

alert_title class-attribute instance-attribute
alert_title: Optional[str] = field(default=None, metadata={'wire_name': 'alertTitle'})

The title of the alert.

group_id class-attribute instance-attribute
group_id: Optional[str] = field(default=None, metadata={'wire_name': 'groupId'})

The ID of the group.

Datasets dataclass

Datasets(value: Optional[List[Dict[str, Any]]] = None)

Response for ListDatasets

Tables dataclass

Tables(value: Optional[List[Dict[str, Any]]] = None)

Response for ListTables

Reports dataclass

Reports(odata_context: Optional[str] = None, value: Optional[List[Any]] = None)

Response for Get Reports in Group

Attributes

odata_context class-attribute instance-attribute
odata_context: Optional[str] = field(default=None, metadata={'wire_name': 'odata.context'})

OData context

value class-attribute instance-attribute
value: Optional[List[Any]] = None

The report collection

Columns dataclass

Columns(schema: Optional[Dict[str, Any]] = None)

Response for GetColumns

QuerySpecification dataclass

QuerySpecification(query: Optional[str] = None, serializer_settings: Optional[Dict[str, Any]] = None, impersonated_user_name: Optional[str] = None)

Definition: QuerySpecification

Attributes

query class-attribute instance-attribute
query: Optional[str] = None

The text of the query. Can be multiline text.

impersonated_user_name class-attribute instance-attribute
impersonated_user_name: Optional[str] = field(default=None, metadata={'wire_name': 'impersonatedUserName'})

A user identity in UPN format to run the query as another user.

CreateScorecardRequest dataclass

CreateScorecardRequest(name: Optional[str] = None, description: Optional[str] = None)

Definition: CreateScorecardRequest

Attributes

name class-attribute instance-attribute
name: Optional[str] = None

Scorecard name

description class-attribute instance-attribute
description: Optional[str] = None

Scorecard description

ListedScorecard dataclass

ListedScorecard(id: Optional[str] = None, name: Optional[str] = None, contact: Optional[str] = None)

Definition: ListedScorecard

Attributes

id class-attribute instance-attribute
id: Optional[str] = None

The unique identifier of the scorecard.

name class-attribute instance-attribute
name: Optional[str] = None

The name of the scorecard.

contact class-attribute instance-attribute
contact: Optional[str] = None

Contact information for the scorecard.

CreateGoalRequest dataclass

CreateGoalRequest(name: Optional[str] = None, owner: Optional[str] = None, value: Optional[str] = None, target: Optional[str] = None, status: Optional[str] = None, start_date: Optional[str] = None, completion_date: Optional[str] = None, note: Optional[str] = None, parent_id: Optional[str] = None)

Definition: CreateGoalRequest

Attributes

name class-attribute instance-attribute
name: Optional[str] = None

The name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = None

The email address of the goal's owner. Example: foo@bar.com

value class-attribute instance-attribute
value: Optional[str] = None

The current value of the goal being tracked.

target class-attribute instance-attribute
target: Optional[str] = None

The target value of the goal.

status class-attribute instance-attribute
status: Optional[str] = None

The current status the goal.

start_date class-attribute instance-attribute
start_date: Optional[str] = field(default=None, metadata={'wire_name': 'startDate'})

The start date for the goal. Example: 2021-07-15.

completion_date class-attribute instance-attribute
completion_date: Optional[str] = field(default=None, metadata={'wire_name': 'completionDate'})

The date for the goal to be completed by. Example: 2021-07-29.

note class-attribute instance-attribute
note: Optional[str] = None

Note to attach to the initial check-in on goal creation. Can be multiline text

parent_id class-attribute instance-attribute
parent_id: Optional[str] = field(default=None, metadata={'wire_name': 'parentId'})

If this goal is a subgoal, the unique id of its parent goal.

UpdateGoalRequest dataclass

UpdateGoalRequest(name: Optional[str] = None, owner: Optional[str] = None, value: Optional[float] = None, target: Optional[float] = None, status: Optional[str] = None, start_date: Optional[str] = None, completion_date: Optional[str] = None)

Definition: UpdateGoalRequest

Attributes

name class-attribute instance-attribute
name: Optional[str] = None

If provided, the new name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = None

If provided, the email address of the new goal owner.

value class-attribute instance-attribute
value: Optional[float] = None

If provided, sets the new value of the goal.

target class-attribute instance-attribute
target: Optional[float] = None

If provided, sets the new goal target.

status class-attribute instance-attribute
status: Optional[str] = None

If provided, sets the new status of the goal.

start_date class-attribute instance-attribute
start_date: Optional[str] = field(default=None, metadata={'wire_name': 'startDate'})

If provided, the new start date for the goal. Example: 2021-07-15.

completion_date class-attribute instance-attribute
completion_date: Optional[str] = field(default=None, metadata={'wire_name': 'completionDate'})

If provided, the new date for the goal to be completed by. Example: 2021-07-29.

GoalRefreshIssue dataclass

GoalRefreshIssue(connection_type: Optional[str] = None, timestamp: Optional[str] = None, message: Optional[str] = None)

Definition: GoalRefreshIssue

Attributes

connection_type class-attribute instance-attribute
connection_type: Optional[str] = field(default=None, metadata={'wire_name': 'connectionType'})

The connection type, either Current or Target.

timestamp class-attribute instance-attribute
timestamp: Optional[str] = None

The timestamp of when the failed refresh happened.

message class-attribute instance-attribute
message: Optional[str] = None

Description of the error.

GoalValueCheckinRequest dataclass

GoalValueCheckinRequest(timestamp: Optional[str] = None, value: Optional[float] = None, status: Optional[str] = None, note: Optional[str] = None)

Definition: GoalValueCheckinRequest

Attributes

timestamp class-attribute instance-attribute
timestamp: Optional[str] = None

Check-in date. Example: 2021-07-21

status class-attribute instance-attribute
status: Optional[str] = None

Status of the goal.

note class-attribute instance-attribute
note: Optional[str] = None

Can be multiline text

GoalValueCheckinUpdateRequest dataclass

GoalValueCheckinUpdateRequest(value: Optional[float] = None, status: Optional[str] = None)

Definition: GoalValueCheckinUpdateRequest

Attributes

status class-attribute instance-attribute
status: Optional[str] = None

Status of the goal.

Payload dataclass

Payload(additional_properties: Dict[str, Any] = dict())

Definition: Payload

Attributes

additional_properties class-attribute instance-attribute
additional_properties: Dict[str, Any] = field(default_factory=dict)

Dynamic properties determined at runtime (similar to .NET [JsonExtensionData])

ExportPayloadPowerBIReport dataclass

ExportPayloadPowerBIReport(format: Optional[str] = None, power_b_i_report_export_configuration: Optional[Dict[str, Any]] = None)

Definition: ExportPayloadPowerBIReport

Attributes

format class-attribute instance-attribute
format: Optional[str] = None

The export format for the Power BI report. The supported formats are: PPTX (PowerPoint), PDF, and PNG

power_b_i_report_export_configuration class-attribute instance-attribute
power_b_i_report_export_configuration: Optional[Dict[str, Any]] = field(default=None, metadata={'wire_name': 'PowerBIReportExportConfiguration'})

Power BI report Export to file configuration

ExportPayloadPaginatedReport dataclass

ExportPayloadPaginatedReport(format: Optional[str] = None, paginated_report_configuration: Optional[Dict[str, Any]] = None)

Definition: ExportPayloadPaginatedReport

Attributes

format class-attribute instance-attribute
format: Optional[str] = None

The export format for the paginated report. The supported formats are: PPTX (PowerPoint), PDF, ACCESSIBLEPDF (Accessible PDF), XLSX (Excel), DOCX (Word), CSV, XML, MHTML, and Image (BMP, EMF, GIF, JPEG, PNG, or TIFF).

paginated_report_configuration class-attribute instance-attribute
paginated_report_configuration: Optional[Dict[str, Any]] = field(default=None, metadata={'wire_name': 'paginatedReportConfiguration'})

paginatedReportConfiguration

ExportReportSettings dataclass

ExportReportSettings(locale: Optional[str] = None, include_hidden_pages: Optional[bool] = None)

Definition: ExportReportSettings

Attributes

locale class-attribute instance-attribute
locale: Optional[str] = None

The locale to apply

include_hidden_pages class-attribute instance-attribute
include_hidden_pages: Optional[bool] = field(default=None, metadata={'wire_name': 'includeHiddenPages'})

A flag indicating whether to include hidden pages when exporting the entire report (when passing specific pages this property will be ignored). If not provided, the default behavior is to exclude hidden pages

PageBookmark dataclass

PageBookmark(name: Optional[str] = None, state: Optional[str] = None)

Definition: PageBookmark

Attributes

name class-attribute instance-attribute
name: Optional[str] = None

The bookmark name

state class-attribute instance-attribute
state: Optional[str] = None

The bookmark state

ExportFilter dataclass

ExportFilter(filter: Optional[str] = None)

Definition: ExportFilter

Attributes

filter class-attribute instance-attribute
filter: Optional[str] = None

The filter to apply

ExportReportPage dataclass

ExportReportPage(page_name: Optional[str] = None, visual_name: Optional[str] = None, bookmark: Optional[PageBookmark] = None)

Definition: ExportReportPage

Attributes

page_name class-attribute instance-attribute
page_name: Optional[str] = field(default=None, metadata={'wire_name': 'pageName'})

The page name

visual_name class-attribute instance-attribute
visual_name: Optional[str] = field(default=None, metadata={'wire_name': 'visualName'})

(Optional) Visual name to be exported

bookmark class-attribute instance-attribute
bookmark: Optional[PageBookmark] = None

(Optional) The bookmark to be applied on the page

EffectiveIdentity dataclass

EffectiveIdentity(username: Optional[str] = None, datasets: Optional[List[str]] = None, roles: Optional[List[str]] = None, custom_data: Optional[str] = None, identity_blob: Optional[IdentityBlob] = None, reports: Optional[List[str]] = None)

Definition: EffectiveIdentity

Attributes

username class-attribute instance-attribute
username: Optional[str] = None

The effective username reflected by a token for applying RLS rules (For OnPrem model, username can be composed of alpha-numerical characters or any of the following characters '.', '-', '_', '!', '#', '^', '~', '\', '@', also username cannot contain spaces. For Cloud model, username can be composed of all ASCII characters. username must be up to 256 characters)

datasets class-attribute instance-attribute
datasets: Optional[List[str]] = None

An array of datasets for which this identity applies

roles class-attribute instance-attribute
roles: Optional[List[str]] = None

An array of RLS roles reflected by a token when applying RLS rules (identity can contain up to 50 roles, role can be composed of any character besides ',' and must be up to 50 characters)

custom_data class-attribute instance-attribute
custom_data: Optional[str] = field(default=None, metadata={'wire_name': 'customData'})

The value of customdata to be used for applying RLS rules. Only supported for live connections to Azure Analysis Services.

identity_blob class-attribute instance-attribute
identity_blob: Optional[IdentityBlob] = field(default=None, metadata={'wire_name': 'identityBlob'})

A blob for specifying the identity. Only supported for datasets with Direct Query connection to SQL Azure

reports class-attribute instance-attribute
reports: Optional[List[str]] = None

An array of reports for which this identity applies, Only supported for paginated reports

IdentityBlob dataclass

IdentityBlob(value: Optional[str] = None)

Definition: IdentityBlob

Attributes

value class-attribute instance-attribute
value: Optional[str] = None

OAuth2 access token for SQL Azure

DynamicPowerBiButtonClickedTriggerResult dataclass

DynamicPowerBiButtonClickedTriggerResult(additional_properties: Dict[str, Any] = dict())

Definition: DynamicPowerBiButtonClickedTriggerResult

Attributes

additional_properties class-attribute instance-attribute
additional_properties: Dict[str, Any] = field(default_factory=dict)

Dynamic properties determined at runtime (similar to .NET [JsonExtensionData])

PowerBiButtonClickedOutputs dataclass

PowerBiButtonClickedOutputs(power_bi_inputs: Optional[Dict[str, Any]] = None)

Definition: PowerBiButtonClickedOutputs

PowerbiClient

PowerbiClient(connection_runtime_url: str, token_provider: Optional[TokenProvider] = None, options: Optional[ConnectorClientOptions] = None)

Bases: ConnectorClientBase

Typed client for powerbi connector.

Initialize a PowerbiClient.

Parameters:

Name Type Description Default
connection_runtime_url str

The connection runtime URL from Azure Portal.

required
token_provider Optional[TokenProvider]

Optional token provider. Defaults to ManagedIdentityTokenProvider.

None
options Optional[ConnectorClientOptions]

Optional connector client options.

None

Methods:

get_scorecards_async async
get_scorecards_async(groupid: str) -> dict[str, Any] | None

Get scorecards

Gets a list of Power BI scorecards in the specified workspace.

create_scorecard_async async
create_scorecard_async(input: CreateScorecardRequest, groupid: str) -> dict[str, Any] | None

Create a scorecard

Creates a scorecard for Power BI goals.

get_multiple_goals_async async
get_multiple_goals_async(groupid: str, scorecard_id: str) -> dict[str, Any] | None

Get multiple goals

Get a list of Power BI goals in the specified scorecard.

create_goal_async async
create_goal_async(input: CreateGoalRequest, groupid: str, scorecard_id: str) -> dict[str, Any] | None

Create a goal

Creates a Power BI goal on the specified scorecard.

get_goal_async async
get_goal_async(groupid: str, scorecard_id: str, goal_id: str) -> dict[str, Any] | None

Get a goal

Gets the specified Power BI goal on a scorecard.

update_goal_async async
update_goal_async(input: UpdateGoalRequest, groupid: str, scorecard_id: str, goal_id: str) -> None

Update a goal

Updates the Power BI goal's state.

execute_dataset_query_async async
execute_dataset_query_async(input: QuerySpecification, groupid: str, datasetid: str) -> dict[str, Any] | None

Run a query against a dataset

Use the Power BI REST API to run a query.

execute_dataset_queries_json_async async
execute_dataset_queries_json_async(input: ExecuteDatasetQueriesJsonInput, groupid: str, datasetid: str) -> dict[str, Any] | None

Run a json query against a dataset

Use the Power BI REST API to run a query in json format.

add_rows_async async
add_rows_async(input: Payload, groupid: str, datasetid: str, tablename: str) -> None

Add rows to a dataset

Use Power BI REST API to add rows to a dataset.

goal_value_checkin_note_async async
goal_value_checkin_note_async(input: GoalValueCheckinNoteInput, groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str) -> None

Add a note to a check-in

Appends a new note to a check-in of a Power BI goal.

goal_value_checkin_async async
goal_value_checkin_async(input: GoalValueCheckinRequest, groupid: str, scorecard_id: str, goal_id: str) -> None

Create a check-in

Creates a Power BI goal check-in.

get_goal_checkins_async async
get_goal_checkins_async(groupid: str, scorecard_id: str, goal_id: str) -> dict[str, Any] | None

Get goal check-ins

Get all check-ins on a Power BI goal.

update_goal_checkin_async async
update_goal_checkin_async(input: GoalValueCheckinUpdateRequest, groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str) -> None

Update a check-in

Updates a Power BI goal check-in.

get_goal_checkin_async async
get_goal_checkin_async(groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str) -> dict[str, Any] | None

Get a goal check-in

Get a check-in on a Power BI goal.

refresh_dataset_async async
refresh_dataset_async(groupid: str, datasetid: str) -> None

Refresh a dataset

Use Power BI REST API to refresh a powerbi dataset.

initiate_export_to_file_for_pbi_reports_async async
initiate_export_to_file_for_pbi_reports_async(input: ExportPayloadPowerBIReport, groupid: str, reportid: str) -> bytes

Export To File for Power BI Reports

Use Power BI Rest API to inititate export for Power BI reports

initiate_export_to_file_for_paginated_reports_async async
initiate_export_to_file_for_paginated_reports_async(input: ExportPayloadPaginatedReport, groupid: str, reportid: str) -> bytes

Export To File for Paginated Reports

Use Power BI Rest API to inititate export for paginated reports

list_groups_async async
list_groups_async() -> dict[str, Any] | None

ListGroups

Get Groups for Power BI.

get_alerts_async async
get_alerts_async() -> dict[str, Any] | None

Get alerts from Power BI

Return a list of alerts for a signed in user.

list_datasets_async async
list_datasets_async(groupid: str) -> dict[str, Any] | None

ListDatasets

Get datasets for Power BI group.

list_tables_async async
list_tables_async(groupid: str, datasetid: str) -> dict[str, Any] | None

ListTables

Get tables for Power BI dataset.

get_reports_in_group_async async
get_reports_in_group_async(groupid: str) -> dict[str, Any] | None

Get Reports in Group

Returns a list of reports from the specified workspace.

get_columns_async async
get_columns_async(groupid: str, datasetid: str, tablename: str) -> dict[str, Any] | None

GetColumns

Get columns for Power BI dataset table.