Class: OpenAI::Models::Admin::Organization::Projects::ProjectGroup

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

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::Projects::Groups#create

Defined Under Namespace

Modules: GroupType

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(created_at:, group_id:, group_name:, group_type:, project_id:, object: :"project.group") ⇒ ProjectGroup

Returns a new instance of ProjectGroup.

Parameters:

  • created_at —

    Unix timestamp (in seconds) when the group was granted project access.

  • group_id —

    Identifier of the group that has access to the project.

  • group_name —

    Display name of the group.

  • group_type —

    The type of the group.

  • project_id —

    Identifier of the project.

  • object (defaults to: :"project.group") —

    Always project.group.

  • created_at: (Integer)
  • group_id: (String)
  • group_name: (String)
  • group_type: (OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type)
  • project_id: (String)
  • object: (:"project.group") (defaults to: :"project.group")


# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 46

Instance Attribute Details

#created_at ⇒ Integer

Unix timestamp (in seconds) when the group was granted project access.

Returns:

  • (Integer)


14
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 14

required :created_at, Integer

#group_id ⇒ String

Identifier of the group that has access to the project.

Returns:

  • (String)


20
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 20

required :group_id, String

#group_name ⇒ String

Display name of the group.

Returns:

  • (String)


26
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 26

required :group_name, String

#group_type ⇒ OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type

The type of the group.

Returns:

  • (OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type)


32
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 32

required :group_type, enum: -> { OpenAI::Admin::Organization::Projects::ProjectGroup::GroupType }

#object ⇒ :"project.group"

Always project.group.

Returns:

  • (:"project.group")


38
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 38

required :object, const: :"project.group"

#project_id ⇒ String

Identifier of the project.

Returns:

  • (String)


44
# File 'lib/openai/models/admin/organization/projects/project_group.rb', line 44

required :project_id, String

Instance Method Details

#to_hash ⇒ { created_at: Integer, group_id: String, group_name: String, group_type: OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type, ?object: :"project.group", project_id: String }

Returns:

  • ({ created_at: Integer, group_id: String, group_name: String, group_type: OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type, ?object: :"project.group", project_id: String })


58
59
60
61
62
63
64
65
# File 'sig/openai/models/admin/organization/projects/project_group.rbs', line 58

def to_hash: -> {
  created_at: Integer,
  group_id: String,
  group_name: String,
  group_type: OpenAI::Models::Admin::Organization::Projects::ProjectGroup::group_type,
  ?object: :"project.group",
  project_id: String
}