Class: Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint
- 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
Defined Under Namespace
Modules: EnabledEvent
Instance Attribute Summary collapse
-
#created_at ⇒ Time
When the endpoint was created, in RFC 3339 format.
-
#description ⇒ String
Notes about the endpoint.
-
#disabled_reason ⇒ String
Why Anthropic disabled the endpoint automatically.
-
#enabled_events ⇒ Array<Symbol, Anthropic::Models::Beta::Organization::BetaNewOrganizationWebhookEndpoint::EnabledEvent>
The event types delivered to the endpoint.
-
#id ⇒ String
ID of the webhook endpoint.
-
#name ⇒ String
A short label for the endpoint.
-
#signing_secret ⇒ String
The secret Anthropic signs deliveries to the endpoint with (prefix
whsec_). -
#state ⇒ Symbol, Anthropic::Models::Beta::Organization::BetaOrganizationWebhookEndpointState
Whether deliveries are sent to the endpoint.
-
#updated_at ⇒ Time
When the endpoint was last changed, in RFC 3339 format.
-
#url ⇒ String
The HTTPS URL that deliveries are sent to.
Instance Method Summary collapse
-
#initialize ⇒ BetaNewOrganizationWebhookEndpoint
constructor
A new instance of BetaNewOrganizationWebhookEndpoint.
- #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 }
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 }
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 } |