Пример #1
0
        public ContainerServiceDiagnosticsProfile(ContainerServiceVMDiagnostics vmDiagnostics)
        {
            if (vmDiagnostics == null)
            {
                throw new ArgumentNullException(nameof(vmDiagnostics));
            }

            VmDiagnostics = vmDiagnostics;
        }
        internal static ContainerServiceDiagnosticsProfile DeserializeContainerServiceDiagnosticsProfile(JsonElement element)
        {
            ContainerServiceVMDiagnostics vmDiagnostics = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("vmDiagnostics"))
                {
                    vmDiagnostics = ContainerServiceVMDiagnostics.DeserializeContainerServiceVMDiagnostics(property.Value);
                    continue;
                }
            }
            return(new ContainerServiceDiagnosticsProfile(vmDiagnostics));
        }