Class: Anthropic::Models::Beta::Organization::WebhookCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::WebhookCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/organization/webhook_create_params.rb,
sig/anthropic/models/beta/organization/webhook_create_params.rbs
Overview
Defined Under Namespace
Modules: EnabledEvent
Instance Attribute Summary collapse
-
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send
webhooks-2026-10-07in this header. -
#description ⇒ String?
Notes about the endpoint.
-
#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::WebhookCreateParams::EnabledEvent>
The event types to deliver to the endpoint.
-
#name ⇒ String?
A short label for the endpoint.
-
#url ⇒ String
The HTTPS URL that deliveries are sent to.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize ⇒ WebhookCreateParams
constructor
A new instance of WebhookCreateParams.
- #to_hash ⇒ { enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event], url: String, description: String, name: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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 ⇒ WebhookCreateParams
Returns a new instance of WebhookCreateParams.
37 38 39 40 41 42 43 44 |
# File 'sig/anthropic/models/beta/organization/webhook_create_params.rbs', line 37
def initialize: (
enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event],
url: String,
?description: String,
?name: String,
?betas: ::Array[Anthropic::Models::anthropic_beta],
?request_options: Anthropic::request_opts
) -> void
|
Instance Attribute Details
#betas ⇒ Array<Symbol, String, Anthropic::Models::AnthropicBeta>?
This endpoint is in beta: requests must send webhooks-2026-10-07 in this
header.
42 |
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 42 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#description ⇒ String?
Notes about the endpoint.
29 |
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 29 optional :description, String |
#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::WebhookCreateParams::EnabledEvent>
The event types to deliver to the endpoint. Must list at least one.
16 17 |
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 16 required :enabled_events, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::WebhookCreateParams::EnabledEvent] } |
#name ⇒ String?
A short label for the endpoint.
35 |
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 35 optional :name, String |
#url ⇒ String
The HTTPS URL that deliveries are sent to.
23 |
# File 'lib/anthropic/models/beta/organization/webhook_create_params.rb', line 23 required :url, String |
Instance Method Details
#to_hash ⇒ { enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event], url: String, description: String, name: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
46 47 48 49 50 51 52 53 |
# File 'sig/anthropic/models/beta/organization/webhook_create_params.rbs', line 46
def to_hash: -> {
enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookCreateParams::enabled_event],
url: String,
description: String,
name: String,
betas: ::Array[Anthropic::Models::anthropic_beta],
request_options: Anthropic::RequestOptions
}
|