-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
PowerBIOutputDataSource.cs
61 lines (55 loc) · 4.79 KB
/
PowerBIOutputDataSource.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.ResourceManager.StreamAnalytics.Models
{
/// <summary> Describes a Power BI output data source. </summary>
public partial class PowerBIOutputDataSource : StreamingJobOutputDataSource
{
/// <summary> Initializes a new instance of <see cref="PowerBIOutputDataSource"/>. </summary>
public PowerBIOutputDataSource()
{
OutputDataSourceType = "PowerBI";
}
/// <summary> Initializes a new instance of <see cref="PowerBIOutputDataSource"/>. </summary>
/// <param name="outputDataSourceType"> Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests. </param>
/// <param name="refreshToken"> A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source. A valid refresh token is currently only obtainable via the Azure Portal. It is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate the data source which will update this property with a valid refresh token. Required on PUT (CreateOrReplace) requests. </param>
/// <param name="tokenUserPrincipalName"> The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember which user was used to obtain the refresh token. </param>
/// <param name="tokenUserDisplayName"> The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user was used to obtain the refresh token. </param>
/// <param name="dataset"> The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. </param>
/// <param name="table"> The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) requests. </param>
/// <param name="groupId"> The ID of the Power BI group. </param>
/// <param name="groupName"> The name of the Power BI group. Use this property to help remember which specific Power BI group id was used. </param>
/// <param name="authenticationMode"> Authentication Mode. </param>
internal PowerBIOutputDataSource(string outputDataSourceType, string refreshToken, string tokenUserPrincipalName, string tokenUserDisplayName, string dataset, string table, Guid? groupId, string groupName, StreamAnalyticsAuthenticationMode? authenticationMode) : base(outputDataSourceType)
{
RefreshToken = refreshToken;
TokenUserPrincipalName = tokenUserPrincipalName;
TokenUserDisplayName = tokenUserDisplayName;
Dataset = dataset;
Table = table;
GroupId = groupId;
GroupName = groupName;
AuthenticationMode = authenticationMode;
OutputDataSourceType = outputDataSourceType ?? "PowerBI";
}
/// <summary> A refresh token that can be used to obtain a valid access token that can then be used to authenticate with the data source. A valid refresh token is currently only obtainable via the Azure Portal. It is recommended to put a dummy string value here when creating the data source and then going to the Azure Portal to authenticate the data source which will update this property with a valid refresh token. Required on PUT (CreateOrReplace) requests. </summary>
public string RefreshToken { get; set; }
/// <summary> The user principal name (UPN) of the user that was used to obtain the refresh token. Use this property to help remember which user was used to obtain the refresh token. </summary>
public string TokenUserPrincipalName { get; set; }
/// <summary> The user display name of the user that was used to obtain the refresh token. Use this property to help remember which user was used to obtain the refresh token. </summary>
public string TokenUserDisplayName { get; set; }
/// <summary> The name of the Power BI dataset. Required on PUT (CreateOrReplace) requests. </summary>
public string Dataset { get; set; }
/// <summary> The name of the Power BI table under the specified dataset. Required on PUT (CreateOrReplace) requests. </summary>
public string Table { get; set; }
/// <summary> The ID of the Power BI group. </summary>
public Guid? GroupId { get; set; }
/// <summary> The name of the Power BI group. Use this property to help remember which specific Power BI group id was used. </summary>
public string GroupName { get; set; }
/// <summary> Authentication Mode. </summary>
public StreamAnalyticsAuthenticationMode? AuthenticationMode { get; set; }
}
}