Class: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit#notification_channel

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

Returns a new instance of NotificationChannel.

Parameters:

  • recipients: (::Array[String])
  • subject_prefix: (String, nil)
  • type: (:email)


139
140
141
142
143
# File 'sig/openai/models/admin/organization/projects/project_spend_limit.rbs', line 139

def initialize: (
  recipients: ::Array[String],
  ?subject_prefix: String?,
  ?type: :email
) -> void

Instance Attribute Details

#recipients ⇒ Array<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


188
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 188

required :recipients, OpenAI::Internal::Type::ArrayOf[String]

#subject_prefix ⇒ String?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


198
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 198

optional :subject_prefix, String, nil?: true

#type ⇒ Symbol, :email

Parameters:

  • value (:email)

Returns:

  • (Symbol, :email)


193
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 193

required :type, const: :email

Instance Method Details

#to_hash ⇒ { recipients: ::Array[String], ?type: :email, ?subject_prefix: String? }

Returns:

  • ({ recipients: ::Array[String], ?type: :email, ?subject_prefix: String? })


145
146
147
148
149
# File 'sig/openai/models/admin/organization/projects/project_spend_limit.rbs', line 145

def to_hash: -> {
  recipients: ::Array[String],
  ?type: :email,
  ?subject_prefix: String?
}