# The ObjectInfo object

The information of the object in workspace. It will be returned by ``list`` and ``get-status``.

## Attributes

- `object_type` (string)
  The type of the object in workspace.
  
    - `NOTEBOOK`: document that contains runnable code, visualizations, and explanatory text.
    - `DIRECTORY`: directory
    - `LIBRARY`: library
    - `FILE`: file
    - `REPO`: repository
    - `DASHBOARD`: Lakeview dashboard
  Possible values: `OBJECT_TYPE_UNSPECIFIED`, `NOTEBOOK`, `DIRECTORY`, `LIBRARY`, `FILE`, `REPO`, `DASHBOARD`
- `path` (string)
  The absolute path of the object.
- `language` (string)
  The language of the object. This value is set only if the object type is ``NOTEBOOK``. For Jupyter (.ipynb) notebooks, this is always ``PYTHON``.
  Possible values: `SCALA`, `PYTHON`, `SQL`, `R`
- `created_at` (int64)
  Only applicable to files. The creation UTC timestamp.
- `modified_at` (int64)
  Only applicable to files, the last modified UTC timestamp.
- `object_id` (int64)
  Unique identifier for the object.
- `size` (int64)
  Only applicable to files. The file size in bytes can be returned.
- `resource_id` (string)
  A unique identifier for the object that is consistent across all Databricks APIs.
- `directory_info` (object, Beta)
  Additional metadata about the directory. Only set for objects of type ``DIRECTORY``.
  - `is_git_folder` (boolean, Beta)
    Whether the directory is a Git folder, whose contents are version-controlled by a remote Git
     repository. How a Git folder is represented depends on whether it has Git CLI access:
    
      - A Git folder with Git CLI access has an object type of ``DIRECTORY``, with this field set
        to ``true``.
      - A standard Git folder, which does not have Git CLI access, has an object type of ``REPO``
        and does not include this field.
      - A directory that is not Git-backed has this field set to ``false``.
    
     Use this field together with ``object_type`` to identify every Git folder in a workspace.

## Example

```json
{
  "object_type": "string",
  "path": "string",
  "language": "string",
  "created_at": 0,
  "modified_at": 0,
  "object_id": 0,
  "size": 0,
  "resource_id": "string",
  "directory_info": {
    "is_git_folder": true
  }
}
```


