/// <summary>
 /// Retrieves the list of catalog types within the specified database
 /// and schema for the current Data Lake Analytics catalog
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataLake.AnalyticsCatalog.ICatalogOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resourceGroup the Data Lake Analytics
 /// account is in
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account to use
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the database to find the types in.
 /// </param>
 /// <param name='schemaName'>
 /// Required. The name of the schema to find the types in.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all catalog
 /// type items.
 /// </param>
 /// <returns>
 /// The List types operation response.
 /// </returns>
 public static Task<CatalogTypeListResponse> ListTypesAsync(this ICatalogOperations operations, string resourceGroupName, string accountName, string databaseName, string schemaName, TypeListParameters parameters)
 {
     return operations.ListTypesAsync(resourceGroupName, accountName, databaseName, schemaName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Retrieves the list of catalog types within the specified database
 /// and schema for the current Data Lake Analytics catalog
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.DataLake.AnalyticsCatalog.ICatalogOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resourceGroup the Data Lake Analytics
 /// account is in
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account to use
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the database to find the types in.
 /// </param>
 /// <param name='schemaName'>
 /// Required. The name of the schema to find the types in.
 /// </param>
 /// <param name='parameters'>
 /// Optional. Query parameters. If null is passed returns all catalog
 /// type items.
 /// </param>
 /// <returns>
 /// The List types operation response.
 /// </returns>
 public static CatalogTypeListResponse ListTypes(this ICatalogOperations operations, string resourceGroupName, string accountName, string databaseName, string schemaName, TypeListParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ICatalogOperations)s).ListTypesAsync(resourceGroupName, accountName, databaseName, schemaName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }