|
| 1 | +{ |
| 2 | + "documentationUrl": "https://docs.airbyte.com/integrations/sources/file", |
| 3 | + "connectionSpecification": { |
| 4 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 5 | + "title": "File Source Spec", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": true, |
| 8 | + "required": ["dataset_name", "format", "url", "provider"], |
| 9 | + "properties": { |
| 10 | + "dataset_name": { |
| 11 | + "type": "string", |
| 12 | + "title": "Dataset Name", |
| 13 | + "description": "The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only)." |
| 14 | + }, |
| 15 | + "format": { |
| 16 | + "type": "string", |
| 17 | + "enum": [ |
| 18 | + "csv", |
| 19 | + "json", |
| 20 | + "jsonl", |
| 21 | + "excel", |
| 22 | + "excel_binary", |
| 23 | + "feather", |
| 24 | + "parquet", |
| 25 | + "yaml" |
| 26 | + ], |
| 27 | + "default": "csv", |
| 28 | + "title": "File Format", |
| 29 | + "description": "The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs)." |
| 30 | + }, |
| 31 | + "reader_options": { |
| 32 | + "type": "string", |
| 33 | + "title": "Reader Options", |
| 34 | + "description": "This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior.", |
| 35 | + "examples": [ |
| 36 | + "{}", |
| 37 | + "{\"sep\": \" \"}", |
| 38 | + "{\"sep\": \"\t\", \"header\": 0, \"names\": [\"column1\", \"column2\"] }" |
| 39 | + ] |
| 40 | + }, |
| 41 | + "url": { |
| 42 | + "type": "string", |
| 43 | + "title": "URL", |
| 44 | + "description": "The URL path to access the file which should be replicated.", |
| 45 | + "examples": [ |
| 46 | + "https://storage.googleapis.com/covid19-open-data/v2/latest/epidemiology.csv", |
| 47 | + "gs://my-google-bucket/data.csv", |
| 48 | + "s3://gdelt-open-data/events/20190914.export.csv" |
| 49 | + ] |
| 50 | + }, |
| 51 | + "provider": { |
| 52 | + "type": "object", |
| 53 | + "title": "Storage Provider", |
| 54 | + "description": "The storage Provider or Location of the file(s) which should be replicated.", |
| 55 | + "default": "Public Web", |
| 56 | + "oneOf": [ |
| 57 | + { |
| 58 | + "title": "HTTPS: Public Web", |
| 59 | + "required": ["storage"], |
| 60 | + "properties": { |
| 61 | + "storage": { "type": "string", "const": "HTTPS" }, |
| 62 | + "user_agent": { |
| 63 | + "type": "boolean", |
| 64 | + "title": "User-Agent", |
| 65 | + "default": false, |
| 66 | + "description": "Add User-Agent to request" |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + { |
| 71 | + "title": "GCS: Google Cloud Storage", |
| 72 | + "required": ["storage"], |
| 73 | + "properties": { |
| 74 | + "storage": { |
| 75 | + "type": "string", |
| 76 | + "title": "Storage", |
| 77 | + "const": "GCS" |
| 78 | + }, |
| 79 | + "service_account_json": { |
| 80 | + "type": "string", |
| 81 | + "title": "Service Account JSON", |
| 82 | + "airbyte_secret": true, |
| 83 | + "description": "In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href=\"https://cloud.google.com/iam/docs/service-accounts\" target=\"_blank\">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary." |
| 84 | + } |
| 85 | + } |
| 86 | + }, |
| 87 | + { |
| 88 | + "title": "S3: Amazon Web Services", |
| 89 | + "required": ["storage"], |
| 90 | + "properties": { |
| 91 | + "storage": { |
| 92 | + "type": "string", |
| 93 | + "title": "Storage", |
| 94 | + "const": "S3" |
| 95 | + }, |
| 96 | + "aws_access_key_id": { |
| 97 | + "type": "string", |
| 98 | + "title": "AWS Access Key ID", |
| 99 | + "description": "In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary." |
| 100 | + }, |
| 101 | + "aws_secret_access_key": { |
| 102 | + "type": "string", |
| 103 | + "title": "AWS Secret Access Key", |
| 104 | + "description": "In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary.", |
| 105 | + "airbyte_secret": true |
| 106 | + } |
| 107 | + } |
| 108 | + }, |
| 109 | + { |
| 110 | + "title": "AzBlob: Azure Blob Storage", |
| 111 | + "required": ["storage", "storage_account"], |
| 112 | + "properties": { |
| 113 | + "storage": { |
| 114 | + "type": "string", |
| 115 | + "title": "Storage", |
| 116 | + "const": "AzBlob" |
| 117 | + }, |
| 118 | + "storage_account": { |
| 119 | + "type": "string", |
| 120 | + "title": "Storage Account", |
| 121 | + "description": "The globally unique name of the storage account that the desired blob sits within. See <a href=\"https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview\" target=\"_blank\">here</a> for more details." |
| 122 | + }, |
| 123 | + "sas_token": { |
| 124 | + "type": "string", |
| 125 | + "title": "SAS Token", |
| 126 | + "description": "To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary.", |
| 127 | + "airbyte_secret": true |
| 128 | + }, |
| 129 | + "shared_key": { |
| 130 | + "type": "string", |
| 131 | + "title": "Shared Key", |
| 132 | + "description": "To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary.", |
| 133 | + "airbyte_secret": true |
| 134 | + } |
| 135 | + } |
| 136 | + }, |
| 137 | + { |
| 138 | + "title": "SSH: Secure Shell", |
| 139 | + "required": ["storage", "user", "host"], |
| 140 | + "properties": { |
| 141 | + "storage": { |
| 142 | + "type": "string", |
| 143 | + "title": "Storage", |
| 144 | + "const": "SSH" |
| 145 | + }, |
| 146 | + "user": { "type": "string", "title": "User", "description": "" }, |
| 147 | + "password": { |
| 148 | + "type": "string", |
| 149 | + "title": "Password", |
| 150 | + "description": "", |
| 151 | + "airbyte_secret": true |
| 152 | + }, |
| 153 | + "host": { "type": "string", "title": "Host", "description": "" }, |
| 154 | + "port": { |
| 155 | + "type": "string", |
| 156 | + "title": "Port", |
| 157 | + "default": "22", |
| 158 | + "description": "" |
| 159 | + } |
| 160 | + } |
| 161 | + }, |
| 162 | + { |
| 163 | + "title": "SCP: Secure copy protocol", |
| 164 | + "required": ["storage", "user", "host"], |
| 165 | + "properties": { |
| 166 | + "storage": { |
| 167 | + "type": "string", |
| 168 | + "title": "Storage", |
| 169 | + "const": "SCP" |
| 170 | + }, |
| 171 | + "user": { "type": "string", "title": "User", "description": "" }, |
| 172 | + "password": { |
| 173 | + "type": "string", |
| 174 | + "title": "Password", |
| 175 | + "description": "", |
| 176 | + "airbyte_secret": true |
| 177 | + }, |
| 178 | + "host": { "type": "string", "title": "Host", "description": "" }, |
| 179 | + "port": { |
| 180 | + "type": "string", |
| 181 | + "title": "Port", |
| 182 | + "default": "22", |
| 183 | + "description": "" |
| 184 | + } |
| 185 | + } |
| 186 | + }, |
| 187 | + { |
| 188 | + "title": "SFTP: Secure File Transfer Protocol", |
| 189 | + "required": ["storage", "user", "host"], |
| 190 | + "properties": { |
| 191 | + "storage": { |
| 192 | + "type": "string", |
| 193 | + "title": "Storage", |
| 194 | + "const": "SFTP" |
| 195 | + }, |
| 196 | + "user": { "type": "string", "title": "User", "description": "" }, |
| 197 | + "password": { |
| 198 | + "type": "string", |
| 199 | + "title": "Password", |
| 200 | + "description": "", |
| 201 | + "airbyte_secret": true |
| 202 | + }, |
| 203 | + "host": { "type": "string", "title": "Host", "description": "" }, |
| 204 | + "port": { |
| 205 | + "type": "string", |
| 206 | + "title": "Port", |
| 207 | + "default": "22", |
| 208 | + "description": "" |
| 209 | + } |
| 210 | + } |
| 211 | + } |
| 212 | + ] |
| 213 | + } |
| 214 | + } |
| 215 | + } |
| 216 | +} |
0 commit comments