Class: ClaudeAgentSDK::SandboxNetworkConfig

Inherits:
Type
  • Object
show all
Defined in:
lib/claude_agent_sdk/types.rb

Overview

Sandbox network configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#[], #[]=, from_hash, #initialize, wrap

Constructor Details

This class inherits a constructor from ClaudeAgentSDK::Type

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ClaudeAgentSDK::Type

Instance Attribute Details

#allow_all_unix_socketsObject

Returns the value of attribute allow_all_unix_sockets.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def allow_all_unix_sockets
  @allow_all_unix_sockets
end

#allow_local_bindingObject

Returns the value of attribute allow_local_binding.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def allow_local_binding
  @allow_local_binding
end

#allow_managed_domains_onlyObject

Returns the value of attribute allow_managed_domains_only.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def allow_managed_domains_only
  @allow_managed_domains_only
end

#allow_unix_socketsObject

Returns the value of attribute allow_unix_sockets.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def allow_unix_sockets
  @allow_unix_sockets
end

#allowed_domainsObject

Returns the value of attribute allowed_domains.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def allowed_domains
  @allowed_domains
end

#http_proxy_portObject

Returns the value of attribute http_proxy_port.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def http_proxy_port
  @http_proxy_port
end

#socks_proxy_portObject

Returns the value of attribute socks_proxy_port.



1306
1307
1308
# File 'lib/claude_agent_sdk/types.rb', line 1306

def socks_proxy_port
  @socks_proxy_port
end

Instance Method Details

#to_hObject



1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
# File 'lib/claude_agent_sdk/types.rb', line 1310

def to_h
  result = {}
  result[:allowedDomains] = @allowed_domains if @allowed_domains
  result[:allowManagedDomainsOnly] = @allow_managed_domains_only unless @allow_managed_domains_only.nil?
  result[:allowUnixSockets] = @allow_unix_sockets unless @allow_unix_sockets.nil?
  result[:allowAllUnixSockets] = @allow_all_unix_sockets unless @allow_all_unix_sockets.nil?
  result[:allowLocalBinding] = @allow_local_binding unless @allow_local_binding.nil?
  result[:httpProxyPort] = @http_proxy_port if @http_proxy_port
  result[:socksProxyPort] = @socks_proxy_port if @socks_proxy_port
  result
end