Class: OpenAI::Models::Admin::Organization::Health::AlertRuleUpdateParams::Notifications::Email

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Health::AlertRuleUpdateParams::Notifications#email

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

Returns a new instance of Email.

Parameters:



494
495
496
497
498
499
# File 'sig/openai/models/admin/organization/health/alert_rule_update_params.rbs', line 494

def initialize: (
  ?addresses: ::Array[String],
  ?enabled: bool,
  ?org_owners: bool,
  ?project_owners: bool
) -> void

Instance Attribute Details

#addresses ⇒ Array<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


333
# File 'lib/openai/models/admin/organization/health/alert_rule_update_params.rb', line 333

optional :addresses, OpenAI::Internal::Type::ArrayOf[String]

#enabled ⇒ Boolean?

Parameters:

Returns:



338
# File 'lib/openai/models/admin/organization/health/alert_rule_update_params.rb', line 338

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

#org_owners ⇒ Boolean?

Parameters:

Returns:



343
# File 'lib/openai/models/admin/organization/health/alert_rule_update_params.rb', line 343

optional :org_owners, OpenAI::Internal::Type::Boolean

#project_owners ⇒ Boolean?

Parameters:

Returns:



348
# File 'lib/openai/models/admin/organization/health/alert_rule_update_params.rb', line 348

optional :project_owners, OpenAI::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ { ?addresses: ::Array[String], ?enabled: bool, ?org_owners: bool, ?project_owners: bool }

Returns:

  • ({ ?addresses: ::Array[String], ?enabled: bool, ?org_owners: bool, ?project_owners: bool })


501
502
503
504
505
506
# File 'sig/openai/models/admin/organization/health/alert_rule_update_params.rbs', line 501

def to_hash: -> {
  ?addresses: ::Array[String],
  ?enabled: bool,
  ?org_owners: bool,
  ?project_owners: bool
}