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 | Mapping[str, Any]]] = None)

Response for Get scorecards

Attributes

value class-attribute instance-attribute
value: Optional[List[ListedScorecard | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of scorecards.

CreatedScorecard dataclass

CreatedScorecard(id: str)

Response for Create a scorecard

Attributes

id instance-attribute
id: str

The unique identifier of the scorecard.

FetchedGoals dataclass

FetchedGoals(*, value: Optional[List[FetchedGoal | Mapping[str, Any]]] = None)

Response for Get multiple goals

Attributes

value class-attribute instance-attribute
value: Optional[List[FetchedGoal | Mapping[str, Any]]] = dataclass_field(default=None, kw_only=True)

The list of the goals.

CreateGoalResponse dataclass

CreateGoalResponse(id: str)

Response for Create a goal

Attributes

id instance-attribute
id: str

The unique identifier of the goal.

FetchedGoal dataclass

FetchedGoal(id: str, name: str, *, 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 instance-attribute
id: str

The unique identifier of the goal.

name instance-attribute
name: str

The name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = dataclass_field(default=None, kw_only=True)

The email address of the goal's owner.

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

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

completion_date class-attribute instance-attribute
completion_date: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'currentValue'})

The current value of the goal being tracked.

current_value_timestamp class-attribute instance-attribute
current_value_timestamp: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'targetValue'})

The target value of the goal.

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

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

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

The status of the goal.

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

The timestamp when the status of the goal was set.

cycle class-attribute instance-attribute
cycle: Optional[str] = dataclass_field(default=None, kw_only=True)

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

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

Date to find out extra properties of tracking cycle.

GoalsAssigned dataclass

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

Response for When someone assigns a new owner to a goal

Attributes

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

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

GoalChanged dataclass

GoalChanged(id: str, *, 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 instance-attribute
id: str

The unique identifier of the goal.

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

The name of the goal.

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

The email address of the goal's owner.

old_start_date class-attribute instance-attribute
old_start_date: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'oldCurrentValue'})

The current value of the goal being tracked.

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

The target value of the goal.

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

The status of the goal.

old_cycle class-attribute instance-attribute
old_cycle: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'oldCyclePeriod'})

Old date to find out extra properties of tracking cycle.

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

The name of the goal.

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

The email address of the goal's owner.

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

The start date for the goal.

new_completion_date class-attribute instance-attribute
new_completion_date: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'newCurrentValue'})

The current value of the goal being tracked.

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

The target value of the goal.

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

The status of the goal.

new_cycle class-attribute instance-attribute
new_cycle: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'newCyclePeriod'})

New date to find out extra properties of tracking cycle.

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

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

GoalStatusChanged dataclass

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

Response for When status of a goal changes

Attributes

id instance-attribute
id: str

The unique identifier of the goal.

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

The status of the goal.

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

The status of the goal.

GoalValueChanged dataclass

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

Response for When current value of a goal changes

Attributes

id instance-attribute
id: str

The unique identifier of the goal.

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

The current value of the goal being tracked.

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

The current value of the goal being tracked.

GoalRefreshIssues dataclass

GoalRefreshIssues(issues: List[GoalRefreshIssue | Mapping[str, Any]])

Response for When a data refresh for a goal fails

Attributes

issues instance-attribute
issues: List[GoalRefreshIssue | Mapping[str, Any]]

Goal refresh issues.

GoalValueOrNoteUpserted dataclass

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

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

Attributes

values instance-attribute
values: List[Dict[str, Any]]

Added or updated check-ins.

notes instance-attribute
notes: List[Dict[str, Any]]

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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'alertTitle'})

The title of the alert.

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

The threshold at which the alert is triggered.

is_alert_triggered class-attribute instance-attribute
is_alert_triggered: Optional[bool] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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]]] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default_factory=dict, kw_only=True)

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] = dataclass_field(default_factory=dict, kw_only=True)

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]]] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

The date that the check-in was made.

value class-attribute instance-attribute
value: Optional[float] = dataclass_field(default=None, kw_only=True)

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

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'alertId'})

The ID of the alert.

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

The title of the alert.

group_id class-attribute instance-attribute
group_id: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'odata.context'})

OData context

value class-attribute instance-attribute
value: Optional[List[Any]] = dataclass_field(default=None, kw_only=True)

The report collection

Columns dataclass

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

Response for GetColumns

QuerySpecification dataclass

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

Definition: QuerySpecification

Attributes

query instance-attribute
query: str

The text of the query. Can be multiline text.

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

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

CreateScorecardRequest dataclass

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

Definition: CreateScorecardRequest

Attributes

name instance-attribute
name: str

Scorecard name

description class-attribute instance-attribute
description: Optional[str] = dataclass_field(default=None, kw_only=True)

Scorecard description

ListedScorecard dataclass

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

Definition: ListedScorecard

Attributes

id instance-attribute
id: str

The unique identifier of the scorecard.

name instance-attribute
name: str

The name of the scorecard.

contact class-attribute instance-attribute
contact: Optional[str] = dataclass_field(default=None, kw_only=True)

Contact information for the scorecard.

CreateGoalRequest dataclass

CreateGoalRequest(name: str, *, 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 instance-attribute
name: str

The name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = dataclass_field(default=None, kw_only=True)

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

value class-attribute instance-attribute
value: Optional[str] = dataclass_field(default=None, kw_only=True)

The current value of the goal being tracked.

target class-attribute instance-attribute
target: Optional[str] = dataclass_field(default=None, kw_only=True)

The target value of the goal.

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

The current status the goal.

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

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

completion_date class-attribute instance-attribute
completion_date: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True)

If provided, the new name of the goal.

owner class-attribute instance-attribute
owner: Optional[str] = dataclass_field(default=None, kw_only=True)

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

value class-attribute instance-attribute
value: Optional[float] = dataclass_field(default=None, kw_only=True)

If provided, sets the new value of the goal.

target class-attribute instance-attribute
target: Optional[float] = dataclass_field(default=None, kw_only=True)

If provided, sets the new goal target.

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

If provided, sets the new status of the goal.

start_date class-attribute instance-attribute
start_date: Optional[str] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'connectionType'})

The connection type, either Current or Target.

timestamp class-attribute instance-attribute
timestamp: Optional[str] = dataclass_field(default=None, kw_only=True)

The timestamp of when the failed refresh happened.

message class-attribute instance-attribute
message: Optional[str] = dataclass_field(default=None, kw_only=True)

Description of the error.

GoalValueCheckinRequest dataclass

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

Definition: GoalValueCheckinRequest

Attributes

timestamp instance-attribute
timestamp: str

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

status class-attribute instance-attribute
status: Optional[str] = dataclass_field(default=None, kw_only=True)

Status of the goal.

note class-attribute instance-attribute
note: Optional[str] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default_factory=dict, kw_only=True)

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

ExportPayloadPowerBIReport dataclass

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

Definition: ExportPayloadPowerBIReport

Attributes

format instance-attribute
format: str

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]] = dataclass_field(default=None, kw_only=True, metadata={'wire_name': 'PowerBIReportExportConfiguration'})

Power BI report Export to file configuration

ExportPayloadPaginatedReport dataclass

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

Definition: ExportPayloadPaginatedReport

Attributes

format instance-attribute
format: str

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]] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True)

The locale to apply

include_hidden_pages class-attribute instance-attribute
include_hidden_pages: Optional[bool] = dataclass_field(default=None, kw_only=True, 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] = dataclass_field(default=None, kw_only=True)

The bookmark name

state class-attribute instance-attribute
state: Optional[str] = dataclass_field(default=None, kw_only=True)

The bookmark state

ExportFilter dataclass

ExportFilter(*, filter: Optional[str] = None)

Definition: ExportFilter

Attributes

filter class-attribute instance-attribute
filter: Optional[str] = dataclass_field(default=None, kw_only=True)

The filter to apply

ExportReportPage dataclass

ExportReportPage(*, page_name: Optional[str] = None, visual_name: Optional[str] = None, bookmark: Optional[PageBookmark | Mapping[str, Any]] = None)

Definition: ExportReportPage

Attributes

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

The page name

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

(Optional) Visual name to be exported

bookmark class-attribute instance-attribute
bookmark: Optional[PageBookmark | Mapping[str, Any]] = dataclass_field(default=None, kw_only=True)

(Optional) The bookmark to be applied on the page

EffectiveIdentity dataclass

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

Definition: EffectiveIdentity

Attributes

username instance-attribute
username: str

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]] = dataclass_field(default=None, kw_only=True)

An array of datasets for which this identity applies

roles class-attribute instance-attribute
roles: Optional[List[str]] = dataclass_field(default=None, kw_only=True)

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] = dataclass_field(default=None, kw_only=True, 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 | Mapping[str, Any]] = dataclass_field(default=None, kw_only=True, 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]] = dataclass_field(default=None, kw_only=True)

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

IdentityBlob dataclass

IdentityBlob(value: str)

Definition: IdentityBlob

Attributes

value instance-attribute
value: str

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] = dataclass_field(default_factory=dict, kw_only=True)

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, credential: AsyncTokenCredential | AzureKeyCredential, *, max_retry_attempts: int = 3, timeout: float = 30.0, use_exponential_backoff: bool = True, initial_retry_delay_seconds: float = 0.5, maximum_retry_delay_seconds: float = 120.0, retry_jitter_factor: float = 0.1, retry_unsafe_http_methods: bool = False, transport: Optional[AsyncHttpTransport] = None, **kwargs: Any)

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
credential AsyncTokenCredential | AzureKeyCredential

Caller-owned Azure Core credential.

required
max_retry_attempts int

The maximum number of request attempts.

3
timeout float

The network timeout in seconds for each request. The value configures Azure Core retry and transport deadlines. Nonpositive values disable SDK and transport deadlines.

30.0
use_exponential_backoff bool

Whether retries use exponential backoff.

True
initial_retry_delay_seconds float

The initial retry delay in seconds.

0.5
maximum_retry_delay_seconds float

The maximum retry delay in seconds.

120.0
retry_jitter_factor float

The jitter fraction applied to retry delays.

0.1
retry_unsafe_http_methods bool

Whether unsafe HTTP methods may be retried.

False
transport Optional[AsyncHttpTransport]

Optional Azure Core async HTTP transport closed by the client through its asynchronous lifecycle.

None
**kwargs Any

Optional Azure Core pipeline policy settings.

{}

Methods:

list_scorecards
list_scorecards(groupid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get scorecards

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

Returns a single-page Azure Core async collection.

Swagger operation ID: GetScorecards.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_scorecard async
create_scorecard(input: CreateScorecardRequest | Mapping[str, Any], groupid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Create a scorecard

Creates a scorecard for Power BI goals.

Swagger operation ID: CreateScorecard.

Parameters:

Name Type Description Default
input CreateScorecardRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_multiple_goals
list_multiple_goals(groupid: str, scorecard_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get multiple goals

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

Returns a single-page Azure Core async collection.

Swagger operation ID: GetMultipleGoals.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

create_goal async
create_goal(input: CreateGoalRequest | Mapping[str, Any], groupid: str, scorecard_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Create a goal

Creates a Power BI goal on the specified scorecard.

Swagger operation ID: CreateGoal.

Parameters:

Name Type Description Default
input CreateGoalRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_goal async
get_goal(groupid: str, scorecard_id: str, goal_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get a goal

Gets the specified Power BI goal on a scorecard.

Swagger operation ID: GetGoal.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

update_goal async
update_goal(input: UpdateGoalRequest | Mapping[str, Any], groupid: str, scorecard_id: str, goal_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Update a goal

Updates the Power BI goal's state.

Swagger operation ID: UpdateGoal.

Parameters:

Name Type Description Default
input UpdateGoalRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

execute_dataset_query async
execute_dataset_query(input: QuerySpecification | Mapping[str, Any], groupid: str, datasetid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Run a query against a dataset

Use the Power BI REST API to run a query.

Swagger operation ID: ExecuteDatasetQuery.

Parameters:

Name Type Description Default
input QuerySpecification | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

execute_dataset_queries_json async
execute_dataset_queries_json(input: ExecuteDatasetQueriesJsonInput | Mapping[str, Any], groupid: str, datasetid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Run a json query against a dataset

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

Swagger operation ID: ExecuteDatasetQueriesJson.

Parameters:

Name Type Description Default
input ExecuteDatasetQueriesJsonInput | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

add_rows async
add_rows(input: Payload | Mapping[str, Any], groupid: str, datasetid: str, tablename: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Add rows to a dataset

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

Swagger operation ID: AddRows.

Parameters:

Name Type Description Default
input Payload | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
tablename str

The name of the table.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

goal_value_checkin_note async
goal_value_checkin_note(input: GoalValueCheckinNoteInput, groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Add a note to a check-in

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

Swagger operation ID: GoalValueCheckinNote.

Parameters:

Name Type Description Default
input GoalValueCheckinNoteInput

The request body.

required
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
goal_checkin str

Example: 2021-07-21.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

goal_value_checkin async
goal_value_checkin(input: GoalValueCheckinRequest | Mapping[str, Any], groupid: str, scorecard_id: str, goal_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Create a check-in

Creates a Power BI goal check-in.

Swagger operation ID: GoalValueCheckin.

Parameters:

Name Type Description Default
input GoalValueCheckinRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_goal_checkins
list_goal_checkins(groupid: str, scorecard_id: str, goal_id: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get goal check-ins

Get all check-ins on a Power BI goal.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetGoalCheckins.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

update_goal_checkin async
update_goal_checkin(input: GoalValueCheckinUpdateRequest | Mapping[str, Any], groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Update a check-in

Updates a Power BI goal check-in.

Swagger operation ID: UpdateGoalCheckin.

Parameters:

Name Type Description Default
input GoalValueCheckinUpdateRequest | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
goal_checkin str

Example: 2021-07-21.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_goal_checkin async
get_goal_checkin(groupid: str, scorecard_id: str, goal_id: str, goal_checkin: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

Get a goal check-in

Get a check-in on a Power BI goal.

Swagger operation ID: GetGoalCheckin.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
scorecard_id str

The unique identifier of the scorecard.

required
goal_id str

The unique identifier of the goal.

required
goal_checkin str

Example: 2021-07-21.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

refresh_dataset async
refresh_dataset(groupid: str, datasetid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> None

Refresh a dataset

Use Power BI REST API to refresh a powerbi dataset.

Swagger operation ID: RefreshDataset.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
None None

The operation completes without a response body.

Raises:

Type Description
ConnectorException

If the connector request fails.

initiate_export_to_file_for_pbi_reports async
initiate_export_to_file_for_pbi_reports(input: ExportPayloadPowerBIReport | Mapping[str, Any], groupid: str, reportid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> bytes

Export To File for Power BI Reports

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

Swagger operation ID: InitiateExportToFileForPbiReports.

Parameters:

Name Type Description Default
input ExportPayloadPowerBIReport | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
reportid str

The unique identifier of a pbi report.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
bytes bytes

The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

initiate_export_to_file_for_paginated_reports async
initiate_export_to_file_for_paginated_reports(input: ExportPayloadPaginatedReport | Mapping[str, Any], groupid: str, reportid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> bytes

Export To File for Paginated Reports

Use Power BI Rest API to inititate export for paginated reports

Swagger operation ID: InitiateExportToFileForPaginatedReports.

Parameters:

Name Type Description Default
input ExportPayloadPaginatedReport | Mapping[str, Any]

The request body. Mapping keys use serialized Swagger wire names.

required
groupid str

The unique identifier of the workspace.

required
reportid str

The unique identifier of a paginated report.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Name Type Description
bytes bytes

The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_groups
list_groups(*, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

ListGroups

Get Groups for Power BI.

Returns a single-page Azure Core async collection.

Swagger operation ID: ListGroups.

Parameters:

Name Type Description Default
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_alerts
list_alerts(*, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get alerts from Power BI

Return a list of alerts for a signed in user.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetAlerts.

Parameters:

Name Type Description Default
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_datasets
list_datasets(groupid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

ListDatasets

Get datasets for Power BI group.

Returns a single-page Azure Core async collection.

Swagger operation ID: ListDatasets.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_tables
list_tables(groupid: str, datasetid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

ListTables

Get tables for Power BI dataset.

Returns a single-page Azure Core async collection.

Swagger operation ID: ListTables.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

list_reports_in_group
list_reports_in_group(groupid: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> AsyncItemPaged[dict[str, Any]]

Get Reports in Group

Returns a list of reports from the specified workspace.

Returns a single-page Azure Core async collection.

Swagger operation ID: GetReportsInGroup.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
AsyncItemPaged[dict[str, Any]]

AsyncItemPaged[dict[str, Any]]: An Azure Core pager over connector results. Consume it with async for.

Raises:

Type Description
ConnectorException

If the connector request fails.

get_columns async
get_columns(groupid: str, datasetid: str, tablename: str, *, timeout: Optional[float] = None, headers: Optional[Mapping[str, str]] = None, client_request_id: Optional[str] = None, response_hook: Optional[ConnectorResponseHook] = None) -> dict[str, Any] | None

GetColumns

Get columns for Power BI dataset table.

Swagger operation ID: GetColumns.

Parameters:

Name Type Description Default
groupid str

The unique identifier of the workspace.

required
datasetid str

The unique identifier of the dataset.

required
tablename str

The name of the table.

required
timeout Optional[float]

The request timeout in seconds.

None
headers Optional[Mapping[str, str]]

Additional HTTP request headers.

None
client_request_id Optional[str]

A caller-provided request identifier.

None
response_hook Optional[ConnectorResponseHook]

A callback invoked with the connector response.

None

Returns:

Type Description
dict[str, Any] | None

dict[str, Any] | None: The connector operation result.

Raises:

Type Description
ConnectorException

If the connector request fails.