Class: OpenAI::Models::FineTuning::Checkpoints::PermissionRetrieveResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb,
sig/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rbs

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:, project_id:, object: :"checkpoint.permission") ⇒ Data

Returns a new instance of Data.

Parameters:

  • id —

    The permission identifier, which can be referenced in the API endpoints.

  • created_at —

    The Unix timestamp (in seconds) for when the permission was created.

  • project_id —

    The project identifier that the permission is for.

  • object (defaults to: :"checkpoint.permission") —

    The object type, which is always "checkpoint.permission".

  • id: (String)
  • created_at: (Integer)
  • project_id: (String)
  • object: (:"checkpoint.permission") (defaults to: :"checkpoint.permission")


46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 46

class Data < OpenAI::Internal::Type::BaseModel
  # @!attribute id
  #   The permission identifier, which can be referenced in the API endpoints.
  #
  #   @return [String]
  required :id, String

  # @!attribute created_at
  #   The Unix timestamp (in seconds) for when the permission was created.
  #
  #   @return [Integer]
  required :created_at, Integer

  # @!attribute object
  #   The object type, which is always "checkpoint.permission".
  #
  #   @return [Symbol, :"checkpoint.permission"]
  required :object, const: :"checkpoint.permission"

  # @!attribute project_id
  #   The project identifier that the permission is for.
  #
  #   @return [String]
  required :project_id, String

  # @!method initialize(id:, created_at:, project_id:, object: :"checkpoint.permission")
  #   The `checkpoint.permission` object represents a permission for a fine-tuned
  #   model checkpoint.
  #
  #   @param id [String]
  #     The permission identifier, which can be referenced in the API endpoints.
  #
  #   @param created_at [Integer]
  #     The Unix timestamp (in seconds) for when the permission was created.
  #
  #   @param project_id [String]
  #     The project identifier that the permission is for.
  #
  #   @param object [Symbol, :"checkpoint.permission"]
  #     The object type, which is always "checkpoint.permission".
end

Instance Attribute Details

#created_at ⇒ Integer

The Unix timestamp (in seconds) for when the permission was created.

Returns:

  • (Integer)


57
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 57

required :created_at, Integer

#id ⇒ String

The permission identifier, which can be referenced in the API endpoints.

Returns:

  • (String)


51
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 51

required :id, String

#object ⇒ :"checkpoint.permission"

The object type, which is always "checkpoint.permission".

Returns:

  • (:"checkpoint.permission")


63
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 63

required :object, const: :"checkpoint.permission"

#project_id ⇒ String

The project identifier that the permission is for.

Returns:

  • (String)


69
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 69

required :project_id, String

Instance Method Details

#to_hash ⇒ { id: String, created_at: Integer, ?object: :"checkpoint.permission", project_id: String }

Returns:

  • ({ id: String, created_at: Integer, ?object: :"checkpoint.permission", project_id: String })


77
78
79
80
81
82
# File 'sig/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rbs', line 77

def to_hash: -> {
  id: String,
  created_at: Integer,
  ?object: :"checkpoint.permission",
  project_id: String
}