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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, 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") ⇒ Object

The ‘checkpoint.permission` object represents a permission for a fine-tuned model checkpoint.

Parameters:

  • id (String) (defaults to: )

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

  • created_at (Integer) (defaults to: )

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

  • project_id (String) (defaults to: )

    The project identifier that the permission is for.

  • object (Symbol, :"checkpoint.permission") (defaults to: :"checkpoint.permission")

    The object type, which is always “checkpoint.permission”.



42
43
44
45
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
# File 'lib/openai/models/fine_tuning/checkpoints/permission_retrieve_response.rb', line 42

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_atInteger

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

Returns:

  • (Integer)


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

required :created_at, Integer

#idString

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

Returns:

  • (String)


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

required :id, String

#objectSymbol, :"checkpoint.permission"

The object type, which is always “checkpoint.permission”.

Returns:

  • (Symbol, :"checkpoint.permission")


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

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

#project_idString

The project identifier that the permission is for.

Returns:

  • (String)


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

required :project_id, String