/// <summary>
 /// Delete a hybrid runbook worker group.
 /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='hybridRunbookWorkerGroupName'>
 /// The hybrid runbook worker group name
 /// </param>
 public static void Delete(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName).GetAwaiter().GetResult();
 }
コード例 #2
0
 /// <summary>
 /// Delete a hybrid runbook worker group.  (see
 /// http://aka.ms/azureautomationsdk/hybridrunbookworkergroupoperations
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IHybridRunbookWorkerGroupOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group
 /// </param>
 /// <param name='automationAccount'>
 /// Required. Automation account name.
 /// </param>
 /// <param name='hybridRunbookWorkerGroupName'>
 /// Required. The hybrid runbook worker group name
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IHybridRunbookWorkerGroupOperations operations, string resourceGroupName, string automationAccount, string hybridRunbookWorkerGroupName)
 {
     return(operations.DeleteAsync(resourceGroupName, automationAccount, hybridRunbookWorkerGroupName, CancellationToken.None));
 }