How microsoft/powerbi-csharp works
Main Components (Top Level)
a. Client Application Layer
• External applications that consume the SDK
• A "PowerBIClient" as the main entry point
b. SDK Core Layer
• Main operation groups (visible in the Source folder):
• Reports Operations
• Datasets Operations
• Groups Operations
• Admin Operations
• Embed Token Operations
c. Models Layer
• Below the core layer
• Related models together (e.g., Report-related, Dataset-related)
d. Power BI REST API Layer
• At the bottom
• External Power BI service
Component Relationships
• Client Application → PowerBIClient
• PowerBIClient → Operation Groups
• Operation Groups → Models
• Operation Groups → Power BI REST API
• Models ↔ Power BI REST API (serialization/deserialization)
Key Architectural Elements
a. Authentication Flow
• Azure AD integration
• Credentials flow to PowerBIClient
b. Extension Points
• Extensions folder components
• How they extend core functionality
• Use a distinctive border style for extensibility points
Implementation Details
Important subsystems:
• Credential Management
• Token Generation
• Error Handling
• Model Serialization
Notes
Important callouts for:
• Required permissions
• Capacity dependencies
• API version compatibility
• Common integration patterns
• The SDK's role as a client-side library
• Clear separation between operations and models
• Authentication and security flow
• Extension points for customization
• Integration patterns with Power BI service
Remember to include version information and any backward compatibility notes, as indicated by the BackwardCompatibility.md file in the repository.
This architecture should clearly show how the SDK serves as a bridge between client applications and the Power BI REST API, while highlighting its security, extensibility, and integration capabilities.