/// <summary> /// Returns the functional taxonomy for all assets, such as the Omniclass /// hierarchy. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='client'> /// The name of the client account. /// </param> /// <param name='depth'> /// Optionally prunes the functional taxonomy to only include the indicated /// levels. /// </param> /// <param name='inactive'> /// Optionally returns inactive assets as well as active ones /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <TaxonomyLevelDescriptor> > GetLocationTaxonomyAsync(this IAssets operations, string client, int?depth = default(int?), bool?inactive = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetLocationTaxonomyWithHttpMessagesAsync(client, depth, inactive, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }