GetPSOperationsFromProviderOperationsMetadata() private static method

private static GetPSOperationsFromProviderOperationsMetadata ( Microsoft.Azure.Management.Resources.Models.ProviderOperationsMetadata providerOperationsMetadata ) : IEnumerable
providerOperationsMetadata Microsoft.Azure.Management.Resources.Models.ProviderOperationsMetadata
return IEnumerable
        /// <summary>
        /// Gets a list of Provider operations in the case that the Actionstring input does not contain a wildcard
        /// </summary>
        private List <PSResourceProviderOperation> ProcessProviderOperationsWithoutWildCard(string operationString)
        {
            string providerFullName = operationString.Split(Separator).First();

            var providerOperations = this.ResourcesClient.GetProviderOperationsMetadata(providerFullName);
            IEnumerable <PSResourceProviderOperation> flattenedProviderOperations = GetAzureProviderOperationCommand.GetPSOperationsFromProviderOperationsMetadata(providerOperations);

            return(flattenedProviderOperations.Where(op => string.Equals(op.Operation, operationString, StringComparison.OrdinalIgnoreCase)).ToList());
        }
        /// <summary>
        /// Gets a list of Provider operations in the case that the Actionstring input does not contain a wildcard
        /// </summary>
        private List <PSResourceProviderOperation> ProcessProviderOperationsWithoutWildCard(string actionString)
        {
            List <PSResourceProviderOperation> operationsToDisplay = new List <PSResourceProviderOperation>();
            string providerFullName = GetAzureProviderOperationCommand.GetResourceProviderFullName(actionString);

            if (!string.IsNullOrWhiteSpace(providerFullName))
            {
                // We have the full name of the provider. get operations metadata for this provider
                ProviderOperationsMetadata providerOperations = this.ResourcesClient.GetProviderOperationsMetadata(providerFullName);
                IEnumerable <PSResourceProviderOperation> flattenedProviderOperations = GetAzureProviderOperationCommand.GetPSOperationsFromProviderOperationsMetadata(providerOperations);
                operationsToDisplay.AddRange(flattenedProviderOperations.Where(op => string.Equals(op.Operation, actionString, StringComparison.OrdinalIgnoreCase)));
            }

            return(operationsToDisplay);
        }