/// <summary> /// List IoT alert 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 <IotAlertTypeList> ListAsync(this IIotAlertTypesOperations 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 alert type /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='iotAlertTypeName'> /// Name of the alert type /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IotAlertType> Get1Async(this IIotAlertTypesOperations operations, string iotAlertTypeName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.Get1WithHttpMessagesAsync(iotAlertTypeName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get IoT alert 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='iotAlertTypeName'> /// Name of the alert type /// </param> public static IotAlertType Get(this IIotAlertTypesOperations operations, string resourceGroupName, string solutionName, string iotAlertTypeName) { return(operations.GetAsync(resourceGroupName, solutionName, iotAlertTypeName).GetAwaiter().GetResult()); }
/// <summary> /// Get IoT alert type /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='iotAlertTypeName'> /// Name of the alert type /// </param> public static IotAlertType Get1(this IIotAlertTypesOperations operations, string iotAlertTypeName) { return(operations.Get1Async(iotAlertTypeName).GetAwaiter().GetResult()); }
/// <summary> /// List IoT alert types /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IotAlertTypeList List1(this IIotAlertTypesOperations operations) { return(operations.List1Async().GetAwaiter().GetResult()); }