Class: OpenAI::Models::Webhooks::WebhookEndpointList
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::WebhookEndpointList
- Defined in:
- lib/openai/models/webhooks/webhook_endpoint_list.rb,
sig/openai/models/webhooks/webhook_endpoint_list.rbs
Instance Attribute Summary collapse
-
#data ⇒ ::Array[OpenAI::Webhooks::WebhookEndpoint]
The webhook endpoints in this page.
-
#first_id ⇒ String?
The ID of the first endpoint in this page.
-
#has_more ⇒ Boolean
Whether more webhook endpoints are available.
-
#last_id ⇒ String?
The ID of the last endpoint in this page.
-
#object ⇒ :list
The object type, which is always list.
Attributes inherited from Internal::Type::BaseModel
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
|
|
# 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.
11 |
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 11 required :data, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Webhooks::WebhookEndpoint] } |
#first_id ⇒ String?
The ID of the first endpoint in this page.
17 |
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 17 required :first_id, String, nil?: true |
#has_more ⇒ Boolean
Whether more webhook endpoints are available.
23 |
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 23 required :has_more, OpenAI::Internal::Type::Boolean |
#last_id ⇒ String?
The ID of the last endpoint in this page.
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.
35 |
# File 'lib/openai/models/webhooks/webhook_endpoint_list.rb', line 35 required :object, const: :list |
Instance Method Details
#to_hash ⇒ {
47 |
# File 'sig/openai/models/webhooks/webhook_endpoint_list.rbs', line 47
def to_hash: -> {
|