Class: OpenAI::Models::Admin::Organization::AuditLogListResponse::IPAllowlistConfigDeactivated::Config

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/audit_log_list_response.rb,
sig/openai/models/admin/organization/audit_log_list_response.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, #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(configs: nil) ⇒ Config

The details for events with this type.

Parameters:



1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 1486

class Config < OpenAI::Internal::Type::BaseModel
  # @!attribute id
  #   The ID of the IP allowlist configuration.
  #
  #   @return [String, nil]
  optional :id, String

  # @!attribute name
  #   The name of the IP allowlist configuration.
  #
  #   @return [String, nil]
  optional :name, String

  # @!method initialize(id: nil, name: nil)
  #   @param id [String] The ID of the IP allowlist configuration.
  #
  #   @param name [String] The name of the IP allowlist configuration.
end

Instance Attribute Details

#idString?

The ID of the IP allowlist configuration.

Parameters:

  • (String)

Returns:

  • (String, nil)


1491
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 1491

optional :id, String

#nameString?

The name of the IP allowlist configuration.

Parameters:

  • (String)

Returns:

  • (String, nil)


1497
# File 'lib/openai/models/admin/organization/audit_log_list_response.rb', line 1497

optional :name, String

Instance Method Details

#to_hash{ id: String, name: String }

Returns:

  • ({ id: String, name: String })


1556
# File 'sig/openai/models/admin/organization/audit_log_list_response.rbs', line 1556

def to_hash: -> { id: String, name: String }