Class: OpenAI::Models::ContainerListResponse::NetworkPolicy

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/container_list_response.rb,
sig/openai/models/container_list_response.rbs

Overview

See Also:

  • OpenAI::Models::ContainerListResponse#network_policy

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(type:, allowed_domains: nil) ⇒ Object

Network access policy for the container.

Parameters:



# File 'lib/openai/models/container_list_response.rb', line 150

Instance Attribute Details

#allowed_domainsArray<String>?

Allowed outbound domains when type is allowlist.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


148
# File 'lib/openai/models/container_list_response.rb', line 148

optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String]

#typeSymbol, OpenAI::Models::ContainerListResponse::NetworkPolicy::Type

The network policy mode.

Parameters:

  • value (OpenAI::Models::ContainerListResponse::NetworkPolicy::type_)

Returns:



142
# File 'lib/openai/models/container_list_response.rb', line 142

required :type, enum: -> { OpenAI::Models::ContainerListResponse::NetworkPolicy::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


142
# File 'sig/openai/models/container_list_response.rbs', line 142

def to_hash: -> {