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.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def allow_all_unix_sockets
  @allow_all_unix_sockets
end

#allow_local_bindingObject

Returns the value of attribute allow_local_binding.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def allow_local_binding
  @allow_local_binding
end

#allow_managed_domains_onlyObject

Returns the value of attribute allow_managed_domains_only.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def allow_managed_domains_only
  @allow_managed_domains_only
end

#allow_unix_socketsObject

Returns the value of attribute allow_unix_sockets.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def allow_unix_sockets
  @allow_unix_sockets
end

#allowed_domainsObject

Returns the value of attribute allowed_domains.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def allowed_domains
  @allowed_domains
end

#http_proxy_portObject

Returns the value of attribute http_proxy_port.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def http_proxy_port
  @http_proxy_port
end

#socks_proxy_portObject

Returns the value of attribute socks_proxy_port.



1347
1348
1349
# File 'lib/claude_agent_sdk/types.rb', line 1347

def socks_proxy_port
  @socks_proxy_port
end

Instance Method Details

#to_hObject



1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
# File 'lib/claude_agent_sdk/types.rb', line 1351

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