Class: OpenAI::Models::Webhooks::WebhookEndpoint
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::WebhookEndpoint
- Defined in:
- lib/openai/models/webhooks/webhook_endpoint.rb,
sig/openai/models/webhooks/webhook_endpoint.rbs
Overview
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp when the endpoint was created.
-
#event_types ⇒ ::Array[String]
The event types that trigger deliveries to this endpoint.
-
#id ⇒ String
The unique ID of the webhook endpoint.
-
#name ⇒ String
The human-readable name of the endpoint.
-
#object ⇒ :webhook_endpoint
The object type, which is always webhook_endpoint.
-
#signing_secret_hint ⇒ String?
A masked hint for the endpoint's signing secret.
-
#updated_at ⇒ Integer?
The Unix timestamp of the last endpoint configuration or signing-secret change.
-
#url ⇒ String
The HTTPS URL that receives webhook deliveries.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(id:, created_at:, event_types:, name:, signing_secret_hint:, url:, updated_at: nil, object: :webhook_endpoint) ⇒ Object constructor
- #to_hash ⇒ {
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(id:, created_at:, event_types:, name:, signing_secret_hint:, url:, updated_at: nil, object: :webhook_endpoint) ⇒ Object
|
|
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 57
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp when the endpoint was created.
18 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 18 required :created_at, Integer |
#event_types ⇒ ::Array[String]
The event types that trigger deliveries to this endpoint.
24 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 24 required :event_types, OpenAI::Internal::Type::ArrayOf[String] |
#id ⇒ String
The unique ID of the webhook endpoint.
12 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 12 required :id, String |
#name ⇒ String
The human-readable name of the endpoint.
30 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 30 required :name, String |
#object ⇒ :webhook_endpoint
The object type, which is always webhook_endpoint.
36 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 36 required :object, const: :webhook_endpoint |
#signing_secret_hint ⇒ String?
A masked hint for the endpoint's signing secret.
42 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 42 required :signing_secret_hint, String, nil?: true |
#updated_at ⇒ Integer?
The Unix timestamp of the last endpoint configuration or signing-secret change. Initialized at creation; tests and unchanged updates do not advance it.
55 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 55 optional :updated_at, Integer |
#url ⇒ String
The HTTPS URL that receives webhook deliveries.
48 |
# File 'lib/openai/models/webhooks/webhook_endpoint.rb', line 48 required :url, String |
Instance Method Details
#to_hash ⇒ {
74 |
# File 'sig/openai/models/webhooks/webhook_endpoint.rbs', line 74
def to_hash: -> {
|