/// <summary> /// Deletes an existing origin within an origin group. /// </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> /// <param name='originGroupName'> /// Name of the origin group which is unique within the profile. /// </param> /// <param name='originName'> /// Name of the origin which is unique within the profile. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IAFDOriginsOperations operations, string resourceGroupName, string profileName, string originGroupName, string originName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, profileName, originGroupName, originName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Updates an existing origin within an origin group. /// </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> /// <param name='originGroupName'> /// Name of the origin group which is unique within the profile. /// </param> /// <param name='originName'> /// Name of the origin which is unique within the profile. /// </param> /// <param name='originUpdateProperties'> /// Origin properties /// </param> public static AFDOrigin Update(this IAFDOriginsOperations operations, string resourceGroupName, string profileName, string originGroupName, string originName, AFDOriginUpdateParameters originUpdateProperties) { return(operations.UpdateAsync(resourceGroupName, profileName, originGroupName, originName, originUpdateProperties).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an existing origin within an origin group. /// </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> /// <param name='originGroupName'> /// Name of the origin group which is unique within the profile. /// </param> /// <param name='originName'> /// Name of the origin which is unique within the profile. /// </param> public static void Delete(this IAFDOriginsOperations operations, string resourceGroupName, string profileName, string originGroupName, string originName) { operations.DeleteAsync(resourceGroupName, profileName, originGroupName, originName).GetAwaiter().GetResult(); }
/// <summary> /// Creates a new origin within the specified origin group. /// </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> /// <param name='originGroupName'> /// Name of the origin group which is unique within the profile. /// </param> /// <param name='originName'> /// Name of the origin that is unique within the profile. /// </param> /// <param name='origin'> /// Origin properties /// </param> public static AFDOrigin Create(this IAFDOriginsOperations operations, string resourceGroupName, string profileName, string originGroupName, string originName, AFDOrigin origin) { return(operations.CreateAsync(resourceGroupName, profileName, originGroupName, originName, origin).GetAwaiter().GetResult()); }