Esempio n. 1
0
        public virtual PSSearchListSavedSearchResponse GetSavedSearches(string resourceGroupName, string workspaceName)
        {
            SavedSearchesListResult         responses       = OperationalInsightsManagementClient.SavedSearches.ListByWorkspace(resourceGroupName, workspaceName);
            PSSearchListSavedSearchResponse searchResponses = new PSSearchListSavedSearchResponse(responses);

            return(searchResponses);
        }
Esempio n. 2
0
        public PSSearchListSavedSearchResponse(SavedSearchesListResult searchResponse)
        {
            if (searchResponse == null)
            {
                throw new ArgumentNullException("saved search response");
            }

            this.Value = new List <PSSavedSearchValue>();
            foreach (SavedSearch v in searchResponse.Value)
            {
                this.Value.Add(new PSSavedSearchValue(v));
            }
        }