/// <summary>
 /// Creates new API operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IApiOperationsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='aid'>
 /// Required. Identifier of the API.
 /// </param>
 /// <param name='oid'>
 /// Required. Identifier of the Operation.
 /// </param>
 /// <param name='parameters'>
 /// Required. Create parameters.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse Create(this IApiOperationsOperations operations, string resourceGroupName, string serviceName, string aid, string oid, OperationCreateOrUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IApiOperationsOperations)s).CreateAsync(resourceGroupName, serviceName, aid, oid, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates new API operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IApiOperationsOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='aid'>
 /// Required. Identifier of the API.
 /// </param>
 /// <param name='oid'>
 /// Required. Identifier of the Operation.
 /// </param>
 /// <param name='parameters'>
 /// Required. Create parameters.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<AzureOperationResponse> CreateAsync(this IApiOperationsOperations operations, string resourceGroupName, string serviceName, string aid, string oid, OperationCreateOrUpdateParameters parameters)
 {
     return operations.CreateAsync(resourceGroupName, serviceName, aid, oid, parameters, CancellationToken.None);
 }