/// <summary>
 /// Creates or updates iOSMAMPolicy.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='hostName'>
 /// Location hostName for the tenant
 /// </param>
 /// <param name='policyName'>
 /// Unique name for the policy
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create or update an android policy operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IOSMAMPolicy> CreateOrUpdateMAMPolicyAsync(this IIosOperations operations, string hostName, string policyName, IOSMAMPolicy parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateMAMPolicyWithHttpMessagesAsync(hostName, policyName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }