Class: HubSpotSDK::Models::Files::Folder

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/hubspot_sdk/models/files/folder.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, 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:, archived:, created_at:, updated_at:, archived_at: nil, name: nil, parent_folder_id: nil, path: nil) ⇒ Object

Parameters:

  • id (String)

    ID of the folder.

  • archived (Boolean)

    Marks whether the folder is deleted or not.

  • created_at (Time)

    Timestamp of folder creation.

  • updated_at (Time)

    Timestamp of the latest update to the folder.

  • archived_at (Time) (defaults to: nil)

    Timestamp of folder deletion.

  • name (String) (defaults to: nil)

    Name of the folder.

  • parent_folder_id (String) (defaults to: nil)

    ID of the parent folder.

  • path (String) (defaults to: nil)

    Path of the folder in the file manager.



# File 'lib/hubspot_sdk/models/files/folder.rb', line 55

Instance Attribute Details

#archivedBoolean

Marks whether the folder is deleted or not.

Returns:

  • (Boolean)


17
# File 'lib/hubspot_sdk/models/files/folder.rb', line 17

required :archived, HubSpotSDK::Internal::Type::Boolean

#archived_atTime?

Timestamp of folder deletion.

Returns:

  • (Time, nil)


35
# File 'lib/hubspot_sdk/models/files/folder.rb', line 35

optional :archived_at, Time, api_name: :archivedAt

#created_atTime

Timestamp of folder creation.

Returns:

  • (Time)


23
# File 'lib/hubspot_sdk/models/files/folder.rb', line 23

required :created_at, Time, api_name: :createdAt

#idString

ID of the folder.

Returns:

  • (String)


11
# File 'lib/hubspot_sdk/models/files/folder.rb', line 11

required :id, String

#nameString?

Name of the folder.

Returns:

  • (String, nil)


41
# File 'lib/hubspot_sdk/models/files/folder.rb', line 41

optional :name, String

#parent_folder_idString?

ID of the parent folder.

Returns:

  • (String, nil)


47
# File 'lib/hubspot_sdk/models/files/folder.rb', line 47

optional :parent_folder_id, String, api_name: :parentFolderId

#pathString?

Path of the folder in the file manager.

Returns:

  • (String, nil)


53
# File 'lib/hubspot_sdk/models/files/folder.rb', line 53

optional :path, String

#updated_atTime

Timestamp of the latest update to the folder.

Returns:

  • (Time)


29
# File 'lib/hubspot_sdk/models/files/folder.rb', line 29

required :updated_at, Time, api_name: :updatedAt