internal static LogProfileCollection DeserializeLogProfileCollection(JsonElement element)
        {
            IReadOnlyList <LogProfileData> value = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("value"))
                {
                    List <LogProfileData> array = new List <LogProfileData>();
                    foreach (var item in property.Value.EnumerateArray())
                    {
                        array.Add(LogProfileData.DeserializeLogProfileData(item));
                    }
                    value = array;
                    continue;
                }
            }
            return(new LogProfileCollection(value));
        }
        public static LogProfileData GetBasicLogProfileData(AzureLocation location)
        {
            IEnumerable <string> locations = new List <string>()
            {
                "global",
                "eastus"
            };
            IEnumerable <string> categories = new List <string>()
            {
                "Delete",
                "write"
            };
            RetentionPolicy retentionPolicy = new RetentionPolicy(true, 4);
            var             data            = new LogProfileData(location, locations, categories, retentionPolicy)
            {
                //ServiceBusRuleId = "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/testservicebusRG-9432/providers/Microsoft.ServiceBus/namespaces/testnamespacemgmt7892",
                StorageAccountId = "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/deleteme0122/providers/Microsoft.Storage/storageAccounts/testlogaccount0129"
            };

            return(data);
        }
 public static void AssertLogProfile(LogProfileData data1, LogProfileData data2)
 {
     AssertTrackedResource(data1, data2);
     Assert.AreEqual(data1.ServiceBusRuleId, data2.ServiceBusRuleId);
 }