Class: OpenAI::Models::Beta::BetaContainerNetworkPolicyAllowlist
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::BetaContainerNetworkPolicyAllowlist
- Defined in:
- lib/openai/models/beta/beta_container_network_policy_allowlist.rb,
sig/openai/models/beta/beta_container_network_policy_allowlist.rbs
Instance Attribute Summary collapse
-
#allowed_domains ⇒ Array<String>
A list of allowed domains when type is
allowlist. -
#domain_secrets ⇒ Array<OpenAI::Models::Beta::BetaContainerNetworkPolicyDomainSecret>?
Optional domain-scoped secrets for allowlisted domains.
-
#type ⇒ Symbol, :allowlist
Allow outbound network access only to specified domains.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
24 |
# File 'sig/openai/models/beta/beta_container_network_policy_allowlist.rbs', line 24
def initialize: (
|
Instance Attribute Details
#allowed_domains ⇒ Array<String>
A list of allowed domains when type is allowlist.
11 |
# File 'lib/openai/models/beta/beta_container_network_policy_allowlist.rb', line 11 required :allowed_domains, OpenAI::Internal::Type::ArrayOf[String] |
#domain_secrets ⇒ Array<OpenAI::Models::Beta::BetaContainerNetworkPolicyDomainSecret>?
Optional domain-scoped secrets for allowlisted domains.
23 24 |
# File 'lib/openai/models/beta/beta_container_network_policy_allowlist.rb', line 23 optional :domain_secrets, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::BetaContainerNetworkPolicyDomainSecret] } |
#type ⇒ Symbol, :allowlist
Allow outbound network access only to specified domains. Always allowlist.
17 |
# File 'lib/openai/models/beta/beta_container_network_policy_allowlist.rb', line 17 required :type, const: :allowlist |
Instance Method Details
#to_hash ⇒ {
30 |
# File 'sig/openai/models/beta/beta_container_network_policy_allowlist.rbs', line 30
def to_hash: -> {
|