Exemple #1
0
 /// <summary>
 /// Deletes an existing CDN profile with the specified parameters. Deleting a
 /// profile will result in the deletion of all of the sub-resources including
 /// endpoints, origins and custom domains.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 public static void Delete(this IProfilesOperations operations, string resourceGroupName, string profileName)
 {
     operations.DeleteAsync(resourceGroupName, profileName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Deletes a Traffic Manager profile.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Traffic Manager profile to be
 /// deleted.
 /// </param>
 /// <param name='profileName'>
 /// The name of the Traffic Manager profile to be deleted.
 /// </param>
 public static DeleteOperationResult Delete(this IProfilesOperations operations, string resourceGroupName, string profileName)
 {
     return(operations.DeleteAsync(resourceGroupName, profileName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a profile within a hub
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='hubName'>
 /// The name of the hub.
 /// </param>
 /// <param name='profileName'>
 /// The name of the profile.
 /// </param>
 /// <param name='localeCode'>
 /// Locale of profile to retrieve, default is en-us.
 /// </param>
 public static void Delete(this IProfilesOperations operations, string resourceGroupName, string hubName, string profileName, string localeCode = "en-us")
 {
     operations.DeleteAsync(resourceGroupName, hubName, profileName, localeCode).GetAwaiter().GetResult();
 }