Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/mshmordo/mirror 3 18 1 #162

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/pack-sdk.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if "%MINOR%"=="" SET MINOR=0
echo ========================================
echo "Pack PowerBI.Api.csproj Release - AnyCPU..."
echo ========================================
call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:CdpxPostSigning=true /p:PackageVersion=%MAJOR%.%MINOR%.0 /p:PackageOutputPath=%~dp0..\pack\Clean
call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:CdpxPostSigning=true /p:PackageVersion=%MAJOR%.%MINOR%.1 /p:PackageOutputPath=%~dp0..\pack\Clean

set EX=%ERRORLEVEL%

Expand Down
4 changes: 2 additions & 2 deletions sdk/PowerBI.Api/Extensions/ReportsOperationsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ public static Stream GetFileOfExportToFile(this IReportsOperations operations, G
/// <param name='reportId'>
/// The report id
/// </param>
public static void TakeOver(this IReportsOperations operations, Guid groupId, string reportId)
public static void TakeOver(this IReportsOperations operations, Guid groupId, Guid reportId)
{
operations.TakeOverAsync(groupId, reportId).GetAwaiter().GetResult();
}
Expand All @@ -868,7 +868,7 @@ public static void TakeOver(this IReportsOperations operations, Guid groupId, st
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task TakeOverAsync(this IReportsOperations operations, Guid groupId, string reportId, CancellationToken cancellationToken = default(CancellationToken))
public static async Task TakeOverAsync(this IReportsOperations operations, Guid groupId, Guid reportId, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.TakeOverInGroupWithHttpMessagesAsync(groupId, reportId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
Expand Down
5 changes: 1 addition & 4 deletions sdk/PowerBI.Api/Source/IReportsOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,6 @@ public partial interface IReportsOperations
/// <exception cref="Microsoft.Rest.HttpOperationException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<HttpOperationResponse> TakeOverInGroupWithHttpMessagesAsync(System.Guid groupId, string reportId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<HttpOperationResponse> TakeOverInGroupWithHttpMessagesAsync(System.Guid groupId, System.Guid reportId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
9 changes: 4 additions & 5 deletions sdk/PowerBI.Api/Source/Models/DirectQueryRefreshSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public DirectQueryRefreshSchedule()
/// <param name="times">Times to execute the refresh within each
/// day</param>
/// <param name="localTimeZoneId">The Id of the Time zone to use. See
/// **Name of Time Zone** column in [Microsoft Time Zone Index
/// Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)</param>
/// [Time Zone
/// Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id).</param>
public DirectQueryRefreshSchedule(int? frequency = default(int?), IList<Days?> days = default(IList<Days?>), IList<string> times = default(IList<string>), string localTimeZoneId = default(string))
{
Frequency = frequency;
Expand Down Expand Up @@ -71,9 +71,8 @@ public DirectQueryRefreshSchedule()
public IList<string> Times { get; set; }

/// <summary>
/// Gets or sets the Id of the Time zone to use. See **Name of Time
/// Zone** column in [Microsoft Time Zone Index
/// Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)
/// Gets or sets the Id of the Time zone to use. See [Time Zone
/// Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id).
/// </summary>
[JsonProperty(PropertyName = "localTimeZoneId")]
public string LocalTimeZoneId { get; set; }
Expand Down
200 changes: 100 additions & 100 deletions sdk/PowerBI.Api/Source/Models/MashupParameter.cs
Original file line number Diff line number Diff line change
@@ -1,100 +1,100 @@
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.PowerBI.Api.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Power BI dataset parameter
/// </summary>
public partial class MashupParameter
{
/// <summary>
/// Initializes a new instance of the MashupParameter class.
/// </summary>
public MashupParameter()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the MashupParameter class.
/// </summary>
/// <param name="name">The parameter name</param>
/// <param name="type">The parameter type</param>
/// <param name="isRequired">Is dataset parameter required</param>
/// <param name="currentValue">The parameter current value</param>
/// <param name="suggestedValues">List of the parameter suggested
/// values</param>
public MashupParameter(string name, string type, bool isRequired, string currentValue = default(string), IList<string> suggestedValues = default(IList<string>))
{
Name = name;
Type = type;
CurrentValue = currentValue;
IsRequired = isRequired;
SuggestedValues = suggestedValues;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// Gets or sets the parameter name
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
/// <summary>
/// Gets or sets the parameter type
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }
/// <summary>
/// Gets or sets the parameter current value
/// </summary>
[JsonProperty(PropertyName = "currentValue")]
public string CurrentValue { get; set; }
/// <summary>
/// Gets or sets is dataset parameter required
/// </summary>
[JsonProperty(PropertyName = "isRequired")]
public bool IsRequired { get; set; }
/// <summary>
/// Gets or sets list of the parameter suggested values
/// </summary>
[JsonProperty(PropertyName = "suggestedValues")]
public IList<string> SuggestedValues { get; set; }
/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Name == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
if (Type == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
}
}
}
}
// <auto-generated>
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.PowerBI.Api.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Power BI dataset parameter
/// </summary>
public partial class MashupParameter
{
/// <summary>
/// Initializes a new instance of the MashupParameter class.
/// </summary>
public MashupParameter()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the MashupParameter class.
/// </summary>
/// <param name="name">The parameter name</param>
/// <param name="type">The parameter type</param>
/// <param name="isRequired">Is dataset parameter required</param>
/// <param name="currentValue">The parameter current value</param>
/// <param name="suggestedValues">List of the parameter suggested
/// values</param>
public MashupParameter(string name, string type, bool isRequired, string currentValue = default(string), IList<string> suggestedValues = default(IList<string>))
{
Name = name;
Type = type;
CurrentValue = currentValue;
IsRequired = isRequired;
SuggestedValues = suggestedValues;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets the parameter name
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets the parameter type
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }

/// <summary>
/// Gets or sets the parameter current value
/// </summary>
[JsonProperty(PropertyName = "currentValue")]
public string CurrentValue { get; set; }

/// <summary>
/// Gets or sets is dataset parameter required
/// </summary>
[JsonProperty(PropertyName = "isRequired")]
public bool IsRequired { get; set; }

/// <summary>
/// Gets or sets list of the parameter suggested values
/// </summary>
[JsonProperty(PropertyName = "suggestedValues")]
public IList<string> SuggestedValues { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (Name == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
if (Type == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Type");
}
}
}
}
9 changes: 4 additions & 5 deletions sdk/PowerBI.Api/Source/Models/RefreshSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public RefreshSchedule()
/// day</param>
/// <param name="enabled">Is the refresh enabled</param>
/// <param name="localTimeZoneId">The Id of the Time zone to use. See
/// **Name of Time Zone** column in [Microsoft Time Zone Index
/// Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)</param>
/// [Time Zone
/// Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id).</param>
/// <param name="notifyOption">Notification option at scheduled refresh
/// termination. Possible values include: 'NoNotification',
/// 'MailOnFailure'</param>
Expand Down Expand Up @@ -71,9 +71,8 @@ public RefreshSchedule()
public bool? Enabled { get; set; }

/// <summary>
/// Gets or sets the Id of the Time zone to use. See **Name of Time
/// Zone** column in [Microsoft Time Zone Index
/// Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)
/// Gets or sets the Id of the Time zone to use. See [Time Zone
/// Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id).
/// </summary>
[JsonProperty(PropertyName = "localTimeZoneId")]
public string LocalTimeZoneId { get; set; }
Expand Down
14 changes: 2 additions & 12 deletions sdk/PowerBI.Api/Source/ReportsOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4871,21 +4871,11 @@ public ReportsOperations(PowerBIClient client)
/// <exception cref="HttpOperationException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="ValidationException">
/// Thrown when a required parameter is null
/// </exception>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<HttpOperationResponse> TakeOverInGroupWithHttpMessagesAsync(System.Guid groupId, string reportId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<HttpOperationResponse> TakeOverInGroupWithHttpMessagesAsync(System.Guid groupId, System.Guid reportId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (reportId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "reportId");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand All @@ -4902,7 +4892,7 @@ public ReportsOperations(PowerBIClient client)
var _baseUrl = Client.BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/groups/{groupId}/reports/{reportId}/Default.TakeOver").ToString();
_url = _url.Replace("{groupId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(groupId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{reportId}", System.Uri.EscapeDataString(reportId));
_url = _url.Replace("{reportId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(reportId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
Expand Down
4 changes: 2 additions & 2 deletions sdk/PowerBI.Api/Source/ReportsOperationsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,7 @@ public static EmbedToken GenerateTokenInGroup(this IReportsOperations operations
/// <param name='reportId'>
/// The report id
/// </param>
public static void TakeOverInGroup(this IReportsOperations operations, System.Guid groupId, string reportId)
public static void TakeOverInGroup(this IReportsOperations operations, System.Guid groupId, System.Guid reportId)
{
operations.TakeOverInGroupAsync(groupId, reportId).GetAwaiter().GetResult();
}
Expand All @@ -1868,7 +1868,7 @@ public static void TakeOverInGroup(this IReportsOperations operations, System.Gu
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task TakeOverInGroupAsync(this IReportsOperations operations, System.Guid groupId, string reportId, CancellationToken cancellationToken = default(CancellationToken))
public static async Task TakeOverInGroupAsync(this IReportsOperations operations, System.Guid groupId, System.Guid reportId, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.TakeOverInGroupWithHttpMessagesAsync(groupId, reportId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
Expand Down
7 changes: 4 additions & 3 deletions sdk/swaggers/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13761,7 +13761,8 @@
"in": "path",
"description": "The report id",
"required": true,
"type": "string"
"type": "string",
"format": "uuid"
}
],
"responses": {
Expand Down Expand Up @@ -15194,7 +15195,7 @@
},
"localTimeZoneId": {
"type": "string",
"description": "The Id of the Time zone to use. See **Name of Time Zone** column in [Microsoft Time Zone Index Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)"
"description": "The Id of the Time zone to use. See [Time Zone Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id)."
},
"NotifyOption": {
"type": "string",
Expand Down Expand Up @@ -15270,7 +15271,7 @@
},
"localTimeZoneId": {
"type": "string",
"description": "The Id of the Time zone to use. See **Name of Time Zone** column in [Microsoft Time Zone Index Values.](https://support.microsoft.com/help/973627/microsoft-time-zone-index-values)"
"description": "The Id of the Time zone to use. See [Time Zone Info](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id)."
}
}
},
Expand Down