Microsoft.Azure.Commands.Batch.Models.BatchClient.ListNodeAgentSkus C# (CSharp) Method

ListNodeAgentSkus() public method

Lists the node agent SKUs matching the specified filter options.
public ListNodeAgentSkus ( BatchAccountContext context, string filterClause = default(string), int maxCount = default(int), IEnumerable additionalBehaviors = null ) : IEnumerable
context BatchAccountContext The account to use.
filterClause string The level of detail
maxCount int The number of results.
additionalBehaviors IEnumerable Additional client behaviors to perform.
return IEnumerable
        public IEnumerable<PSNodeAgentSku> ListNodeAgentSkus(
            BatchAccountContext context,
            string filterClause = default(string),
            int maxCount = default(int),
            IEnumerable<BatchClientBehavior> additionalBehaviors = null)
        {
            PoolOperations poolOperations = context.BatchOMClient.PoolOperations;
            ODATADetailLevel filterLevel = new ODATADetailLevel(filterClause: filterClause);

            IPagedEnumerable<NodeAgentSku> nodeAgentSkus = poolOperations.ListNodeAgentSkus(filterLevel, additionalBehaviors);
            Func<NodeAgentSku, PSNodeAgentSku> mappingFunction = p => { return new PSNodeAgentSku(p); };

            return PSPagedEnumerable<PSNodeAgentSku, NodeAgentSku>.CreateWithMaxCount(nodeAgentSkus, mappingFunction,
                maxCount, () => WriteVerbose(string.Format(Resources.MaxCount, maxCount)));
        }
BatchClient