airbyte-source-google-drive 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of airbyte-source-google-drive might be problematic. Click here for more details.

Files changed (22) hide show
  1. airbyte-source-google-drive-0.0.8/PKG-INFO +102 -0
  2. airbyte-source-google-drive-0.0.8/README.md +100 -0
  3. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/PKG-INFO +102 -0
  4. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/SOURCES.txt +21 -0
  5. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/dependency_links.txt +1 -0
  6. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/entry_points.txt +2 -0
  7. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/requires.txt +9 -0
  8. airbyte-source-google-drive-0.0.8/airbyte_source_google_drive.egg-info/top_level.txt +2 -0
  9. airbyte-source-google-drive-0.0.8/integration_tests/__init__.py +0 -0
  10. airbyte-source-google-drive-0.0.8/integration_tests/abnormal_state.json +35 -0
  11. airbyte-source-google-drive-0.0.8/integration_tests/acceptance.py +16 -0
  12. airbyte-source-google-drive-0.0.8/integration_tests/configured_catalog.json +60 -0
  13. airbyte-source-google-drive-0.0.8/integration_tests/invalid_config.json +19 -0
  14. airbyte-source-google-drive-0.0.8/integration_tests/spec.json +456 -0
  15. airbyte-source-google-drive-0.0.8/setup.cfg +97 -0
  16. airbyte-source-google-drive-0.0.8/setup.py +46 -0
  17. airbyte-source-google-drive-0.0.8/source_google_drive/__init__.py +6 -0
  18. airbyte-source-google-drive-0.0.8/source_google_drive/run.py +23 -0
  19. airbyte-source-google-drive-0.0.8/source_google_drive/source.py +58 -0
  20. airbyte-source-google-drive-0.0.8/source_google_drive/spec.py +85 -0
  21. airbyte-source-google-drive-0.0.8/source_google_drive/stream_reader.py +185 -0
  22. airbyte-source-google-drive-0.0.8/source_google_drive/utils.py +21 -0
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-source-google-drive
3
+ Version: 0.0.8
4
+ Summary: Source implementation for Google Drive.
5
+ Author: Airbyte
6
+ Author-email: contact@airbyte.io
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: airbyte-cdk[file-based]>=0.60.1
9
+ Requires-Dist: google-api-python-client==2.104.0
10
+ Requires-Dist: google-auth-httplib2==0.1.1
11
+ Requires-Dist: google-auth-oauthlib==1.1.0
12
+ Requires-Dist: google-api-python-client-stubs==1.18.0
13
+ Provides-Extra: tests
14
+ Requires-Dist: pytest-mock~=3.6.1; extra == "tests"
15
+ Requires-Dist: pytest~=6.1; extra == "tests"
16
+
17
+ # Google Drive Source
18
+
19
+ This is the repository for the Google Drive source connector, written in Python.
20
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/google-drive).
21
+
22
+
23
+ **To iterate on this connector, make sure to complete this prerequisites section.**
24
+
25
+
26
+ From this connector directory, create a virtual environment:
27
+ ```
28
+ python -m venv .venv
29
+ ```
30
+
31
+ This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your
32
+ development environment of choice. To activate it from the terminal, run:
33
+ ```
34
+ source .venv/bin/activate
35
+ pip install -r requirements.txt
36
+ pip install '.[tests]'
37
+ ```
38
+ If you are in an IDE, follow your IDE's instructions to activate the virtualenv.
39
+
40
+ Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is
41
+ used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`.
42
+ If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything
43
+ should work as you expect.
44
+
45
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/google-drive)
46
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_drive/spec.json` file.
47
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
48
+ See `integration_tests/sample_config.json` for a sample config file.
49
+
50
+ **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source google-drive test creds`
51
+ and place them into `secrets/config.json`.
52
+
53
+ ```
54
+ python main.py spec
55
+ python main.py check --config secrets/config.json
56
+ python main.py discover --config secrets/config.json
57
+ python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
58
+ ```
59
+
60
+
61
+
62
+ **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
63
+ ```bash
64
+ airbyte-ci connectors --name=source-google-drive build
65
+ ```
66
+
67
+ An image will be built with the tag `airbyte/source-google-drive:dev`.
68
+
69
+ **Via `docker build`:**
70
+ ```bash
71
+ docker build -t airbyte/source-google-drive:dev .
72
+ ```
73
+
74
+ Then run any of the connector commands as follows:
75
+ ```
76
+ docker run --rm airbyte/source-google-drive:dev spec
77
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev check --config /secrets/config.json
78
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev discover --config /secrets/config.json
79
+ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-google-drive:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
80
+ ```
81
+
82
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
83
+ ```bash
84
+ airbyte-ci connectors --name=source-google-drive test
85
+ ```
86
+
87
+ Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
88
+ If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
89
+
90
+ All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
91
+ We split dependencies between two groups, dependencies that are:
92
+ * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
93
+ * required for the testing need to go to `TEST_REQUIREMENTS` list
94
+
95
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
96
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-drive test`
97
+ 2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
98
+ 3. Make sure the `metadata.yaml` content is up to date.
99
+ 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-drive.md`).
100
+ 5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
101
+ 6. Pat yourself on the back for being an awesome contributor.
102
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
@@ -0,0 +1,100 @@
1
+ # Google Drive Source
2
+
3
+ This is the repository for the Google Drive source connector, written in Python.
4
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/google-drive).
5
+
6
+ ## Local development
7
+
8
+ ### Prerequisites
9
+ **To iterate on this connector, make sure to complete this prerequisites section.**
10
+
11
+ #### Minimum Python version required `= 3.10.0`
12
+
13
+ #### Build & Activate Virtual Environment and install dependencies
14
+ From this connector directory, create a virtual environment:
15
+ ```
16
+ python -m venv .venv
17
+ ```
18
+
19
+ This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your
20
+ development environment of choice. To activate it from the terminal, run:
21
+ ```
22
+ source .venv/bin/activate
23
+ pip install -r requirements.txt
24
+ pip install '.[tests]'
25
+ ```
26
+ If you are in an IDE, follow your IDE's instructions to activate the virtualenv.
27
+
28
+ Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is
29
+ used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`.
30
+ If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything
31
+ should work as you expect.
32
+
33
+ #### Create credentials
34
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/google-drive)
35
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_drive/spec.json` file.
36
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
37
+ See `integration_tests/sample_config.json` for a sample config file.
38
+
39
+ **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source google-drive test creds`
40
+ and place them into `secrets/config.json`.
41
+
42
+ ### Locally running the connector
43
+ ```
44
+ python main.py spec
45
+ python main.py check --config secrets/config.json
46
+ python main.py discover --config secrets/config.json
47
+ python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
48
+ ```
49
+
50
+ ### Locally running the connector docker image
51
+
52
+
53
+ #### Build
54
+ **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
55
+ ```bash
56
+ airbyte-ci connectors --name=source-google-drive build
57
+ ```
58
+
59
+ An image will be built with the tag `airbyte/source-google-drive:dev`.
60
+
61
+ **Via `docker build`:**
62
+ ```bash
63
+ docker build -t airbyte/source-google-drive:dev .
64
+ ```
65
+
66
+ #### Run
67
+ Then run any of the connector commands as follows:
68
+ ```
69
+ docker run --rm airbyte/source-google-drive:dev spec
70
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev check --config /secrets/config.json
71
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev discover --config /secrets/config.json
72
+ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-google-drive:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
73
+ ```
74
+
75
+ ## Testing
76
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
77
+ ```bash
78
+ airbyte-ci connectors --name=source-google-drive test
79
+ ```
80
+
81
+ ### Customizing acceptance Tests
82
+ Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
83
+ If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
84
+
85
+ ## Dependency Management
86
+ All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
87
+ We split dependencies between two groups, dependencies that are:
88
+ * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
89
+ * required for the testing need to go to `TEST_REQUIREMENTS` list
90
+
91
+ ### Publishing a new version of the connector
92
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
93
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-drive test`
94
+ 2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
95
+ 3. Make sure the `metadata.yaml` content is up to date.
96
+ 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-drive.md`).
97
+ 5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
98
+ 6. Pat yourself on the back for being an awesome contributor.
99
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
100
+
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.1
2
+ Name: airbyte-source-google-drive
3
+ Version: 0.0.8
4
+ Summary: Source implementation for Google Drive.
5
+ Author: Airbyte
6
+ Author-email: contact@airbyte.io
7
+ Description-Content-Type: text/markdown
8
+ Requires-Dist: airbyte-cdk[file-based]>=0.60.1
9
+ Requires-Dist: google-api-python-client==2.104.0
10
+ Requires-Dist: google-auth-httplib2==0.1.1
11
+ Requires-Dist: google-auth-oauthlib==1.1.0
12
+ Requires-Dist: google-api-python-client-stubs==1.18.0
13
+ Provides-Extra: tests
14
+ Requires-Dist: pytest-mock~=3.6.1; extra == "tests"
15
+ Requires-Dist: pytest~=6.1; extra == "tests"
16
+
17
+ # Google Drive Source
18
+
19
+ This is the repository for the Google Drive source connector, written in Python.
20
+ For information about how to use this connector within Airbyte, see [the documentation](https://docs.airbyte.io/integrations/sources/google-drive).
21
+
22
+
23
+ **To iterate on this connector, make sure to complete this prerequisites section.**
24
+
25
+
26
+ From this connector directory, create a virtual environment:
27
+ ```
28
+ python -m venv .venv
29
+ ```
30
+
31
+ This will generate a virtualenv for this module in `.venv/`. Make sure this venv is active in your
32
+ development environment of choice. To activate it from the terminal, run:
33
+ ```
34
+ source .venv/bin/activate
35
+ pip install -r requirements.txt
36
+ pip install '.[tests]'
37
+ ```
38
+ If you are in an IDE, follow your IDE's instructions to activate the virtualenv.
39
+
40
+ Note that while we are installing dependencies from `requirements.txt`, you should only edit `setup.py` for your dependencies. `requirements.txt` is
41
+ used for editable installs (`pip install -e`) to pull in Python dependencies from the monorepo and will call `setup.py`.
42
+ If this is mumbo jumbo to you, don't worry about it, just put your deps in `setup.py` but install using `pip install -r requirements.txt` and everything
43
+ should work as you expect.
44
+
45
+ **If you are a community contributor**, follow the instructions in the [documentation](https://docs.airbyte.io/integrations/sources/google-drive)
46
+ to generate the necessary credentials. Then create a file `secrets/config.json` conforming to the `source_google_drive/spec.json` file.
47
+ Note that any directory named `secrets` is gitignored across the entire Airbyte repo, so there is no danger of accidentally checking in sensitive information.
48
+ See `integration_tests/sample_config.json` for a sample config file.
49
+
50
+ **If you are an Airbyte core member**, copy the credentials in Lastpass under the secret name `source google-drive test creds`
51
+ and place them into `secrets/config.json`.
52
+
53
+ ```
54
+ python main.py spec
55
+ python main.py check --config secrets/config.json
56
+ python main.py discover --config secrets/config.json
57
+ python main.py read --config secrets/config.json --catalog integration_tests/configured_catalog.json
58
+ ```
59
+
60
+
61
+
62
+ **Via [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md) (recommended):**
63
+ ```bash
64
+ airbyte-ci connectors --name=source-google-drive build
65
+ ```
66
+
67
+ An image will be built with the tag `airbyte/source-google-drive:dev`.
68
+
69
+ **Via `docker build`:**
70
+ ```bash
71
+ docker build -t airbyte/source-google-drive:dev .
72
+ ```
73
+
74
+ Then run any of the connector commands as follows:
75
+ ```
76
+ docker run --rm airbyte/source-google-drive:dev spec
77
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev check --config /secrets/config.json
78
+ docker run --rm -v $(pwd)/secrets:/secrets airbyte/source-google-drive:dev discover --config /secrets/config.json
79
+ docker run --rm -v $(pwd)/secrets:/secrets -v $(pwd)/integration_tests:/integration_tests airbyte/source-google-drive:dev read --config /secrets/config.json --catalog /integration_tests/configured_catalog.json
80
+ ```
81
+
82
+ You can run our full test suite locally using [`airbyte-ci`](https://github.com/airbytehq/airbyte/blob/master/airbyte-ci/connectors/pipelines/README.md):
83
+ ```bash
84
+ airbyte-ci connectors --name=source-google-drive test
85
+ ```
86
+
87
+ Customize `acceptance-test-config.yml` file to configure tests. See [Connector Acceptance Tests](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference) for more information.
88
+ If your connector requires to create or destroy resources for use during acceptance tests create fixtures for it and place them inside integration_tests/acceptance.py.
89
+
90
+ All of your dependencies should go in `setup.py`, NOT `requirements.txt`. The requirements file is only used to connect internal Airbyte dependencies in the monorepo for local development.
91
+ We split dependencies between two groups, dependencies that are:
92
+ * required for your connector to work need to go to `MAIN_REQUIREMENTS` list.
93
+ * required for the testing need to go to `TEST_REQUIREMENTS` list
94
+
95
+ You've checked out the repo, implemented a million dollar feature, and you're ready to share your changes with the world. Now what?
96
+ 1. Make sure your changes are passing our test suite: `airbyte-ci connectors --name=source-google-drive test`
97
+ 2. Bump the connector version in `metadata.yaml`: increment the `dockerImageTag` value. Please follow [semantic versioning for connectors](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#semantic-versioning-for-connectors).
98
+ 3. Make sure the `metadata.yaml` content is up to date.
99
+ 4. Make the connector documentation and its changelog is up to date (`docs/integrations/sources/google-drive.md`).
100
+ 5. Create a Pull Request: use [our PR naming conventions](https://docs.airbyte.com/contributing-to-airbyte/resources/pull-requests-handbook/#pull-request-title-convention).
101
+ 6. Pat yourself on the back for being an awesome contributor.
102
+ 7. Someone from Airbyte will take a look at your PR and iterate with you to merge it into master.
@@ -0,0 +1,21 @@
1
+ README.md
2
+ setup.cfg
3
+ setup.py
4
+ airbyte_source_google_drive.egg-info/PKG-INFO
5
+ airbyte_source_google_drive.egg-info/SOURCES.txt
6
+ airbyte_source_google_drive.egg-info/dependency_links.txt
7
+ airbyte_source_google_drive.egg-info/entry_points.txt
8
+ airbyte_source_google_drive.egg-info/requires.txt
9
+ airbyte_source_google_drive.egg-info/top_level.txt
10
+ integration_tests/__init__.py
11
+ integration_tests/abnormal_state.json
12
+ integration_tests/acceptance.py
13
+ integration_tests/configured_catalog.json
14
+ integration_tests/invalid_config.json
15
+ integration_tests/spec.json
16
+ source_google_drive/__init__.py
17
+ source_google_drive/run.py
18
+ source_google_drive/source.py
19
+ source_google_drive/spec.py
20
+ source_google_drive/stream_reader.py
21
+ source_google_drive/utils.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ source-google-drive = source_google_drive.run:run
@@ -0,0 +1,9 @@
1
+ airbyte-cdk[file-based]>=0.60.1
2
+ google-api-python-client==2.104.0
3
+ google-auth-httplib2==0.1.1
4
+ google-auth-oauthlib==1.1.0
5
+ google-api-python-client-stubs==1.18.0
6
+
7
+ [tests]
8
+ pytest-mock~=3.6.1
9
+ pytest~=6.1
@@ -0,0 +1,2 @@
1
+ integration_tests
2
+ source_google_drive
@@ -0,0 +1,35 @@
1
+ [
2
+ {
3
+ "type": "STREAM",
4
+ "stream": {
5
+ "stream_descriptor": {
6
+ "name": "test"
7
+ },
8
+ "stream_state": {
9
+ "history": {
10
+ "test.jsonl": "2023-10-16T06:16:06.000000Z",
11
+ "subfolder/test2.jsonl": "2023-10-19T01:43:56.000000Z"
12
+ },
13
+ "_ab_source_file_last_modified": "2023-10-19T01:43:56.000000Z_subfolder/test2.jsonl"
14
+ }
15
+ }
16
+ },
17
+ {
18
+ "type": "STREAM",
19
+ "stream": {
20
+ "stream_descriptor": {
21
+ "name": "test_unstructured"
22
+ },
23
+ "stream_state": {
24
+ "history": {
25
+ "testdoc_docx.docx": "2023-10-27T00:45:54.000000Z",
26
+ "testdoc_pdf.pdf": "2023-10-27T00:45:58.000000Z",
27
+ "testdoc_ocr_pdf.pdf": "2023-10-27T00:46:04.000000Z",
28
+ "testdoc_google": "2023-11-10T13:46:18.551000Z",
29
+ "testdoc_presentation": "2023-11-10T13:49:06.640000Z"
30
+ },
31
+ "_ab_source_file_last_modified": "2023-11-10T13:49:06.640000Z_testdoc_presentation"
32
+ }
33
+ }
34
+ }
35
+ ]
@@ -0,0 +1,16 @@
1
+ #
2
+ # Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3
+ #
4
+
5
+
6
+ from typing import Iterable
7
+
8
+ import pytest
9
+
10
+ pytest_plugins = ("connector_acceptance_test.plugin",)
11
+
12
+
13
+ @pytest.fixture(scope="session", autouse=True)
14
+ def connector_setup() -> Iterable[None]:
15
+ """This fixture is a placeholder for external resources that acceptance test might require."""
16
+ yield
@@ -0,0 +1,60 @@
1
+ {
2
+ "streams": [
3
+ {
4
+ "stream": {
5
+ "name": "test",
6
+ "json_schema": {
7
+ "type": "object",
8
+ "properties": {
9
+ "y": {
10
+ "type": ["null", "integer"]
11
+ },
12
+ "x": {
13
+ "type": ["null", "integer"]
14
+ },
15
+ "_ab_source_file_last_modified": {
16
+ "type": "string",
17
+ "format": "date-time"
18
+ },
19
+ "_ab_source_file_url": {
20
+ "type": "string"
21
+ }
22
+ }
23
+ },
24
+ "supported_sync_modes": ["full_refresh", "incremental"],
25
+ "source_defined_cursor": true,
26
+ "default_cursor_field": ["_ab_source_file_last_modified"]
27
+ },
28
+ "sync_mode": "incremental",
29
+ "destination_sync_mode": "append"
30
+ },
31
+ {
32
+ "stream": {
33
+ "name": "test_unstructured",
34
+ "json_schema": {
35
+ "type": "object",
36
+ "properties": {
37
+ "document_key": {
38
+ "type": ["null", "integer"]
39
+ },
40
+ "content": {
41
+ "type": ["null", "integer"]
42
+ },
43
+ "_ab_source_file_last_modified": {
44
+ "type": "string",
45
+ "format": "date-time"
46
+ },
47
+ "_ab_source_file_url": {
48
+ "type": "string"
49
+ }
50
+ }
51
+ },
52
+ "supported_sync_modes": ["full_refresh", "incremental"],
53
+ "source_defined_cursor": true,
54
+ "default_cursor_field": ["_ab_source_file_last_modified"]
55
+ },
56
+ "sync_mode": "incremental",
57
+ "destination_sync_mode": "append"
58
+ }
59
+ ]
60
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "folder_url": "https://drive.google.com/drive/folders/yyy",
3
+ "credentials": {
4
+ "auth_type": "Service",
5
+ "service_account_info": "abc"
6
+ },
7
+ "streams": [
8
+ {
9
+ "name": "test",
10
+ "globs": ["**/*.jsonl"],
11
+ "format": {
12
+ "filetype": "jsonl"
13
+ },
14
+ "schemaless": false,
15
+ "validation_policy": "Emit Record",
16
+ "days_to_sync_if_history_is_full": 3
17
+ }
18
+ ]
19
+ }