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

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

Overview

See Also:

  • OpenAI::Models::Admin::Organization::Projects::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_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:, name:, scim_managed:, object: :group) ⇒ Group

Returns a new instance of Group.

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.

  • id: (String)
  • created_at: (Integer)
  • name: (String)
  • scim_managed: (Boolean)
  • object: (:group) (defaults to: :group)


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

Instance Attribute Details

#created_at ⇒ Integer

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

Returns:

  • (Integer)


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

required :created_at, Integer

#id ⇒ String

Identifier for the group.

Returns:

  • (String)


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

required :id, String

#name ⇒ String

Display name of the group.

Returns:

  • (String)


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

required :name, String

#object ⇒ :group

Always group.

Returns:

  • (:group)


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

required :object, const: :group

#scim_managed ⇒ Boolean

Whether the group is managed through SCIM.

Returns:



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

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

Instance Method Details

#to_hash ⇒ { id: String, created_at: Integer, name: String, ?object: :group, scim_managed: bool }

Returns:

  • ({ id: String, created_at: Integer, name: String, ?object: :group, scim_managed: bool })


85
86
87
88
89
90
91
# File 'sig/openai/models/admin/organization/projects/groups/role_create_response.rbs', line 85

def to_hash: -> {
  id: String,
  created_at: Integer,
  name: String,
  ?object: :group,
  scim_managed: bool
}