public virtual PSSearchGetSchemaResponse GetSchema(string resourceGroupName, string workspaceName) { SearchGetSchemaResponse response = OperationalInsightsManagementClient.Schema.Get(resourceGroupName, workspaceName); PSSearchGetSchemaResponse schemaResponse = new PSSearchGetSchemaResponse(response); return(schemaResponse); }
public PSSearchGetSchemaResponse(SearchGetSchemaResponse response) { if (response != null) { this.Metadata = new PSSearchMetadata(response.Metadata); this.Value = new List <PSSchemaValue>(); foreach (SchemaValue v in response.Value) { this.Value.Add(new PSSchemaValue(v)); } } }