Class: OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Projects::ProjectSpendLimit::NotificationChannel
- Defined in:
- lib/openai/models/admin/organization/projects/project_spend_limit.rb,
sig/openai/models/admin/organization/projects/project_spend_limit.rbs
Overview
Instance Attribute Summary collapse
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ NotificationChannel
constructor
A new instance of NotificationChannel.
- #to_hash ⇒ { recipients: ::Array[String], ?type: :email, ?subject_prefix: String? }
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.
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>
188 |
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 188 required :recipients, OpenAI::Internal::Type::ArrayOf[String] |
#subject_prefix ⇒ String?
198 |
# File 'lib/openai/models/admin/organization/projects/project_spend_limit.rb', line 198 optional :subject_prefix, String, nil?: true |
#type ⇒ 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? }
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?
}
|