# SourceGcsFileBasedStreamConfig


## Fields

| Field                                                                                                                                                                                                    | Type                                                                                                                                                                                                     | Required                                                                                                                                                                                                 | Description                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `format`                                                                                                                                                                                                 | [models.SourceGcsFormat](../models/sourcegcsformat.md)                                                                                                                                                   | :heavy_check_mark:                                                                                                                                                                                       | The configuration options that are used to alter how to read incoming files that deviate from the standard formatting.                                                                                   |
| `name`                                                                                                                                                                                                   | *str*                                                                                                                                                                                                    | :heavy_check_mark:                                                                                                                                                                                       | The name of the stream.                                                                                                                                                                                  |
| `days_to_sync_if_history_is_full`                                                                                                                                                                        | *Optional[int]*                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                       | When the state history of the file store is full, syncs will only read files that were last modified in the provided day range.                                                                          |
| `globs`                                                                                                                                                                                                  | List[*str*]                                                                                                                                                                                              | :heavy_minus_sign:                                                                                                                                                                                       | The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. |
| `input_schema`                                                                                                                                                                                           | *Optional[str]*                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                       | The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files.                                                |
| `recent_n_files_to_read_for_schema_discovery`                                                                                                                                                            | *Optional[int]*                                                                                                                                                                                          | :heavy_minus_sign:                                                                                                                                                                                       | The number of resent files which will be used to discover the schema for this stream.                                                                                                                    |
| `schemaless`                                                                                                                                                                                             | *Optional[bool]*                                                                                                                                                                                         | :heavy_minus_sign:                                                                                                                                                                                       | When enabled, syncs will not validate or structure records against the stream's schema.                                                                                                                  |
| `validation_policy`                                                                                                                                                                                      | [Optional[models.SourceGcsValidationPolicy]](../models/sourcegcsvalidationpolicy.md)                                                                                                                     | :heavy_minus_sign:                                                                                                                                                                                       | The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema.                                                                                        |