/// <summary> /// List IoT recommendation types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. The name is /// case insensitive. /// </param> /// <param name='solutionName'> /// The name of the IoT Security solution. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IotRecommendationTypeList> ListAsync(this IIotRecommendationTypesOperations operations, string resourceGroupName, string solutionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, solutionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get IoT recommendation type /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='iotRecommendationTypeName'> /// Name of the recommendation type /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IotRecommendationType> Get1Async(this IIotRecommendationTypesOperations operations, string iotRecommendationTypeName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get1WithHttpMessagesAsync(iotRecommendationTypeName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get IoT recommendation type /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. The name is /// case insensitive. /// </param> /// <param name='solutionName'> /// The name of the IoT Security solution. /// </param> /// <param name='iotRecommendationTypeName'> /// Name of the recommendation type /// </param> public static IotRecommendationType Get(this IIotRecommendationTypesOperations operations, string resourceGroupName, string solutionName, string iotRecommendationTypeName) { return(operations.GetAsync(resourceGroupName, solutionName, iotRecommendationTypeName).GetAwaiter().GetResult()); }
/// <summary> /// Get IoT recommendation type /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='iotRecommendationTypeName'> /// Name of the recommendation type /// </param> public static IotRecommendationType Get1(this IIotRecommendationTypesOperations operations, string iotRecommendationTypeName) { return(operations.Get1Async(iotRecommendationTypeName).GetAwaiter().GetResult()); }
/// <summary> /// List IoT recommendation types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IotRecommendationTypeList List1(this IIotRecommendationTypesOperations operations) { return(operations.List1Async().GetAwaiter().GetResult()); }