struct

Anthropic::CredentialNetworking

Inherits JSON::Serializable < Struct < Value < Object

Restricts outbound host access for an environment-variable credential.

unrestricted (the default) allows any host; limited restricts to a set of allowed_hosts (bare hostnames, IPv4 addresses, or *.-wildcards).

Constructors

limited(allowed_hosts : Array(String)) : self
Source
new(type : String = "unrestricted", allowed_hosts : Array(String) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
unrestricted
Source

Instance methods

allowed_hosts
Source
type
Source