Class: OpenAI::Models::Admin::Organization::OrganizationUser::Projects::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::OrganizationUser::Projects::Data
- Defined in:
- lib/openai/models/admin/organization/organization_user.rb,
sig/openai/models/admin/organization/organization_user.rbs
Instance Attribute Summary collapse
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(data:, object: :list) ⇒ Object
constructor
Projects associated with the user, if included.
- #to_hash ⇒ { ?id: String?, ?name: String?, ?role: 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_with_error, 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(data:, object: :list) ⇒ Object
Projects associated with the user, if included.
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/openai/models/admin/organization/organization_user.rb', line 177 class Data < OpenAI::Internal::Type::BaseModel # @!attribute id # # @return [String, nil] optional :id, String, nil?: true # @!attribute name # # @return [String, nil] optional :name, String, nil?: true # @!attribute role # # @return [String, nil] optional :role, String, nil?: true # @!method initialize(id: nil, name: nil, role: nil) # @param id [String, nil] # @param name [String, nil] # @param role [String, nil] end |
Instance Attribute Details
#id ⇒ String?
181 |
# File 'lib/openai/models/admin/organization/organization_user.rb', line 181 optional :id, String, nil?: true |
#name ⇒ String?
186 |
# File 'lib/openai/models/admin/organization/organization_user.rb', line 186 optional :name, String, nil?: true |
#role ⇒ String?
191 |
# File 'lib/openai/models/admin/organization/organization_user.rb', line 191 optional :role, String, nil?: true |
Instance Method Details
#to_hash ⇒ { ?id: String?, ?name: String?, ?role: String? }
199 |
# File 'sig/openai/models/admin/organization/organization_user.rbs', line 199
def to_hash: -> { ?id: String?, ?name: String?, ?role: String? }
|