Class: OpenAI::Models::Admin::Organization::Invite::Project
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Admin::Organization::Invite::Project
- Defined in:
- lib/openai/models/admin/organization/invite.rb,
sig/openai/models/admin/organization/invite.rbs
Defined Under Namespace
Modules: Role
Instance Attribute Summary collapse
-
#id ⇒ String
Project's public ID.
-
#role ⇒ OpenAI::Models::Admin::Organization::Invite::Project::role
Project membership role.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(id:, role:) ⇒ Object constructor
- #to_hash ⇒ {
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(id:, role:) ⇒ Object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/openai/models/admin/organization/invite.rb', line 92 class Project < OpenAI::Internal::Type::BaseModel # @!attribute id # Project's public ID # # @return [String] required :id, String # @!attribute role # Project membership role # # @return [Symbol, OpenAI::Models::Admin::Organization::Invite::Project::Role] required :role, enum: -> { OpenAI::Admin::Organization::Invite::Project::Role } # @!method initialize(id:, role:) # @param id [String] # Project's public ID # # @param role [Symbol, OpenAI::Models::Admin::Organization::Invite::Project::Role] # Project membership role # Project membership role # # @see OpenAI::Models::Admin::Organization::Invite::Project#role module Role extend OpenAI::Internal::Type::Enum MEMBER = :member OWNER = :owner # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#id ⇒ String
Project's public ID
97 |
# File 'lib/openai/models/admin/organization/invite.rb', line 97 required :id, String |
#role ⇒ OpenAI::Models::Admin::Organization::Invite::Project::role
Project membership role
103 |
# File 'lib/openai/models/admin/organization/invite.rb', line 103 required :role, enum: -> { OpenAI::Admin::Organization::Invite::Project::Role } |
Instance Method Details
#to_hash ⇒ {
110 |
# File 'sig/openai/models/admin/organization/invite.rbs', line 110
def to_hash: -> {
|