// Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; namespace Microsoft.Agents.AI.Hyperlight; /// /// Represents a single entry in the outbound network allow-list applied to the /// Hyperlight sandbox. /// public sealed class AllowedDomain { /// /// Initializes a new instance of the class. /// /// URL or domain to allow, for example "https://api.github.com". /// /// Optional list of HTTP methods to allow (for example ["GET", "POST"]). /// When , all methods supported by the backend are allowed. /// public AllowedDomain(string target, IReadOnlyList? methods = null) { this.Target = target; this.Methods = methods; } /// Gets the URL or domain to allow. public string Target { get; } /// Gets the optional list of HTTP methods to allow. public IReadOnlyList? Methods { get; } }