/// <summary> /// The operation to update a policy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountName'> /// billing Account Id. /// </param> /// <param name='billingProfileName'> /// Billing Profile Id. /// </param> /// <param name='parameters'> /// Parameters supplied to the update policy operation. /// </param> public static Policy Update(this IPolicyOperations operations, string billingAccountName, string billingProfileName, Policy parameters) { return(operations.UpdateAsync(billingAccountName, billingProfileName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Update Policy. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations. /// </param> /// <param name='input'> /// Required. input. /// </param> /// <param name='policyName'> /// Required. Policy name. /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task <LongRunningOperationResponse> UpdateAsync(this IPolicyOperations operations, UpdatePolicyInput input, string policyName, CustomRequestHeaders customRequestHeaders) { return(operations.UpdateAsync(input, policyName, customRequestHeaders, CancellationToken.None)); }