internal VaultAccessPolicyParameters(string id, string name, string type, string location, VaultAccessPolicyProperties properties)
 {
     Id         = id;
     Name       = name;
     Type       = type;
     Location   = location;
     Properties = properties;
 }
        public VaultAccessPolicyParameters(VaultAccessPolicyProperties properties)
        {
            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            Properties = properties;
        }
        internal static VaultAccessPolicyParameters DeserializeVaultAccessPolicyParameters(JsonElement element)
        {
            string id       = default;
            string name     = default;
            string type     = default;
            string location = default;
            VaultAccessPolicyProperties properties = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("id"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    id = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("type"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    type = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("location"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        continue;
                    }
                    location = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    properties = VaultAccessPolicyProperties.DeserializeVaultAccessPolicyProperties(property.Value);
                    continue;
                }
            }
            return(new VaultAccessPolicyParameters(id, name, type, location, properties));
        }