Class: OpenAI::Models::ContainerCreateResponse::NetworkPolicy
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::ContainerCreateResponse::NetworkPolicy
- Defined in:
- lib/openai/models/container_create_response.rb
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#allowed_domains ⇒ Array<String>?
Allowed outbound domains when
typeisallowlist. -
#type ⇒ Symbol, OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type
The network policy mode.
Instance Method Summary collapse
-
#initialize(type:, allowed_domains: nil) ⇒ Object
constructor
Network access policy for the container.
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.
|
|
# File 'lib/openai/models/container_create_response.rb', line 150
|
Instance Attribute Details
#allowed_domains ⇒ Array<String>?
Allowed outbound domains when type is allowlist.
148 |
# File 'lib/openai/models/container_create_response.rb', line 148 optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String] |
#type ⇒ Symbol, OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type
The network policy mode.
142 |
# File 'lib/openai/models/container_create_response.rb', line 142 required :type, enum: -> { OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type } |