on develop help sign in
Regenerating gogol-bigquery from latest service definition
commit7cfc209a8d166ce18df3ac995c8729c193ab9c90 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent2be77a8
6 files changed+1003−51
gen/model/bigquery/v2/bigquery-api.json+183−10 gogol-bigquery/gen/Network/Google/BigQuery.hs+64 gogol-bigquery/gen/Network/Google/BigQuery/Types.hs+64 gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs+673−36 gogol-bigquery/gen/Network/Google/Resource/BigQuery/DataSets/List.hs+18−4 gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Cancel.hs+1−1
gen/model/bigquery/v2/bigquery-api.json+183−10
@@ -1,11 +1,11 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"jQLIOHBVnDZie4rQHGH1WJF-INE/xJN8TIpPcg1NGIZr6unBuM4TVZg\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/v5KMn4eNX1u6f2QZ4MK3wTA9qok\"",
44 "discoveryVersion": "v1",
55 "id": "bigquery:v2",
66 "name": "bigquery",
77 "version": "v2",
8− "revision": "20160511",
8+ "revision": "20161016",
99 "title": "BigQuery API",
1010 "description": "A data platform for customers to create, manage, share and query data.",
1111 "ownerDomain": "google.com",
@@ -27,11 +27,9 @@
2727 "description": "Data format for the response.",
2828 "default": "json",
2929 "enum": [
30− "csv",
3130 "json"
3231 ],
3332 "enumDescriptions": [
34− "Responses with Content-Type of text/csv",
3533 "Responses with Content-Type of application/json"
3634 ],
3735 "location": "query"
@@ -122,7 +120,7 @@
122120 },
123121 "type": {
124122 "type": "string",
125− "description": "[Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels."
123+ "description": "[Optional] The type to convert the value in cells of this column. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. 'type' can also be set at the column family level. However, the setting at this level takes precedence if 'type' is set at both levels."
126124 }
127125 }
128126 },
@@ -151,7 +149,7 @@
151149 },
152150 "type": {
153151 "type": "string",
154− "description": "[Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it."
152+ "description": "[Optional] The type to convert the value in cells of this column family. The values are expected to be encoded using HBase Bytes.toBytes function when using the BINARY encoding value. Following BigQuery types are allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default type is BYTES. This can be overridden for a specific column by listing that column in 'columns' and specifying a type for it."
155153 }
156154 }
157155 },
@@ -169,6 +167,10 @@
169167 "ignoreUnspecifiedColumnFamilies": {
170168 "type": "boolean",
171169 "description": "[Optional] If field is true, then the column families that are not specified in columnFamilies list are not exposed in the table schema. Otherwise, they are read with BYTES type values. The default value is false."
170+ },
171+ "readRowkeyAsString": {
172+ "type": "boolean",
173+ "description": "[Optional] If field is true, then the rowkey column families will be read and converted to string. Otherwise they are read with BYTES type values and users need to manually cast them with CAST if necessary. The default value is false."
172174 }
173175 }
174176 },
@@ -277,6 +279,13 @@
277279 "description": "[Output-only] The resource type.",
278280 "default": "bigquery#dataset"
279281 },
282+ "labels": {
283+ "type": "object",
284+ "description": "[Experimental] The labels associated with this dataset. You can use these to organize and group your datasets. You can set this property when inserting or updating a dataset. See Labeling Datasets for more information.",
285+ "additionalProperties": {
286+ "type": "string"
287+ }
288+ },
280289 "lastModifiedTime": {
281290 "type": "string",
282291 "description": "[Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.",
@@ -318,6 +327,13 @@
318327 "type": "string",
319328 "description": "The resource type. This property always returns the value \"bigquery#dataset\".",
320329 "default": "bigquery#dataset"
330+ },
331+ "labels": {
332+ "type": "object",
333+ "description": "[Experimental] The labels associated with this dataset. You can use these to organize and group your datasets.",
334+ "additionalProperties": {
335+ "type": "string"
336+ }
321337 }
322338 }
323339 }
@@ -554,6 +570,11 @@
554570 "description": "The resource type of the response.",
555571 "default": "bigquery#getQueryResultsResponse"
556572 },
573+ "numDmlAffectedRows": {
574+ "type": "string",
575+ "description": "[Output-only, Experimental] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
576+ "format": "int64"
577+ },
557578 "pageToken": {
558579 "type": "string",
559580 "description": "A token used for paging results."
@@ -666,6 +687,13 @@
666687 "$ref": "JobConfigurationExtract",
667688 "description": "[Pick one] Configures an extract job."
668689 },
690+ "labels": {
691+ "type": "object",
692+ "description": "[Experimental] The labels associated with this job. You can use these to organize and group your jobs. Label keys and values can be no longer than 63 characters, can only contain letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter and must be unique within a dataset. Both keys and values are additionally constrained to be \u003c= 128 bytes in size.",
693+ "additionalProperties": {
694+ "type": "string"
695+ }
696+ },
669697 "load": {
670698 "$ref": "JobConfigurationLoad",
671699 "description": "[Pick one] Configures a load job."
@@ -780,6 +808,13 @@
780808 "type": "string",
781809 "description": "[Deprecated] The format of the schemaInline property."
782810 },
811+ "schemaUpdateOptions": {
812+ "type": "array",
813+ "description": "[Experimental] Allows the schema of the desitination table to be updated as a side effect of the load job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.",
814+ "items": {
815+ "type": "string"
816+ }
817+ },
783818 "skipLeadingRows": {
784819 "type": "integer",
785820 "description": "[Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.",
@@ -833,6 +868,15 @@
833868 "default": "1",
834869 "format": "int32"
835870 },
871+ "maximumBytesBilled": {
872+ "type": "string",
873+ "description": "[Optional] Limits the bytes billed for this job. Queries that will have bytes billed beyond this limit will fail (without incurring a charge). If unspecified, this will be set to your project default.",
874+ "format": "int64"
875+ },
876+ "parameterMode": {
877+ "type": "string",
878+ "description": "[Experimental] Standard SQL only. Whether to use positional (?) or named (@myparam) query parameters in this query."
879+ },
836880 "preserveNulls": {
837881 "type": "boolean",
838882 "description": "[Deprecated] This property is deprecated."
@@ -845,6 +889,20 @@
845889 "type": "string",
846890 "description": "[Required] BigQuery SQL query to execute."
847891 },
892+ "queryParameters": {
893+ "type": "array",
894+ "description": "Query parameters for standard SQL queries.",
895+ "items": {
896+ "$ref": "QueryParameter"
897+ }
898+ },
899+ "schemaUpdateOptions": {
900+ "type": "array",
901+ "description": "[Experimental] Allows the schema of the destination table to be updated as a side effect of the query job. Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators. For normal tables, WRITE_TRUNCATE will always overwrite the schema. One or more of the following values are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in the original schema to nullable.",
902+ "items": {
903+ "type": "string"
904+ }
905+ },
848906 "tableDefinitions": {
849907 "type": "object",
850908 "description": "[Optional] If querying an external data source outside of BigQuery, describes the data format, location and other properties of the data source. By defining these properties, the data source can then be queried as if it were a standard BigQuery table.",
@@ -1043,9 +1101,14 @@
10431101 "type": "boolean",
10441102 "description": "[Output-only] Whether the query result was fetched from the query cache."
10451103 },
1104+ "numDmlAffectedRows": {
1105+ "type": "string",
1106+ "description": "[Output-only, Experimental] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
1107+ "format": "int64"
1108+ },
10461109 "queryPlan": {
10471110 "type": "array",
1048− "description": "[Output-only, Experimental] Describes execution plan for the query as a list of stages.",
1111+ "description": "[Output-only, Experimental] Describes execution plan for the query.",
10491112 "items": {
10501113 "$ref": "ExplainQueryStage"
10511114 }
@@ -1070,6 +1133,13 @@
10701133 "type": "string",
10711134 "description": "[Output-only] Total bytes processed for the job.",
10721135 "format": "int64"
1136+ },
1137+ "undeclaredQueryParameters": {
1138+ "type": "array",
1139+ "description": "[Output-only, Experimental] Standard SQL only: list of undeclared query parameters detected during a dry run validation.",
1140+ "items": {
1141+ "$ref": "QueryParameter"
1142+ }
10731143 }
10741144 }
10751145 },
@@ -1211,6 +1281,83 @@
12111281 }
12121282 }
12131283 },
1284+ "QueryParameter": {
1285+ "id": "QueryParameter",
1286+ "type": "object",
1287+ "properties": {
1288+ "name": {
1289+ "type": "string",
1290+ "description": "[Optional] If unset, this is a positional parameter. Otherwise, should be unique within a query."
1291+ },
1292+ "parameterType": {
1293+ "$ref": "QueryParameterType",
1294+ "description": "[Required] The type of this parameter."
1295+ },
1296+ "parameterValue": {
1297+ "$ref": "QueryParameterValue",
1298+ "description": "[Required] The value of this parameter."
1299+ }
1300+ }
1301+ },
1302+ "QueryParameterType": {
1303+ "id": "QueryParameterType",
1304+ "type": "object",
1305+ "properties": {
1306+ "arrayType": {
1307+ "$ref": "QueryParameterType",
1308+ "description": "[Optional] The type of the array's elements, if this is an array."
1309+ },
1310+ "structTypes": {
1311+ "type": "array",
1312+ "description": "[Optional] The types of the fields of this struct, in order, if this is a struct.",
1313+ "items": {
1314+ "type": "object",
1315+ "properties": {
1316+ "description": {
1317+ "type": "string",
1318+ "description": "[Optional] Human-oriented description of the field."
1319+ },
1320+ "name": {
1321+ "type": "string",
1322+ "description": "[Optional] The name of this field."
1323+ },
1324+ "type": {
1325+ "$ref": "QueryParameterType",
1326+ "description": "[Required] The type of this field."
1327+ }
1328+ }
1329+ }
1330+ },
1331+ "type": {
1332+ "type": "string",
1333+ "description": "[Required] The top level type of this field."
1334+ }
1335+ }
1336+ },
1337+ "QueryParameterValue": {
1338+ "id": "QueryParameterValue",
1339+ "type": "object",
1340+ "properties": {
1341+ "arrayValues": {
1342+ "type": "array",
1343+ "description": "[Optional] The array values, if this is an array type.",
1344+ "items": {
1345+ "$ref": "QueryParameterValue"
1346+ }
1347+ },
1348+ "structValues": {
1349+ "type": "object",
1350+ "description": "[Optional] The struct field values, in order of the struct type's declaration.",
1351+ "additionalProperties": {
1352+ "$ref": "QueryParameterValue"
1353+ }
1354+ },
1355+ "value": {
1356+ "type": "string",
1357+ "description": "[Optional] The value of this value, if a simple scalar type."
1358+ }
1359+ }
1360+ },
12141361 "QueryRequest": {
12151362 "id": "QueryRequest",
12161363 "type": "object",
@@ -1233,6 +1380,10 @@
12331380 "description": "[Optional] The maximum number of rows of data to return per page of results. Setting this flag to a small value such as 1000 and then paging through results might improve reliability when the query result set is large. In addition to this limit, responses are also limited to 10 MB. By default, there is no maximum row count, and only the byte limit applies.",
12341381 "format": "uint32"
12351382 },
1383+ "parameterMode": {
1384+ "type": "string",
1385+ "description": "[Experimental] Standard SQL only. Whether to use positional (?) or named (@myparam) query parameters in this query."
1386+ },
12361387 "preserveNulls": {
12371388 "type": "boolean",
12381389 "description": "[Deprecated] This property is deprecated."
@@ -1246,6 +1397,13 @@
12461397 ]
12471398 }
12481399 },
1400+ "queryParameters": {
1401+ "type": "array",
1402+ "description": "[Experimental] Query parameters for Standard SQL queries.",
1403+ "items": {
1404+ "$ref": "QueryParameter"
1405+ }
1406+ },
12491407 "timeoutMs": {
12501408 "type": "integer",
12511409 "description": "[Optional] How long to wait for the query to complete, in milliseconds, before the request times out and returns. Note that this is only a timeout for the request, not the query. If the query takes longer to run than the timeout value, the call returns without any results and with the 'jobComplete' flag set to false. You can call GetQueryResults() to wait for the query to complete and read the results. The default value is 10000 milliseconds (10 seconds).",
@@ -1253,7 +1411,8 @@
12531411 },
12541412 "useLegacySql": {
12551413 "type": "boolean",
1256− "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false."
1414+ "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL dialect for this query. The default value is true. If set to false, the query will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ When useLegacySql is set to false, the values of allowLargeResults and flattenResults are ignored; query will be run as if allowLargeResults is true and flattenResults is false.",
1415+ "default": "true"
12571416 },
12581417 "useQueryCache": {
12591418 "type": "boolean",
@@ -1290,6 +1449,11 @@
12901449 "description": "The resource type.",
12911450 "default": "bigquery#queryResponse"
12921451 },
1452+ "numDmlAffectedRows": {
1453+ "type": "string",
1454+ "description": "[Output-only, Experimental] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.",
1455+ "format": "int64"
1456+ },
12931457 "pageToken": {
12941458 "type": "string",
12951459 "description": "A token used for paging results."
@@ -1568,7 +1732,7 @@
15681732 },
15691733 "type": {
15701734 "type": "string",
1571− "description": "[Required] The field data type. Possible values include STRING, BYTES, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema)."
1735+ "description": "[Required] The field data type. Possible values include STRING, BYTES, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD (where RECORD indicates that the field contains a nested schema)."
15721736 }
15731737 }
15741738 },
@@ -1722,6 +1886,10 @@
17221886 "type": "string",
17231887 "description": "[Required] A query that BigQuery executes when the view is referenced."
17241888 },
1889+ "useLegacySql": {
1890+ "type": "boolean",
1891+ "description": "[Experimental] Specifies whether to use BigQuery's legacy SQL for this view. The default value is true. If set to false, the view will use BigQuery's standard SQL: https://cloud.google.com/bigquery/sql-reference/ Queries and views that reference this view must use the same flag value."
1892+ },
17251893 "userDefinedFunctionResources": {
17261894 "type": "array",
17271895 "description": "[Experimental] Describes user-defined function resources used in the query.",
@@ -1838,6 +2006,11 @@
18382006 "description": "Whether to list all datasets, including hidden ones",
18392007 "location": "query"
18402008 },
2009+ "filter": {
2010+ "type": "string",
2011+ "description": "An expression for filtering the results of the request by label. The syntax is \"labels.\u003cname\u003e[:\u003cvalue\u003e]\". Multiple filters can be ANDed together by connecting with a space. Example: \"labels.department:receiving labels.active\". See Filtering datasets using labels for details.",
2012+ "location": "query"
2013+ },
18412014 "maxResults": {
18422015 "type": "integer",
18432016 "description": "The maximum number of results to return",
@@ -1942,7 +2115,7 @@
19422115 "methods": {
19432116 "cancel": {
19442117 "id": "bigquery.jobs.cancel",
1945− "path": "project/{projectId}/jobs/{jobId}/cancel",
2118+ "path": "projects/{projectId}/jobs/{jobId}/cancel",
19462119 "httpMethod": "POST",
19472120 "description": "Requests that a job be cancelled. This call will return immediately, and the client will need to poll for the job status to see if the cancel completed successfully. Cancelled jobs may still incur costs.",
19482121 "parameters": {
gogol-bigquery/gen/Network/Google/BigQuery.hs+64
@@ -122,6 +122,7 @@ module Network.Google.BigQuery
122122 , dsldsiKind
123123 , dsldsiDataSetReference
124124 , dsldsiId
125+ , dsldsiLabels
125126
126127 -- ** TableDataList
127128 , TableDataList
@@ -170,6 +171,13 @@ module Network.Google.BigQuery
170171 , eqsSubsteps
171172 , eqsKind
172173
174+ -- ** QueryParameterTypeStructTypesItem
175+ , QueryParameterTypeStructTypesItem
176+ , queryParameterTypeStructTypesItem
177+ , qptstiName
178+ , qptstiType
179+ , qptstiDescription
180+
173181 -- ** BigtableColumnFamily
174182 , BigtableColumnFamily
175183 , bigtableColumnFamily
@@ -190,6 +198,11 @@ module Network.Google.BigQuery
190198 , jsQuery
191199 , jsExtract
192200
201+ -- ** JobConfigurationLabels
202+ , JobConfigurationLabels
203+ , jobConfigurationLabels
204+ , jclAddtional
205+
193206 -- ** DataSet
194207 , DataSet
195208 , dataSet
@@ -203,12 +216,14 @@ module Network.Google.BigQuery
203216 , dsDataSetReference
204217 , dsSelfLink
205218 , dsId
219+ , dsLabels
206220 , dsDefaultTableExpirationMs
207221 , dsDescription
208222
209223 -- ** BigtableOptions
210224 , BigtableOptions
211225 , bigtableOptions
226+ , boReadRowkeyAsString
212227 , boIgnoreUnspecifiedColumnFamilies
213228 , boColumnFamilies
214229
@@ -252,6 +267,7 @@ module Network.Google.BigQuery
252267 , gqrrTotalBytesProcessed
253268 , gqrrRows
254269 , gqrrPageToken
270+ , gqrrNumDmlAffectedRows
255271 , gqrrTotalRows
256272 , gqrrErrors
257273 , gqrrJobComplete
@@ -271,7 +287,9 @@ module Network.Google.BigQuery
271287 , qrUseQueryCache
272288 , qrPreserveNulls
273289 , qrKind
290+ , qrQueryParameters
274291 , qrQuery
292+ , qrParameterMode
275293 , qrTimeoutMs
276294 , qrUseLegacySQL
277295 , qrDryRun
@@ -281,6 +299,13 @@ module Network.Google.BigQuery
281299 -- ** JobsListProjection
282300 , JobsListProjection (..)
283301
302+ -- ** QueryParameter
303+ , QueryParameter
304+ , queryParameter
305+ , qpParameterValue
306+ , qpParameterType
307+ , qpName
308+
284309 -- ** JobStatistics4
285310 , JobStatistics4
286311 , jobStatistics4
@@ -318,6 +343,7 @@ module Network.Google.BigQuery
318343 , jclAllowJaggedRows
319344 , jclSchemaInline
320345 , jclIgnoreUnknownValues
346+ , jclSchemaUpdateOptions
321347 , jclCreateDisPosition
322348 , jclSchemaInlineFormat
323349 , jclAllowQuotedNewlines
@@ -398,6 +424,16 @@ module Network.Google.BigQuery
398424 , tpExpirationMs
399425 , tpType
400426
427+ -- ** QueryParameterValueStructValues
428+ , QueryParameterValueStructValues
429+ , queryParameterValueStructValues
430+ , qpvsvAddtional
431+
432+ -- ** DataSetLabels
433+ , DataSetLabels
434+ , dataSetLabels
435+ , dslAddtional
436+
401437 -- ** JobConfiguration
402438 , JobConfiguration
403439 , jobConfiguration
@@ -405,6 +441,7 @@ module Network.Google.BigQuery
405441 , jcLoad
406442 , jcQuery
407443 , jcExtract
444+ , jcLabels
408445 , jcDryRun
409446
410447 -- ** Job
@@ -457,12 +494,16 @@ module Network.Google.BigQuery
457494 , jcqUseQueryCache
458495 , jcqPreserveNulls
459496 , jcqTableDefinitions
497+ , jcqQueryParameters
498+ , jcqSchemaUpdateOptions
499+ , jcqMaximumBytesBilled
460500 , jcqCreateDisPosition
461501 , jcqUserDefinedFunctionResources
462502 , jcqAllowLargeResults
463503 , jcqMaximumBillingTier
464504 , jcqQuery
465505 , jcqFlattenResults
506+ , jcqParameterMode
466507 , jcqUseLegacySQL
467508 , jcqDefaultDataSet
468509
@@ -495,11 +536,19 @@ module Network.Google.BigQuery
495536 , tableCell
496537 , tcV
497538
539+ -- ** QueryParameterValue
540+ , QueryParameterValue
541+ , queryParameterValue
542+ , qpvStructValues
543+ , qpvValue
544+ , qpvArrayValues
545+
498546 -- ** ViewDefinition
499547 , ViewDefinition
500548 , viewDefinition
501549 , vdUserDefinedFunctionResources
502550 , vdQuery
551+ , vdUseLegacySQL
503552
504553 -- ** UserDefinedFunctionResource
505554 , UserDefinedFunctionResource
@@ -513,7 +562,9 @@ module Network.Google.BigQuery
513562 , jSchema
514563 , jTotalBytesProcessed
515564 , jBillingTier
565+ , jUndeclaredQueryParameters
516566 , jReferencedTables
567+ , jNumDmlAffectedRows
517568 , jQueryPlan
518569 , jCacheHit
519570 , jTotalBytesBilled
@@ -541,6 +592,13 @@ module Network.Google.BigQuery
541592 , tKind
542593 , tInsertErrors
543594
595+ -- ** QueryParameterType
596+ , QueryParameterType
597+ , queryParameterType
598+ , qptStructTypes
599+ , qptType
600+ , qptArrayType
601+
544602 -- ** Table
545603 , Table
546604 , table
@@ -600,10 +658,16 @@ module Network.Google.BigQuery
600658 , qTotalBytesProcessed
601659 , qRows
602660 , qPageToken
661+ , qNumDmlAffectedRows
603662 , qTotalRows
604663 , qErrors
605664 , qJobComplete
606665 , qCacheHit
666+
667+ -- ** DataSetListDataSetsItemLabels
668+ , DataSetListDataSetsItemLabels
669+ , dataSetListDataSetsItemLabels
670+ , dsldsilAddtional
607671 ) where
608672
609673import Network.Google.BigQuery.Types
gogol-bigquery/gen/Network/Google/BigQuery/Types.hs+64
@@ -50,6 +50,7 @@ module Network.Google.BigQuery.Types
5050 , dsldsiKind
5151 , dsldsiDataSetReference
5252 , dsldsiId
53+ , dsldsiLabels
5354
5455 -- * TableDataList
5556 , TableDataList
@@ -98,6 +99,13 @@ module Network.Google.BigQuery.Types
9899 , eqsSubsteps
99100 , eqsKind
100101
102+ -- * QueryParameterTypeStructTypesItem
103+ , QueryParameterTypeStructTypesItem
104+ , queryParameterTypeStructTypesItem
105+ , qptstiName
106+ , qptstiType
107+ , qptstiDescription
108+
101109 -- * BigtableColumnFamily
102110 , BigtableColumnFamily
103111 , bigtableColumnFamily
@@ -118,6 +126,11 @@ module Network.Google.BigQuery.Types
118126 , jsQuery
119127 , jsExtract
120128
129+ -- * JobConfigurationLabels
130+ , JobConfigurationLabels
131+ , jobConfigurationLabels
132+ , jclAddtional
133+
121134 -- * DataSet
122135 , DataSet
123136 , dataSet
@@ -131,12 +144,14 @@ module Network.Google.BigQuery.Types
131144 , dsDataSetReference
132145 , dsSelfLink
133146 , dsId
147+ , dsLabels
134148 , dsDefaultTableExpirationMs
135149 , dsDescription
136150
137151 -- * BigtableOptions
138152 , BigtableOptions
139153 , bigtableOptions
154+ , boReadRowkeyAsString
140155 , boIgnoreUnspecifiedColumnFamilies
141156 , boColumnFamilies
142157
@@ -180,6 +195,7 @@ module Network.Google.BigQuery.Types
180195 , gqrrTotalBytesProcessed
181196 , gqrrRows
182197 , gqrrPageToken
198+ , gqrrNumDmlAffectedRows
183199 , gqrrTotalRows
184200 , gqrrErrors
185201 , gqrrJobComplete
@@ -199,7 +215,9 @@ module Network.Google.BigQuery.Types
199215 , qrUseQueryCache
200216 , qrPreserveNulls
201217 , qrKind
218+ , qrQueryParameters
202219 , qrQuery
220+ , qrParameterMode
203221 , qrTimeoutMs
204222 , qrUseLegacySQL
205223 , qrDryRun
@@ -209,6 +227,13 @@ module Network.Google.BigQuery.Types
209227 -- * JobsListProjection
210228 , JobsListProjection (..)
211229
230+ -- * QueryParameter
231+ , QueryParameter
232+ , queryParameter
233+ , qpParameterValue
234+ , qpParameterType
235+ , qpName
236+
212237 -- * JobStatistics4
213238 , JobStatistics4
214239 , jobStatistics4
@@ -246,6 +271,7 @@ module Network.Google.BigQuery.Types
246271 , jclAllowJaggedRows
247272 , jclSchemaInline
248273 , jclIgnoreUnknownValues
274+ , jclSchemaUpdateOptions
249275 , jclCreateDisPosition
250276 , jclSchemaInlineFormat
251277 , jclAllowQuotedNewlines
@@ -326,6 +352,16 @@ module Network.Google.BigQuery.Types
326352 , tpExpirationMs
327353 , tpType
328354
355+ -- * QueryParameterValueStructValues
356+ , QueryParameterValueStructValues
357+ , queryParameterValueStructValues
358+ , qpvsvAddtional
359+
360+ -- * DataSetLabels
361+ , DataSetLabels
362+ , dataSetLabels
363+ , dslAddtional
364+
329365 -- * JobConfiguration
330366 , JobConfiguration
331367 , jobConfiguration
@@ -333,6 +369,7 @@ module Network.Google.BigQuery.Types
333369 , jcLoad
334370 , jcQuery
335371 , jcExtract
372+ , jcLabels
336373 , jcDryRun
337374
338375 -- * Job
@@ -385,12 +422,16 @@ module Network.Google.BigQuery.Types
385422 , jcqUseQueryCache
386423 , jcqPreserveNulls
387424 , jcqTableDefinitions
425+ , jcqQueryParameters
426+ , jcqSchemaUpdateOptions
427+ , jcqMaximumBytesBilled
388428 , jcqCreateDisPosition
389429 , jcqUserDefinedFunctionResources
390430 , jcqAllowLargeResults
391431 , jcqMaximumBillingTier
392432 , jcqQuery
393433 , jcqFlattenResults
434+ , jcqParameterMode
394435 , jcqUseLegacySQL
395436 , jcqDefaultDataSet
396437
@@ -423,11 +464,19 @@ module Network.Google.BigQuery.Types
423464 , tableCell
424465 , tcV
425466
467+ -- * QueryParameterValue
468+ , QueryParameterValue
469+ , queryParameterValue
470+ , qpvStructValues
471+ , qpvValue
472+ , qpvArrayValues
473+
426474 -- * ViewDefinition
427475 , ViewDefinition
428476 , viewDefinition
429477 , vdUserDefinedFunctionResources
430478 , vdQuery
479+ , vdUseLegacySQL
431480
432481 -- * UserDefinedFunctionResource
433482 , UserDefinedFunctionResource
@@ -441,7 +490,9 @@ module Network.Google.BigQuery.Types
441490 , jSchema
442491 , jTotalBytesProcessed
443492 , jBillingTier
493+ , jUndeclaredQueryParameters
444494 , jReferencedTables
495+ , jNumDmlAffectedRows
445496 , jQueryPlan
446497 , jCacheHit
447498 , jTotalBytesBilled
@@ -469,6 +520,13 @@ module Network.Google.BigQuery.Types
469520 , tKind
470521 , tInsertErrors
471522
523+ -- * QueryParameterType
524+ , QueryParameterType
525+ , queryParameterType
526+ , qptStructTypes
527+ , qptType
528+ , qptArrayType
529+
472530 -- * Table
473531 , Table
474532 , table
@@ -528,10 +586,16 @@ module Network.Google.BigQuery.Types
528586 , qTotalBytesProcessed
529587 , qRows
530588 , qPageToken
589+ , qNumDmlAffectedRows
531590 , qTotalRows
532591 , qErrors
533592 , qJobComplete
534593 , qCacheHit
594+
595+ -- * DataSetListDataSetsItemLabels
596+ , DataSetListDataSetsItemLabels
597+ , dataSetListDataSetsItemLabels
598+ , dsldsilAddtional
535599 ) where
536600
537601import Network.Google.BigQuery.Types.Product
gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs+673−36
@@ -155,6 +155,7 @@ data DataSetListDataSetsItem = DataSetListDataSetsItem'
155155 , _dsldsiKind :: !Text
156156 , _dsldsiDataSetReference :: !(Maybe DataSetReference)
157157 , _dsldsiId :: !(Maybe Text)
158+ , _dsldsiLabels :: !(Maybe DataSetListDataSetsItemLabels)
158159 } deriving (Eq,Show,Data,Typeable,Generic)
159160
160161-- | Creates a value of 'DataSetListDataSetsItem' with the minimum fields required to make a request.
@@ -168,6 +169,8 @@ data DataSetListDataSetsItem = DataSetListDataSetsItem'
168169-- * 'dsldsiDataSetReference'
169170--
170171-- * 'dsldsiId'
172+--
173+-- * 'dsldsiLabels'
171174dataSetListDataSetsItem
172175 :: DataSetListDataSetsItem
173176dataSetListDataSetsItem =
@@ -176,6 +179,7 @@ dataSetListDataSetsItem =
176179 , _dsldsiKind = "bigquery#dataset"
177180 , _dsldsiDataSetReference = Nothing
178181 , _dsldsiId = Nothing
182+ , _dsldsiLabels = Nothing
179183 }
180184
181185-- | A descriptive name for the dataset, if one exists.
@@ -201,6 +205,12 @@ dsldsiDataSetReference
201205dsldsiId :: Lens' DataSetListDataSetsItem (Maybe Text)
202206dsldsiId = lens _dsldsiId (\ s a -> s{_dsldsiId = a})
203207
208+-- | [Experimental] The labels associated with this dataset. You can use
209+-- these to organize and group your datasets.
210+dsldsiLabels :: Lens' DataSetListDataSetsItem (Maybe DataSetListDataSetsItemLabels)
211+dsldsiLabels
212+ = lens _dsldsiLabels (\ s a -> s{_dsldsiLabels = a})
213+
204214instance FromJSON DataSetListDataSetsItem where
205215 parseJSON
206216 = withObject "DataSetListDataSetsItem"
@@ -209,7 +219,8 @@ instance FromJSON DataSetListDataSetsItem where
209219 (o .:? "friendlyName") <*>
210220 (o .:? "kind" .!= "bigquery#dataset")
211221 <*> (o .:? "datasetReference")
212− <*> (o .:? "id"))
222+ <*> (o .:? "id")
223+ <*> (o .:? "labels"))
213224
214225instance ToJSON DataSetListDataSetsItem where
215226 toJSON DataSetListDataSetsItem'{..}
@@ -218,7 +229,8 @@ instance ToJSON DataSetListDataSetsItem where
218229 [("friendlyName" .=) <$> _dsldsiFriendlyName,
219230 Just ("kind" .= _dsldsiKind),
220231 ("datasetReference" .=) <$> _dsldsiDataSetReference,
221− ("id" .=) <$> _dsldsiId])
232+ ("id" .=) <$> _dsldsiId,
233+ ("labels" .=) <$> _dsldsiLabels])
222234
223235--
224236-- /See:/ 'tableDataList' smart constructor.
@@ -640,6 +652,66 @@ instance ToJSON ExplainQueryStep where
640652 [("substeps" .=) <$> _eqsSubsteps,
641653 ("kind" .=) <$> _eqsKind])
642654
655+--
656+-- /See:/ 'queryParameterTypeStructTypesItem' smart constructor.
657+data QueryParameterTypeStructTypesItem = QueryParameterTypeStructTypesItem'
658+ { _qptstiName :: !(Maybe Text)
659+ , _qptstiType :: !(Maybe QueryParameterType)
660+ , _qptstiDescription :: !(Maybe Text)
661+ } deriving (Eq,Show,Data,Typeable,Generic)
662+
663+-- | Creates a value of 'QueryParameterTypeStructTypesItem' with the minimum fields required to make a request.
664+--
665+-- Use one of the following lenses to modify other fields as desired:
666+--
667+-- * 'qptstiName'
668+--
669+-- * 'qptstiType'
670+--
671+-- * 'qptstiDescription'
672+queryParameterTypeStructTypesItem
673+ :: QueryParameterTypeStructTypesItem
674+queryParameterTypeStructTypesItem =
675+ QueryParameterTypeStructTypesItem'
676+ { _qptstiName = Nothing
677+ , _qptstiType = Nothing
678+ , _qptstiDescription = Nothing
679+ }
680+
681+-- | [Optional] The name of this field.
682+qptstiName :: Lens' QueryParameterTypeStructTypesItem (Maybe Text)
683+qptstiName
684+ = lens _qptstiName (\ s a -> s{_qptstiName = a})
685+
686+-- | [Required] The type of this field.
687+qptstiType :: Lens' QueryParameterTypeStructTypesItem (Maybe QueryParameterType)
688+qptstiType
689+ = lens _qptstiType (\ s a -> s{_qptstiType = a})
690+
691+-- | [Optional] Human-oriented description of the field.
692+qptstiDescription :: Lens' QueryParameterTypeStructTypesItem (Maybe Text)
693+qptstiDescription
694+ = lens _qptstiDescription
695+ (\ s a -> s{_qptstiDescription = a})
696+
697+instance FromJSON QueryParameterTypeStructTypesItem
698+ where
699+ parseJSON
700+ = withObject "QueryParameterTypeStructTypesItem"
701+ (\ o ->
702+ QueryParameterTypeStructTypesItem' <$>
703+ (o .:? "name") <*> (o .:? "type") <*>
704+ (o .:? "description"))
705+
706+instance ToJSON QueryParameterTypeStructTypesItem
707+ where
708+ toJSON QueryParameterTypeStructTypesItem'{..}
709+ = object
710+ (catMaybes
711+ [("name" .=) <$> _qptstiName,
712+ ("type" .=) <$> _qptstiType,
713+ ("description" .=) <$> _qptstiDescription])
714+
643715--
644716-- /See:/ 'bigtableColumnFamily' smart constructor.
645717data BigtableColumnFamily = BigtableColumnFamily'
@@ -701,7 +773,7 @@ bcfOnlyReadLatest
701773-- | [Optional] The type to convert the value in cells of this column family.
702774-- The values are expected to be encoded using HBase Bytes.toBytes function
703775-- when using the BINARY encoding value. Following BigQuery types are
704−-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut
776+-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default
705777-- type is BYTES. This can be overridden for a specific column by listing
706778-- that column in \'columns\' and specifying a type for it.
707779bcfType :: Lens' BigtableColumnFamily (Maybe Text)
@@ -848,6 +920,46 @@ instance ToJSON JobStatistics where
848920 ("query" .=) <$> _jsQuery,
849921 ("extract" .=) <$> _jsExtract])
850922
923+-- | [Experimental] The labels associated with this job. You can use these to
924+-- organize and group your jobs. Label keys and values can be no longer
925+-- than 63 characters, can only contain letters, numeric characters,
926+-- underscores and dashes. International characters are allowed. Label
927+-- values are optional. Label keys must start with a letter and must be
928+-- unique within a dataset. Both keys and values are additionally
929+-- constrained to be \<= 128 bytes in size.
930+--
931+-- /See:/ 'jobConfigurationLabels' smart constructor.
932+newtype JobConfigurationLabels = JobConfigurationLabels'
933+ { _jclAddtional :: HashMap Text Text
934+ } deriving (Eq,Show,Data,Typeable,Generic)
935+
936+-- | Creates a value of 'JobConfigurationLabels' with the minimum fields required to make a request.
937+--
938+-- Use one of the following lenses to modify other fields as desired:
939+--
940+-- * 'jclAddtional'
941+jobConfigurationLabels
942+ :: HashMap Text Text -- ^ 'jclAddtional'
943+ -> JobConfigurationLabels
944+jobConfigurationLabels pJclAddtional_ =
945+ JobConfigurationLabels'
946+ { _jclAddtional = _Coerce # pJclAddtional_
947+ }
948+
949+jclAddtional :: Lens' JobConfigurationLabels (HashMap Text Text)
950+jclAddtional
951+ = lens _jclAddtional (\ s a -> s{_jclAddtional = a})
952+ . _Coerce
953+
954+instance FromJSON JobConfigurationLabels where
955+ parseJSON
956+ = withObject "JobConfigurationLabels"
957+ (\ o ->
958+ JobConfigurationLabels' <$> (parseJSONObject o))
959+
960+instance ToJSON JobConfigurationLabels where
961+ toJSON = toJSON . _jclAddtional
962+
851963--
852964-- /See:/ 'dataSet' smart constructor.
853965data DataSet = DataSet'
@@ -861,6 +973,7 @@ data DataSet = DataSet'
861973 , _dsDataSetReference :: !(Maybe DataSetReference)
862974 , _dsSelfLink :: !(Maybe Text)
863975 , _dsId :: !(Maybe Text)
976+ , _dsLabels :: !(Maybe DataSetLabels)
864977 , _dsDefaultTableExpirationMs :: !(Maybe (Textual Int64))
865978 , _dsDescription :: !(Maybe Text)
866979 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -889,6 +1002,8 @@ data DataSet = DataSet'
8891002--
8901003-- * 'dsId'
8911004--
1005+-- * 'dsLabels'
1006+--
8921007-- * 'dsDefaultTableExpirationMs'
8931008--
8941009-- * 'dsDescription'
@@ -906,6 +1021,7 @@ dataSet =
9061021 , _dsDataSetReference = Nothing
9071022 , _dsSelfLink = Nothing
9081023 , _dsId = Nothing
1024+ , _dsLabels = Nothing
9091025 , _dsDefaultTableExpirationMs = Nothing
9101026 , _dsDescription = Nothing
9111027 }
@@ -979,6 +1095,13 @@ dsSelfLink
9791095dsId :: Lens' DataSet (Maybe Text)
9801096dsId = lens _dsId (\ s a -> s{_dsId = a})
9811097
1098+-- | [Experimental] The labels associated with this dataset. You can use
1099+-- these to organize and group your datasets. You can set this property
1100+-- when inserting or updating a dataset. See Labeling Datasets for more
1101+-- information.
1102+dsLabels :: Lens' DataSet (Maybe DataSetLabels)
1103+dsLabels = lens _dsLabels (\ s a -> s{_dsLabels = a})
1104+
9821105-- | [Optional] The default lifetime of all tables in the dataset, in
9831106-- milliseconds. The minimum value is 3600000 milliseconds (one hour). Once
9841107-- this property is set, all newly-created tables in the dataset will have
@@ -1016,6 +1139,7 @@ instance FromJSON DataSet where
10161139 <*> (o .:? "datasetReference")
10171140 <*> (o .:? "selfLink")
10181141 <*> (o .:? "id")
1142+ <*> (o .:? "labels")
10191143 <*> (o .:? "defaultTableExpirationMs")
10201144 <*> (o .:? "description"))
10211145
@@ -1031,6 +1155,7 @@ instance ToJSON DataSet where
10311155 ("lastModifiedTime" .=) <$> _dsLastModifiedTime,
10321156 ("datasetReference" .=) <$> _dsDataSetReference,
10331157 ("selfLink" .=) <$> _dsSelfLink, ("id" .=) <$> _dsId,
1158+ ("labels" .=) <$> _dsLabels,
10341159 ("defaultTableExpirationMs" .=) <$>
10351160 _dsDefaultTableExpirationMs,
10361161 ("description" .=) <$> _dsDescription])
@@ -1038,7 +1163,8 @@ instance ToJSON DataSet where
10381163--
10391164-- /See:/ 'bigtableOptions' smart constructor.
10401165data BigtableOptions = BigtableOptions'
1041− { _boIgnoreUnspecifiedColumnFamilies :: !(Maybe Bool)
1166+ { _boReadRowkeyAsString :: !(Maybe Bool)
1167+ , _boIgnoreUnspecifiedColumnFamilies :: !(Maybe Bool)
10421168 , _boColumnFamilies :: !(Maybe [BigtableColumnFamily])
10431169 } deriving (Eq,Show,Data,Typeable,Generic)
10441170
@@ -1046,6 +1172,8 @@ data BigtableOptions = BigtableOptions'
10461172--
10471173-- Use one of the following lenses to modify other fields as desired:
10481174--
1175+-- * 'boReadRowkeyAsString'
1176+--
10491177-- * 'boIgnoreUnspecifiedColumnFamilies'
10501178--
10511179-- * 'boColumnFamilies'
@@ -1053,10 +1181,20 @@ bigtableOptions
10531181 :: BigtableOptions
10541182bigtableOptions =
10551183 BigtableOptions'
1056− { _boIgnoreUnspecifiedColumnFamilies = Nothing
1184+ { _boReadRowkeyAsString = Nothing
1185+ , _boIgnoreUnspecifiedColumnFamilies = Nothing
10571186 , _boColumnFamilies = Nothing
10581187 }
10591188
1189+-- | [Optional] If field is true, then the rowkey column families will be
1190+-- read and converted to string. Otherwise they are read with BYTES type
1191+-- values and users need to manually cast them with CAST if necessary. The
1192+-- default value is false.
1193+boReadRowkeyAsString :: Lens' BigtableOptions (Maybe Bool)
1194+boReadRowkeyAsString
1195+ = lens _boReadRowkeyAsString
1196+ (\ s a -> s{_boReadRowkeyAsString = a})
1197+
10601198-- | [Optional] If field is true, then the column families that are not
10611199-- specified in columnFamilies list are not exposed in the table schema.
10621200-- Otherwise, they are read with BYTES type values. The default value is
@@ -1085,14 +1223,16 @@ instance FromJSON BigtableOptions where
10851223 = withObject "BigtableOptions"
10861224 (\ o ->
10871225 BigtableOptions' <$>
1088− (o .:? "ignoreUnspecifiedColumnFamilies") <*>
1089− (o .:? "columnFamilies" .!= mempty))
1226+ (o .:? "readRowkeyAsString") <*>
1227+ (o .:? "ignoreUnspecifiedColumnFamilies")
1228+ <*> (o .:? "columnFamilies" .!= mempty))
10901229
10911230instance ToJSON BigtableOptions where
10921231 toJSON BigtableOptions'{..}
10931232 = object
10941233 (catMaybes
1095− [("ignoreUnspecifiedColumnFamilies" .=) <$>
1234+ [("readRowkeyAsString" .=) <$> _boReadRowkeyAsString,
1235+ ("ignoreUnspecifiedColumnFamilies" .=) <$>
10961236 _boIgnoreUnspecifiedColumnFamilies,
10971237 ("columnFamilies" .=) <$> _boColumnFamilies])
10981238
@@ -1383,8 +1523,8 @@ tfsName :: Lens' TableFieldSchema (Maybe Text)
13831523tfsName = lens _tfsName (\ s a -> s{_tfsName = a})
13841524
13851525-- | [Required] The field data type. Possible values include STRING, BYTES,
1386−-- INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates
1387−-- that the field contains a nested schema).
1526+-- INTEGER, FLOAT, BOOLEAN, TIMESTAMP, DATE, TIME, DATETIME, or RECORD
1527+-- (where RECORD indicates that the field contains a nested schema).
13881528tfsType :: Lens' TableFieldSchema (Maybe Text)
13891529tfsType = lens _tfsType (\ s a -> s{_tfsType = a})
13901530
@@ -1430,6 +1570,7 @@ data GetQueryResultsResponse = GetQueryResultsResponse'
14301570 , _gqrrTotalBytesProcessed :: !(Maybe (Textual Int64))
14311571 , _gqrrRows :: !(Maybe [TableRow])
14321572 , _gqrrPageToken :: !(Maybe Text)
1573+ , _gqrrNumDmlAffectedRows :: !(Maybe (Textual Int64))
14331574 , _gqrrTotalRows :: !(Maybe (Textual Word64))
14341575 , _gqrrErrors :: !(Maybe [ErrorProto])
14351576 , _gqrrJobComplete :: !(Maybe Bool)
@@ -1454,6 +1595,8 @@ data GetQueryResultsResponse = GetQueryResultsResponse'
14541595--
14551596-- * 'gqrrPageToken'
14561597--
1598+-- * 'gqrrNumDmlAffectedRows'
1599+--
14571600-- * 'gqrrTotalRows'
14581601--
14591602-- * 'gqrrErrors'
@@ -1472,6 +1615,7 @@ getQueryResultsResponse =
14721615 , _gqrrTotalBytesProcessed = Nothing
14731616 , _gqrrRows = Nothing
14741617 , _gqrrPageToken = Nothing
1618+ , _gqrrNumDmlAffectedRows = Nothing
14751619 , _gqrrTotalRows = Nothing
14761620 , _gqrrErrors = Nothing
14771621 , _gqrrJobComplete = Nothing
@@ -1526,6 +1670,14 @@ gqrrPageToken
15261670 = lens _gqrrPageToken
15271671 (\ s a -> s{_gqrrPageToken = a})
15281672
1673+-- | [Output-only, Experimental] The number of rows affected by a DML
1674+-- statement. Present only for DML statements INSERT, UPDATE or DELETE.
1675+gqrrNumDmlAffectedRows :: Lens' GetQueryResultsResponse (Maybe Int64)
1676+gqrrNumDmlAffectedRows
1677+ = lens _gqrrNumDmlAffectedRows
1678+ (\ s a -> s{_gqrrNumDmlAffectedRows = a})
1679+ . mapping _Coerce
1680+
15291681-- | The total number of rows in the complete query result set, which can be
15301682-- more than the number of rows in this single page of results. Present
15311683-- only when the query completes successfully.
@@ -1568,6 +1720,7 @@ instance FromJSON GetQueryResultsResponse where
15681720 <*> (o .:? "totalBytesProcessed")
15691721 <*> (o .:? "rows" .!= mempty)
15701722 <*> (o .:? "pageToken")
1723+ <*> (o .:? "numDmlAffectedRows")
15711724 <*> (o .:? "totalRows")
15721725 <*> (o .:? "errors" .!= mempty)
15731726 <*> (o .:? "jobComplete")
@@ -1585,6 +1738,8 @@ instance ToJSON GetQueryResultsResponse where
15851738 _gqrrTotalBytesProcessed,
15861739 ("rows" .=) <$> _gqrrRows,
15871740 ("pageToken" .=) <$> _gqrrPageToken,
1741+ ("numDmlAffectedRows" .=) <$>
1742+ _gqrrNumDmlAffectedRows,
15881743 ("totalRows" .=) <$> _gqrrTotalRows,
15891744 ("errors" .=) <$> _gqrrErrors,
15901745 ("jobComplete" .=) <$> _gqrrJobComplete,
@@ -1668,15 +1823,17 @@ instance ToJSON DataSetList where
16681823--
16691824-- /See:/ 'queryRequest' smart constructor.
16701825data QueryRequest = QueryRequest'
1671− { _qrUseQueryCache :: !Bool
1672− , _qrPreserveNulls :: !(Maybe Bool)
1673− , _qrKind :: !Text
1674− , _qrQuery :: !(Maybe Text)
1675− , _qrTimeoutMs :: !(Maybe (Textual Word32))
1676− , _qrUseLegacySQL :: !(Maybe Bool)
1677− , _qrDryRun :: !(Maybe Bool)
1678− , _qrMaxResults :: !(Maybe (Textual Word32))
1679− , _qrDefaultDataSet :: !(Maybe DataSetReference)
1826+ { _qrUseQueryCache :: !Bool
1827+ , _qrPreserveNulls :: !(Maybe Bool)
1828+ , _qrKind :: !Text
1829+ , _qrQueryParameters :: !(Maybe [QueryParameter])
1830+ , _qrQuery :: !(Maybe Text)
1831+ , _qrParameterMode :: !(Maybe Text)
1832+ , _qrTimeoutMs :: !(Maybe (Textual Word32))
1833+ , _qrUseLegacySQL :: !Bool
1834+ , _qrDryRun :: !(Maybe Bool)
1835+ , _qrMaxResults :: !(Maybe (Textual Word32))
1836+ , _qrDefaultDataSet :: !(Maybe DataSetReference)
16801837 } deriving (Eq,Show,Data,Typeable,Generic)
16811838
16821839-- | Creates a value of 'QueryRequest' with the minimum fields required to make a request.
@@ -1689,8 +1846,12 @@ data QueryRequest = QueryRequest'
16891846--
16901847-- * 'qrKind'
16911848--
1849+-- * 'qrQueryParameters'
1850+--
16921851-- * 'qrQuery'
16931852--
1853+-- * 'qrParameterMode'
1854+--
16941855-- * 'qrTimeoutMs'
16951856--
16961857-- * 'qrUseLegacySQL'
@@ -1707,9 +1868,11 @@ queryRequest =
17071868 { _qrUseQueryCache = True
17081869 , _qrPreserveNulls = Nothing
17091870 , _qrKind = "bigquery#queryRequest"
1871+ , _qrQueryParameters = Nothing
17101872 , _qrQuery = Nothing
1873+ , _qrParameterMode = Nothing
17111874 , _qrTimeoutMs = Nothing
1712− , _qrUseLegacySQL = Nothing
1875+ , _qrUseLegacySQL = True
17131876 , _qrDryRun = Nothing
17141877 , _qrMaxResults = Nothing
17151878 , _qrDefaultDataSet = Nothing
@@ -1733,12 +1896,27 @@ qrPreserveNulls
17331896qrKind :: Lens' QueryRequest Text
17341897qrKind = lens _qrKind (\ s a -> s{_qrKind = a})
17351898
1899+-- | [Experimental] Query parameters for Standard SQL queries.
1900+qrQueryParameters :: Lens' QueryRequest [QueryParameter]
1901+qrQueryParameters
1902+ = lens _qrQueryParameters
1903+ (\ s a -> s{_qrQueryParameters = a})
1904+ . _Default
1905+ . _Coerce
1906+
17361907-- | [Required] A query string, following the BigQuery query syntax, of the
17371908-- query to execute. Example: \"SELECT count(f1) FROM
17381909-- [myProjectId:myDatasetId.myTableId]\".
17391910qrQuery :: Lens' QueryRequest (Maybe Text)
17401911qrQuery = lens _qrQuery (\ s a -> s{_qrQuery = a})
17411912
1913+-- | [Experimental] Standard SQL only. Whether to use positional (?) or named
1914+-- (\'myparam) query parameters in this query.
1915+qrParameterMode :: Lens' QueryRequest (Maybe Text)
1916+qrParameterMode
1917+ = lens _qrParameterMode
1918+ (\ s a -> s{_qrParameterMode = a})
1919+
17421920-- | [Optional] How long to wait for the query to complete, in milliseconds,
17431921-- before the request times out and returns. Note that this is only a
17441922-- timeout for the request, not the query. If the query takes longer to run
@@ -1758,7 +1936,7 @@ qrTimeoutMs
17581936-- is set to false, the values of allowLargeResults and flattenResults are
17591937-- ignored; query will be run as if allowLargeResults is true and
17601938-- flattenResults is false.
1761−qrUseLegacySQL :: Lens' QueryRequest (Maybe Bool)
1939+qrUseLegacySQL :: Lens' QueryRequest Bool
17621940qrUseLegacySQL
17631941 = lens _qrUseLegacySQL
17641942 (\ s a -> s{_qrUseLegacySQL = a})
@@ -1797,9 +1975,11 @@ instance FromJSON QueryRequest where
17971975 (o .:? "useQueryCache" .!= True) <*>
17981976 (o .:? "preserveNulls")
17991977 <*> (o .:? "kind" .!= "bigquery#queryRequest")
1978+ <*> (o .:? "queryParameters" .!= mempty)
18001979 <*> (o .:? "query")
1980+ <*> (o .:? "parameterMode")
18011981 <*> (o .:? "timeoutMs")
1802− <*> (o .:? "useLegacySql")
1982+ <*> (o .:? "useLegacySql" .!= True)
18031983 <*> (o .:? "dryRun")
18041984 <*> (o .:? "maxResults")
18051985 <*> (o .:? "defaultDataset"))
@@ -1810,13 +1990,75 @@ instance ToJSON QueryRequest where
18101990 (catMaybes
18111991 [Just ("useQueryCache" .= _qrUseQueryCache),
18121992 ("preserveNulls" .=) <$> _qrPreserveNulls,
1813− Just ("kind" .= _qrKind), ("query" .=) <$> _qrQuery,
1993+ Just ("kind" .= _qrKind),
1994+ ("queryParameters" .=) <$> _qrQueryParameters,
1995+ ("query" .=) <$> _qrQuery,
1996+ ("parameterMode" .=) <$> _qrParameterMode,
18141997 ("timeoutMs" .=) <$> _qrTimeoutMs,
1815− ("useLegacySql" .=) <$> _qrUseLegacySQL,
1998+ Just ("useLegacySql" .= _qrUseLegacySQL),
18161999 ("dryRun" .=) <$> _qrDryRun,
18172000 ("maxResults" .=) <$> _qrMaxResults,
18182001 ("defaultDataset" .=) <$> _qrDefaultDataSet])
18192002
2003+--
2004+-- /See:/ 'queryParameter' smart constructor.
2005+data QueryParameter = QueryParameter'
2006+ { _qpParameterValue :: !(Maybe QueryParameterValue)
2007+ , _qpParameterType :: !(Maybe QueryParameterType)
2008+ , _qpName :: !(Maybe Text)
2009+ } deriving (Eq,Show,Data,Typeable,Generic)
2010+
2011+-- | Creates a value of 'QueryParameter' with the minimum fields required to make a request.
2012+--
2013+-- Use one of the following lenses to modify other fields as desired:
2014+--
2015+-- * 'qpParameterValue'
2016+--
2017+-- * 'qpParameterType'
2018+--
2019+-- * 'qpName'
2020+queryParameter
2021+ :: QueryParameter
2022+queryParameter =
2023+ QueryParameter'
2024+ { _qpParameterValue = Nothing
2025+ , _qpParameterType = Nothing
2026+ , _qpName = Nothing
2027+ }
2028+
2029+-- | [Required] The value of this parameter.
2030+qpParameterValue :: Lens' QueryParameter (Maybe QueryParameterValue)
2031+qpParameterValue
2032+ = lens _qpParameterValue
2033+ (\ s a -> s{_qpParameterValue = a})
2034+
2035+-- | [Required] The type of this parameter.
2036+qpParameterType :: Lens' QueryParameter (Maybe QueryParameterType)
2037+qpParameterType
2038+ = lens _qpParameterType
2039+ (\ s a -> s{_qpParameterType = a})
2040+
2041+-- | [Optional] If unset, this is a positional parameter. Otherwise, should
2042+-- be unique within a query.
2043+qpName :: Lens' QueryParameter (Maybe Text)
2044+qpName = lens _qpName (\ s a -> s{_qpName = a})
2045+
2046+instance FromJSON QueryParameter where
2047+ parseJSON
2048+ = withObject "QueryParameter"
2049+ (\ o ->
2050+ QueryParameter' <$>
2051+ (o .:? "parameterValue") <*> (o .:? "parameterType")
2052+ <*> (o .:? "name"))
2053+
2054+instance ToJSON QueryParameter where
2055+ toJSON QueryParameter'{..}
2056+ = object
2057+ (catMaybes
2058+ [("parameterValue" .=) <$> _qpParameterValue,
2059+ ("parameterType" .=) <$> _qpParameterType,
2060+ ("name" .=) <$> _qpName])
2061+
18202062--
18212063-- /See:/ 'jobStatistics4' smart constructor.
18222064newtype JobStatistics4 = JobStatistics4'
@@ -2093,6 +2335,7 @@ data JobConfigurationLoad = JobConfigurationLoad'
20932335 , _jclAllowJaggedRows :: !(Maybe Bool)
20942336 , _jclSchemaInline :: !(Maybe Text)
20952337 , _jclIgnoreUnknownValues :: !(Maybe Bool)
2338+ , _jclSchemaUpdateOptions :: !(Maybe [Text])
20962339 , _jclCreateDisPosition :: !(Maybe Text)
20972340 , _jclSchemaInlineFormat :: !(Maybe Text)
20982341 , _jclAllowQuotedNewlines :: !(Maybe Bool)
@@ -2124,6 +2367,8 @@ data JobConfigurationLoad = JobConfigurationLoad'
21242367--
21252368-- * 'jclIgnoreUnknownValues'
21262369--
2370+-- * 'jclSchemaUpdateOptions'
2371+--
21272372-- * 'jclCreateDisPosition'
21282373--
21292374-- * 'jclSchemaInlineFormat'
@@ -2156,6 +2401,7 @@ jobConfigurationLoad =
21562401 , _jclAllowJaggedRows = Nothing
21572402 , _jclSchemaInline = Nothing
21582403 , _jclIgnoreUnknownValues = Nothing
2404+ , _jclSchemaUpdateOptions = Nothing
21592405 , _jclCreateDisPosition = Nothing
21602406 , _jclSchemaInlineFormat = Nothing
21612407 , _jclAllowQuotedNewlines = Nothing
@@ -2241,6 +2487,22 @@ jclIgnoreUnknownValues
22412487 = lens _jclIgnoreUnknownValues
22422488 (\ s a -> s{_jclIgnoreUnknownValues = a})
22432489
2490+-- | [Experimental] Allows the schema of the desitination table to be updated
2491+-- as a side effect of the load job. Schema update options are supported in
2492+-- two cases: when writeDisposition is WRITE_APPEND; when writeDisposition
2493+-- is WRITE_TRUNCATE and the destination table is a partition of a table,
2494+-- specified by partition decorators. For normal tables, WRITE_TRUNCATE
2495+-- will always overwrite the schema. One or more of the following values
2496+-- are specified: ALLOW_FIELD_ADDITION: allow adding a nullable field to
2497+-- the schema. ALLOW_FIELD_RELAXATION: allow relaxing a required field in
2498+-- the original schema to nullable.
2499+jclSchemaUpdateOptions :: Lens' JobConfigurationLoad [Text]
2500+jclSchemaUpdateOptions
2501+ = lens _jclSchemaUpdateOptions
2502+ (\ s a -> s{_jclSchemaUpdateOptions = a})
2503+ . _Default
2504+ . _Coerce
2505+
22442506-- | [Optional] Specifies whether the job is allowed to create new tables.
22452507-- The following values are supported: CREATE_IF_NEEDED: If the table does
22462508-- not exist, BigQuery creates the table. CREATE_NEVER: The table must
@@ -2350,6 +2612,7 @@ instance FromJSON JobConfigurationLoad where
23502612 <*> (o .:? "allowJaggedRows")
23512613 <*> (o .:? "schemaInline")
23522614 <*> (o .:? "ignoreUnknownValues")
2615+ <*> (o .:? "schemaUpdateOptions" .!= mempty)
23532616 <*> (o .:? "createDisposition")
23542617 <*> (o .:? "schemaInlineFormat")
23552618 <*> (o .:? "allowQuotedNewlines")
@@ -2374,6 +2637,8 @@ instance ToJSON JobConfigurationLoad where
23742637 ("schemaInline" .=) <$> _jclSchemaInline,
23752638 ("ignoreUnknownValues" .=) <$>
23762639 _jclIgnoreUnknownValues,
2640+ ("schemaUpdateOptions" .=) <$>
2641+ _jclSchemaUpdateOptions,
23772642 ("createDisposition" .=) <$> _jclCreateDisPosition,
23782643 ("schemaInlineFormat" .=) <$> _jclSchemaInlineFormat,
23792644 ("allowQuotedNewlines" .=) <$>
@@ -2689,7 +2954,7 @@ bcOnlyReadLatest
26892954-- | [Optional] The type to convert the value in cells of this column. The
26902955-- values are expected to be encoded using HBase Bytes.toBytes function
26912956-- when using the BINARY encoding value. Following BigQuery types are
2692−-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Defaut
2957+-- allowed (case-sensitive) - BYTES STRING INTEGER FLOAT BOOLEAN Default
26932958-- type is BYTES. \'type\' can also be set at the column family level.
26942959-- However, the setting at this level takes precedence if \'type\' is set
26952960-- at both levels.
@@ -3007,6 +3272,80 @@ instance ToJSON TimePartitioning where
30073272 [("expirationMs" .=) <$> _tpExpirationMs,
30083273 ("type" .=) <$> _tpType])
30093274
3275+-- | [Optional] The struct field values, in order of the struct type\'s
3276+-- declaration.
3277+--
3278+-- /See:/ 'queryParameterValueStructValues' smart constructor.
3279+newtype QueryParameterValueStructValues = QueryParameterValueStructValues'
3280+ { _qpvsvAddtional :: HashMap Text QueryParameterValue
3281+ } deriving (Eq,Show,Data,Typeable,Generic)
3282+
3283+-- | Creates a value of 'QueryParameterValueStructValues' with the minimum fields required to make a request.
3284+--
3285+-- Use one of the following lenses to modify other fields as desired:
3286+--
3287+-- * 'qpvsvAddtional'
3288+queryParameterValueStructValues
3289+ :: HashMap Text QueryParameterValue -- ^ 'qpvsvAddtional'
3290+ -> QueryParameterValueStructValues
3291+queryParameterValueStructValues pQpvsvAddtional_ =
3292+ QueryParameterValueStructValues'
3293+ { _qpvsvAddtional = _Coerce # pQpvsvAddtional_
3294+ }
3295+
3296+qpvsvAddtional :: Lens' QueryParameterValueStructValues (HashMap Text QueryParameterValue)
3297+qpvsvAddtional
3298+ = lens _qpvsvAddtional
3299+ (\ s a -> s{_qpvsvAddtional = a})
3300+ . _Coerce
3301+
3302+instance FromJSON QueryParameterValueStructValues
3303+ where
3304+ parseJSON
3305+ = withObject "QueryParameterValueStructValues"
3306+ (\ o ->
3307+ QueryParameterValueStructValues' <$>
3308+ (parseJSONObject o))
3309+
3310+instance ToJSON QueryParameterValueStructValues where
3311+ toJSON = toJSON . _qpvsvAddtional
3312+
3313+-- | [Experimental] The labels associated with this dataset. You can use
3314+-- these to organize and group your datasets. You can set this property
3315+-- when inserting or updating a dataset. See Labeling Datasets for more
3316+-- information.
3317+--
3318+-- /See:/ 'dataSetLabels' smart constructor.
3319+newtype DataSetLabels = DataSetLabels'
3320+ { _dslAddtional :: HashMap Text Text
3321+ } deriving (Eq,Show,Data,Typeable,Generic)
3322+
3323+-- | Creates a value of 'DataSetLabels' with the minimum fields required to make a request.
3324+--
3325+-- Use one of the following lenses to modify other fields as desired:
3326+--
3327+-- * 'dslAddtional'
3328+dataSetLabels
3329+ :: HashMap Text Text -- ^ 'dslAddtional'
3330+ -> DataSetLabels
3331+dataSetLabels pDslAddtional_ =
3332+ DataSetLabels'
3333+ { _dslAddtional = _Coerce # pDslAddtional_
3334+ }
3335+
3336+dslAddtional :: Lens' DataSetLabels (HashMap Text Text)
3337+dslAddtional
3338+ = lens _dslAddtional (\ s a -> s{_dslAddtional = a})
3339+ . _Coerce
3340+
3341+instance FromJSON DataSetLabels where
3342+ parseJSON
3343+ = withObject "DataSetLabels"
3344+ (\ o -> DataSetLabels' <$> (parseJSONObject o))
3345+
3346+instance ToJSON DataSetLabels where
3347+ toJSON = toJSON . _dslAddtional
3348+
30103349--
30113350-- /See:/ 'jobConfiguration' smart constructor.
30123351data JobConfiguration = JobConfiguration'
@@ -3014,6 +3353,7 @@ data JobConfiguration = JobConfiguration'
30143353 , _jcLoad :: !(Maybe JobConfigurationLoad)
30153354 , _jcQuery :: !(Maybe JobConfigurationQuery)
30163355 , _jcExtract :: !(Maybe JobConfigurationExtract)
3356+ , _jcLabels :: !(Maybe JobConfigurationLabels)
30173357 , _jcDryRun :: !(Maybe Bool)
30183358 } deriving (Eq,Show,Data,Typeable,Generic)
30193359
@@ -3029,6 +3369,8 @@ data JobConfiguration = JobConfiguration'
30293369--
30303370-- * 'jcExtract'
30313371--
3372+-- * 'jcLabels'
3373+--
30323374-- * 'jcDryRun'
30333375jobConfiguration
30343376 :: JobConfiguration
@@ -3038,6 +3380,7 @@ jobConfiguration =
30383380 , _jcLoad = Nothing
30393381 , _jcQuery = Nothing
30403382 , _jcExtract = Nothing
3383+ , _jcLabels = Nothing
30413384 , _jcDryRun = Nothing
30423385 }
30433386
@@ -3058,6 +3401,16 @@ jcExtract :: Lens' JobConfiguration (Maybe JobConfigurationExtract)
30583401jcExtract
30593402 = lens _jcExtract (\ s a -> s{_jcExtract = a})
30603403
3404+-- | [Experimental] The labels associated with this job. You can use these to
3405+-- organize and group your jobs. Label keys and values can be no longer
3406+-- than 63 characters, can only contain letters, numeric characters,
3407+-- underscores and dashes. International characters are allowed. Label
3408+-- values are optional. Label keys must start with a letter and must be
3409+-- unique within a dataset. Both keys and values are additionally
3410+-- constrained to be \<= 128 bytes in size.
3411+jcLabels :: Lens' JobConfiguration (Maybe JobConfigurationLabels)
3412+jcLabels = lens _jcLabels (\ s a -> s{_jcLabels = a})
3413+
30613414-- | [Optional] If set, don\'t actually run this job. A valid query will
30623415-- return a mostly empty response with some processing statistics, while an
30633416-- invalid query will return the same error it would if it wasn\'t a dry
@@ -3072,6 +3425,7 @@ instance FromJSON JobConfiguration where
30723425 JobConfiguration' <$>
30733426 (o .:? "copy") <*> (o .:? "load") <*> (o .:? "query")
30743427 <*> (o .:? "extract")
3428+ <*> (o .:? "labels")
30753429 <*> (o .:? "dryRun"))
30763430
30773431instance ToJSON JobConfiguration where
@@ -3081,6 +3435,7 @@ instance ToJSON JobConfiguration where
30813435 [("copy" .=) <$> _jcCopy, ("load" .=) <$> _jcLoad,
30823436 ("query" .=) <$> _jcQuery,
30833437 ("extract" .=) <$> _jcExtract,
3438+ ("labels" .=) <$> _jcLabels,
30843439 ("dryRun" .=) <$> _jcDryRun])
30853440
30863441--
@@ -3463,12 +3818,16 @@ data JobConfigurationQuery = JobConfigurationQuery'
34633818 , _jcqUseQueryCache :: !Bool
34643819 , _jcqPreserveNulls :: !(Maybe Bool)
34653820 , _jcqTableDefinitions :: !(Maybe JobConfigurationQueryTableDefinitions)
3821+ , _jcqQueryParameters :: !(Maybe [QueryParameter])
3822+ , _jcqSchemaUpdateOptions :: !(Maybe [Text])
3823+ , _jcqMaximumBytesBilled :: !(Maybe (Textual Int64))
34663824 , _jcqCreateDisPosition :: !(Maybe Text)
34673825 , _jcqUserDefinedFunctionResources :: !(Maybe [UserDefinedFunctionResource])
34683826 , _jcqAllowLargeResults :: !(Maybe Bool)
34693827 , _jcqMaximumBillingTier :: !(Textual Int32)
34703828 , _jcqQuery :: !(Maybe Text)
34713829 , _jcqFlattenResults :: !Bool
3830+ , _jcqParameterMode :: !(Maybe Text)
34723831 , _jcqUseLegacySQL :: !(Maybe Bool)
34733832 , _jcqDefaultDataSet :: !(Maybe DataSetReference)
34743833 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -3489,6 +3848,12 @@ data JobConfigurationQuery = JobConfigurationQuery'
34893848--
34903849-- * 'jcqTableDefinitions'
34913850--
3851+-- * 'jcqQueryParameters'
3852+--
3853+-- * 'jcqSchemaUpdateOptions'
3854+--
3855+-- * 'jcqMaximumBytesBilled'
3856+--
34923857-- * 'jcqCreateDisPosition'
34933858--
34943859-- * 'jcqUserDefinedFunctionResources'
@@ -3501,6 +3866,8 @@ data JobConfigurationQuery = JobConfigurationQuery'
35013866--
35023867-- * 'jcqFlattenResults'
35033868--
3869+-- * 'jcqParameterMode'
3870+--
35043871-- * 'jcqUseLegacySQL'
35053872--
35063873-- * 'jcqDefaultDataSet'
@@ -3514,12 +3881,16 @@ jobConfigurationQuery =
35143881 , _jcqUseQueryCache = True
35153882 , _jcqPreserveNulls = Nothing
35163883 , _jcqTableDefinitions = Nothing
3884+ , _jcqQueryParameters = Nothing
3885+ , _jcqSchemaUpdateOptions = Nothing
3886+ , _jcqMaximumBytesBilled = Nothing
35173887 , _jcqCreateDisPosition = Nothing
35183888 , _jcqUserDefinedFunctionResources = Nothing
35193889 , _jcqAllowLargeResults = Nothing
35203890 , _jcqMaximumBillingTier = 1
35213891 , _jcqQuery = Nothing
35223892 , _jcqFlattenResults = True
3893+ , _jcqParameterMode = Nothing
35233894 , _jcqUseLegacySQL = Nothing
35243895 , _jcqDefaultDataSet = Nothing
35253896 }
@@ -3576,6 +3947,39 @@ jcqTableDefinitions
35763947 = lens _jcqTableDefinitions
35773948 (\ s a -> s{_jcqTableDefinitions = a})
35783949
3950+-- | Query parameters for standard SQL queries.
3951+jcqQueryParameters :: Lens' JobConfigurationQuery [QueryParameter]
3952+jcqQueryParameters
3953+ = lens _jcqQueryParameters
3954+ (\ s a -> s{_jcqQueryParameters = a})
3955+ . _Default
3956+ . _Coerce
3957+
3958+-- | [Experimental] Allows the schema of the destination table to be updated
3959+-- as a side effect of the query job. Schema update options are supported
3960+-- in two cases: when writeDisposition is WRITE_APPEND; when
3961+-- writeDisposition is WRITE_TRUNCATE and the destination table is a
3962+-- partition of a table, specified by partition decorators. For normal
3963+-- tables, WRITE_TRUNCATE will always overwrite the schema. One or more of
3964+-- the following values are specified: ALLOW_FIELD_ADDITION: allow adding a
3965+-- nullable field to the schema. ALLOW_FIELD_RELAXATION: allow relaxing a
3966+-- required field in the original schema to nullable.
3967+jcqSchemaUpdateOptions :: Lens' JobConfigurationQuery [Text]
3968+jcqSchemaUpdateOptions
3969+ = lens _jcqSchemaUpdateOptions
3970+ (\ s a -> s{_jcqSchemaUpdateOptions = a})
3971+ . _Default
3972+ . _Coerce
3973+
3974+-- | [Optional] Limits the bytes billed for this job. Queries that will have
3975+-- bytes billed beyond this limit will fail (without incurring a charge).
3976+-- If unspecified, this will be set to your project default.
3977+jcqMaximumBytesBilled :: Lens' JobConfigurationQuery (Maybe Int64)
3978+jcqMaximumBytesBilled
3979+ = lens _jcqMaximumBytesBilled
3980+ (\ s a -> s{_jcqMaximumBytesBilled = a})
3981+ . mapping _Coerce
3982+
35793983-- | [Optional] Specifies whether the job is allowed to create new tables.
35803984-- The following values are supported: CREATE_IF_NEEDED: If the table does
35813985-- not exist, BigQuery creates the table. CREATE_NEVER: The table must
@@ -3624,6 +4028,13 @@ jcqFlattenResults
36244028 = lens _jcqFlattenResults
36254029 (\ s a -> s{_jcqFlattenResults = a})
36264030
4031+-- | [Experimental] Standard SQL only. Whether to use positional (?) or named
4032+-- (\'myparam) query parameters in this query.
4033+jcqParameterMode :: Lens' JobConfigurationQuery (Maybe Text)
4034+jcqParameterMode
4035+ = lens _jcqParameterMode
4036+ (\ s a -> s{_jcqParameterMode = a})
4037+
36274038-- | [Experimental] Specifies whether to use BigQuery\'s legacy SQL dialect
36284039-- for this query. The default value is true. If set to false, the query
36294040-- will use BigQuery\'s standard SQL:
@@ -3654,12 +4065,16 @@ instance FromJSON JobConfigurationQuery where
36544065 <*> (o .:? "useQueryCache" .!= True)
36554066 <*> (o .:? "preserveNulls")
36564067 <*> (o .:? "tableDefinitions")
4068+ <*> (o .:? "queryParameters" .!= mempty)
4069+ <*> (o .:? "schemaUpdateOptions" .!= mempty)
4070+ <*> (o .:? "maximumBytesBilled")
36574071 <*> (o .:? "createDisposition")
36584072 <*> (o .:? "userDefinedFunctionResources" .!= mempty)
36594073 <*> (o .:? "allowLargeResults")
36604074 <*> (o .:? "maximumBillingTier" .!= 1)
36614075 <*> (o .:? "query")
36624076 <*> (o .:? "flattenResults" .!= True)
4077+ <*> (o .:? "parameterMode")
36634078 <*> (o .:? "useLegacySql")
36644079 <*> (o .:? "defaultDataset"))
36654080
@@ -3673,6 +4088,10 @@ instance ToJSON JobConfigurationQuery where
36734088 Just ("useQueryCache" .= _jcqUseQueryCache),
36744089 ("preserveNulls" .=) <$> _jcqPreserveNulls,
36754090 ("tableDefinitions" .=) <$> _jcqTableDefinitions,
4091+ ("queryParameters" .=) <$> _jcqQueryParameters,
4092+ ("schemaUpdateOptions" .=) <$>
4093+ _jcqSchemaUpdateOptions,
4094+ ("maximumBytesBilled" .=) <$> _jcqMaximumBytesBilled,
36764095 ("createDisposition" .=) <$> _jcqCreateDisPosition,
36774096 ("userDefinedFunctionResources" .=) <$>
36784097 _jcqUserDefinedFunctionResources,
@@ -3681,6 +4100,7 @@ instance ToJSON JobConfigurationQuery where
36814100 ("maximumBillingTier" .= _jcqMaximumBillingTier),
36824101 ("query" .=) <$> _jcqQuery,
36834102 Just ("flattenResults" .= _jcqFlattenResults),
4103+ ("parameterMode" .=) <$> _jcqParameterMode,
36844104 ("useLegacySql" .=) <$> _jcqUseLegacySQL,
36854105 ("defaultDataset" .=) <$> _jcqDefaultDataSet])
36864106
@@ -3920,11 +4340,73 @@ instance ToJSON TableCell where
39204340 toJSON TableCell'{..}
39214341 = object (catMaybes [("v" .=) <$> _tcV])
39224342
4343+--
4344+-- /See:/ 'queryParameterValue' smart constructor.
4345+data QueryParameterValue = QueryParameterValue'
4346+ { _qpvStructValues :: !(Maybe QueryParameterValueStructValues)
4347+ , _qpvValue :: !(Maybe Text)
4348+ , _qpvArrayValues :: !(Maybe [QueryParameterValue])
4349+ } deriving (Eq,Show,Data,Typeable,Generic)
4350+
4351+-- | Creates a value of 'QueryParameterValue' with the minimum fields required to make a request.
4352+--
4353+-- Use one of the following lenses to modify other fields as desired:
4354+--
4355+-- * 'qpvStructValues'
4356+--
4357+-- * 'qpvValue'
4358+--
4359+-- * 'qpvArrayValues'
4360+queryParameterValue
4361+ :: QueryParameterValue
4362+queryParameterValue =
4363+ QueryParameterValue'
4364+ { _qpvStructValues = Nothing
4365+ , _qpvValue = Nothing
4366+ , _qpvArrayValues = Nothing
4367+ }
4368+
4369+-- | [Optional] The struct field values, in order of the struct type\'s
4370+-- declaration.
4371+qpvStructValues :: Lens' QueryParameterValue (Maybe QueryParameterValueStructValues)
4372+qpvStructValues
4373+ = lens _qpvStructValues
4374+ (\ s a -> s{_qpvStructValues = a})
4375+
4376+-- | [Optional] The value of this value, if a simple scalar type.
4377+qpvValue :: Lens' QueryParameterValue (Maybe Text)
4378+qpvValue = lens _qpvValue (\ s a -> s{_qpvValue = a})
4379+
4380+-- | [Optional] The array values, if this is an array type.
4381+qpvArrayValues :: Lens' QueryParameterValue [QueryParameterValue]
4382+qpvArrayValues
4383+ = lens _qpvArrayValues
4384+ (\ s a -> s{_qpvArrayValues = a})
4385+ . _Default
4386+ . _Coerce
4387+
4388+instance FromJSON QueryParameterValue where
4389+ parseJSON
4390+ = withObject "QueryParameterValue"
4391+ (\ o ->
4392+ QueryParameterValue' <$>
4393+ (o .:? "structValues") <*> (o .:? "value") <*>
4394+ (o .:? "arrayValues" .!= mempty))
4395+
4396+instance ToJSON QueryParameterValue where
4397+ toJSON QueryParameterValue'{..}
4398+ = object
4399+ (catMaybes
4400+ [("structValues" .=) <$> _qpvStructValues,
4401+ ("value" .=) <$> _qpvValue,
4402+ ("arrayValues" .=) <$> _qpvArrayValues])
4403+
39234404--
39244405-- /See:/ 'viewDefinition' smart constructor.
39254406data ViewDefinition = ViewDefinition'
39264407 { _vdUserDefinedFunctionResources :: !(Maybe [UserDefinedFunctionResource])
39274408 , _vdQuery :: !(Maybe Text)
4409+ , _vdUseLegacySQL :: !(Maybe Bool)
39284410 } deriving (Eq,Show,Data,Typeable,Generic)
39294411
39304412-- | Creates a value of 'ViewDefinition' with the minimum fields required to make a request.
@@ -3934,12 +4416,15 @@ data ViewDefinition = ViewDefinition'
39344416-- * 'vdUserDefinedFunctionResources'
39354417--
39364418-- * 'vdQuery'
4419+--
4420+-- * 'vdUseLegacySQL'
39374421viewDefinition
39384422 :: ViewDefinition
39394423viewDefinition =
39404424 ViewDefinition'
39414425 { _vdUserDefinedFunctionResources = Nothing
39424426 , _vdQuery = Nothing
4427+ , _vdUseLegacySQL = Nothing
39434428 }
39444429
39454430-- | [Experimental] Describes user-defined function resources used in the
@@ -3955,13 +4440,24 @@ vdUserDefinedFunctionResources
39554440vdQuery :: Lens' ViewDefinition (Maybe Text)
39564441vdQuery = lens _vdQuery (\ s a -> s{_vdQuery = a})
39574442
4443+-- | [Experimental] Specifies whether to use BigQuery\'s legacy SQL for this
4444+-- view. The default value is true. If set to false, the view will use
4445+-- BigQuery\'s standard SQL:
4446+-- https:\/\/cloud.google.com\/bigquery\/sql-reference\/ Queries and views
4447+-- that reference this view must use the same flag value.
4448+vdUseLegacySQL :: Lens' ViewDefinition (Maybe Bool)
4449+vdUseLegacySQL
4450+ = lens _vdUseLegacySQL
4451+ (\ s a -> s{_vdUseLegacySQL = a})
4452+
39584453instance FromJSON ViewDefinition where
39594454 parseJSON
39604455 = withObject "ViewDefinition"
39614456 (\ o ->
39624457 ViewDefinition' <$>
39634458 (o .:? "userDefinedFunctionResources" .!= mempty) <*>
3964− (o .:? "query"))
4459+ (o .:? "query")
4460+ <*> (o .:? "useLegacySql"))
39654461
39664462instance ToJSON ViewDefinition where
39674463 toJSON ViewDefinition'{..}
@@ -3969,7 +4465,8 @@ instance ToJSON ViewDefinition where
39694465 (catMaybes
39704466 [("userDefinedFunctionResources" .=) <$>
39714467 _vdUserDefinedFunctionResources,
3972− ("query" .=) <$> _vdQuery])
4468+ ("query" .=) <$> _vdQuery,
4469+ ("useLegacySql" .=) <$> _vdUseLegacySQL])
39734470
39744471--
39754472-- /See:/ 'userDefinedFunctionResource' smart constructor.
@@ -4025,13 +4522,15 @@ instance ToJSON UserDefinedFunctionResource where
40254522--
40264523-- /See:/ 'jobStatistics2' smart constructor.
40274524data JobStatistics2 = JobStatistics2'
4028− { _jSchema :: !(Maybe TableSchema)
4029− , _jTotalBytesProcessed :: !(Maybe (Textual Int64))
4030− , _jBillingTier :: !(Maybe (Textual Int32))
4031− , _jReferencedTables :: !(Maybe [TableReference])
4032− , _jQueryPlan :: !(Maybe [ExplainQueryStage])
4033− , _jCacheHit :: !(Maybe Bool)
4034− , _jTotalBytesBilled :: !(Maybe (Textual Int64))
4525+ { _jSchema :: !(Maybe TableSchema)
4526+ , _jTotalBytesProcessed :: !(Maybe (Textual Int64))
4527+ , _jBillingTier :: !(Maybe (Textual Int32))
4528+ , _jUndeclaredQueryParameters :: !(Maybe [QueryParameter])
4529+ , _jReferencedTables :: !(Maybe [TableReference])
4530+ , _jNumDmlAffectedRows :: !(Maybe (Textual Int64))
4531+ , _jQueryPlan :: !(Maybe [ExplainQueryStage])
4532+ , _jCacheHit :: !(Maybe Bool)
4533+ , _jTotalBytesBilled :: !(Maybe (Textual Int64))
40354534 } deriving (Eq,Show,Data,Typeable,Generic)
40364535
40374536-- | Creates a value of 'JobStatistics2' with the minimum fields required to make a request.
@@ -4044,8 +4543,12 @@ data JobStatistics2 = JobStatistics2'
40444543--
40454544-- * 'jBillingTier'
40464545--
4546+-- * 'jUndeclaredQueryParameters'
4547+--
40474548-- * 'jReferencedTables'
40484549--
4550+-- * 'jNumDmlAffectedRows'
4551+--
40494552-- * 'jQueryPlan'
40504553--
40514554-- * 'jCacheHit'
@@ -4058,7 +4561,9 @@ jobStatistics2 =
40584561 { _jSchema = Nothing
40594562 , _jTotalBytesProcessed = Nothing
40604563 , _jBillingTier = Nothing
4564+ , _jUndeclaredQueryParameters = Nothing
40614565 , _jReferencedTables = Nothing
4566+ , _jNumDmlAffectedRows = Nothing
40624567 , _jQueryPlan = Nothing
40634568 , _jCacheHit = Nothing
40644569 , _jTotalBytesBilled = Nothing
@@ -4082,6 +4587,15 @@ jBillingTier
40824587 = lens _jBillingTier (\ s a -> s{_jBillingTier = a})
40834588 . mapping _Coerce
40844589
4590+-- | [Output-only, Experimental] Standard SQL only: list of undeclared query
4591+-- parameters detected during a dry run validation.
4592+jUndeclaredQueryParameters :: Lens' JobStatistics2 [QueryParameter]
4593+jUndeclaredQueryParameters
4594+ = lens _jUndeclaredQueryParameters
4595+ (\ s a -> s{_jUndeclaredQueryParameters = a})
4596+ . _Default
4597+ . _Coerce
4598+
40854599-- | [Output-only, Experimental] Referenced tables for the job. Queries that
40864600-- reference more than 50 tables will not have a complete list.
40874601jReferencedTables :: Lens' JobStatistics2 [TableReference]
@@ -4091,8 +4605,15 @@ jReferencedTables
40914605 . _Default
40924606 . _Coerce
40934607
4094−-- | [Output-only, Experimental] Describes execution plan for the query as a
4095−-- list of stages.
4608+-- | [Output-only, Experimental] The number of rows affected by a DML
4609+-- statement. Present only for DML statements INSERT, UPDATE or DELETE.
4610+jNumDmlAffectedRows :: Lens' JobStatistics2 (Maybe Int64)
4611+jNumDmlAffectedRows
4612+ = lens _jNumDmlAffectedRows
4613+ (\ s a -> s{_jNumDmlAffectedRows = a})
4614+ . mapping _Coerce
4615+
4616+-- | [Output-only, Experimental] Describes execution plan for the query.
40964617jQueryPlan :: Lens' JobStatistics2 [ExplainQueryStage]
40974618jQueryPlan
40984619 = lens _jQueryPlan (\ s a -> s{_jQueryPlan = a}) .
@@ -4118,7 +4639,9 @@ instance FromJSON JobStatistics2 where
41184639 JobStatistics2' <$>
41194640 (o .:? "schema") <*> (o .:? "totalBytesProcessed")
41204641 <*> (o .:? "billingTier")
4642+ <*> (o .:? "undeclaredQueryParameters" .!= mempty)
41214643 <*> (o .:? "referencedTables" .!= mempty)
4644+ <*> (o .:? "numDmlAffectedRows")
41224645 <*> (o .:? "queryPlan" .!= mempty)
41234646 <*> (o .:? "cacheHit")
41244647 <*> (o .:? "totalBytesBilled"))
@@ -4130,7 +4653,10 @@ instance ToJSON JobStatistics2 where
41304653 [("schema" .=) <$> _jSchema,
41314654 ("totalBytesProcessed" .=) <$> _jTotalBytesProcessed,
41324655 ("billingTier" .=) <$> _jBillingTier,
4656+ ("undeclaredQueryParameters" .=) <$>
4657+ _jUndeclaredQueryParameters,
41334658 ("referencedTables" .=) <$> _jReferencedTables,
4659+ ("numDmlAffectedRows" .=) <$> _jNumDmlAffectedRows,
41344660 ("queryPlan" .=) <$> _jQueryPlan,
41354661 ("cacheHit" .=) <$> _jCacheHit,
41364662 ("totalBytesBilled" .=) <$> _jTotalBytesBilled])
@@ -4349,6 +4875,66 @@ instance ToJSON TableDataInsertAllResponse where
43494875 [Just ("kind" .= _tKind),
43504876 ("insertErrors" .=) <$> _tInsertErrors])
43514877
4878+--
4879+-- /See:/ 'queryParameterType' smart constructor.
4880+data QueryParameterType = QueryParameterType'
4881+ { _qptStructTypes :: !(Maybe [QueryParameterTypeStructTypesItem])
4882+ , _qptType :: !(Maybe Text)
4883+ , _qptArrayType :: !(Maybe QueryParameterType)
4884+ } deriving (Eq,Show,Data,Typeable,Generic)
4885+
4886+-- | Creates a value of 'QueryParameterType' with the minimum fields required to make a request.
4887+--
4888+-- Use one of the following lenses to modify other fields as desired:
4889+--
4890+-- * 'qptStructTypes'
4891+--
4892+-- * 'qptType'
4893+--
4894+-- * 'qptArrayType'
4895+queryParameterType
4896+ :: QueryParameterType
4897+queryParameterType =
4898+ QueryParameterType'
4899+ { _qptStructTypes = Nothing
4900+ , _qptType = Nothing
4901+ , _qptArrayType = Nothing
4902+ }
4903+
4904+-- | [Optional] The types of the fields of this struct, in order, if this is
4905+-- a struct.
4906+qptStructTypes :: Lens' QueryParameterType [QueryParameterTypeStructTypesItem]
4907+qptStructTypes
4908+ = lens _qptStructTypes
4909+ (\ s a -> s{_qptStructTypes = a})
4910+ . _Default
4911+ . _Coerce
4912+
4913+-- | [Required] The top level type of this field.
4914+qptType :: Lens' QueryParameterType (Maybe Text)
4915+qptType = lens _qptType (\ s a -> s{_qptType = a})
4916+
4917+-- | [Optional] The type of the array\'s elements, if this is an array.
4918+qptArrayType :: Lens' QueryParameterType (Maybe QueryParameterType)
4919+qptArrayType
4920+ = lens _qptArrayType (\ s a -> s{_qptArrayType = a})
4921+
4922+instance FromJSON QueryParameterType where
4923+ parseJSON
4924+ = withObject "QueryParameterType"
4925+ (\ o ->
4926+ QueryParameterType' <$>
4927+ (o .:? "structTypes" .!= mempty) <*> (o .:? "type")
4928+ <*> (o .:? "arrayType"))
4929+
4930+instance ToJSON QueryParameterType where
4931+ toJSON QueryParameterType'{..}
4932+ = object
4933+ (catMaybes
4934+ [("structTypes" .=) <$> _qptStructTypes,
4935+ ("type" .=) <$> _qptType,
4936+ ("arrayType" .=) <$> _qptArrayType])
4937+
43524938--
43534939-- /See:/ 'table' smart constructor.
43544940data Table = Table'
@@ -4890,6 +5476,7 @@ data QueryResponse = QueryResponse'
48905476 , _qTotalBytesProcessed :: !(Maybe (Textual Int64))
48915477 , _qRows :: !(Maybe [TableRow])
48925478 , _qPageToken :: !(Maybe Text)
5479+ , _qNumDmlAffectedRows :: !(Maybe (Textual Int64))
48935480 , _qTotalRows :: !(Maybe (Textual Word64))
48945481 , _qErrors :: !(Maybe [ErrorProto])
48955482 , _qJobComplete :: !(Maybe Bool)
@@ -4912,6 +5499,8 @@ data QueryResponse = QueryResponse'
49125499--
49135500-- * 'qPageToken'
49145501--
5502+-- * 'qNumDmlAffectedRows'
5503+--
49155504-- * 'qTotalRows'
49165505--
49175506-- * 'qErrors'
@@ -4929,6 +5518,7 @@ queryResponse =
49295518 , _qTotalBytesProcessed = Nothing
49305519 , _qRows = Nothing
49315520 , _qPageToken = Nothing
5521+ , _qNumDmlAffectedRows = Nothing
49325522 , _qTotalRows = Nothing
49335523 , _qErrors = Nothing
49345524 , _qJobComplete = Nothing
@@ -4977,6 +5567,14 @@ qPageToken :: Lens' QueryResponse (Maybe Text)
49775567qPageToken
49785568 = lens _qPageToken (\ s a -> s{_qPageToken = a})
49795569
5570+-- | [Output-only, Experimental] The number of rows affected by a DML
5571+-- statement. Present only for DML statements INSERT, UPDATE or DELETE.
5572+qNumDmlAffectedRows :: Lens' QueryResponse (Maybe Int64)
5573+qNumDmlAffectedRows
5574+ = lens _qNumDmlAffectedRows
5575+ (\ s a -> s{_qNumDmlAffectedRows = a})
5576+ . mapping _Coerce
5577+
49805578-- | The total number of rows in the complete query result set, which can be
49815579-- more than the number of rows in this single page of results.
49825580qTotalRows :: Lens' QueryResponse (Maybe Word64)
@@ -5015,6 +5613,7 @@ instance FromJSON QueryResponse where
50155613 <*> (o .:? "totalBytesProcessed")
50165614 <*> (o .:? "rows" .!= mempty)
50175615 <*> (o .:? "pageToken")
5616+ <*> (o .:? "numDmlAffectedRows")
50185617 <*> (o .:? "totalRows")
50195618 <*> (o .:? "errors" .!= mempty)
50205619 <*> (o .:? "jobComplete")
@@ -5029,7 +5628,45 @@ instance ToJSON QueryResponse where
50295628 ("totalBytesProcessed" .=) <$> _qTotalBytesProcessed,
50305629 ("rows" .=) <$> _qRows,
50315630 ("pageToken" .=) <$> _qPageToken,
5631+ ("numDmlAffectedRows" .=) <$> _qNumDmlAffectedRows,
50325632 ("totalRows" .=) <$> _qTotalRows,
50335633 ("errors" .=) <$> _qErrors,
50345634 ("jobComplete" .=) <$> _qJobComplete,
50355635 ("cacheHit" .=) <$> _qCacheHit])
5636+
5637+-- | [Experimental] The labels associated with this dataset. You can use
5638+-- these to organize and group your datasets.
5639+--
5640+-- /See:/ 'dataSetListDataSetsItemLabels' smart constructor.
5641+newtype DataSetListDataSetsItemLabels = DataSetListDataSetsItemLabels'
5642+ { _dsldsilAddtional :: HashMap Text Text
5643+ } deriving (Eq,Show,Data,Typeable,Generic)
5644+
5645+-- | Creates a value of 'DataSetListDataSetsItemLabels' with the minimum fields required to make a request.
5646+--
5647+-- Use one of the following lenses to modify other fields as desired:
5648+--
5649+-- * 'dsldsilAddtional'
5650+dataSetListDataSetsItemLabels
5651+ :: HashMap Text Text -- ^ 'dsldsilAddtional'
5652+ -> DataSetListDataSetsItemLabels
5653+dataSetListDataSetsItemLabels pDsldsilAddtional_ =
5654+ DataSetListDataSetsItemLabels'
5655+ { _dsldsilAddtional = _Coerce # pDsldsilAddtional_
5656+ }
5657+
5658+dsldsilAddtional :: Lens' DataSetListDataSetsItemLabels (HashMap Text Text)
5659+dsldsilAddtional
5660+ = lens _dsldsilAddtional
5661+ (\ s a -> s{_dsldsilAddtional = a})
5662+ . _Coerce
5663+
5664+instance FromJSON DataSetListDataSetsItemLabels where
5665+ parseJSON
5666+ = withObject "DataSetListDataSetsItemLabels"
5667+ (\ o ->
5668+ DataSetListDataSetsItemLabels' <$>
5669+ (parseJSONObject o))
5670+
5671+instance ToJSON DataSetListDataSetsItemLabels where
5672+ toJSON = toJSON . _dsldsilAddtional
gogol-bigquery/gen/Network/Google/Resource/BigQuery/DataSets/List.hs+18−4
@@ -35,6 +35,7 @@ module Network.Google.Resource.BigQuery.DataSets.List
3535
3636 -- * Request Lenses
3737 , dslAll
38+ , dslFilter
3839 , dslPageToken
3940 , dslProjectId
4041 , dslMaxResults
@@ -52,9 +53,10 @@ type DataSetsListResource =
5253 Capture "projectId" Text :>
5354 "datasets" :>
5455 QueryParam "all" Bool :>
55− QueryParam "pageToken" Text :>
56− QueryParam "maxResults" (Textual Word32) :>
57− QueryParam "alt" AltJSON :> Get '[JSON] DataSetList
56+ QueryParam "filter" Text :>
57+ QueryParam "pageToken" Text :>
58+ QueryParam "maxResults" (Textual Word32) :>
59+ QueryParam "alt" AltJSON :> Get '[JSON] DataSetList
5860
5961-- | Lists all datasets in the specified project to which you have been
6062-- granted the READER dataset role.
@@ -62,6 +64,7 @@ type DataSetsListResource =
6264-- /See:/ 'dataSetsList' smart constructor.
6365data DataSetsList = DataSetsList'
6466 { _dslAll :: !(Maybe Bool)
67+ , _dslFilter :: !(Maybe Text)
6568 , _dslPageToken :: !(Maybe Text)
6669 , _dslProjectId :: !Text
6770 , _dslMaxResults :: !(Maybe (Textual Word32))
@@ -73,6 +76,8 @@ data DataSetsList = DataSetsList'
7376--
7477-- * 'dslAll'
7578--
79+-- * 'dslFilter'
80+--
7681-- * 'dslPageToken'
7782--
7883-- * 'dslProjectId'
@@ -84,6 +89,7 @@ dataSetsList
8489dataSetsList pDslProjectId_ =
8590 DataSetsList'
8691 { _dslAll = Nothing
92+ , _dslFilter = Nothing
8793 , _dslPageToken = Nothing
8894 , _dslProjectId = pDslProjectId_
8995 , _dslMaxResults = Nothing
@@ -93,6 +99,14 @@ dataSetsList pDslProjectId_ =
9399dslAll :: Lens' DataSetsList (Maybe Bool)
94100dslAll = lens _dslAll (\ s a -> s{_dslAll = a})
95101
102+-- | An expression for filtering the results of the request by label. The
103+-- syntax is \"labels.[:]\". Multiple filters can be ANDed together by
104+-- connecting with a space. Example: \"labels.department:receiving
105+-- labels.active\". See Filtering datasets using labels for details.
106+dslFilter :: Lens' DataSetsList (Maybe Text)
107+dslFilter
108+ = lens _dslFilter (\ s a -> s{_dslFilter = a})
109+
96110-- | Page token, returned by a previous call, to request the next page of
97111-- results
98112dslPageToken :: Lens' DataSetsList (Maybe Text)
@@ -118,7 +132,7 @@ instance GoogleRequest DataSetsList where
118132 "https://www.googleapis.com/auth/cloud-platform",
119133 "https://www.googleapis.com/auth/cloud-platform.read-only"]
120134 requestClient DataSetsList'{..}
121− = go _dslProjectId _dslAll _dslPageToken
135+ = go _dslProjectId _dslAll _dslFilter _dslPageToken
122136 _dslMaxResults
123137 (Just AltJSON)
124138 bigQueryService
gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/Cancel.hs+1−1
@@ -47,7 +47,7 @@ import Network.Google.Prelude
4747type JobsCancelResource =
4848 "bigquery" :>
4949 "v2" :>
50− "project" :>
50+ "projects" :>
5151 Capture "projectId" Text :>
5252 "jobs" :>
5353 Capture "jobId" Text :>