DriveDataSourceSpec

Holds a set of `https://developers.google.com/apps-script/reference/card-service/drive-item-type` 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 |
|---|---|---|
| `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec#addItemType(DriveItemType)` | `https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec#` | 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` | `https://developers.google.com/apps-script/reference/card-service/drive-item-type` | The driveItemType to add. |

#### Return


`https://developers.google.com/apps-script/reference/card-service/drive-data-source-spec#` --- This object, for chaining.