Class: OpenAI::Models::Admin::Organization::Group

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

Overview

See Also:

  • OpenAI::Resources::Admin::Organization::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(id:, created_at:, group_type:, is_scim_managed:, name:) ⇒ Group

Returns a new instance of Group.

Parameters:

  • id —

    Identifier for the group.

  • created_at —

    Unix timestamp (in seconds) when the group was created.

  • group_type —

    The type of the group.

  • is_scim_managed —

    Whether the group is managed through SCIM and controlled by your identity provider.

  • name —

    Display name of the group.

  • id: (String)
  • created_at: (Integer)
  • group_type: (OpenAI::Models::Admin::Organization::Group::group_type)
  • is_scim_managed: (Boolean)
  • name: (String)


# File 'lib/openai/models/admin/organization/group.rb', line 40

Instance Attribute Details

#created_at ⇒ Integer

Unix timestamp (in seconds) when the group was created.

Returns:

  • (Integer)


19
# File 'lib/openai/models/admin/organization/group.rb', line 19

required :created_at, Integer

#group_type ⇒ OpenAI::Models::Admin::Organization::Group::group_type

The type of the group.

Returns:

  • (OpenAI::Models::Admin::Organization::Group::group_type)


25
# File 'lib/openai/models/admin/organization/group.rb', line 25

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

#id ⇒ String

Identifier for the group.

Returns:

  • (String)


13
# File 'lib/openai/models/admin/organization/group.rb', line 13

required :id, String

#is_scim_managed ⇒ Boolean

Whether the group is managed through SCIM and controlled by your identity provider.

Returns:



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

required :is_scim_managed, OpenAI::Internal::Type::Boolean

#name ⇒ String

Display name of the group.

Returns:

  • (String)


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

required :name, String

Instance Method Details

#to_hash ⇒ { id: String, created_at: Integer, group_type: OpenAI::Models::Admin::Organization::Group::group_type, is_scim_managed: bool, name: String }

Returns:

  • ({ id: String, created_at: Integer, group_type: OpenAI::Models::Admin::Organization::Group::group_type, is_scim_managed: bool, name: String })


50
51
52
53
54
55
56
# File 'sig/openai/models/admin/organization/group.rbs', line 50

def to_hash: -> {
  id: String,
  created_at: Integer,
  group_type: OpenAI::Models::Admin::Organization::Group::group_type,
  is_scim_managed: bool,
  name: String
}