Class: OpenAI::Models::Beta::Agents::Vaults::CredentialNetworkingParam::Limited

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/vaults/credential_networking_param.rb,
sig/openai/models/beta/agents/vaults/credential_networking_param.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, 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(allowed_hosts:, type: :limited) ⇒ Object

Parameters:

  • allowed_hosts

    The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses are not supported.

  • type (defaults to: :limited)

    The type of the object. Always limited.



# File 'lib/openai/models/beta/agents/vaults/credential_networking_param.rb', line 52

Instance Attribute Details

#allowed_hosts::Array[String]

The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses are not supported.

Returns:

  • (::Array[String])


44
# File 'lib/openai/models/beta/agents/vaults/credential_networking_param.rb', line 44

required :allowed_hosts, OpenAI::Internal::Type::ArrayOf[String]

#type:limited

The type of the object. Always limited.

Returns:

  • (:limited)


50
# File 'lib/openai/models/beta/agents/vaults/credential_networking_param.rb', line 50

required :type, const: :limited

Instance Method Details

#to_hash{

Returns:

  • ({)


48
# File 'sig/openai/models/beta/agents/vaults/credential_networking_param.rbs', line 48

def to_hash: -> {