/// <summary> /// Enables or disables a profile. (see /// http://msdn.microsoft.com/en-us/library/hh758250.aspx for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.TrafficManager.IProfileOperations. /// </param> /// <param name='profileName'> /// Required. The name of the profile. /// </param> /// <param name='profileStatus'> /// Required. Specifies whether the profile should be enabled or /// disabled. /// </param> /// <param name='definitionVersionNumber'> /// Required. Version of the definition associated with the profile /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> UpdateAsync(this IProfileOperations operations, string profileName, ProfileDefinitionStatus profileStatus, int definitionVersionNumber) { return(operations.UpdateAsync(profileName, profileStatus, definitionVersionNumber, CancellationToken.None)); }
/// <summary> /// Update a Traffic Manager profile. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.TrafficManager.IProfileOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group containing the Traffic /// Manager profile. /// </param> /// <param name='profileName'> /// Required. The name of the Traffic Manager profile. /// </param> /// <param name='parameters'> /// Required. The Traffic Manager profile parameters supplied to the /// Update operation. /// </param> /// <returns> /// Parameters supplied to update a Traffic Manager profile. /// </returns> public static Task <ProfileUpdateResponse> UpdateAsync(this IProfileOperations operations, string resourceGroupName, string profileName, ProfileUpdateParameters parameters) { return(operations.UpdateAsync(resourceGroupName, profileName, parameters, CancellationToken.None)); }