Class: Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint

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

Overview

See Also:

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

Defined Under Namespace

Modules: EnabledEvent

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 ⇒ BetaNewOrganizationWebhookEndpoint

Returns a new instance of BetaNewOrganizationWebhookEndpoint.

Parameters:

  • id: (String)
  • created_at: (Time)
  • description: (String)
  • disabled_reason: (String)
  • enabled_events: (::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event])
  • name: (String)
  • signing_secret: (String)
  • state: (Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state)
  • updated_at: (Time)
  • url: (String)


40
41
42
43
44
45
46
47
48
49
50
51
# File 'sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs', line 40

def initialize: (
  id: String,
  created_at: Time,
  description: String,
  disabled_reason: String,
  enabled_events: ::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event],
  name: String,
  signing_secret: String,
  state: Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state,
  updated_at: Time,
  url: String
) -> void

Instance Attribute Details

#created_at ⇒ Time

When the endpoint was created, in RFC 3339 format.

Parameters:

  • value (Time)

Returns:

  • (Time)


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

required :created_at, Time

#description ⇒ String

Notes about the endpoint. An empty string when none were given.

Parameters:

  • value (String)

Returns:

  • (String)


25
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 25

required :description, String

#disabled_reason ⇒ String

Why Anthropic disabled the endpoint automatically. An empty string when the endpoint is enabled, or when you disabled it.

Parameters:

  • value (String)

Returns:

  • (String)


32
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 32

required :disabled_reason, String

#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent>

The event types delivered to the endpoint.

Parameters:

  • value (::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event])

Returns:



38
39
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 38

required :enabled_events,
-> { Anthropic::Internal::Type::ArrayOf[enum: Anthropic::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent] }

#id ⇒ String

ID of the webhook endpoint.

Parameters:

  • value (String)

Returns:

  • (String)


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

required :id, String

#name ⇒ String

A short label for the endpoint. An empty string when none was given.

Parameters:

  • value (String)

Returns:

  • (String)


45
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 45

required :name, String

#signing_secret ⇒ String

The secret Anthropic signs deliveries to the endpoint with (prefix whsec_). No other response returns it, so store it now. To replace it, regenerate the signing secret.

Parameters:

  • value (String)

Returns:

  • (String)


53
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 53

required :signing_secret, String

#state ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState

Whether deliveries are sent to the endpoint.

Parameters:

  • value (Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state)

Returns:



59
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 59

required :state, enum: -> { Anthropic::Beta::Organization::BetaOrganizationWebhookEndpointState }

#updated_at ⇒ Time

When the endpoint was last changed, in RFC 3339 format.

Parameters:

  • value (Time)

Returns:

  • (Time)


65
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 65

required :updated_at, Time

#url ⇒ String

The HTTPS URL that deliveries are sent to.

Parameters:

  • value (String)

Returns:

  • (String)


71
# File 'lib/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rb', line 71

required :url, String

Instance Method Details

#to_hash ⇒ { id: String, created_at: Time, description: String, disabled_reason: String, enabled_events: ::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event], name: String, signing_secret: String, state: Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state, updated_at: Time, url: String }

Returns:

  • ({ id: String, created_at: Time, description: String, disabled_reason: String, enabled_events: ::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event], name: String, signing_secret: String, state: Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state, updated_at: Time, url: String })


53
54
55
56
57
58
59
60
61
62
63
64
# File 'sig/anthropic/models/beta/organization/beta_new_organization_webhook_endpoint.rbs', line 53

def to_hash: -> {
  id: String,
  created_at: Time,
  description: String,
  disabled_reason: String,
  enabled_events: ::Array[Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::enabled_event],
  name: String,
  signing_secret: String,
  state: Anthropic::Models::Beta::Organization::beta_organization_webhook_endpoint_state,
  updated_at: Time,
  url: String
}