Class: Anthropic::Models::Beta::Organization::BetaDeletedOrganizationWebhookEndpoint

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb,
sig/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbs

Overview

See Also:

  • Anthropic::Resources::Beta::Organization::Webhooks#delete

Instance Attribute Summary collapse

Instance Method Summary collapse

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(id:, type: :webhook_endpoint_deleted) ⇒ BetaDeletedOrganizationWebhookEndpoint

A deleted organization webhook endpoint.

Parameters:

  • id (String) —

    ID of the deleted webhook endpoint.

  • type (Symbol, :webhook_endpoint_deleted) (defaults to: :webhook_endpoint_deleted) —

    Always webhook_endpoint_deleted.

  • id: (String)
  • type: (:webhook_endpoint_deleted) (defaults to: :webhook_endpoint_deleted)


# File 'lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb', line 21

Instance Attribute Details

#id ⇒ String

ID of the deleted webhook endpoint.

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb', line 13

required :id, String

#type ⇒ Symbol, :webhook_endpoint_deleted

Always webhook_endpoint_deleted.

Parameters:

  • value (:webhook_endpoint_deleted)

Returns:

  • (Symbol, :webhook_endpoint_deleted)


19
# File 'lib/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rb', line 19

required :type, const: :webhook_endpoint_deleted

Instance Method Details

#to_hash ⇒ { id: String, type: :webhook_endpoint_deleted }

Returns:

  • ({ id: String, type: :webhook_endpoint_deleted })


15
# File 'sig/anthropic/models/beta/organization/beta_deleted_organization_webhook_endpoint.rbs', line 15

def to_hash: -> { id: String, type: :webhook_endpoint_deleted }