Class: OpenAI::Models::Admin::Organization::Health::AlertRuleCreateParams::Notifications::Webhook

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/health/alert_rule_create_params.rb,
sig/openai/models/admin/organization/health/alert_rule_create_params.rbs

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Health::AlertRuleCreateParams::Notifications#webhook

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(enabled: nil) ⇒ Webhook

Returns a new instance of Webhook.

Parameters:

  • enabled (Boolean) (defaults to: nil)
  • enabled: (Boolean) (defaults to: nil)


# File 'lib/openai/models/admin/organization/health/alert_rule_create_params.rb', line 342

Instance Attribute Details

#enabled ⇒ Boolean?

Parameters:

Returns:



340
# File 'lib/openai/models/admin/organization/health/alert_rule_create_params.rb', line 340

optional :enabled, OpenAI::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ { ?enabled: bool }

Returns:

  • ({ ?enabled: bool })


436
# File 'sig/openai/models/admin/organization/health/alert_rule_create_params.rbs', line 436

def to_hash: -> { ?enabled: bool }