├── .github
├── BackwardCompatibility.md
└── PULL_REQUEST_TEMPLATE.md
├── .gitignore
├── .version
└── PipelineAssemblyInfo.cs
├── Migration.md
├── README.md
├── SECURITY.md
├── azure-pipelines.yml
├── directory.build.props
├── global.json
├── license.txt
├── resources
└── icon.png
├── samples
└── readme.txt
├── scripts
├── build-sdk.cmd
├── clean.cmd
├── init-dev-cmd.cmd
├── nuget-restore.cmd
├── pack-sdk-dev.cmd
├── pack-sdk.cmd
└── run-tests.cmd
└── sdk
├── .editorconfig
├── .gitignore
├── .nuget
└── NuGet.Config
├── PowerBI.Api.Tests
├── AsymmetricKeyEncryptorTests.cs
├── CredentialsTests.cs
├── ExtensionsTest.cs
├── ImportsTests.cs
├── NuGet.config
├── PowerBI.Api.Tests.csproj
├── Properties
│ └── AssemblyInfo.cs
├── ReportTests.cs
├── TemplateAppTests.cs
├── app.config
└── packages.config
├── PowerBI.Api
├── Extensions
│ ├── Asymmetric1024KeyEncryptionHelper.cs
│ ├── AsymmetricHigherKeyEncryptionHelper.cs
│ ├── AsymmetricKeyEncryptor.cs
│ ├── AuthenticatedEncryption.cs
│ ├── Models
│ │ ├── CredentialDetails.cs
│ │ ├── Credentials
│ │ │ ├── AnonymousCredentials.cs
│ │ │ ├── BasicCredentials.cs
│ │ │ ├── CredentialsBase.cs
│ │ │ ├── ICredentialsEncryptor.cs
│ │ │ ├── KeyCredentials.cs
│ │ │ ├── OAuth2Credentials.cs
│ │ │ ├── UsernamePasswordCredentials.cs
│ │ │ └── WindowsCredentials.cs
│ │ ├── GenerateTokenRequest.cs
│ │ ├── UpdateDatasetParametersRequest.cs
│ │ └── UpdateDatasourcesRequest.cs
│ ├── ReportsClient.cs
│ └── ReportsRestClient.cs
├── ITile.cs
├── Imports
│ ├── ImportsClientExtension.cs
│ └── ImportsRestClientExtension.cs
├── NuGet.config
├── PowerBI.Api.csproj
├── PowerBI.Api.nuspec
├── PowerBIClient.cs
├── PowerBIClientUtils.cs
├── Properties
│ └── AssemblyInfo.cs
├── Source
│ ├── AdminClient.cs
│ ├── AdminRestClient.cs
│ ├── AppsClient.cs
│ ├── AppsRestClient.cs
│ ├── AvailableFeaturesClient.cs
│ ├── AvailableFeaturesRestClient.cs
│ ├── CapacitiesClient.cs
│ ├── CapacitiesRestClient.cs
│ ├── DashboardsClient.cs
│ ├── DashboardsRestClient.cs
│ ├── DataflowStorageAccountsClient.cs
│ ├── DataflowStorageAccountsRestClient.cs
│ ├── DataflowsClient.cs
│ ├── DataflowsRestClient.cs
│ ├── DatasetsClient.cs
│ ├── DatasetsRefreshDatasetHeaders.cs
│ ├── DatasetsRefreshDatasetInGroupHeaders.cs
│ ├── DatasetsRestClient.cs
│ ├── EmbedTokenClient.cs
│ ├── EmbedTokenRestClient.cs
│ ├── GatewaysClient.cs
│ ├── GatewaysRestClient.cs
│ ├── GoalNotesClient.cs
│ ├── GoalNotesRestClient.cs
│ ├── GoalValuesClient.cs
│ ├── GoalValuesRestClient.cs
│ ├── GoalsClient.cs
│ ├── GoalsRestClient.cs
│ ├── GoalsStatusRulesClient.cs
│ ├── GoalsStatusRulesRestClient.cs
│ ├── GroupsClient.cs
│ ├── GroupsRestClient.cs
│ ├── ImportsClient.cs
│ ├── ImportsRestClient.cs
│ ├── InformationProtectionClient.cs
│ ├── InformationProtectionRestClient.cs
│ ├── Internal
│ │ ├── Argument.cs
│ │ ├── ChangeTrackingDictionary.cs
│ │ ├── ChangeTrackingList.cs
│ │ ├── ModelSerializationExtensions.cs
│ │ ├── MultipartFormDataRequestContent.cs
│ │ ├── Optional.cs
│ │ ├── RequestContentHelper.cs
│ │ └── Utf8JsonRequestContent.cs
│ ├── MicrosoftPowerBIApiModelFactory.cs
│ ├── Models
│ │ ├── ASMashupExpression.Serialization.cs
│ │ ├── ASMashupExpression.cs
│ │ ├── ActivityEventResponse.Serialization.cs
│ │ ├── ActivityEventResponse.cs
│ │ ├── AddDashboardRequest.Serialization.cs
│ │ ├── AddDashboardRequest.cs
│ │ ├── AdditionalFeatureInfo.Serialization.cs
│ │ ├── AdditionalFeatureInfo.cs
│ │ ├── AdminApp.Serialization.cs
│ │ ├── AdminApp.cs
│ │ ├── AdminApps.Serialization.cs
│ │ ├── AdminApps.cs
│ │ ├── AdminDashboard.Serialization.cs
│ │ ├── AdminDashboard.cs
│ │ ├── AdminDashboardTilesProperties.Serialization.cs
│ │ ├── AdminDashboardTilesProperties.cs
│ │ ├── AdminDashboards.Serialization.cs
│ │ ├── AdminDashboards.cs
│ │ ├── AdminDataflow.Serialization.cs
│ │ ├── AdminDataflow.cs
│ │ ├── AdminDataflows.Serialization.cs
│ │ ├── AdminDataflows.cs
│ │ ├── AdminDataset.Serialization.cs
│ │ ├── AdminDataset.cs
│ │ ├── AdminDatasets.Serialization.cs
│ │ ├── AdminDatasets.cs
│ │ ├── AdminGroup.Serialization.cs
│ │ ├── AdminGroup.cs
│ │ ├── AdminGroups.Serialization.cs
│ │ ├── AdminGroups.cs
│ │ ├── AdminPipeline.Serialization.cs
│ │ ├── AdminPipeline.cs
│ │ ├── AdminPipelines.Serialization.cs
│ │ ├── AdminPipelines.cs
│ │ ├── AdminReport.Serialization.cs
│ │ ├── AdminReport.cs
│ │ ├── AdminReports.Serialization.cs
│ │ ├── AdminReports.cs
│ │ ├── AdminServicePrincipalProfile.Serialization.cs
│ │ ├── AdminServicePrincipalProfile.cs
│ │ ├── AdminServicePrincipalProfiles.Serialization.cs
│ │ ├── AdminServicePrincipalProfiles.cs
│ │ ├── AdminTile.Serialization.cs
│ │ ├── AdminTile.cs
│ │ ├── AdminTiles.Serialization.cs
│ │ ├── AdminTiles.cs
│ │ ├── App.Serialization.cs
│ │ ├── App.cs
│ │ ├── AppUser.Serialization.cs
│ │ ├── AppUser.cs
│ │ ├── AppUserAccessRight.Serialization.cs
│ │ ├── AppUserAccessRight.cs
│ │ ├── AppUsers.Serialization.cs
│ │ ├── AppUsers.cs
│ │ ├── Apps.Serialization.cs
│ │ ├── Apps.cs
│ │ ├── ArtifactAccessEntry.Serialization.cs
│ │ ├── ArtifactAccessEntry.cs
│ │ ├── ArtifactAccessResponse.Serialization.cs
│ │ ├── ArtifactAccessResponse.cs
│ │ ├── ArtifactId.Serialization.cs
│ │ ├── ArtifactId.cs
│ │ ├── ArtifactStringId.Serialization.cs
│ │ ├── ArtifactStringId.cs
│ │ ├── ArtifactType.Serialization.cs
│ │ ├── ArtifactType.cs
│ │ ├── AssignToCapacityRequest.Serialization.cs
│ │ ├── AssignToCapacityRequest.cs
│ │ ├── AssignToDataflowStorageRequest.Serialization.cs
│ │ ├── AssignToDataflowStorageRequest.cs
│ │ ├── AssignWorkspaceRequest.Serialization.cs
│ │ ├── AssignWorkspaceRequest.cs
│ │ ├── AssignWorkspacesToCapacityRequest.Serialization.cs
│ │ ├── AssignWorkspacesToCapacityRequest.cs
│ │ ├── AssignmentMethod.Serialization.cs
│ │ ├── AssignmentMethod.cs
│ │ ├── AssignmentStatus.Serialization.cs
│ │ ├── AssignmentStatus.cs
│ │ ├── AvailableFeature.Serialization.cs
│ │ ├── AvailableFeature.cs
│ │ ├── AvailableFeatures.Serialization.cs
│ │ ├── AvailableFeatures.cs
│ │ ├── AzureResource.Serialization.cs
│ │ ├── AzureResource.cs
│ │ ├── BindToGatewayRequest.Serialization.cs
│ │ ├── BindToGatewayRequest.cs
│ │ ├── Capacities.Serialization.cs
│ │ ├── Capacities.cs
│ │ ├── Capacity.Serialization.cs
│ │ ├── Capacity.cs
│ │ ├── CapacityMigrationAssignment.Serialization.cs
│ │ ├── CapacityMigrationAssignment.cs
│ │ ├── CapacityPatchRequest.Serialization.cs
│ │ ├── CapacityPatchRequest.cs
│ │ ├── CapacityState.Serialization.cs
│ │ ├── CapacityState.cs
│ │ ├── CapacityUser.Serialization.cs
│ │ ├── CapacityUser.cs
│ │ ├── CapacityUserAccessRight.Serialization.cs
│ │ ├── CapacityUserAccessRight.cs
│ │ ├── CapacityUsers.Serialization.cs
│ │ ├── CapacityUsers.cs
│ │ ├── ChangeLabelStatus.Serialization.cs
│ │ ├── ChangeLabelStatus.cs
│ │ ├── CloneReportRequest.Serialization.cs
│ │ ├── CloneReportRequest.cs
│ │ ├── CloneTileRequest.Serialization.cs
│ │ ├── CloneTileRequest.cs
│ │ ├── Column.Serialization.cs
│ │ ├── Column.cs
│ │ ├── ConnectionDetails.Serialization.cs
│ │ ├── ConnectionDetails.cs
│ │ ├── ConnectionType.Serialization.cs
│ │ ├── ConnectionType.cs
│ │ ├── CreateDatasetRequest.Serialization.cs
│ │ ├── CreateDatasetRequest.cs
│ │ ├── CreateInstallTicketRequest.Serialization.cs
│ │ ├── CreateInstallTicketRequest.cs
│ │ ├── CreateOrUpdateProfileRequest.Serialization.cs
│ │ ├── CreateOrUpdateProfileRequest.cs
│ │ ├── CreatePipelineRequest.Serialization.cs
│ │ ├── CreatePipelineRequest.cs
│ │ ├── CredentialDetails.Serialization.cs
│ │ ├── CredentialDetails.cs
│ │ ├── CredentialType.Serialization.cs
│ │ ├── CredentialType.cs
│ │ ├── CrossFilteringBehavior.Serialization.cs
│ │ ├── CrossFilteringBehavior.cs
│ │ ├── Dashboard.Serialization.cs
│ │ ├── Dashboard.cs
│ │ ├── DashboardBaseProperties.Serialization.cs
│ │ ├── DashboardBaseProperties.cs
│ │ ├── DashboardNavigationProperties.Serialization.cs
│ │ ├── DashboardNavigationProperties.cs
│ │ ├── DashboardUser.Serialization.cs
│ │ ├── DashboardUser.cs
│ │ ├── DashboardUserAccessRight.Serialization.cs
│ │ ├── DashboardUserAccessRight.cs
│ │ ├── DashboardUserProperties.Serialization.cs
│ │ ├── DashboardUserProperties.cs
│ │ ├── DashboardUsers.Serialization.cs
│ │ ├── DashboardUsers.cs
│ │ ├── DashboardWorkspaceIdProperty.Serialization.cs
│ │ ├── DashboardWorkspaceIdProperty.cs
│ │ ├── Dashboards.Serialization.cs
│ │ ├── Dashboards.cs
│ │ ├── DataClassificationProperties.Serialization.cs
│ │ ├── DataClassificationProperties.cs
│ │ ├── Dataflow.Serialization.cs
│ │ ├── Dataflow.cs
│ │ ├── DataflowBaseProperties.Serialization.cs
│ │ ├── DataflowBaseProperties.cs
│ │ ├── DataflowStorageAccount.Serialization.cs
│ │ ├── DataflowStorageAccount.cs
│ │ ├── DataflowStorageAccounts.Serialization.cs
│ │ ├── DataflowStorageAccounts.cs
│ │ ├── DataflowTransaction.Serialization.cs
│ │ ├── DataflowTransaction.cs
│ │ ├── DataflowTransactionStatus.Serialization.cs
│ │ ├── DataflowTransactionStatus.cs
│ │ ├── DataflowTransactionStatusStatus.cs
│ │ ├── DataflowTransactions.Serialization.cs
│ │ ├── DataflowTransactions.cs
│ │ ├── DataflowUpdateRequestMessage.Serialization.cs
│ │ ├── DataflowUpdateRequestMessage.cs
│ │ ├── DataflowUpdateRequestMessageComputeEngineBehavior.cs
│ │ ├── DataflowUser.Serialization.cs
│ │ ├── DataflowUser.cs
│ │ ├── DataflowUserAccessRight.Serialization.cs
│ │ ├── DataflowUserAccessRight.cs
│ │ ├── DataflowUsers.Serialization.cs
│ │ ├── DataflowUsers.cs
│ │ ├── DataflowWorkspaceIdProperty.Serialization.cs
│ │ ├── DataflowWorkspaceIdProperty.cs
│ │ ├── Dataflows.Serialization.cs
│ │ ├── Dataflows.cs
│ │ ├── DatamartAuthoringProperties.Serialization.cs
│ │ ├── DatamartAuthoringProperties.cs
│ │ ├── DatamartAuthoringPropertiesById.Serialization.cs
│ │ ├── DatamartAuthoringPropertiesById.cs
│ │ ├── DatamartBaseProperties.Serialization.cs
│ │ ├── DatamartBaseProperties.cs
│ │ ├── DatamartDatasourceUsagesProperties.Serialization.cs
│ │ ├── DatamartDatasourceUsagesProperties.cs
│ │ ├── DatamartEndorsmentProperties.Serialization.cs
│ │ ├── DatamartEndorsmentProperties.cs
│ │ ├── DatamartSensitivityLabelProperties.Serialization.cs
│ │ ├── DatamartSensitivityLabelProperties.cs
│ │ ├── DatamartState.Serialization.cs
│ │ ├── DatamartState.cs
│ │ ├── DatamartStatus.Serialization.cs
│ │ ├── DatamartStatus.cs
│ │ ├── DatamartType.Serialization.cs
│ │ ├── DatamartType.cs
│ │ ├── DatamartUpstreamProperties.Serialization.cs
│ │ ├── DatamartUpstreamProperties.cs
│ │ ├── DatamartUser.Serialization.cs
│ │ ├── DatamartUser.cs
│ │ ├── DatamartUserAccessRight.Serialization.cs
│ │ ├── DatamartUserAccessRight.cs
│ │ ├── DatamartUserProperties.Serialization.cs
│ │ ├── DatamartUserProperties.cs
│ │ ├── Dataset.Serialization.cs
│ │ ├── Dataset.cs
│ │ ├── DatasetBaseProperties.Serialization.cs
│ │ ├── DatasetBaseProperties.cs
│ │ ├── DatasetCommitMode.Serialization.cs
│ │ ├── DatasetCommitMode.cs
│ │ ├── DatasetExecuteQueriesError.Serialization.cs
│ │ ├── DatasetExecuteQueriesError.cs
│ │ ├── DatasetExecuteQueriesInformationProtectionLabel.Serialization.cs
│ │ ├── DatasetExecuteQueriesInformationProtectionLabel.cs
│ │ ├── DatasetExecuteQueriesQuery.Serialization.cs
│ │ ├── DatasetExecuteQueriesQuery.cs
│ │ ├── DatasetExecuteQueriesQueryResult.Serialization.cs
│ │ ├── DatasetExecuteQueriesQueryResult.cs
│ │ ├── DatasetExecuteQueriesRequest.Serialization.cs
│ │ ├── DatasetExecuteQueriesRequest.cs
│ │ ├── DatasetExecuteQueriesResponse.Serialization.cs
│ │ ├── DatasetExecuteQueriesResponse.cs
│ │ ├── DatasetExecuteQueriesSerializationSettings.Serialization.cs
│ │ ├── DatasetExecuteQueriesSerializationSettings.cs
│ │ ├── DatasetExecuteQueriesTableResult.Serialization.cs
│ │ ├── DatasetExecuteQueriesTableResult.cs
│ │ ├── DatasetMiscProperties.Serialization.cs
│ │ ├── DatasetMiscProperties.cs
│ │ ├── DatasetMode.Serialization.cs
│ │ ├── DatasetMode.cs
│ │ ├── DatasetNavigationProperties.Serialization.cs
│ │ ├── DatasetNavigationProperties.cs
│ │ ├── DatasetQueryScaleOutSettings.Serialization.cs
│ │ ├── DatasetQueryScaleOutSettings.cs
│ │ ├── DatasetQueryScaleOutSyncStatus.Serialization.cs
│ │ ├── DatasetQueryScaleOutSyncStatus.cs
│ │ ├── DatasetRefreshDetail.Serialization.cs
│ │ ├── DatasetRefreshDetail.cs
│ │ ├── DatasetRefreshDetailCommitMode.cs
│ │ ├── DatasetRefreshDetailExtendedStatus.cs
│ │ ├── DatasetRefreshDetailStatus.cs
│ │ ├── DatasetRefreshDetailType.cs
│ │ ├── DatasetRefreshObjects.Serialization.cs
│ │ ├── DatasetRefreshObjects.cs
│ │ ├── DatasetRefreshRequest.Serialization.cs
│ │ ├── DatasetRefreshRequest.cs
│ │ ├── DatasetRefreshType.Serialization.cs
│ │ ├── DatasetRefreshType.cs
│ │ ├── DatasetSchemaProperties.Serialization.cs
│ │ ├── DatasetSchemaProperties.cs
│ │ ├── DatasetSecurityProperties.Serialization.cs
│ │ ├── DatasetSecurityProperties.cs
│ │ ├── DatasetStorageMode.Serialization.cs
│ │ ├── DatasetStorageMode.cs
│ │ ├── DatasetToDataflowLinkResponse.Serialization.cs
│ │ ├── DatasetToDataflowLinkResponse.cs
│ │ ├── DatasetToDataflowLinksResponse.Serialization.cs
│ │ ├── DatasetToDataflowLinksResponse.cs
│ │ ├── DatasetUser.Serialization.cs
│ │ ├── DatasetUser.cs
│ │ ├── DatasetUserAccess.Serialization.cs
│ │ ├── DatasetUserAccess.cs
│ │ ├── DatasetUserAccessRight.Serialization.cs
│ │ ├── DatasetUserAccessRight.cs
│ │ ├── DatasetUserAccessRightEntry.Serialization.cs
│ │ ├── DatasetUserAccessRightEntry.cs
│ │ ├── DatasetUserProperties.Serialization.cs
│ │ ├── DatasetUserProperties.cs
│ │ ├── DatasetUsers.Serialization.cs
│ │ ├── DatasetUsers.cs
│ │ ├── DatasetUsersAccess.Serialization.cs
│ │ ├── DatasetUsersAccess.cs
│ │ ├── DatasetWorkspaceIdProperty.Serialization.cs
│ │ ├── DatasetWorkspaceIdProperty.cs
│ │ ├── Datasets.Serialization.cs
│ │ ├── Datasets.cs
│ │ ├── Datasource.Serialization.cs
│ │ ├── Datasource.cs
│ │ ├── DatasourceConnectionDetails.Serialization.cs
│ │ ├── DatasourceConnectionDetails.cs
│ │ ├── DatasourceIdentity.Serialization.cs
│ │ ├── DatasourceIdentity.cs
│ │ ├── DatasourceSelector.Serialization.cs
│ │ ├── DatasourceSelector.cs
│ │ ├── DatasourceUsage.Serialization.cs
│ │ ├── DatasourceUsage.cs
│ │ ├── DatasourceUser.Serialization.cs
│ │ ├── DatasourceUser.cs
│ │ ├── DatasourceUserAccessRight.Serialization.cs
│ │ ├── DatasourceUserAccessRight.cs
│ │ ├── DatasourceUsers.Serialization.cs
│ │ ├── DatasourceUsers.cs
│ │ ├── Datasources.Serialization.cs
│ │ ├── Datasources.cs
│ │ ├── Days.Serialization.cs
│ │ ├── Days.cs
│ │ ├── DefaultDatasetStorageFormat.cs
│ │ ├── DefaultRetentionPolicy.Serialization.cs
│ │ ├── DefaultRetentionPolicy.cs
│ │ ├── DelegatedUser.Serialization.cs
│ │ ├── DelegatedUser.cs
│ │ ├── DependentDataflow.Serialization.cs
│ │ ├── DependentDataflow.cs
│ │ ├── DependentDataflows.Serialization.cs
│ │ ├── DependentDataflows.cs
│ │ ├── DependentDatamart.Serialization.cs
│ │ ├── DependentDatamart.cs
│ │ ├── DependentDataset.Serialization.cs
│ │ ├── DependentDataset.cs
│ │ ├── DependentDatasets.cs
│ │ ├── DeployAllRequest.Serialization.cs
│ │ ├── DeployAllRequest.cs
│ │ ├── DeployArtifactRequest.Serialization.cs
│ │ ├── DeployArtifactRequest.cs
│ │ ├── DeployRequestBase.Serialization.cs
│ │ ├── DeployRequestBase.cs
│ │ ├── DeploymentError.Serialization.cs
│ │ ├── DeploymentError.cs
│ │ ├── DeploymentExecutionPlan.Serialization.cs
│ │ ├── DeploymentExecutionPlan.cs
│ │ ├── DeploymentExecutionStep.Serialization.cs
│ │ ├── DeploymentExecutionStep.cs
│ │ ├── DeploymentExecutionStepPreDeploymentDiffState.Serialization.cs
│ │ ├── DeploymentExecutionStepPreDeploymentDiffState.cs
│ │ ├── DeploymentOptions.Serialization.cs
│ │ ├── DeploymentOptions.cs
│ │ ├── DeploymentSourceAndTarget.Serialization.cs
│ │ ├── DeploymentSourceAndTarget.cs
│ │ ├── DeploymentStepType.Serialization.cs
│ │ ├── DeploymentStepType.cs
│ │ ├── DirectQueryRefreshSchedule.Serialization.cs
│ │ ├── DirectQueryRefreshSchedule.cs
│ │ ├── DirectQueryRefreshScheduleRequest.Serialization.cs
│ │ ├── DirectQueryRefreshScheduleRequest.cs
│ │ ├── DownloadType.Serialization.cs
│ │ ├── DownloadType.cs
│ │ ├── EffectiveIdentity.Serialization.cs
│ │ ├── EffectiveIdentity.cs
│ │ ├── EmbedToken.Serialization.cs
│ │ ├── EmbedToken.cs
│ │ ├── EncryptedConnection.Serialization.cs
│ │ ├── EncryptedConnection.cs
│ │ ├── Encryption.Serialization.cs
│ │ ├── Encryption.cs
│ │ ├── EncryptionAlgorithm.Serialization.cs
│ │ ├── EncryptionAlgorithm.cs
│ │ ├── EncryptionStatus.Serialization.cs
│ │ ├── EncryptionStatus.cs
│ │ ├── EndorsementDetails.Serialization.cs
│ │ ├── EndorsementDetails.cs
│ │ ├── EndorsmentProperties.Serialization.cs
│ │ ├── EndorsmentProperties.cs
│ │ ├── EngineMessage.Serialization.cs
│ │ ├── EngineMessage.cs
│ │ ├── Enum10.cs
│ │ ├── Export.Serialization.cs
│ │ ├── Export.cs
│ │ ├── ExportFilter.Serialization.cs
│ │ ├── ExportFilter.cs
│ │ ├── ExportReportPage.Serialization.cs
│ │ ├── ExportReportPage.cs
│ │ ├── ExportReportRequest.Serialization.cs
│ │ ├── ExportReportRequest.cs
│ │ ├── ExportReportSettings.Serialization.cs
│ │ ├── ExportReportSettings.cs
│ │ ├── ExportState.Serialization.cs
│ │ ├── ExportState.cs
│ │ ├── Expression.Serialization.cs
│ │ ├── Expression.cs
│ │ ├── FeatureExtendedState.Serialization.cs
│ │ ├── FeatureExtendedState.cs
│ │ ├── FeatureState.Serialization.cs
│ │ ├── FeatureState.cs
│ │ ├── FileFormat.Serialization.cs
│ │ ├── FileFormat.cs
│ │ ├── Gateway.Serialization.cs
│ │ ├── Gateway.cs
│ │ ├── GatewayDatasource.Serialization.cs
│ │ ├── GatewayDatasource.cs
│ │ ├── GatewayDatasourceCredentialDetails.Serialization.cs
│ │ ├── GatewayDatasourceCredentialDetails.cs
│ │ ├── GatewayDatasources.Serialization.cs
│ │ ├── GatewayDatasources.cs
│ │ ├── GatewayPublicKey.Serialization.cs
│ │ ├── GatewayPublicKey.cs
│ │ ├── Gateways.Serialization.cs
│ │ ├── Gateways.cs
│ │ ├── GenerateTokenRequest.Serialization.cs
│ │ ├── GenerateTokenRequest.cs
│ │ ├── GenerateTokenRequestV2.Serialization.cs
│ │ ├── GenerateTokenRequestV2.cs
│ │ ├── GenerateTokenRequestV2Dataset.Serialization.cs
│ │ ├── GenerateTokenRequestV2Dataset.cs
│ │ ├── GenerateTokenRequestV2Report.Serialization.cs
│ │ ├── GenerateTokenRequestV2Report.cs
│ │ ├── GenerateTokenRequestV2TargetWorkspace.Serialization.cs
│ │ ├── GenerateTokenRequestV2TargetWorkspace.cs
│ │ ├── Goal.Serialization.cs
│ │ ├── Goal.cs
│ │ ├── GoalAggregation.Serialization.cs
│ │ ├── GoalAggregation.cs
│ │ ├── GoalAggregationType.Serialization.cs
│ │ ├── GoalAggregationType.cs
│ │ ├── GoalCreateRequest.Serialization.cs
│ │ ├── GoalCreateRequest.cs
│ │ ├── GoalNote.Serialization.cs
│ │ ├── GoalNote.cs
│ │ ├── GoalNoteRequest.Serialization.cs
│ │ ├── GoalNoteRequest.cs
│ │ ├── GoalNotes.cs
│ │ ├── GoalPermissions.Serialization.cs
│ │ ├── GoalPermissions.cs
│ │ ├── GoalProcessingStatus.Serialization.cs
│ │ ├── GoalProcessingStatus.cs
│ │ ├── GoalRankValidationInfo.Serialization.cs
│ │ ├── GoalRankValidationInfo.cs
│ │ ├── GoalRefreshHistories.Serialization.cs
│ │ ├── GoalRefreshHistories.cs
│ │ ├── GoalRefreshHistory.Serialization.cs
│ │ ├── GoalRefreshHistory.cs
│ │ ├── GoalRulesFieldComparisonKind.Serialization.cs
│ │ ├── GoalRulesFieldComparisonKind.cs
│ │ ├── GoalValue.Serialization.cs
│ │ ├── GoalValue.cs
│ │ ├── GoalValueCreateRequest.Serialization.cs
│ │ ├── GoalValueCreateRequest.cs
│ │ ├── GoalValueType.Serialization.cs
│ │ ├── GoalValueType.cs
│ │ ├── GoalValues.Serialization.cs
│ │ ├── GoalValues.cs
│ │ ├── Goals.Serialization.cs
│ │ ├── Goals.cs
│ │ ├── GoalsMoveRequest.Serialization.cs
│ │ ├── GoalsMoveRequest.cs
│ │ ├── GoalsRulesFieldComparison.Serialization.cs
│ │ ├── GoalsRulesFieldComparison.cs
│ │ ├── GoalsRulesGoalRulesContainer.Serialization.cs
│ │ ├── GoalsRulesGoalRulesContainer.cs
│ │ ├── GoalsRulesGoalStatusRules.Serialization.cs
│ │ ├── GoalsRulesGoalStatusRules.cs
│ │ ├── GoalsRulesGoalStatusRulesUpdateRequest.Serialization.cs
│ │ ├── GoalsRulesGoalStatusRulesUpdateRequest.cs
│ │ ├── GoalsRulesPercentOf.Serialization.cs
│ │ ├── GoalsRulesPercentOf.cs
│ │ ├── GoalsRulesRule1OfInt32.Serialization.cs
│ │ ├── GoalsRulesRule1OfInt32.cs
│ │ ├── GoalsRulesRuleCondition.Serialization.cs
│ │ ├── GoalsRulesRuleCondition.cs
│ │ ├── GoalsRulesRuleValue.Serialization.cs
│ │ ├── GoalsRulesRuleValue.cs
│ │ ├── Group.Serialization.cs
│ │ ├── Group.cs
│ │ ├── GroupAdminProperties.Serialization.cs
│ │ ├── GroupAdminProperties.cs
│ │ ├── GroupBaseProperties.Serialization.cs
│ │ ├── GroupBaseProperties.cs
│ │ ├── GroupCreationRequest.Serialization.cs
│ │ ├── GroupCreationRequest.cs
│ │ ├── GroupExtendedProperties.Serialization.cs
│ │ ├── GroupExtendedProperties.cs
│ │ ├── GroupRestoreRequest.Serialization.cs
│ │ ├── GroupRestoreRequest.cs
│ │ ├── GroupType.Serialization.cs
│ │ ├── GroupType.cs
│ │ ├── GroupUser.Serialization.cs
│ │ ├── GroupUser.cs
│ │ ├── GroupUserAccessRight.Serialization.cs
│ │ ├── GroupUserAccessRight.cs
│ │ ├── GroupUsers.Serialization.cs
│ │ ├── GroupUsers.cs
│ │ ├── Groups.Serialization.cs
│ │ ├── Groups.cs
│ │ ├── IdentityBlob.Serialization.cs
│ │ ├── IdentityBlob.cs
│ │ ├── Import.Serialization.cs
│ │ ├── Import.cs
│ │ ├── ImportConflictHandlerMode.Serialization.cs
│ │ ├── ImportConflictHandlerMode.cs
│ │ ├── ImportInfo.Serialization.cs
│ │ ├── ImportInfo.cs
│ │ ├── ImportState.cs
│ │ ├── Imports.Serialization.cs
│ │ ├── Imports.cs
│ │ ├── InformationProtectionArtifactsChangeLabel.Serialization.cs
│ │ ├── InformationProtectionArtifactsChangeLabel.cs
│ │ ├── InformationProtectionChangeLabelDetails.Serialization.cs
│ │ ├── InformationProtectionChangeLabelDetails.cs
│ │ ├── InformationProtectionChangeLabelResponse.Serialization.cs
│ │ ├── InformationProtectionChangeLabelResponse.cs
│ │ ├── InstallTicket.Serialization.cs
│ │ ├── InstallTicket.cs
│ │ ├── MashupParameter.Serialization.cs
│ │ ├── MashupParameter.cs
│ │ ├── MashupParameters.Serialization.cs
│ │ ├── MashupParameters.cs
│ │ ├── Measure.Serialization.cs
│ │ ├── Measure.cs
│ │ ├── ModifiedWorkspace.Serialization.cs
│ │ ├── ModifiedWorkspace.cs
│ │ ├── NotifyOption.Serialization.cs
│ │ ├── NotifyOption.cs
│ │ ├── Page.Serialization.cs
│ │ ├── Page.cs
│ │ ├── PageBookmark.Serialization.cs
│ │ ├── PageBookmark.cs
│ │ ├── Pages.Serialization.cs
│ │ ├── Pages.cs
│ │ ├── PaginatedReportExportConfiguration.Serialization.cs
│ │ ├── PaginatedReportExportConfiguration.cs
│ │ ├── ParameterValue.Serialization.cs
│ │ ├── ParameterValue.cs
│ │ ├── PatchWorkloadRequest.Serialization.cs
│ │ ├── PatchWorkloadRequest.cs
│ │ ├── Pipeline.Serialization.cs
│ │ ├── Pipeline.cs
│ │ ├── PipelineBaseProperties.Serialization.cs
│ │ ├── PipelineBaseProperties.cs
│ │ ├── PipelineNewWorkspaceRequest.Serialization.cs
│ │ ├── PipelineNewWorkspaceRequest.cs
│ │ ├── PipelineOperation.Serialization.cs
│ │ ├── PipelineOperation.cs
│ │ ├── PipelineOperationNote.Serialization.cs
│ │ ├── PipelineOperationNote.cs
│ │ ├── PipelineOperationStatus.Serialization.cs
│ │ ├── PipelineOperationStatus.cs
│ │ ├── PipelineOperationType.cs
│ │ ├── PipelineOperationUser.Serialization.cs
│ │ ├── PipelineOperationUser.cs
│ │ ├── PipelineOperations.Serialization.cs
│ │ ├── PipelineOperations.cs
│ │ ├── PipelineStage.Serialization.cs
│ │ ├── PipelineStage.cs
│ │ ├── PipelineStageArtifactBase.Serialization.cs
│ │ ├── PipelineStageArtifactBase.cs
│ │ ├── PipelineStageArtifacts.Serialization.cs
│ │ ├── PipelineStageArtifacts.cs
│ │ ├── PipelineStageDashboard.Serialization.cs
│ │ ├── PipelineStageDashboard.cs
│ │ ├── PipelineStageDataflow.Serialization.cs
│ │ ├── PipelineStageDataflow.cs
│ │ ├── PipelineStageDatamart.Serialization.cs
│ │ ├── PipelineStageDatamart.cs
│ │ ├── PipelineStageDataset.Serialization.cs
│ │ ├── PipelineStageDataset.cs
│ │ ├── PipelineStageReport.Serialization.cs
│ │ ├── PipelineStageReport.cs
│ │ ├── PipelineStages.Serialization.cs
│ │ ├── PipelineStages.cs
│ │ ├── PipelineUpdateAppSettings.Serialization.cs
│ │ ├── PipelineUpdateAppSettings.cs
│ │ ├── PipelineUser.Serialization.cs
│ │ ├── PipelineUser.cs
│ │ ├── PipelineUserAccessRight.cs
│ │ ├── PipelineUsers.Serialization.cs
│ │ ├── PipelineUsers.cs
│ │ ├── PipelineUsersProperties.Serialization.cs
│ │ ├── PipelineUsersProperties.cs
│ │ ├── Pipelines.Serialization.cs
│ │ ├── Pipelines.cs
│ │ ├── PositionConflictAction.Serialization.cs
│ │ ├── PositionConflictAction.cs
│ │ ├── PostDatasetUserAccess.Serialization.cs
│ │ ├── PostDatasetUserAccess.cs
│ │ ├── PostRowsRequest.Serialization.cs
│ │ ├── PostRowsRequest.cs
│ │ ├── PowerBIApiErrorResponseDetail.Serialization.cs
│ │ ├── PowerBIApiErrorResponseDetail.cs
│ │ ├── PowerBIReportExportConfiguration.Serialization.cs
│ │ ├── PowerBIReportExportConfiguration.cs
│ │ ├── PreDeploymentDiffInformation.Serialization.cs
│ │ ├── PreDeploymentDiffInformation.cs
│ │ ├── Principal.Serialization.cs
│ │ ├── Principal.cs
│ │ ├── PrincipalType.Serialization.cs
│ │ ├── PrincipalType.cs
│ │ ├── PrivacyLevel.Serialization.cs
│ │ ├── PrivacyLevel.cs
│ │ ├── PublishDatasourceToGatewayRequest.Serialization.cs
│ │ ├── PublishDatasourceToGatewayRequest.cs
│ │ ├── QueryScaleOutStatus.cs
│ │ ├── QueryScaleOutSyncTriggerReason.cs
│ │ ├── RdlBindDetail.Serialization.cs
│ │ ├── RdlBindDetail.cs
│ │ ├── RdlBindToGatewayRequest.Serialization.cs
│ │ ├── RdlBindToGatewayRequest.cs
│ │ ├── RdlDatasourceConnectionDetails.Serialization.cs
│ │ ├── RdlDatasourceConnectionDetails.cs
│ │ ├── RebindReportRequest.Serialization.cs
│ │ ├── RebindReportRequest.cs
│ │ ├── Refresh.Serialization.cs
│ │ ├── Refresh.cs
│ │ ├── RefreshAttempt.Serialization.cs
│ │ ├── RefreshAttempt.cs
│ │ ├── RefreshAttemptType.Serialization.cs
│ │ ├── RefreshAttemptType.cs
│ │ ├── RefreshEngineErrorType.cs
│ │ ├── RefreshRequest.Serialization.cs
│ │ ├── RefreshRequest.cs
│ │ ├── RefreshSchedule.Serialization.cs
│ │ ├── RefreshSchedule.cs
│ │ ├── RefreshScheduleRequest.Serialization.cs
│ │ ├── RefreshScheduleRequest.cs
│ │ ├── RefreshType.Serialization.cs
│ │ ├── RefreshType.cs
│ │ ├── Refreshable.Serialization.cs
│ │ ├── Refreshable.cs
│ │ ├── RefreshableGroup.Serialization.cs
│ │ ├── RefreshableGroup.cs
│ │ ├── RefreshableKind.cs
│ │ ├── Refreshables.Serialization.cs
│ │ ├── Refreshables.cs
│ │ ├── Refreshes.Serialization.cs
│ │ ├── Refreshes.cs
│ │ ├── RelatedDatasetProperties.Serialization.cs
│ │ ├── RelatedDatasetProperties.cs
│ │ ├── Relationship.Serialization.cs
│ │ ├── Relationship.cs
│ │ ├── Report.Serialization.cs
│ │ ├── Report.cs
│ │ ├── ReportAuthoringProperties.Serialization.cs
│ │ ├── ReportAuthoringProperties.cs
│ │ ├── ReportAuthoringPropertiesById.Serialization.cs
│ │ ├── ReportAuthoringPropertiesById.cs
│ │ ├── ReportBaseProperties.Serialization.cs
│ │ ├── ReportBaseProperties.cs
│ │ ├── ReportBasePropertiesReportType.cs
│ │ ├── ReportNavigationProperties.Serialization.cs
│ │ ├── ReportNavigationProperties.cs
│ │ ├── ReportUser.Serialization.cs
│ │ ├── ReportUser.cs
│ │ ├── ReportUserAccessRight.Serialization.cs
│ │ ├── ReportUserAccessRight.cs
│ │ ├── ReportUserProperties.Serialization.cs
│ │ ├── ReportUserProperties.cs
│ │ ├── ReportUsers.Serialization.cs
│ │ ├── ReportUsers.cs
│ │ ├── ReportWorkspaceIdProperty.Serialization.cs
│ │ ├── ReportWorkspaceIdProperty.cs
│ │ ├── Reports.Serialization.cs
│ │ ├── Reports.cs
│ │ ├── RequiredWorkspaces.Serialization.cs
│ │ ├── RequiredWorkspaces.cs
│ │ ├── Role.Serialization.cs
│ │ ├── Role.cs
│ │ ├── RoleMember.Serialization.cs
│ │ ├── RoleMember.cs
│ │ ├── RoleTablePermission.Serialization.cs
│ │ ├── RoleTablePermission.cs
│ │ ├── Row.Serialization.cs
│ │ ├── Row.cs
│ │ ├── ScanRequest.Serialization.cs
│ │ ├── ScanRequest.cs
│ │ ├── ScheduleNotifyOption.Serialization.cs
│ │ ├── ScheduleNotifyOption.cs
│ │ ├── Scorecard.Serialization.cs
│ │ ├── Scorecard.cs
│ │ ├── ScorecardColumnId.Serialization.cs
│ │ ├── ScorecardColumnId.cs
│ │ ├── ScorecardColumnSetting.Serialization.cs
│ │ ├── ScorecardColumnSetting.cs
│ │ ├── ScorecardCreateRequest.Serialization.cs
│ │ ├── ScorecardCreateRequest.cs
│ │ ├── ScorecardPermission.Serialization.cs
│ │ ├── ScorecardPermission.cs
│ │ ├── ScorecardProvisioningStatus.cs
│ │ ├── Scorecards.Serialization.cs
│ │ ├── Scorecards.cs
│ │ ├── SelectiveDeployRequest.Serialization.cs
│ │ ├── SelectiveDeployRequest.cs
│ │ ├── SensitivityLabel.Serialization.cs
│ │ ├── SensitivityLabel.cs
│ │ ├── SensitivityProperties.Serialization.cs
│ │ ├── SensitivityProperties.cs
│ │ ├── ServicePrincipalProfile.Serialization.cs
│ │ ├── ServicePrincipalProfile.cs
│ │ ├── ServicePrincipalProfiles.Serialization.cs
│ │ ├── ServicePrincipalProfiles.cs
│ │ ├── SourceReport.Serialization.cs
│ │ ├── SourceReport.cs
│ │ ├── SourceType.cs
│ │ ├── Status.Serialization.cs
│ │ ├── Status.cs
│ │ ├── Subscription.Serialization.cs
│ │ ├── Subscription.cs
│ │ ├── SubscriptionProperties.Serialization.cs
│ │ ├── SubscriptionProperties.cs
│ │ ├── SubscriptionUser.Serialization.cs
│ │ ├── SubscriptionUser.cs
│ │ ├── Subscriptions.Serialization.cs
│ │ ├── Subscriptions.cs
│ │ ├── SubscriptionsByUserResponse.Serialization.cs
│ │ ├── SubscriptionsByUserResponse.cs
│ │ ├── Table.Serialization.cs
│ │ ├── Table.cs
│ │ ├── Tables.Serialization.cs
│ │ ├── Tables.cs
│ │ ├── TemplateAppConfigurationRequest.Serialization.cs
│ │ ├── TemplateAppConfigurationRequest.cs
│ │ ├── TemplateAppInstallDetails.Serialization.cs
│ │ ├── TemplateAppInstallDetails.cs
│ │ ├── TemporaryUploadLocation.Serialization.cs
│ │ ├── TemporaryUploadLocation.cs
│ │ ├── TenantKey.Serialization.cs
│ │ ├── TenantKey.cs
│ │ ├── TenantKeyCreationRequest.Serialization.cs
│ │ ├── TenantKeyCreationRequest.cs
│ │ ├── TenantKeyRotationRequest.Serialization.cs
│ │ ├── TenantKeyRotationRequest.cs
│ │ ├── TenantKeys.Serialization.cs
│ │ ├── TenantKeys.cs
│ │ ├── Tile.Serialization.cs
│ │ ├── Tile.cs
│ │ ├── TileBaseProperties.Serialization.cs
│ │ ├── TileBaseProperties.cs
│ │ ├── TileEmbedProperties.Serialization.cs
│ │ ├── TileEmbedProperties.cs
│ │ ├── TileLayoutProperties.Serialization.cs
│ │ ├── TileLayoutProperties.cs
│ │ ├── Tiles.Serialization.cs
│ │ ├── Tiles.cs
│ │ ├── TokenAccessLevel.Serialization.cs
│ │ ├── TokenAccessLevel.cs
│ │ ├── UnassignWorkspacesCapacityRequest.Serialization.cs
│ │ ├── UnassignWorkspacesCapacityRequest.cs
│ │ ├── UnusedArtifactEntity.Serialization.cs
│ │ ├── UnusedArtifactEntity.cs
│ │ ├── UnusedArtifactsResponse.Serialization.cs
│ │ ├── UnusedArtifactsResponse.cs
│ │ ├── UpdateDatasetRequest.Serialization.cs
│ │ ├── UpdateDatasetRequest.cs
│ │ ├── UpdateDatasourceConnectionRequest.Serialization.cs
│ │ ├── UpdateDatasourceConnectionRequest.cs
│ │ ├── UpdateDatasourceRequest.Serialization.cs
│ │ ├── UpdateDatasourceRequest.cs
│ │ ├── UpdateDatasourcesRequest.Serialization.cs
│ │ ├── UpdateDatasourcesRequest.cs
│ │ ├── UpdateGroupRequest.Serialization.cs
│ │ ├── UpdateGroupRequest.cs
│ │ ├── UpdateMashupParameterDetails.Serialization.cs
│ │ ├── UpdateMashupParameterDetails.cs
│ │ ├── UpdateMashupParametersRequest.Serialization.cs
│ │ ├── UpdateMashupParametersRequest.cs
│ │ ├── UpdatePipelineRequest.Serialization.cs
│ │ ├── UpdatePipelineRequest.cs
│ │ ├── UpdateRdlDatasourceDetails.Serialization.cs
│ │ ├── UpdateRdlDatasourceDetails.cs
│ │ ├── UpdateRdlDatasourcesRequest.Serialization.cs
│ │ ├── UpdateRdlDatasourcesRequest.cs
│ │ ├── UpdateReportContentRequest.Serialization.cs
│ │ ├── UpdateReportContentRequest.cs
│ │ ├── UpstreamDatasetsProperties.Serialization.cs
│ │ ├── UpstreamDatasetsProperties.cs
│ │ ├── User.Serialization.cs
│ │ ├── User.cs
│ │ ├── Workbook.Serialization.cs
│ │ ├── Workbook.cs
│ │ ├── Workbooks.cs
│ │ ├── Workload.Serialization.cs
│ │ ├── Workload.cs
│ │ ├── WorkloadState.Serialization.cs
│ │ ├── WorkloadState.cs
│ │ ├── Workloads.Serialization.cs
│ │ ├── Workloads.cs
│ │ ├── WorkspaceCapacityAssignmentStatus.Serialization.cs
│ │ ├── WorkspaceCapacityAssignmentStatus.cs
│ │ ├── WorkspaceInfo.Serialization.cs
│ │ ├── WorkspaceInfo.cs
│ │ ├── WorkspaceInfoDashboard.Serialization.cs
│ │ ├── WorkspaceInfoDashboard.cs
│ │ ├── WorkspaceInfoDashboardTilesProperties.Serialization.cs
│ │ ├── WorkspaceInfoDashboardTilesProperties.cs
│ │ ├── WorkspaceInfoDashboards.cs
│ │ ├── WorkspaceInfoDataflow.Serialization.cs
│ │ ├── WorkspaceInfoDataflow.cs
│ │ ├── WorkspaceInfoDataflowProperties.Serialization.cs
│ │ ├── WorkspaceInfoDataflowProperties.cs
│ │ ├── WorkspaceInfoDatamart.Serialization.cs
│ │ ├── WorkspaceInfoDatamart.cs
│ │ ├── WorkspaceInfoDataset.Serialization.cs
│ │ ├── WorkspaceInfoDataset.cs
│ │ ├── WorkspaceInfoReport.Serialization.cs
│ │ ├── WorkspaceInfoReport.cs
│ │ ├── WorkspaceInfoResponse.Serialization.cs
│ │ ├── WorkspaceInfoResponse.cs
│ │ ├── WorkspaceInfoTile.Serialization.cs
│ │ ├── WorkspaceInfoTile.cs
│ │ ├── WorkspaceInfoTiles.cs
│ │ ├── XmlaPermissions.Serialization.cs
│ │ └── XmlaPermissions.cs
│ ├── PipelinesClient.cs
│ ├── PipelinesRestClient.cs
│ ├── PowerBIClientOptions.cs
│ ├── ProfilesClient.cs
│ ├── ProfilesRestClient.cs
│ ├── ReportsClient.cs
│ ├── ReportsRestClient.cs
│ ├── ScorecardsClient.cs
│ ├── ScorecardsRestClient.cs
│ ├── TemplateAppsClient.cs
│ ├── TemplateAppsRestClient.cs
│ ├── TilesClient.cs
│ ├── TilesRestClient.cs
│ ├── UsersClient.cs
│ ├── UsersRestClient.cs
│ ├── WidelySharedArtifactsClient.cs
│ ├── WidelySharedArtifactsRestClient.cs
│ ├── WorkspaceInfoClient.cs
│ └── WorkspaceInfoRestClient.cs
└── app.config
├── PowerBI.CSharp.Sdk.sln
├── certificates
└── 35MSSharedLib1024.snk
├── generate.bat
├── powerbi.md
├── swaggers
└── swagger.json
└── tools
└── ApplyVersionToAssemblies.ps1
/.github/BackwardCompatibility.md:
--------------------------------------------------------------------------------
1 | # Breaking Change Definition
2 |
3 | Breaking changes in Power BI SDK for .NET are defined as follows:
4 |
5 | ## Generated classes
6 |
7 | - The class is removed
8 | - The class is renamed
9 | - The class no longer extends another class
10 |
11 | ## Properties of a generated class
12 |
13 | - A property is removed
14 | - A property is renamed
15 | - A property has its type changed
16 |
17 | ## Methods of a generated class
18 | - Methods should not be removed
19 | - Methods should not be renamed
20 | - Methods should not have their return type changed
21 |
22 | ## Parameters of methods in a generated class
23 | - Parameters should not be removed
24 | - Parameters should not have their type changed
25 | - Parameters should preserve their ordering, including when a parameter is added
26 | - Parameters should keep their default value, if they are assigned one
27 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Description
2 | A few sentences describing the overall goals of the pull request's commits.
3 |
4 | ## Question
5 | please answer the following questions. put x inside [ ] (e.g. [x])
6 |
7 | ### What inside?
8 | - [ ] Bug Fixes?
9 | - [ ] New Features?
10 | - [x] Documentation?
11 |
12 | ### Is pull request totally generated from swagger file?
13 | - [ ] Yes.
14 | - [ ] No, part of it is auto-generated.
15 |
16 | ### Backward compatibility break?
17 | - [ ] Yes. Pull request breaks backward compatibility!
18 |
19 | [Learn more about backward compatibility.](BackwardCompatibility.md)
20 |
--------------------------------------------------------------------------------
/.version/PipelineAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // This is a placeholder file
2 | // When build in CDPx Pipeline, it will be replaced by a generated file with the version assigned by CDPx.
3 | using System.Reflection;
4 |
5 | [assembly: AssemblyVersion("1.0.1")]
6 | [assembly: AssemblyFileVersion("1.0.1")]
7 | [assembly: AssemblyInformationalVersion("1.0.1-dev")]
--------------------------------------------------------------------------------
/azure-pipelines.yml:
--------------------------------------------------------------------------------
1 | # Starter pipeline
2 | # Start with a minimal pipeline that you can customize to build and deploy your code.
3 | # Add steps that build, run tests, deploy, and more:
4 | # https://aka.ms/yaml
5 |
6 | trigger:
7 | - master
8 |
9 | pool:
10 | vmImage: 'ubuntu-latest'
11 |
12 | steps:
13 | - script: echo Hello, world!
14 | displayName: 'Run a one-line script'
15 |
16 | - script: |
17 | echo Add other tasks to build, test, and deploy your project.
18 | echo See https://aka.ms/yaml
19 | displayName: 'Run a multi-line script'
20 |
--------------------------------------------------------------------------------
/directory.build.props:
--------------------------------------------------------------------------------
1 |
2 |
3 | true
4 | latest
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/global.json:
--------------------------------------------------------------------------------
1 | {
2 | "sdk": {
3 | "version": "7.0.305",
4 | "rollForward": "latestFeature"
5 | }
6 | }
--------------------------------------------------------------------------------
/license.txt:
--------------------------------------------------------------------------------
1 | Microsoft.PowerBI.CSharp
2 |
3 | Copyright (c) Microsoft Corporation
4 |
5 | All rights reserved.
6 |
7 | MIT License
8 |
9 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 |
11 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/PowerBI-CSharp/b9955be2009e2782696c0a16073bf21a315dc371/resources/icon.png
--------------------------------------------------------------------------------
/samples/readme.txt:
--------------------------------------------------------------------------------
1 | Samples have been moved to: https://github.com/Microsoft/PowerBI-developer-samples
--------------------------------------------------------------------------------
/scripts/build-sdk.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | echo Start running build-sdk.cmd ...
3 | pushd "%~dp0"
4 |
5 | call .\init-dev-cmd.cmd
6 |
7 | echo ==================================================
8 | echo "Build PowerBI.CSharp.Sdk.sln Release - AnyCPU..."
9 | echo ==================================================
10 | call msbuild %~dp0..\sdk\PowerBI.CSharp.Sdk.sln /p:Configuration=Release /p:Platform="AnyCPU" -fl
11 |
12 | set EX=%ERRORLEVEL%
13 | if "%EX%" neq "0" (
14 | echo "Failed to build PowerBI.CSharp.Sdk.sln."
15 | )
16 | popd
17 | exit /B %EX%
18 |
--------------------------------------------------------------------------------
/scripts/clean.cmd:
--------------------------------------------------------------------------------
1 | setlocal
2 | @echo off
3 | pushd "%~dp0"
4 | echo Start cleaning...
5 | for /d %%G in (%~dp0..\sdk\PowerBI.Api\bin, %~dp0..\sdk\PowerBI.Api\obj, %~dp0..\sdk\PowerBI.Api.Tests\bin, %~dp0..\sdk\PowerBI.Api.Tests\obj ) do (call :deletefolder %%G)
6 |
7 | echo Cleaning Done.
8 | endlocal
9 | goto :eof
10 |
11 | :deletefolder
12 | setlocal
13 | set folder =%1
14 | if exist %1 (
15 | echo Deleting %1
16 | rmdir %1 /s /q
17 | ) else (
18 | echo Skipping %1
19 | )
20 | endlocal
21 |
--------------------------------------------------------------------------------
/scripts/init-dev-cmd.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | echo ==================================================
3 | echo "Initialize VS 2022 Dev Cmd ..."
4 | echo ==================================================
5 | pushd "%~dp0"
6 |
7 | call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
8 |
9 | set EX=%ERRORLEVEL%
10 | if "%EX%" neq "0" (
11 | echo "Failed to Initialize Dev Cmd ..."
12 | )
13 | popd
14 | exit /B %EX%
15 |
--------------------------------------------------------------------------------
/scripts/nuget-restore.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd "%~dp0"
3 |
4 | set PACKAGES_DIRECTORY="%~dp0..\sdk\packages"
5 | echo "Remove folder %PACKAGES_DIRECTORY% if exists"
6 | if exist %PACKAGES_DIRECTORY% (
7 | call rmdir %PACKAGES_DIRECTORY% /s /q
8 | )
9 |
10 | echo Clean previous build outputs ...
11 | call cmd.exe /c %~dp0clean.cmd
12 | if exist msbuild.log del msbuild.log
13 |
14 | call .\init-dev-cmd.cmd
15 |
16 | echo =====================================================
17 | echo "Restoring Nuget packages for PowerBI.CSharp.Sdk.sln"
18 | echo =====================================================
19 | nuget restore -NonInteractive "%~dp0..\sdk\PowerBI.CSharp.Sdk.sln"
20 |
21 | set EX=%ERRORLEVEL%
22 | if "%EX%" neq "0" (
23 | echo Failed to restore dependencies for PowerBI.CSharp.Sdk.sln
24 | )
25 | popd
26 | exit /B %EX%
27 |
--------------------------------------------------------------------------------
/scripts/pack-sdk-dev.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | echo Start running pack-sdk.cmd ...
3 | pushd "%~dp0"
4 |
5 | call .\init-dev-cmd.cmd
6 |
7 | REM Set Package version
8 | SET VERSION=%CDP_PACKAGE_VERSION_NUMERIC%
9 | if "%VERSION%"=="" SET VERSION=0.0.1111
10 |
11 | echo ========================================
12 | echo "Pack PowerBI.Api.csproj Release - AnyCPU..."
13 | echo ========================================
14 | call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:PackageVersion=%VERSION%-dev /p:PackageOutputPath=%~dp0..\pack\Dev
15 |
16 | set EX=%ERRORLEVEL%
17 | if "%EX%" neq "0" (
18 | echo "Failed to pack PowerBI.Api.csproj."
19 | )
20 | popd
21 | exit /B %EX%
22 |
23 |
--------------------------------------------------------------------------------
/scripts/pack-sdk.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd "%~dp0"
3 |
4 | call .\init-dev-cmd.cmd
5 |
6 | REM Set Major and Minor package version
7 | SET MAJOR=%CDP_MAJOR_NUMBER_ONLY%
8 | SET MINOR=%CDP_MINOR_NUMBER_ONLY%
9 | SET PATCH=0
10 | SET BETA_VERSION=1
11 | if "%MAJOR%"=="" SET MAJOR=0
12 | if "%MINOR%"=="" SET MINOR=0
13 |
14 |
15 | echo ========================================
16 | echo "Pack PowerBI.Api.csproj Release - AnyCPU..."
17 | echo ========================================
18 | call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:CdpxPostSigning=true /p:PackageVersion=%MAJOR%.%MINOR%.%PATCH%-beta.%BETA_VERSION% /p:PackageOutputPath=%~dp0..\pack\Clean
19 |
20 | set EX=%ERRORLEVEL%
21 |
22 | if "%EX%" neq "0" (
23 | echo "Failed to pack PowerBI.Api.csproj."
24 | )
25 | popd
26 | exit /B %EX%
27 |
--------------------------------------------------------------------------------
/scripts/run-tests.cmd:
--------------------------------------------------------------------------------
1 | @echo off
2 | pushd "%~dp0"
3 | call .\init-dev-cmd.cmd
4 |
5 | echo ========================================
6 | echo "Run PowerBI.Api.Tests ..."
7 | echo ========================================
8 | call "vstest.console" /logger:trx /Platform:x64 /collect:"Code Coverage;Format=Cobertura" /InIsolation %~dp0..\sdk\PowerBI.Api.Tests\bin\Release\PowerBI.Api.Tests.dll /framework:framework40 /ResultsDirectory:%~dp0..\TestResults
9 |
10 | set EX=%ERRORLEVEL%
11 |
12 | if "%EX%" neq "0" (
13 | echo "Failed to run tests."
14 | )
15 | popd
16 | exit /B %EX%
17 |
--------------------------------------------------------------------------------
/sdk/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*.json]
4 | indent_size = 4
5 | indent_style = space
--------------------------------------------------------------------------------
/sdk/.gitignore:
--------------------------------------------------------------------------------
1 | *.nupkg
--------------------------------------------------------------------------------
/sdk/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api.Tests/NuGet.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/AnonymousCredentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 | ///
4 | /// Anonymous datasource credentials
5 | ///
6 | public class AnonymousCredentials : CredentialsBase
7 | {
8 | internal override CredentialType CredentialType { get => CredentialType.Anonymous; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/BasicCredentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 | ///
4 | /// Username and Password based datasource credentials to be used in basic authentication
5 | ///
6 | public class BasicCredentials : UsernamePasswordCredentials
7 | {
8 | ///
9 | /// Initializes a new instance of the BasicCredentials class.
10 | ///
11 | /// The username
12 | /// The password
13 | public BasicCredentials(string username, string password) : base(username, password) { }
14 |
15 | internal override CredentialType CredentialType { get => CredentialType.Basic; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/CredentialsBase.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 | using System.Collections.Generic;
4 |
5 | ///
6 | ///
7 | ///
8 | public abstract class CredentialsBase
9 | {
10 | internal abstract CredentialType CredentialType { get; }
11 |
12 | ///
13 | /// Initializes a new instance of the CredentialsBase class.
14 | ///
15 | public CredentialsBase()
16 | {
17 | this.CredentialData = new Dictionary();
18 | }
19 |
20 | ///
21 | /// A dictionary to store the credential data
22 | ///
23 | public Dictionary CredentialData { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/ICredentialsEncryptor.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace Microsoft.PowerBI.Api.Extensions.Models.Credentials
6 | {
7 | ///
8 | /// Interface for encrypting credentials.
9 | ///
10 | public interface ICredentialsEncryptor
11 | {
12 | ///
13 | /// Encodes the specified plain text credentials.
14 | ///
15 | /// The plain text credentials to encode.
16 | /// The encoded credentials.
17 | string EncodeCredentials(string plainText);
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/KeyCredentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 |
4 | ///
5 | /// Key based datasource credentials
6 | ///
7 | public class KeyCredentials : CredentialsBase
8 | {
9 | private const string KEY = "key";
10 |
11 | internal override CredentialType CredentialType { get => CredentialType.Key; }
12 |
13 | ///
14 | /// Initializes a new instance of the KeyCredentials class.
15 | ///
16 | /// The key
17 | public KeyCredentials(string key)
18 | {
19 | Argument.AssertNotNullOrEmpty(key, nameof(key));
20 |
21 | this.CredentialData[KEY] = key;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/OAuth2Credentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 |
4 | ///
5 | /// OAuth2 based datasource credentials using OAuth2 access token
6 | ///
7 | public class OAuth2Credentials : CredentialsBase
8 | {
9 | private const string ACCESS_TOKEN = "accessToken";
10 |
11 | internal override CredentialType CredentialType { get => CredentialType.OAuth2; }
12 |
13 | ///
14 | /// Initializes a new instance of the OAuth2Credentials class.
15 | ///
16 | /// The access token
17 | public OAuth2Credentials(string accessToken)
18 | {
19 |
20 | Argument.AssertNotNullOrEmpty(accessToken, nameof(accessToken));
21 |
22 | this.CredentialData[ACCESS_TOKEN] = accessToken;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/UsernamePasswordCredentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 | ///
4 | /// Username and Password based datasource credentials
5 | ///
6 | public abstract class UsernamePasswordCredentials : CredentialsBase
7 | {
8 | private const string USERNAME = "username";
9 | private const string PASSWORD = "password";
10 |
11 | ///
12 | /// Initializes a new instance of the UsernamePasswordCredentials class.
13 | ///
14 | /// The username
15 | /// The password
16 | public UsernamePasswordCredentials(string username, string password)
17 | {
18 | Argument.AssertNotNullOrEmpty(username, nameof(username));
19 | Argument.AssertNotNullOrEmpty(password, nameof(password));
20 |
21 | this.CredentialData[USERNAME] = username;
22 | this.CredentialData[PASSWORD] = password;
23 | }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/Credentials/WindowsCredentials.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models.Credentials
2 | {
3 | ///
4 | /// Username and Password based datasource credentials to be used in windows authentication
5 | ///
6 | public class WindowsCredentials : UsernamePasswordCredentials
7 | {
8 | internal override CredentialType CredentialType { get => CredentialType.Windows; }
9 |
10 | ///
11 | /// Initializes a new instance of the WindowsCredentials class.
12 | ///
13 | /// The username
14 | /// The password
15 | public WindowsCredentials(string username, string password) : base(username, password) { }
16 | }
17 | }
18 |
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/UpdateDatasetParametersRequest.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models
2 | {
3 | public partial class UpdateMashupParametersRequest
4 | {
5 | ///
6 | /// Initializes a new instance of the UpdateMashupParametersDetails
7 | /// class.
8 | ///
9 | /// The mashup parameter to update
10 | public UpdateMashupParametersRequest(UpdateMashupParameterDetails updateDetails)
11 | {
12 | UpdateDetails = new[] { updateDetails };
13 | }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Extensions/Models/UpdateDatasourcesRequest.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api.Models
2 | {
3 | public partial class UpdateDatasourcesRequest
4 | {
5 | ///
6 | /// Initializes a new instance of the UpdateDatasourcesRequest class.
7 | ///
8 | /// The connection server
9 | public UpdateDatasourcesRequest(UpdateDatasourceConnectionRequest updateDetails)
10 | {
11 | UpdateDetails = new[] { updateDetails };
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/ITile.cs:
--------------------------------------------------------------------------------
1 | namespace Microsoft.PowerBI.Api
2 | {
3 | ///
4 | /// Represents a tile in Power BI.
5 | ///
6 | public interface ITile
7 | {
8 | ///
9 | /// Gets or sets the ID of the tile.
10 | ///
11 | string Id { get; set; }
12 |
13 | ///
14 | /// Gets or sets the title of the tile.
15 | ///
16 | string Title { get; set; }
17 |
18 | ///
19 | /// Gets or sets the URL for embedding the tile.
20 | ///
21 | string EmbedUrl { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/NuGet.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/PowerBI.Api.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | $id$
5 | $version$
6 | Microsoft Power BI API
7 | $author$
8 | $author$
9 | https://raw.githubusercontent.com/Microsoft/dotnet/master/LICENSE
10 | https://github.com/Microsoft/PowerBI-CSharp
11 | http://go.microsoft.com/fwlink/?LinkId=780675
12 | true
13 | Client library for Power BI
14 | $description$
15 | © Microsoft Corporation. All rights reserved.
16 | en-US
17 | Microsoft Power BI API REST
18 |
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Resources;
2 | using System.Reflection;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("Microsoft.PowerBI.Api")]
8 | [assembly: AssemblyDescription(".NET Client library for Microsoft Power BI public REST endpoints providing access to your Workspaces, Reports, Datasets and more.")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("Microsoft")]
11 | [assembly: AssemblyProduct("Microsoft Power BI Api")]
12 | [assembly: AssemblyCopyright("© Microsoft Corporation. All rights reserved.")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 | [assembly: NeutralResourcesLanguage("en")]
16 |
17 | // Version information avaliable in .version\PipelineAssemblyInfo.cs
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/DatasetsRefreshDatasetHeaders.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 | using Azure;
10 | using Azure.Core;
11 |
12 | namespace Microsoft.PowerBI.Api
13 | {
14 | internal partial class DatasetsRefreshDatasetHeaders
15 | {
16 | private readonly Response _response;
17 | public DatasetsRefreshDatasetHeaders(Response response)
18 | {
19 | _response = response;
20 | }
21 | /// The full URI for [getting refresh execution details](#/operationId/Datasets_GetRefreshExecutionDetails) or [cancelling refresh](/rest/api/power-bi/datasets/cancel-refresh). This would be returned only if any request payload except `notifyOption` is set.
22 | public Uri Location => _response.Headers.TryGetValue("Location", out Uri value) ? value : null;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/DatasetsRefreshDatasetInGroupHeaders.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 | using Azure;
10 | using Azure.Core;
11 |
12 | namespace Microsoft.PowerBI.Api
13 | {
14 | internal partial class DatasetsRefreshDatasetInGroupHeaders
15 | {
16 | private readonly Response _response;
17 | public DatasetsRefreshDatasetInGroupHeaders(Response response)
18 | {
19 | _response = response;
20 | }
21 | /// The full URI for [getting refresh execution details in group](#/operationId/Datasets_GetRefreshExecutionDetailsInGroup) or [cancelling refresh in group](/rest/api/power-bi/datasets/cancel-refresh-in-group). This would be returned only if any request payload except `notifyOption` is set.
22 | public Uri Location => _response.Headers.TryGetValue("Location", out Uri value) ? value : null;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ASMashupExpression.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A dataset table source.
13 | public partial class ASMashupExpression
14 | {
15 | /// Initializes a new instance of .
16 | /// The source expression.
17 | /// is null.
18 | public ASMashupExpression(string expression)
19 | {
20 | Argument.AssertNotNull(expression, nameof(expression));
21 |
22 | Expression = expression;
23 | }
24 |
25 | /// The source expression.
26 | public string Expression { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AddDashboardRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class AddDashboardRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("name"u8);
19 | writer.WriteStringValue(Name);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AddDashboardRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A Power BI request to add a dashboard.
13 | public partial class AddDashboardRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The name of the new dashboard.
17 | /// is null.
18 | public AddDashboardRequest(string name)
19 | {
20 | Argument.AssertNotNull(name, nameof(name));
21 |
22 | Name = name;
23 | }
24 |
25 | /// The name of the new dashboard.
26 | public string Name { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AdminDashboardTilesProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The AdminDashboardTilesProperties.
13 | public partial class AdminDashboardTilesProperties
14 | {
15 | /// Initializes a new instance of .
16 | public AdminDashboardTilesProperties()
17 | {
18 | Tiles = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// The tiles that belong to the dashboard.
23 | internal AdminDashboardTilesProperties(IList tiles)
24 | {
25 | Tiles = tiles;
26 | }
27 |
28 | /// The tiles that belong to the dashboard.
29 | public IList Tiles { get; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Apps.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The OData response wrapper for a list of Power BI installed apps.
13 | public partial class Apps
14 | {
15 | /// Initializes a new instance of .
16 | internal Apps()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// OData context.
23 | /// The list of installed apps.
24 | internal Apps(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// OData context.
31 | public string OdataContext { get; }
32 | /// The list of installed apps.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ArtifactId.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class ArtifactId : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("id"u8);
19 | writer.WriteStringValue(Id);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ArtifactId.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The unique ID of a Power BI item in UUID format. Dashboard, report, and dataflow IDs are in UUID format, and dataset IDs can be in UUID or string format.
13 | public partial class ArtifactId
14 | {
15 | /// Initializes a new instance of .
16 | /// An ID in UUID format.
17 | public ArtifactId(Guid id)
18 | {
19 | Id = id;
20 | }
21 |
22 | /// An ID in UUID format.
23 | public Guid Id { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ArtifactStringId.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class ArtifactStringId : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("id"u8);
19 | writer.WriteStringValue(Id);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ArtifactStringId.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The unique ID of a Power BI item in string or UUID format. Dashboard, report, and dataflow IDs are in UUID format, and dataset IDs can be in UUID or string format.
13 | public partial class ArtifactStringId
14 | {
15 | /// Initializes a new instance of .
16 | /// An ID in string or UUID format.
17 | /// is null.
18 | public ArtifactStringId(string id)
19 | {
20 | Argument.AssertNotNull(id, nameof(id));
21 |
22 | Id = id;
23 | }
24 |
25 | /// An ID in string or UUID format.
26 | public string Id { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ArtifactType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The artifact type.
11 | public enum ArtifactType
12 | {
13 | /// Power BI Report.
14 | Report,
15 | /// Power BI Paginated Report.
16 | PaginatedReport,
17 | /// Power BI Dashboard.
18 | Dashboard,
19 | /// Power BI Dataset.
20 | Dataset,
21 | /// Power BI Dataflow.
22 | Dataflow,
23 | /// My workspace object.
24 | PersonalGroup,
25 | /// V1 shared workspace object.
26 | Group,
27 | /// Shared workspace object.
28 | Workspace,
29 | /// Capacity object.
30 | Capacity,
31 | /// Power BI Apps.
32 | App
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignToCapacityRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class AssignToCapacityRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("capacityId"u8);
19 | writer.WriteStringValue(CapacityId);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignToCapacityRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A Power BI assign-to-capacity request.
13 | public partial class AssignToCapacityRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The capacity ID. To unassign from a capacity, use an empty GUID (`00000000-0000-0000-0000-000000000000`).
17 | public AssignToCapacityRequest(Guid capacityId)
18 | {
19 | CapacityId = capacityId;
20 | }
21 |
22 | /// The capacity ID. To unassign from a capacity, use an empty GUID (`00000000-0000-0000-0000-000000000000`).
23 | public Guid CapacityId { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignToDataflowStorageRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class AssignToDataflowStorageRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("dataflowStorageId"u8);
19 | writer.WriteStringValue(DataflowStorageId);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignToDataflowStorageRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A Power BI assign to dataflow storage account request.
13 | public partial class AssignToDataflowStorageRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The Power BI dataflow storage account ID. To unassign the specified workspace from a Power BI dataflow storage account, use an empty GUID (`00000000-0000-0000-0000-000000000000`).
17 | public AssignToDataflowStorageRequest(Guid dataflowStorageId)
18 | {
19 | DataflowStorageId = dataflowStorageId;
20 | }
21 |
22 | /// The Power BI dataflow storage account ID. To unassign the specified workspace from a Power BI dataflow storage account, use an empty GUID (`00000000-0000-0000-0000-000000000000`).
23 | public Guid DataflowStorageId { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignWorkspaceRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class AssignWorkspaceRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("workspaceId"u8);
19 | writer.WriteStringValue(WorkspaceId);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignWorkspaceRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A request to assign a workspace to a deployment pipeline stage.
13 | public partial class AssignWorkspaceRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The workspace ID.
17 | public AssignWorkspaceRequest(Guid workspaceId)
18 | {
19 | WorkspaceId = workspaceId;
20 | }
21 |
22 | /// The workspace ID.
23 | public Guid WorkspaceId { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignmentMethod.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class AssignmentMethodExtensions
13 | {
14 | public static string ToSerialString(this AssignmentMethod value) => value switch
15 | {
16 | AssignmentMethod.Standard => "Standard",
17 | AssignmentMethod.Priviledged => "Priviledged",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AssignmentMethod value.")
19 | };
20 |
21 | public static AssignmentMethod ToAssignmentMethod(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Standard")) return AssignmentMethod.Standard;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Priviledged")) return AssignmentMethod.Priviledged;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AssignmentMethod value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignmentMethod.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Specifies whether the assigned label was set by an automated process or manually.
11 | public enum AssignmentMethod
12 | {
13 | /// The label was set by an automated process (default value).
14 | Standard,
15 | /// The label was set manually.
16 | Priviledged
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/AssignmentStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The status of a workspace assign-to-capacity operation.
11 | public enum AssignmentStatus
12 | {
13 | /// The assignment request was received, but the assignment operation hasn't started.
14 | Pending,
15 | /// The assignment operation is in progress.
16 | InProgress,
17 | /// The assignment operation has completed successfully.
18 | CompletedSuccessfully,
19 | /// The assignment operation failed.
20 | AssignmentFailed
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Capacities.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// OData response wrapper for a Power BI capacity list.
13 | public partial class Capacities
14 | {
15 | /// Initializes a new instance of .
16 | internal Capacities()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | ///
23 | /// The capacity list.
24 | internal Capacities(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// Gets the odata context.
31 | public string OdataContext { get; }
32 | /// The capacity list.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class CapacityPatchRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(TenantKeyId))
19 | {
20 | writer.WritePropertyName("tenantKeyId"u8);
21 | writer.WriteStringValue(TenantKeyId.Value);
22 | }
23 | writer.WriteEndObject();
24 | }
25 |
26 | /// Convert into a .
27 | internal virtual RequestContent ToRequestContent()
28 | {
29 | var content = new Utf8JsonRequestContent();
30 | content.JsonWriter.WriteObjectValue(this);
31 | return content;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A patch capacity request.
13 | public partial class CapacityPatchRequest
14 | {
15 | /// Initializes a new instance of .
16 | public CapacityPatchRequest()
17 | {
18 | }
19 |
20 | /// Initializes a new instance of .
21 | /// The ID of the encryption key.
22 | internal CapacityPatchRequest(Guid? tenantKeyId)
23 | {
24 | TenantKeyId = tenantKeyId;
25 | }
26 |
27 | /// The ID of the encryption key.
28 | public Guid? TenantKeyId { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CapacityUserAccessRight.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The access right that the user has on the capacity.
11 | public enum CapacityUserAccessRight
12 | {
13 | /// User doesn't have access to the capacity.
14 | None,
15 | /// User has contributor rights and can assign workspaces to the capacity.
16 | Assign,
17 | /// User has administrator rights on the capacity.
18 | Admin
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ConnectionDetails.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class ConnectionDetails : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("connectionString"u8);
19 | writer.WriteStringValue(ConnectionString);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ConnectionDetails.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A connection string wrapper.
13 | public partial class ConnectionDetails
14 | {
15 | /// Initializes a new instance of .
16 | /// A dataset connection string.
17 | /// is null.
18 | public ConnectionDetails(string connectionString)
19 | {
20 | Argument.AssertNotNull(connectionString, nameof(connectionString));
21 |
22 | ConnectionString = connectionString;
23 | }
24 |
25 | /// A dataset connection string.
26 | public string ConnectionString { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ConnectionType.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class ConnectionTypeExtensions
13 | {
14 | public static string ToSerialString(this ConnectionType value) => value switch
15 | {
16 | ConnectionType.Import => "import",
17 | ConnectionType.Connect => "connect",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectionType value.")
19 | };
20 |
21 | public static ConnectionType ToConnectionType(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "import")) return ConnectionType.Import;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "connect")) return ConnectionType.Connect;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ConnectionType value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ConnectionType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The import connection type for a OneDrive for Business file.
11 | public enum ConnectionType
12 | {
13 | /// import.
14 | Import,
15 | /// connect.
16 | Connect
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CreateInstallTicketRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A request to create a Power BI install ticket.
13 | public partial class CreateInstallTicketRequest
14 | {
15 | /// Initializes a new instance of .
16 | public CreateInstallTicketRequest()
17 | {
18 | InstallDetails = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// List of install details.
23 | internal CreateInstallTicketRequest(IList installDetails)
24 | {
25 | InstallDetails = installDetails;
26 | }
27 |
28 | /// List of install details.
29 | public IList InstallDetails { get; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CreateOrUpdateProfileRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class CreateOrUpdateProfileRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(DisplayName))
19 | {
20 | writer.WritePropertyName("displayName"u8);
21 | writer.WriteStringValue(DisplayName);
22 | }
23 | writer.WriteEndObject();
24 | }
25 |
26 | /// Convert into a .
27 | internal virtual RequestContent ToRequestContent()
28 | {
29 | var content = new Utf8JsonRequestContent();
30 | content.JsonWriter.WriteObjectValue(this);
31 | return content;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CreateOrUpdateProfileRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A Power BI service principal profile create or update request.
11 | public partial class CreateOrUpdateProfileRequest
12 | {
13 | /// Initializes a new instance of .
14 | public CreateOrUpdateProfileRequest()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The service principal profile name.
20 | internal CreateOrUpdateProfileRequest(string displayName)
21 | {
22 | DisplayName = displayName;
23 | }
24 |
25 | /// The service principal profile name.
26 | public string DisplayName { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CreatePipelineRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class CreatePipelineRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("displayName"u8);
19 | writer.WriteStringValue(DisplayName);
20 | if (Optional.IsDefined(Description))
21 | {
22 | writer.WritePropertyName("description"u8);
23 | writer.WriteStringValue(Description);
24 | }
25 | writer.WriteEndObject();
26 | }
27 |
28 | /// Convert into a .
29 | internal virtual RequestContent ToRequestContent()
30 | {
31 | var content = new Utf8JsonRequestContent();
32 | content.JsonWriter.WriteObjectValue(this);
33 | return content;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CredentialType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The type of data source [credential](/power-bi/developer/embedded/configure-credentials).
11 | public enum CredentialType
12 | {
13 | /// Basic.
14 | Basic,
15 | /// Windows.
16 | Windows,
17 | /// Anonymous.
18 | Anonymous,
19 | /// OAuth2.
20 | OAuth2,
21 | /// Key.
22 | Key,
23 | /// SAS.
24 | SAS
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/CrossFilteringBehavior.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The filter direction of the relationship.
11 | public enum CrossFilteringBehavior
12 | {
13 | /// For filtering purposes, the filter will be applied on the table where values are being aggregated.
14 | OneDirection,
15 | /// For filtering purposes, both tables are treated as a single table.
16 | BothDirections,
17 | /// Cross filtering behavior is automatically defined.
18 | Automatic
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRight.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The access right that the user has for the dashboard (permission level).
11 | public enum DashboardUserAccessRight
12 | {
13 | /// No permission to content in dashboard.
14 | None,
15 | /// Grants Read access to content in dashboard.
16 | Read,
17 | /// Grants Read and Write access to content in dashboard.
18 | ReadWrite,
19 | /// Grants Read and Reshare access to content in dashboard.
20 | ReadReshare,
21 | /// Grants Read and Copy access to content in dashboard.
22 | ReadCopy,
23 | /// Grants Read, Write and Reshare access to content in report.
24 | Owner
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DashboardWorkspaceIdProperty.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The DashboardWorkspaceIdProperty.
13 | public partial class DashboardWorkspaceIdProperty
14 | {
15 | /// Initializes a new instance of .
16 | public DashboardWorkspaceIdProperty()
17 | {
18 | }
19 |
20 | /// Initializes a new instance of .
21 | /// The workspace ID (GUID) of the dashboard. This property will be returned only in GetDashboardsAsAdmin.
22 | internal DashboardWorkspaceIdProperty(Guid? workspaceId)
23 | {
24 | WorkspaceId = workspaceId;
25 | }
26 |
27 | /// The workspace ID (GUID) of the dashboard. This property will be returned only in GetDashboardsAsAdmin.
28 | public Guid? WorkspaceId { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DataClassificationProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DataClassificationProperties.
11 | public partial class DataClassificationProperties
12 | {
13 | /// Initializes a new instance of .
14 | public DataClassificationProperties()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The data classification tag of a Power BI item (such as a report or a dashboard).
20 | internal DataClassificationProperties(string dataClassification)
21 | {
22 | DataClassification = dataClassification;
23 | }
24 |
25 | /// The data classification tag of a Power BI item (such as a report or a dashboard).
26 | public string DataClassification { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRight.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The access right that a user has for the dataflow (permission level).
11 | public enum DataflowUserAccessRight
12 | {
13 | /// Removes permission to content in dataflow.
14 | None,
15 | /// Grants Read access to content in dataflow.
16 | Read,
17 | /// Grants Read and Write access to content in dataflow.
18 | ReadWrite,
19 | /// Grants Read and Reshare access to content in dataflow.
20 | ReadReshare,
21 | /// Grants Read, Write and Reshare access to content in dataflow.
22 | Owner
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DataflowWorkspaceIdProperty.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The DataflowWorkspaceIdProperty.
13 | public partial class DataflowWorkspaceIdProperty
14 | {
15 | /// Initializes a new instance of .
16 | public DataflowWorkspaceIdProperty()
17 | {
18 | }
19 |
20 | /// Initializes a new instance of .
21 | /// The dataflow workspace ID.
22 | internal DataflowWorkspaceIdProperty(Guid? workspaceId)
23 | {
24 | WorkspaceId = workspaceId;
25 | }
26 |
27 | /// The dataflow workspace ID.
28 | public Guid? WorkspaceId { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartDatasourceUsagesProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The DatamartDatasourceUsagesProperties.
13 | public partial class DatamartDatasourceUsagesProperties
14 | {
15 | /// Initializes a new instance of .
16 | internal DatamartDatasourceUsagesProperties()
17 | {
18 | DatasourceUsages = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// The data source usages.
23 | internal DatamartDatasourceUsagesProperties(IReadOnlyList datasourceUsages)
24 | {
25 | DatasourceUsages = datasourceUsages;
26 | }
27 |
28 | /// The data source usages.
29 | public IReadOnlyList DatasourceUsages { get; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartEndorsmentProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DatamartEndorsmentProperties.
11 | public partial class DatamartEndorsmentProperties
12 | {
13 | /// Initializes a new instance of .
14 | internal DatamartEndorsmentProperties()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The datamart endorsement details.
20 | internal DatamartEndorsmentProperties(EndorsementDetails endorsementDetails)
21 | {
22 | EndorsementDetails = endorsementDetails;
23 | }
24 |
25 | /// The datamart endorsement details.
26 | public EndorsementDetails EndorsementDetails { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartSensitivityLabelProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DatamartSensitivityLabelProperties.
11 | public partial class DatamartSensitivityLabelProperties
12 | {
13 | /// Initializes a new instance of .
14 | internal DatamartSensitivityLabelProperties()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The datamart sensitivity label.
20 | internal DatamartSensitivityLabelProperties(SensitivityLabel sensitivityLabel)
21 | {
22 | SensitivityLabel = sensitivityLabel;
23 | }
24 |
25 | /// The datamart sensitivity label.
26 | public SensitivityLabel SensitivityLabel { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The datamart current state.
11 | public enum DatamartState
12 | {
13 | /// The datamart has invalid state.
14 | Invalid,
15 | /// The datamart was initialized.
16 | Initialized,
17 | /// The datamart is active.
18 | Active,
19 | /// The datamart is migrating.
20 | Migrating,
21 | /// The datamart was evicted.
22 | Evicted,
23 | /// The datamart was deleted.
24 | Deleted
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The datamart status.
11 | public enum DatamartStatus
12 | {
13 | /// The datamart has invalid status.
14 | Invalid,
15 | /// The datamart is available.
16 | Available,
17 | /// The datamart is suspended in critical phase.
18 | SuspendedInCriticalPhase,
19 | /// The datamart is in progress.
20 | InProgress,
21 | /// The datamart has error status.
22 | Error,
23 | /// The datamart is out of region.
24 | OutOfRegion,
25 | /// The datamart has no capacity.
26 | NoCapacity
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The datamart type.
11 | public enum DatamartType
12 | {
13 | /// The datamart type was unset.
14 | Unset,
15 | /// The datamart has no type.
16 | Ignore,
17 | /// The datamart is of Sql type.
18 | Sql,
19 | /// The datamart is of Lakehouse type.
20 | Lakehouse,
21 | /// The datamart is of Dataverse type.
22 | Dataverse,
23 | /// The datamart is of Datawarehouse type.
24 | Datawarehouse
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatamartUserProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The DatamartUserProperties.
13 | public partial class DatamartUserProperties
14 | {
15 | /// Initializes a new instance of .
16 | internal DatamartUserProperties()
17 | {
18 | Users = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// The user access details for a Power BI datamart.
23 | internal DatamartUserProperties(IReadOnlyList users)
24 | {
25 | Users = users;
26 | }
27 |
28 | /// The user access details for a Power BI datamart.
29 | public IReadOnlyList Users { get; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetCommitMode.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class DatasetCommitModeExtensions
13 | {
14 | public static string ToSerialString(this DatasetCommitMode value) => value switch
15 | {
16 | DatasetCommitMode.Transactional => "Transactional",
17 | DatasetCommitMode.PartialBatch => "PartialBatch",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DatasetCommitMode value.")
19 | };
20 |
21 | public static DatasetCommitMode ToDatasetCommitMode(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Transactional")) return DatasetCommitMode.Transactional;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "PartialBatch")) return DatasetCommitMode.PartialBatch;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DatasetCommitMode value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetCommitMode.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Determines if objects will be committed in batches or only when complete.
11 | public enum DatasetCommitMode
12 | {
13 | /// Commit the whole refresh operation as a transaction.
14 | Transactional,
15 | /// Commit the refresh operation in batches. When utilizing `partialBatch` mode, the refresh operation does not occur within a transaction. Consequently, each command will be committed individually, and in the event of a failure, the model may end up in a state where only a subset of the data is loaded, or the table is left empty. If you desire to guarantee the preservation of previous data in case of a failure, you should execute the operation with `commitMode = transactional.`.
16 | PartialBatch
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQuery.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DatasetExecuteQueriesQuery : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("query"u8);
19 | writer.WriteStringValue(Query);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQuery.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A dataset query.
13 | public partial class DatasetExecuteQueriesQuery
14 | {
15 | /// Initializes a new instance of .
16 | /// The DAX query to be executed.
17 | /// is null.
18 | public DatasetExecuteQueriesQuery(string query)
19 | {
20 | Argument.AssertNotNull(query, nameof(query));
21 |
22 | Query = query;
23 | }
24 |
25 | /// The DAX query to be executed.
26 | public string Query { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesSerializationSettings.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DatasetExecuteQueriesSerializationSettings : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(IncludeNulls))
19 | {
20 | writer.WritePropertyName("includeNulls"u8);
21 | writer.WriteBooleanValue(IncludeNulls.Value);
22 | }
23 | writer.WriteEndObject();
24 | }
25 |
26 | /// Convert into a .
27 | internal virtual RequestContent ToRequestContent()
28 | {
29 | var content = new Utf8JsonRequestContent();
30 | content.JsonWriter.WriteObjectValue(this);
31 | return content;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetMode.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The dataset mode or type.
11 | public enum DatasetMode
12 | {
13 | /// A dataset with a live connection to Azure Analysis Services.
14 | AsAzure,
15 | /// A dataset with a live connection to on-premises Azure Analysis Services.
16 | AsOnPrem,
17 | /// A dataset that allows programmatic access for pushing data into Power BI.
18 | Push,
19 | /// A dataset that supports data streaming. For more information, see [Real-time streaming in Power BI](/power-bi/connect-data/service-real-time-streaming).
20 | Streaming,
21 | /// A dataset that supports data streaming and allows programmatic access for pushing data into Power BI.
22 | PushStreaming
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetRefreshObjects.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Power BI dataset refresh target.
11 | public partial class DatasetRefreshObjects
12 | {
13 | /// Initializes a new instance of .
14 | public DatasetRefreshObjects()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// Table to refresh.
20 | /// Partition to refresh.
21 | internal DatasetRefreshObjects(string table, string partition)
22 | {
23 | Table = table;
24 | Partition = partition;
25 | }
26 |
27 | /// Table to refresh.
28 | public string Table { get; set; }
29 | /// Partition to refresh.
30 | public string Partition { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetStorageMode.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DatasetStorageMode.
11 | public partial class DatasetStorageMode
12 | {
13 | /// Initializes a new instance of .
14 | public DatasetStorageMode()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The dataset storage mode.
20 | internal DatasetStorageMode(string targetStorageMode)
21 | {
22 | TargetStorageMode = targetStorageMode;
23 | }
24 |
25 | /// The dataset storage mode.
26 | public string TargetStorageMode { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetUserAccessRightEntry.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Required. The access right to grant to the user for the dataset.
11 | public enum DatasetUserAccessRightEntry
12 | {
13 | /// Grants Read access to the content in the dataset.
14 | Read,
15 | /// Grants Read and Reshare access to the content in the dataset.
16 | ReadReshare,
17 | /// Grants Read and Explore access to the content in the dataset.
18 | ReadExplore,
19 | /// Grants Read, Reshare, and Explore access to the content in the dataset.
20 | ReadReshareExplore
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasetWorkspaceIdProperty.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The DatasetWorkspaceIdProperty.
13 | public partial class DatasetWorkspaceIdProperty
14 | {
15 | /// Initializes a new instance of .
16 | public DatasetWorkspaceIdProperty()
17 | {
18 | }
19 |
20 | /// Initializes a new instance of .
21 | /// The dataset workspace ID. This property will be returned only in GetDatasetsAsAdmin.
22 | internal DatasetWorkspaceIdProperty(Guid? workspaceId)
23 | {
24 | WorkspaceId = workspaceId;
25 | }
26 |
27 | /// The dataset workspace ID. This property will be returned only in GetDatasetsAsAdmin.
28 | public Guid? WorkspaceId { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Datasets.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A dataset OData list wrapper.
13 | public partial class Datasets
14 | {
15 | /// Initializes a new instance of .
16 | internal Datasets()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// OData context.
23 | /// The datasets.
24 | internal Datasets(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// OData context.
31 | public string OdataContext { get; }
32 | /// The datasets.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasourceSelector.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DatasourceSelector : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("datasourceType"u8);
19 | writer.WriteStringValue(DatasourceType);
20 | writer.WritePropertyName("connectionDetails"u8);
21 | writer.WriteObjectValue(ConnectionDetails);
22 | writer.WriteEndObject();
23 | }
24 |
25 | /// Convert into a .
26 | internal virtual RequestContent ToRequestContent()
27 | {
28 | var content = new Utf8JsonRequestContent();
29 | content.JsonWriter.WriteObjectValue(this);
30 | return content;
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasourceUsage.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// Data source usage.
13 | public partial class DatasourceUsage
14 | {
15 | /// Initializes a new instance of .
16 | /// The data source instance ID.
17 | public DatasourceUsage(Guid datasourceInstanceId)
18 | {
19 | DatasourceInstanceId = datasourceInstanceId;
20 | }
21 |
22 | /// The data source instance ID.
23 | public Guid DatasourceInstanceId { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DatasourceUserAccessRight.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The access right (permission level) that a user has on the data source.
11 | public enum DatasourceUserAccessRight
12 | {
13 | /// No permission to access the data source. Only applies when updating user permissions.
14 | None,
15 | /// Datasets owned by the user have read access to the data source.
16 | Read,
17 | /// The user can override the effective identity for Power BI Embedded. Applicable only for on-premises Analysis Services data sources.
18 | ReadOverrideEffectiveIdentity
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Days.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Days of week.
11 | public enum Days
12 | {
13 | /// Monday.
14 | Monday,
15 | /// Tuesday.
16 | Tuesday,
17 | /// Wednesday.
18 | Wednesday,
19 | /// Thursday.
20 | Thursday,
21 | /// Friday.
22 | Friday,
23 | /// Saturday.
24 | Saturday,
25 | /// Sunday.
26 | Sunday
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DefaultRetentionPolicy.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class DefaultRetentionPolicyExtensions
13 | {
14 | public static string ToSerialString(this DefaultRetentionPolicy value) => value switch
15 | {
16 | DefaultRetentionPolicy.None => "None",
17 | DefaultRetentionPolicy.BasicFifo => "basicFIFO",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DefaultRetentionPolicy value.")
19 | };
20 |
21 | public static DefaultRetentionPolicy ToDefaultRetentionPolicy(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return DefaultRetentionPolicy.None;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "basicFIFO")) return DefaultRetentionPolicy.BasicFifo;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DefaultRetentionPolicy value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DefaultRetentionPolicy.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DefaultRetentionPolicy.
11 | public enum DefaultRetentionPolicy
12 | {
13 | /// None.
14 | None,
15 | /// basicFIFO.
16 | BasicFifo
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DelegatedUser.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DelegatedUser : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("emailAddress"u8);
19 | writer.WriteStringValue(EmailAddress);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DelegatedUser.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// Delegated user details. The user must be an existing user in Power BI and Azure AAD, and must have signed in to Power BI during the last three months.
13 | public partial class DelegatedUser
14 | {
15 | /// Initializes a new instance of .
16 | /// The email address of the delegated user.
17 | /// is null.
18 | public DelegatedUser(string emailAddress)
19 | {
20 | Argument.AssertNotNull(emailAddress, nameof(emailAddress));
21 |
22 | EmailAddress = emailAddress;
23 | }
24 |
25 | /// The email address of the delegated user.
26 | public string EmailAddress { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DependentDataflow.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A Power BI dependent dataflow.
11 | public partial class DependentDataflow
12 | {
13 | /// Initializes a new instance of .
14 | public DependentDataflow()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The target dataflow ID.
20 | /// The target group ID.
21 | internal DependentDataflow(string targetDataflowId, string groupId)
22 | {
23 | TargetDataflowId = targetDataflowId;
24 | GroupId = groupId;
25 | }
26 |
27 | /// The target dataflow ID.
28 | public string TargetDataflowId { get; set; }
29 | /// The target group ID.
30 | public string GroupId { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DependentDatamart.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A Power BI dependent datamart.
11 | public partial class DependentDatamart
12 | {
13 | /// Initializes a new instance of .
14 | public DependentDatamart()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The target datamart ID.
20 | /// The target group ID.
21 | internal DependentDatamart(string targetDatamartId, string groupId)
22 | {
23 | TargetDatamartId = targetDatamartId;
24 | GroupId = groupId;
25 | }
26 |
27 | /// The target datamart ID.
28 | public string TargetDatamartId { get; set; }
29 | /// The target group ID.
30 | public string GroupId { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DependentDataset.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A Power BI dependent dataset.
11 | public partial class DependentDataset
12 | {
13 | /// Initializes a new instance of .
14 | public DependentDataset()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The target dataset ID.
20 | /// The target group ID.
21 | internal DependentDataset(string targetDatasetId, string groupId)
22 | {
23 | TargetDatasetId = targetDatasetId;
24 | GroupId = groupId;
25 | }
26 |
27 | /// The target dataset ID.
28 | public string TargetDatasetId { get; set; }
29 | /// The target group ID.
30 | public string GroupId { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DeployArtifactRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DeployArtifactRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("sourceId"u8);
19 | writer.WriteStringValue(SourceId);
20 | if (Optional.IsDefined(Options))
21 | {
22 | writer.WritePropertyName("options"u8);
23 | writer.WriteObjectValue(Options);
24 | }
25 | writer.WriteEndObject();
26 | }
27 |
28 | /// Convert into a .
29 | internal virtual RequestContent ToRequestContent()
30 | {
31 | var content = new Utf8JsonRequestContent();
32 | content.JsonWriter.WriteObjectValue(this);
33 | return content;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DeploymentError.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Error details for the deployment step.
11 | public partial class DeploymentError
12 | {
13 | /// Initializes a new instance of .
14 | internal DeploymentError()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The error code.
20 | /// Additional error details.
21 | internal DeploymentError(string errorCode, string errorDetails)
22 | {
23 | ErrorCode = errorCode;
24 | ErrorDetails = errorDetails;
25 | }
26 |
27 | /// The error code.
28 | public string ErrorCode { get; }
29 | /// Additional error details.
30 | public string ErrorDetails { get; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DeploymentExecutionPlan.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A deployment execution plan.
13 | public partial class DeploymentExecutionPlan
14 | {
15 | /// Initializes a new instance of .
16 | internal DeploymentExecutionPlan()
17 | {
18 | Steps = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// The collection of execution plan steps.
23 | internal DeploymentExecutionPlan(IReadOnlyList steps)
24 | {
25 | Steps = steps;
26 | }
27 |
28 | /// The collection of execution plan steps.
29 | public IReadOnlyList Steps { get; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DeploymentExecutionStepPreDeploymentDiffState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Is an item new, different or identical to items in the target stage before deployment.
11 | public enum DeploymentExecutionStepPreDeploymentDiffState
12 | {
13 | /// A new deployed item that doesn't exist in the target stage.
14 | New,
15 | /// Before deployment, the item in the source stage wasn't identical to the one in the target stage.
16 | Different,
17 | /// Before deployment, the item in the source stage was identical to the one in the target stage.
18 | NoDifference
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DeploymentStepType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The type of deployment step.
11 | public enum DeploymentStepType
12 | {
13 | /// A step for deploying a single dataset.
14 | DatasetDeployment,
15 | /// A step for deploying a single report.
16 | ReportDeployment,
17 | /// A step for deploying a single dashboard.
18 | DashboardDeployment,
19 | /// A step for deploying a single dataflow.
20 | DataflowDeployment,
21 | /// A step for deploying a single datamart.
22 | DatamartDeployment
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DirectQueryRefreshScheduleRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class DirectQueryRefreshScheduleRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("value"u8);
19 | writer.WriteObjectValue(Value);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DirectQueryRefreshScheduleRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// Power BI refresh schedule request for DirectQuery or LiveConnection.
13 | public partial class DirectQueryRefreshScheduleRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// An object containing the refresh schedule details for DirectQuery or LiveConnection.
17 | /// is null.
18 | public DirectQueryRefreshScheduleRequest(DirectQueryRefreshSchedule value)
19 | {
20 | Argument.AssertNotNull(value, nameof(value));
21 |
22 | Value = value;
23 | }
24 |
25 | /// An object containing the refresh schedule details for DirectQuery or LiveConnection.
26 | public DirectQueryRefreshSchedule Value { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DownloadType.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class DownloadTypeExtensions
13 | {
14 | public static string ToSerialString(this DownloadType value) => value switch
15 | {
16 | DownloadType.IncludeModel => "IncludeModel",
17 | DownloadType.LiveConnect => "LiveConnect",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DownloadType value.")
19 | };
20 |
21 | public static DownloadType ToDownloadType(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "IncludeModel")) return DownloadType.IncludeModel;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "LiveConnect")) return DownloadType.LiveConnect;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DownloadType value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/DownloadType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The DownloadType.
11 | public enum DownloadType
12 | {
13 | /// Export the report with the semantic model included.
14 | IncludeModel,
15 | /// Export the report with a live connection to the semantic model.
16 | LiveConnect
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EncryptedConnection.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class EncryptedConnectionExtensions
13 | {
14 | public static string ToSerialString(this EncryptedConnection value) => value switch
15 | {
16 | EncryptedConnection.Encrypted => "Encrypted",
17 | EncryptedConnection.NotEncrypted => "NotEncrypted",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptedConnection value.")
19 | };
20 |
21 | public static EncryptedConnection ToEncryptedConnection(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Encrypted")) return EncryptedConnection.Encrypted;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "NotEncrypted")) return EncryptedConnection.NotEncrypted;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptedConnection value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EncryptedConnection.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Whether to encrypt the data source connection. The API call will fail if you select encryption and Power BI is unable to establish an encrypted connection with the data source.
11 | public enum EncryptedConnection
12 | {
13 | /// Encrypted.
14 | Encrypted,
15 | /// NotEncrypted.
16 | NotEncrypted
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Encryption.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Encryption information for a dataset.
11 | public partial class Encryption
12 | {
13 | /// Initializes a new instance of .
14 | public Encryption()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// Dataset encryption status.
20 | internal Encryption(EncryptionStatus? encryptionStatus)
21 | {
22 | EncryptionStatus = encryptionStatus;
23 | }
24 |
25 | /// Dataset encryption status.
26 | public EncryptionStatus? EncryptionStatus { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EncryptionAlgorithm.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class EncryptionAlgorithmExtensions
13 | {
14 | public static string ToSerialString(this EncryptionAlgorithm value) => value switch
15 | {
16 | EncryptionAlgorithm.None => "None",
17 | EncryptionAlgorithm.RSAOaep => "RSA-OAEP",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptionAlgorithm value.")
19 | };
20 |
21 | public static EncryptionAlgorithm ToEncryptionAlgorithm(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "None")) return EncryptionAlgorithm.None;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "RSA-OAEP")) return EncryptionAlgorithm.RSAOaep;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown EncryptionAlgorithm value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EncryptionAlgorithm.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The encryption algorithm. For a cloud data source, specify `None`. For an on-premises data source, specify `RSA-OAEP` and use the gateway public key to encrypt the credentials.
11 | public enum EncryptionAlgorithm
12 | {
13 | /// None.
14 | None,
15 | /// RSA-OAEP.
16 | RSAOaep
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EncryptionStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Dataset encryption status.
11 | public enum EncryptionStatus
12 | {
13 | /// The encryption status is unknown due to dataset corruption.
14 | Unknown,
15 | /// Encryption isn't supported for this dataset.
16 | NotSupported,
17 | /// Encryption is supported and is in sync with the encryption settings.
18 | InSyncWithWorkspace,
19 | /// Encryption is supported but isn't in sync with the encryption settings.
20 | NotInSyncWithWorkspace
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/EndorsmentProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A list of properties returned for a Power BI item (such as a report or a dashboard) by WorkspaceInfo APIs.
11 | public partial class EndorsmentProperties
12 | {
13 | /// Initializes a new instance of .
14 | public EndorsmentProperties()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The endorsement details.
20 | internal EndorsmentProperties(EndorsementDetails endorsementDetails)
21 | {
22 | EndorsementDetails = endorsementDetails;
23 | }
24 |
25 | /// The endorsement details.
26 | public EndorsementDetails EndorsementDetails { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ExportFilter.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class ExportFilter : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(Filter))
19 | {
20 | writer.WritePropertyName("filter"u8);
21 | writer.WriteStringValue(Filter);
22 | }
23 | writer.WriteEndObject();
24 | }
25 |
26 | /// Convert into a .
27 | internal virtual RequestContent ToRequestContent()
28 | {
29 | var content = new Utf8JsonRequestContent();
30 | content.JsonWriter.WriteObjectValue(this);
31 | return content;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ExportFilter.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A filter to be applied during the export operation.
11 | public partial class ExportFilter
12 | {
13 | /// Initializes a new instance of .
14 | public ExportFilter()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The filter to apply. For information about the filter syntax, see [Filter a report](/power-bi/collaborate-share/service-url-filters).
20 | internal ExportFilter(string filter)
21 | {
22 | Filter = filter;
23 | }
24 |
25 | /// The filter to apply. For information about the filter syntax, see [Filter a report](/power-bi/collaborate-share/service-url-filters).
26 | public string Filter { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ExportState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The current state of the export to file job.
11 | public enum ExportState
12 | {
13 | /// The state of the export to file job is undefined.
14 | Undefined,
15 | /// The export to file job didn't start.
16 | NotStarted,
17 | /// The export to file job is running.
18 | Running,
19 | /// The export to file job finished successfully.
20 | Succeeded,
21 | /// The export to file job failed.
22 | Failed
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/FeatureExtendedState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The feature extended state.
11 | public enum FeatureExtendedState
12 | {
13 | /// Enabled.
14 | Enabled,
15 | /// DisabledByAdmin.
16 | DisabledByAdmin,
17 | /// UserNotLicensed.
18 | UserNotLicensed
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/FeatureState.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class FeatureStateExtensions
13 | {
14 | public static string ToSerialString(this FeatureState value) => value switch
15 | {
16 | FeatureState.Enabled => "Enabled",
17 | FeatureState.Disabled => "Disabled",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FeatureState value.")
19 | };
20 |
21 | public static FeatureState ToFeatureState(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return FeatureState.Enabled;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return FeatureState.Disabled;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FeatureState value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/FeatureState.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The feature state.
11 | public enum FeatureState
12 | {
13 | /// Enabled.
14 | Enabled,
15 | /// Disabled.
16 | Disabled
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GatewayPublicKey.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// A Power BI gateway public key.
11 | public partial class GatewayPublicKey
12 | {
13 | /// Initializes a new instance of .
14 | internal GatewayPublicKey()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The public key exponent.
20 | /// The public key modulus.
21 | internal GatewayPublicKey(string exponent, string modulus)
22 | {
23 | Exponent = exponent;
24 | Modulus = modulus;
25 | }
26 |
27 | /// The public key exponent.
28 | public string Exponent { get; }
29 | /// The public key modulus.
30 | public string Modulus { get; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Gateways.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The OData response wrapper for a list of Power BI gateways.
13 | public partial class Gateways
14 | {
15 | /// Initializes a new instance of .
16 | internal Gateways()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | ///
23 | /// The list of gateways.
24 | internal Gateways(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// Gets the odata context.
31 | public string OdataContext { get; }
32 | /// The list of gateways.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GenerateTokenRequestV2Report.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class GenerateTokenRequestV2Report : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(AllowEdit))
19 | {
20 | writer.WritePropertyName("allowEdit"u8);
21 | writer.WriteBooleanValue(AllowEdit.Value);
22 | }
23 | writer.WritePropertyName("id"u8);
24 | writer.WriteStringValue(Id);
25 | writer.WriteEndObject();
26 | }
27 |
28 | /// Convert into a .
29 | internal virtual RequestContent ToRequestContent()
30 | {
31 | var content = new Utf8JsonRequestContent();
32 | content.JsonWriter.WriteObjectValue(this);
33 | return content;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GenerateTokenRequestV2TargetWorkspace.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class GenerateTokenRequestV2TargetWorkspace : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("id"u8);
19 | writer.WriteStringValue(Id);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GenerateTokenRequestV2TargetWorkspace.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A workspace object in [GenerateTokenRequestV2](#generatetokenrequestv2).
13 | public partial class GenerateTokenRequestV2TargetWorkspace
14 | {
15 | /// Initializes a new instance of .
16 | /// The workspace ID.
17 | public GenerateTokenRequestV2TargetWorkspace(Guid id)
18 | {
19 | Id = id;
20 | }
21 |
22 | /// The workspace ID.
23 | public Guid Id { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GoalAggregationType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The type of the aggregated property.
11 | public enum GoalAggregationType
12 | {
13 | /// Information about the current value of the goal.
14 | Value,
15 | /// Information about the target value of the goal.
16 | Target,
17 | /// Information about the status of the goal.
18 | Status,
19 | /// Information about the sparkline.
20 | Sparkline,
21 | /// Information about the change.
22 | Change
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GoalNoteRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class GoalNoteRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("body"u8);
19 | writer.WriteStringValue(Body);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GoalNoteRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A Power BI goal value check-in note request.
13 | public partial class GoalNoteRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The note text.
17 | /// is null.
18 | public GoalNoteRequest(string body)
19 | {
20 | Argument.AssertNotNull(body, nameof(body));
21 |
22 | Body = body;
23 | }
24 |
25 | /// The note text.
26 | public string Body { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GoalRulesFieldComparisonKind.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The comparison operator.
11 | public enum GoalRulesFieldComparisonKind
12 | {
13 | /// Are equal.
14 | Equal,
15 | /// Is greater than.
16 | GreaterThan,
17 | /// Is greater than or equal.
18 | GreaterThanOrEqual,
19 | /// Is less than.
20 | LessThan,
21 | /// Is less than or equal.
22 | LessThanOrEqual
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GoalValueType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The refresh connection type.
11 | public enum GoalValueType
12 | {
13 | /// Information about the current value of the goal.
14 | Current,
15 | /// Information about the target value of the goal.
16 | Target,
17 | /// Information about the status of the goal.
18 | Status
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Goals.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The OData response wrapper for a Power BI goal collection.
13 | public partial class Goals
14 | {
15 | /// Initializes a new instance of .
16 | internal Goals()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// OData context.
23 | /// The goal collection.
24 | internal Goals(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// OData context.
31 | public string OdataContext { get; }
32 | /// The goal collection.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupBaseProperties.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The GroupBaseProperties.
13 | public partial class GroupBaseProperties
14 | {
15 | /// Initializes a new instance of .
16 | /// The workspace ID.
17 | public GroupBaseProperties(Guid id)
18 | {
19 | Id = id;
20 | }
21 |
22 | /// Initializes a new instance of .
23 | /// The workspace ID.
24 | /// The group name.
25 | internal GroupBaseProperties(Guid id, string name)
26 | {
27 | Id = id;
28 | Name = name;
29 | }
30 |
31 | /// The workspace ID.
32 | public Guid Id { get; set; }
33 | /// The group name.
34 | public string Name { get; set; }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupCreationRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class GroupCreationRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("name"u8);
19 | writer.WriteStringValue(Name);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupCreationRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A Power BI request to create a new group.
13 | public partial class GroupCreationRequest
14 | {
15 | /// Initializes a new instance of .
16 | /// The name of the newly created group.
17 | /// is null.
18 | public GroupCreationRequest(string name)
19 | {
20 | Argument.AssertNotNull(name, nameof(name));
21 |
22 | Name = name;
23 | }
24 |
25 | /// The name of the newly created group.
26 | public string Name { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupRestoreRequest.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class GroupRestoreRequest : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(Name))
19 | {
20 | writer.WritePropertyName("name"u8);
21 | writer.WriteStringValue(Name);
22 | }
23 | writer.WritePropertyName("emailAddress"u8);
24 | writer.WriteStringValue(EmailAddress);
25 | writer.WriteEndObject();
26 | }
27 |
28 | /// Convert into a .
29 | internal virtual RequestContent ToRequestContent()
30 | {
31 | var content = new Utf8JsonRequestContent();
32 | content.JsonWriter.WriteObjectValue(this);
33 | return content;
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupType.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The group type.
11 | public enum GroupType
12 | {
13 | /// Admin Monitoring for Fabric Administrators.
14 | AdminWorkspace,
15 | /// “My workspace”, also known as personal workspace.
16 | PersonalGroup,
17 | /// Special type of workspace meant for SharePoint list and OneDrive integration.
18 | Personal,
19 | /// Shared workspace or simple workspace used to share content with other users in the organization.
20 | Workspace,
21 | /// V1 version of shared workspace. This type of workspaces will be deprecated as Microsoft migrate all workspaces to latest version of shared workspace.
22 | Group
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/GroupUserAccessRight.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The access right (permission level) that a user has on the workspace.
11 | public enum GroupUserAccessRight
12 | {
13 | /// No access to workspace content.
14 | None,
15 | /// Read, reshare and explore (ReadReshareExplore) access rights to workspace content.
16 | Member,
17 | /// Administrator rights to workspace content.
18 | Admin,
19 | /// Read and explore (ReadExplore) access to workspace content.
20 | Contributor,
21 | /// Read-only (Read) access to workspace content.
22 | Viewer
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Groups.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The OData response wrapper for a list of Power BI groups.
13 | public partial class Groups
14 | {
15 | /// Initializes a new instance of .
16 | internal Groups()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// OData context.
23 | /// The list of groups.
24 | internal Groups(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// OData context.
31 | public string OdataContext { get; }
32 | /// The list of groups.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/IdentityBlob.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class IdentityBlob : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | writer.WritePropertyName("value"u8);
19 | writer.WriteStringValue(Value);
20 | writer.WriteEndObject();
21 | }
22 |
23 | /// Convert into a .
24 | internal virtual RequestContent ToRequestContent()
25 | {
26 | var content = new Utf8JsonRequestContent();
27 | content.JsonWriter.WriteObjectValue(this);
28 | return content;
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/IdentityBlob.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A blob for specifying an identity. Only supported for datasets with a DirectQuery connection to Azure SQL.
13 | public partial class IdentityBlob
14 | {
15 | /// Initializes a new instance of .
16 | /// An OAuth 2.0 access token for Azure SQL.
17 | /// is null.
18 | public IdentityBlob(string value)
19 | {
20 | Argument.AssertNotNull(value, nameof(value));
21 |
22 | Value = value;
23 | }
24 |
25 | /// An OAuth 2.0 access token for Azure SQL.
26 | public string Value { get; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ModifiedWorkspace.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// A modified workspace.
13 | public partial class ModifiedWorkspace
14 | {
15 | /// Initializes a new instance of .
16 | /// The workspace object ID.
17 | internal ModifiedWorkspace(Guid id)
18 | {
19 | Id = id;
20 | }
21 |
22 | /// The workspace object ID.
23 | public Guid Id { get; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/NotifyOption.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Mail notification options.
11 | public enum NotifyOption
12 | {
13 | /// No notification will be sent.
14 | NoNotification,
15 | /// A mail notification will be sent on refresh failure.
16 | MailOnFailure,
17 | /// A mail notification indicating success or failure will be sent on refresh completion.
18 | MailOnCompletion
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PageBookmark.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The bookmark to apply on a single page. Provide name or state, but not both.
11 | public partial class PageBookmark
12 | {
13 | /// Initializes a new instance of .
14 | public PageBookmark()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The bookmark name.
20 | /// The bookmark state.
21 | internal PageBookmark(string name, string state)
22 | {
23 | Name = name;
24 | State = state;
25 | }
26 |
27 | /// The bookmark name.
28 | public string Name { get; set; }
29 | /// The bookmark state.
30 | public string State { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/Pages.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The OData response wrapper for a Power BI page collection.
13 | public partial class Pages
14 | {
15 | /// Initializes a new instance of .
16 | internal Pages()
17 | {
18 | Value = new ChangeTrackingList();
19 | }
20 |
21 | /// Initializes a new instance of .
22 | /// OData context.
23 | /// The page collection.
24 | internal Pages(string odataContext, IReadOnlyList value)
25 | {
26 | OdataContext = odataContext;
27 | Value = value;
28 | }
29 |
30 | /// OData context.
31 | public string OdataContext { get; }
32 | /// The page collection.
33 | public IReadOnlyList Value { get; }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/ParameterValue.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Data contract for paginated report parameters.
11 | public partial class ParameterValue
12 | {
13 | /// Initializes a new instance of .
14 | public ParameterValue()
15 | {
16 | }
17 |
18 | /// Initializes a new instance of .
19 | /// The parameter name.
20 | /// The parameter value.
21 | internal ParameterValue(string name, string value)
22 | {
23 | Name = name;
24 | Value = value;
25 | }
26 |
27 | /// The parameter name.
28 | public string Name { get; set; }
29 | /// The parameter value.
30 | public string Value { get; set; }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PipelineOperationStatus.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// The pipeline operation status.
11 | public enum PipelineOperationStatus
12 | {
13 | /// Operation not started.
14 | NotStarted,
15 | /// Operation executing.
16 | Executing,
17 | /// Operation succeeded.
18 | Succeeded,
19 | /// Operation failed.
20 | Failed
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PipelineUpdateAppSettings.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Text.Json;
9 | using Azure.Core;
10 |
11 | namespace Microsoft.PowerBI.Api.Models
12 | {
13 | public partial class PipelineUpdateAppSettings : IUtf8JsonSerializable
14 | {
15 | void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
16 | {
17 | writer.WriteStartObject();
18 | if (Optional.IsDefined(UpdateAppInTargetWorkspace))
19 | {
20 | writer.WritePropertyName("updateAppInTargetWorkspace"u8);
21 | writer.WriteBooleanValue(UpdateAppInTargetWorkspace.Value);
22 | }
23 | writer.WriteEndObject();
24 | }
25 |
26 | /// Convert into a .
27 | internal virtual RequestContent ToRequestContent()
28 | {
29 | var content = new Utf8JsonRequestContent();
30 | content.JsonWriter.WriteObjectValue(this);
31 | return content;
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PositionConflictAction.Serialization.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | internal static partial class PositionConflictActionExtensions
13 | {
14 | public static string ToSerialString(this PositionConflictAction value) => value switch
15 | {
16 | PositionConflictAction.Tail => "Tail",
17 | PositionConflictAction.Abort => "Abort",
18 | _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PositionConflictAction value.")
19 | };
20 |
21 | public static PositionConflictAction ToPositionConflictAction(this string value)
22 | {
23 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Tail")) return PositionConflictAction.Tail;
24 | if (StringComparer.OrdinalIgnoreCase.Equals(value, "Abort")) return PositionConflictAction.Abort;
25 | throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown PositionConflictAction value.");
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PositionConflictAction.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | namespace Microsoft.PowerBI.Api.Models
9 | {
10 | /// Optional. A parameter for specifying an action in case of a position conflict. If there's a conflict and this parameter isn't provided, then the default value `Tail` will be applied. If there's no conflict, then the cloned tile will have the same position as in the source.
11 | public enum PositionConflictAction
12 | {
13 | /// In the event of position conflict, the tile will be added at the end of the specified dashboard.
14 | Tail,
15 | /// In the event of position conflict, the request will be cancelled.
16 | Abort
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/sdk/PowerBI.Api/Source/Models/PostRowsRequest.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Microsoft Corporation. All rights reserved.
2 | // Licensed under the MIT License.
3 |
4 | //
5 |
6 | #nullable disable
7 |
8 | using System.Collections.Generic;
9 |
10 | namespace Microsoft.PowerBI.Api.Models
11 | {
12 | /// The PostRowsRequest.
13 | public partial class PostRowsRequest
14 | {
15 | /// Initializes a new instance of .
16 | public PostRowsRequest()
17 | {
18 | Rows = new ChangeTrackingList