Class: OpenAI::Models::Webhooks::WebhookEndpointList

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/webhook_endpoint_list.rb,
sig/openai/models/webhooks/webhook_endpoint_list.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(data:, first_id:, has_more:, last_id:, object: :list) ⇒ Object

Parameters:

  • data

    The webhook endpoints in this page.

  • first_id

    The ID of the first endpoint in this page.

  • has_more

    Whether more webhook endpoints are available.

  • last_id

    The ID of the last endpoint in this page.

  • object (defaults to: :list)

    The object type, which is always list.



# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 37

Instance Attribute Details

#data::Array[OpenAI::Webhooks::WebhookEndpoint]

The webhook endpoints in this page.

Returns:

  • (::Array[OpenAI::Webhooks::WebhookEndpoint])


11
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 11

required :data, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Webhooks::WebhookEndpoint] }

#first_idString?

The ID of the first endpoint in this page.

Returns:

  • (String, nil)


17
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 17

required :first_id, String, nil?: true

#has_moreBoolean

Whether more webhook endpoints are available.

Returns:



23
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 23

required :has_more, OpenAI::Internal::Type::Boolean

#last_idString?

The ID of the last endpoint in this page.

Returns:

  • (String, nil)


29
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 29

required :last_id, String, nil?: true

#object:list

The object type, which is always list.

Returns:

  • (:list)


35
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 35

required :object, const: :list

Instance Method Details

#to_hash{

Returns:

  • ({)


47
# File 'sig/openai/models/webhooks/webhook_endpoint_list.rbs', line 47

def to_hash: -> {