public virtual PSSearchListSavedSearchResponse GetSavedSearches(string resourceGroupName, string workspaceName) { SavedSearchesListResult responses = OperationalInsightsManagementClient.SavedSearches.ListByWorkspace(resourceGroupName, workspaceName); PSSearchListSavedSearchResponse searchResponses = new PSSearchListSavedSearchResponse(responses); return(searchResponses); }
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)); } }