Skip to content

Commit

Permalink
AutoPr-Runtime-diberry-REST Spec PrNumber 5424 (#5510)
Browse files Browse the repository at this point in the history
* .NET SDK Resource Provider:'Runtime'
REST Spec PR 'Azure/azure-rest-api-specs#5424'
REST Spec PR Author 'diberry'
REST Spec PR Last commit

* .NET SDK Resource Provider:'Runtime'
REST Spec PR 'Azure/azure-rest-api-specs#5424'
REST Spec PR Author 'diberry'
REST Spec PR Last commit
  • Loading branch information
adxsdknet authored and dsgouda committed Apr 9, 2019
1 parent 21fa993 commit 0d95b06
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public partial interface IPrediction
/// Enable spell checking.
/// </param>
/// <param name='bingSpellCheckSubscriptionKey'>
/// The subscription key to use when enabling bing spell check
/// The subscription key to use when enabling Bing spell check
/// </param>
/// <param name='log'>
/// Log query (default is true)
Expand All @@ -65,6 +65,6 @@ public partial interface IPrediction
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<HttpOperationResponse<LuisResult>> ResolveWithHttpMessagesAsync(string appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<HttpOperationResponse<LuisResult>> ResolveWithHttpMessagesAsync(System.Guid appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public Prediction(LUISRuntimeClient client)
/// Enable spell checking.
/// </param>
/// <param name='bingSpellCheckSubscriptionKey'>
/// The subscription key to use when enabling bing spell check
/// The subscription key to use when enabling Bing spell check
/// </param>
/// <param name='log'>
/// Log query (default is true)
Expand All @@ -99,16 +99,12 @@ public Prediction(LUISRuntimeClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<HttpOperationResponse<LuisResult>> ResolveWithHttpMessagesAsync(string appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<HttpOperationResponse<LuisResult>> ResolveWithHttpMessagesAsync(System.Guid appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.Endpoint == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
}
if (appId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "appId");
}
if (query == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "query");
Expand Down Expand Up @@ -142,7 +138,7 @@ public Prediction(LUISRuntimeClient client)
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}";
_url = _url.Replace("{Endpoint}", Client.Endpoint);
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(appId));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
List<string> _queryParameters = new List<string>();
if (timezoneOffset != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ public static partial class PredictionExtensions
/// Enable spell checking.
/// </param>
/// <param name='bingSpellCheckSubscriptionKey'>
/// The subscription key to use when enabling bing spell check
/// The subscription key to use when enabling Bing spell check
/// </param>
/// <param name='log'>
/// Log query (default is true)
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<LuisResult> ResolveAsync(this IPrediction operations, string appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
public static async Task<LuisResult> ResolveAsync(this IPrediction operations, System.Guid appId, string query, double? timezoneOffset = default(double?), bool? verbose = default(bool?), bool? staging = default(bool?), bool? spellCheck = default(bool?), string bingSpellCheckSubscriptionKey = default(string), bool? log = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ResolveWithHttpMessagesAsync(appId, query, timezoneOffset, verbose, staging, spellCheck, bingSpellCheckSubscriptionKey, log, null, cancellationToken).ConfigureAwait(false))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_LUISRuntimeClie
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "[email protected]";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/LUIS/Runtime/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Work\\azure-sdk-for-net-fork\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "9da47072c2a912065239412c13125e3242d7a8f7";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

0 comments on commit 0d95b06

Please sign in to comment.