/// <summary> /// Returns example utterances to be reviewed from a version of the /// application. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appId'> /// The application ID. /// </param> /// <param name='versionId'> /// The version ID. /// </param> /// <param name='skip'> /// The number of entries to skip. Default value is 0. /// </param> /// <param name='take'> /// The number of entries to return. Maximum page size is 500. Default is 100. /// </param> /// <param name='enableNestedChildren'> /// Toggles nested/flat format /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <LabeledUtterance> > ListAsync(this IExamples operations, System.Guid appId, string versionId, int?skip = 0, int?take = 100, bool?enableNestedChildren = false, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, enableNestedChildren, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns example utterances to be reviewed from a version of the /// application. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Supported Azure regions for Cognitive Services endpoints. Possible values /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' /// </param> /// <param name='azureCloud'> /// Supported Azure Clouds for Cognitive Services endpoints. Possible values /// include: 'com', 'us' /// </param> /// <param name='appId'> /// The application ID. /// </param> /// <param name='versionId'> /// The version ID. /// </param> /// <param name='skip'> /// The number of entries to skip. Default value is 0. /// </param> /// <param name='take'> /// The number of entries to return. Maximum page size is 500. Default is 100. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IList<LabeledUtterance>> ListAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }