Class: OpenAI::Models::Admin::Organization::Groups::RoleCreateResponse::Group

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Groups::RoleCreateResponse#group

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_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:, created_at:, name:, scim_managed:, object: :group) ⇒ Object

Parameters:

  • id —

    Identifier for the group.

  • created_at —

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

  • name —

    Display name of the group.

  • scim_managed —

    Whether the group is managed through SCIM.

  • object (defaults to: :group) —

    Always group.



# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 72

Instance Attribute Details

#created_at ⇒ Integer

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

Returns:

  • (Integer)


52
# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 52

required :created_at, Integer

#id ⇒ String

Identifier for the group.

Returns:

  • (String)


46
# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 46

required :id, String

#name ⇒ String

Display name of the group.

Returns:

  • (String)


58
# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 58

required :name, String

#object ⇒ :group

Always group.

Returns:

  • (:group)


64
# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 64

required :object, const: :group

#scim_managed ⇒ Boolean

Whether the group is managed through SCIM.

Returns:



70
# File 'lib/openai/models/admin/organization/groups/role_create_response.rb', line 70

required :scim_managed, OpenAI::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


84
# File 'sig/openai/models/admin/organization/groups/role_create_response.rbs', line 84

def to_hash: -> {