Class: Anthropic::Models::Beta::Organization::WebhookUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::WebhookUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/anthropic/models/beta/organization/webhook_update_params.rb,
sig/anthropic/models/beta/organization/webhook_update_params.rbs
Overview
Defined Under Namespace
Modules: EnabledEvent, State
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::WebhookUpdateParams::EnabledEvent>?
The event types to deliver to the endpoint.
-
#name ⇒ String?
A short label for the endpoint.
-
#state ⇒ Symbol, ...
disabledstops deliveries. -
#url ⇒ String?
The HTTPS URL that deliveries are sent to.
-
#webhook_endpoint_id ⇒ String
ID of the webhook endpoint.
Attributes included from Internal::Type::RequestParameters
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ WebhookUpdateParams
constructor
A new instance of WebhookUpdateParams.
- #to_hash ⇒ { webhook_endpoint_id: String, description: String, enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event], name: String, state: Anthropic::Models::Beta::Organization::WebhookUpdateParams::state, url: 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 ⇒ WebhookUpdateParams
Returns a new instance of WebhookUpdateParams.
53 54 55 56 57 58 59 60 61 62 |
# File 'sig/anthropic/models/beta/organization/webhook_update_params.rbs', line 53
def initialize: (
webhook_endpoint_id: String,
?description: String,
?enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event],
?name: String,
?state: Anthropic::Models::Beta::Organization::WebhookUpdateParams::state,
?url: 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.
57 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 57 optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] } |
#description ⇒ String?
Notes about the endpoint.
22 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 22 optional :description, String |
#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::WebhookUpdateParams::EnabledEvent>?
The event types to deliver to the endpoint. Replaces the whole set; an empty list leaves it unchanged.
29 30 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 29 optional :enabled_events, -> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::WebhookUpdateParams::EnabledEvent] } |
#name ⇒ String?
A short label for the endpoint.
36 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 36 optional :name, String |
#state ⇒ Symbol, ...
disabled stops deliveries. enabled resumes them and clears
disabled_reason. Events that happen while the endpoint is disabled are never
delivered.
44 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 44 optional :state, enum: -> { Anthropic::Beta::Organization::WebhookUpdateParams::State } |
#url ⇒ String?
The HTTPS URL that deliveries are sent to.
50 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 50 optional :url, String |
#webhook_endpoint_id ⇒ String
ID of the webhook endpoint.
16 |
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 16 required :webhook_endpoint_id, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/organization/webhook_update_params.rb', line 90
|
Instance Method Details
#to_hash ⇒ { webhook_endpoint_id: String, description: String, enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event], name: String, state: Anthropic::Models::Beta::Organization::WebhookUpdateParams::state, url: String, betas: ::Array[Anthropic::Models::anthropic_beta], request_options: Anthropic::RequestOptions }
64 65 66 67 68 69 70 71 72 73 |
# File 'sig/anthropic/models/beta/organization/webhook_update_params.rbs', line 64
def to_hash: -> {
webhook_endpoint_id: String,
description: String,
enabled_events: ::Array[Anthropic::Models::Beta::Organization::WebhookUpdateParams::enabled_event],
name: String,
state: Anthropic::Models::Beta::Organization::WebhookUpdateParams::state,
url: String,
betas: ::Array[Anthropic::Models::anthropic_beta],
request_options: Anthropic::RequestOptions
}
|