on develop help sign in
Merge branch 'feature/issue-52' into develop
commit9b95bf85d424db9759c073eacb83c2d2826e7d0d authorBrendan Hay <brendan.g.hay@gmail.com> dateSun 12 Feb 2017, 08:24 (10 years ago) parent9abbb6e0f8c042
2 files changed+16−7
gen/annex/bigquery.json+11−2 gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs+5−5
gen/annex/bigquery.json+11−2
@@ -1,5 +1,14 @@
11{
22 "library": "bigquery",
3− "canonicalName": "BigQuery"
4−}
3+ "canonicalName": "BigQuery",
4+ "schemas": {
5+ "JobConfigurationLoad": {
6+ "properties": {
7+ "quote": {
8+ "default": null
9+ }
10+ }
11+ }
512
13+ }
14+}
gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs+5−5
@@ -2367,7 +2367,7 @@ data JobConfigurationLoad = JobConfigurationLoad'
23672367 , _jclAllowQuotedNewlines :: !(Maybe Bool)
23682368 , _jclSourceFormat :: !(Maybe Text)
23692369 , _jclSchema :: !(Maybe TableSchema)
2370− , _jclQuote :: !Text
2370+ , _jclQuote :: !(Maybe Text)
23712371 , _jclMaxBadRecords :: !(Maybe (Textual Int32))
23722372 , _jclAutodetect :: !(Maybe Bool)
23732373 , _jclSourceURIs :: !(Maybe [Text])
@@ -2436,7 +2436,7 @@ jobConfigurationLoad =
24362436 , _jclAllowQuotedNewlines = Nothing
24372437 , _jclSourceFormat = Nothing
24382438 , _jclSchema = Nothing
2439− , _jclQuote = "\""
2439+ , _jclQuote = Nothing
24402440 , _jclMaxBadRecords = Nothing
24412441 , _jclAutodetect = Nothing
24422442 , _jclSourceURIs = Nothing
@@ -2580,7 +2580,7 @@ jclSchema
25802580-- not contain quoted sections, set the property value to an empty string.
25812581-- If your data contains quoted newline characters, you must also set the
25822582-- allowQuotedNewlines property to true.
2583−jclQuote :: Lens' JobConfigurationLoad Text
2583+jclQuote :: Lens' JobConfigurationLoad (Maybe Text)
25842584jclQuote = lens _jclQuote (\ s a -> s{_jclQuote = a})
25852585
25862586-- | [Optional] The maximum number of bad records that BigQuery can ignore
@@ -2660,7 +2660,7 @@ instance FromJSON JobConfigurationLoad where
26602660 <*> (o .:? "allowQuotedNewlines")
26612661 <*> (o .:? "sourceFormat")
26622662 <*> (o .:? "schema")
2663− <*> (o .:? "quote" .!= "\"")
2663+ <*> (o .:? "quote")
26642664 <*> (o .:? "maxBadRecords")
26652665 <*> (o .:? "autodetect")
26662666 <*> (o .:? "sourceUris" .!= mempty)
@@ -2688,7 +2688,7 @@ instance ToJSON JobConfigurationLoad where
26882688 _jclAllowQuotedNewlines,
26892689 ("sourceFormat" .=) <$> _jclSourceFormat,
26902690 ("schema" .=) <$> _jclSchema,
2691− Just ("quote" .= _jclQuote),
2691+ ("quote" .=) <$> _jclQuote,
26922692 ("maxBadRecords" .=) <$> _jclMaxBadRecords,
26932693 ("autodetect" .=) <$> _jclAutodetect,
26942694 ("sourceUris" .=) <$> _jclSourceURIs,