Class: OpenAI::Models::Admin::Organization::InviteCreateParams::Project

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

Defined Under Namespace

Modules: Role

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(id:, role:) ⇒ Project

Returns a new instance of Project.

Parameters:

  • id —

    Project's public ID

  • role —

    Project membership role

  • id: (String)
  • role: (OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role)


# File 'lib/openai/models/admin/organization/invite_create_params.rb', line 75

Instance Attribute Details

#id ⇒ String

Project's public ID

Returns:

  • (String)


67
# File 'lib/openai/models/admin/organization/invite_create_params.rb', line 67

required :id, String

#role ⇒ OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role

Project membership role

Returns:

  • (OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role)


73
# File 'lib/openai/models/admin/organization/invite_create_params.rb', line 73

required :role, enum: -> { OpenAI::Admin::Organization::InviteCreateParams::Project::Role }

Instance Method Details

#to_hash ⇒ { id: String, role: OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role }

Returns:

  • ({ id: String, role: OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role })


93
94
95
96
# File 'sig/openai/models/admin/organization/invite_create_params.rbs', line 93

def to_hash: -> {
  id: String,
  role: OpenAI::Models::Admin::Organization::InviteCreateParams::Project::role
}