# Class DriveDataSourceSpec

DriveDataSourceSpec

Holds a set of `DriveItemType` objects that are displayed in a row.

```javascript
const driveDataSourceSpec =
    CardService.newDriveDataSourceSpec()
     .addItemType(CardService.DriveItemType.DOCUMENTS)
     .addItemType(CardService.DriveItemType.FORMS);
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `addItemType(driveItemType)` | `DriveDataSourceSpec` | Adds a driveItemType to allowed item types list. |

## Detailed documentation

### `addItemType(driveItemType)`

Adds a driveItemType to allowed item types list.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `driveItemType` | `DriveItemType` | The driveItemType to add. |

#### Return


`DriveDataSourceSpec` --- This object, for chaining.