/// <summary>
 /// Get mapping of apple app to an existing app in apple store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AppleMappingResponse> GetAsync(this IAppleMapping operations, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(ownerName, appName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get mapping of apple app to an existing app in apple store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static AppleMappingResponse Get(this IAppleMapping operations, string ownerName, string appName)
 {
     return(operations.GetAsync(ownerName, appName).GetAwaiter().GetResult());
 }
 public static IList <AppleTestFlightGroupsResponse> TestFlightGroups(this IAppleMapping operations, string ownerName, string appName)
 {
     return(operations.TestFlightGroupsAsync(ownerName, appName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create a mapping for an existing app in apple store for the specified
 /// application.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// The apple app mapping object
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static AppleMappingResponse Create(this IAppleMapping operations, AppleMappingRequest body, string ownerName, string appName)
 {
     return(operations.CreateAsync(body, ownerName, appName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete mapping of apple app to an existing app in apple store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IAppleMapping operations, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(ownerName, appName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete mapping of apple app to an existing app in apple store.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='ownerName'>
 /// The name of the owner
 /// </param>
 /// <param name='appName'>
 /// The name of the application
 /// </param>
 public static void Delete(this IAppleMapping operations, string ownerName, string appName)
 {
     operations.DeleteAsync(ownerName, appName).GetAwaiter().GetResult();
 }