google-apis-bigquery_v2 0.1.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 804fdfc6618136c89fe020c51b682130f8c11f8f97afe5bdd6d375fc3613f84b
4
- data.tar.gz: b2ce8f64df548dcdcdc49708b7548e4e4a3f30c3e5923f1e25ea2e008fd51cb1
3
+ metadata.gz: d722b75b719f87056d1c8a2d0fd3f804c6c6092e7ee0c4041fe52f7c1aad6b87
4
+ data.tar.gz: bb3e35298b7393dbeeb513d61898ded85f9f5f653a6a08be1de539a4dbd83453
5
5
  SHA512:
6
- metadata.gz: b4f3606b75e94906f9d5a32cbc5b1aaced60cfe3d294d88a9586d2092940842c48d9a5f146871134daec651b0ba2b8660eef630c1dbf9a4f2486e50d8ba8b9af
7
- data.tar.gz: 8d0f5c5b066a26554f1e359003f2d2b67943a696dc0e77b746e14e8978c91e47793698920b85c9fe6232854490ee2c2844ef1ee4c02daec700cee114a8d218c3
6
+ metadata.gz: 9d80155c9eb53a477e03e511befc8281a0249e5ae3e445ba7bcadd21faf0c32b433406e03b61c59340670ad195a33b24eba38d95ddcf03a66059f270c84c8cc3
7
+ data.tar.gz: 8917eef4af9537e9c7ae67e783d3a60e4dcc63a1d4da2856117f36172b8d89cda834bde7afe02e23869bb08ef66acaa1414afb2edce1394f6e15d4976d2cc7fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.11.0 (2021-05-19)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.10.0 (2021-05-07)
8
+
9
+ * Regenerated from discovery document revision 20210430
10
+
11
+ ### v0.9.0 (2021-04-02)
12
+
13
+ * Regenerated from discovery document revision 20210327
14
+
15
+ ### v0.8.0 (2021-03-18)
16
+
17
+ * Regenerated from discovery document revision 20210313
18
+
19
+ ### v0.7.0 (2021-03-10)
20
+
21
+ * Regenerated from discovery document revision 20210303
22
+ * Regenerated using generator version 0.2.0
23
+
24
+ ### v0.6.0 (2021-03-04)
25
+
26
+ * Unspecified changes
27
+
28
+ ### v0.5.0 (2021-02-26)
29
+
30
+ * Regenerated from discovery document revision 20210219
31
+
32
+ ### v0.4.0 (2021-02-20)
33
+
34
+ * Regenerated from discovery document revision 20210215
35
+
36
+ ### v0.3.0 (2021-02-13)
37
+
38
+ * Regenerated from discovery document revision 20210204
39
+
40
+ ### v0.2.0 (2021-01-23)
41
+
42
+ * Regenerated from discovery document revision 20210118
43
+ * Regenerated using generator version 0.1.2
44
+
3
45
  ### v0.1.0 (2021-01-07)
4
46
 
5
47
  * Regenerated using generator version 0.1.1
@@ -35,10 +35,7 @@ module Google
35
35
  # Insert data into Google BigQuery
36
36
  AUTH_BIGQUERY_INSERTDATA = 'https://www.googleapis.com/auth/bigquery.insertdata'
37
37
 
38
- # View your data in Google BigQuery
39
- AUTH_BIGQUERY_READONLY = 'https://www.googleapis.com/auth/bigquery.readonly'
40
-
41
- # View and manage your data across Google Cloud Platform services
38
+ # See, edit, configure, and delete your Google Cloud Platform data
42
39
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
43
40
 
44
41
  # View your data across Google Cloud Platform services
@@ -265,6 +265,24 @@ module Google
265
265
  attr_accessor :has_drift
266
266
  alias_method :has_drift?, :has_drift
267
267
 
268
+ # If true, holiday_effect is a part of time series decomposition result.
269
+ # Corresponds to the JSON property `hasHolidayEffect`
270
+ # @return [Boolean]
271
+ attr_accessor :has_holiday_effect
272
+ alias_method :has_holiday_effect?, :has_holiday_effect
273
+
274
+ # If true, spikes_and_dips is a part of time series decomposition result.
275
+ # Corresponds to the JSON property `hasSpikesAndDips`
276
+ # @return [Boolean]
277
+ attr_accessor :has_spikes_and_dips
278
+ alias_method :has_spikes_and_dips?, :has_spikes_and_dips
279
+
280
+ # If true, step_changes is a part of time series decomposition result.
281
+ # Corresponds to the JSON property `hasStepChanges`
282
+ # @return [Boolean]
283
+ attr_accessor :has_step_changes
284
+ alias_method :has_step_changes?, :has_step_changes
285
+
268
286
  # Arima order, can be used for both non-seasonal and seasonal parts.
269
287
  # Corresponds to the JSON property `nonSeasonalOrder`
270
288
  # @return [Google::Apis::BigqueryV2::ArimaOrder]
@@ -276,11 +294,22 @@ module Google
276
294
  # @return [Array<String>]
277
295
  attr_accessor :seasonal_periods
278
296
 
279
- # The id to indicate different time series.
297
+ # The time_series_id value for this time series. It will be one of the unique
298
+ # values from the time_series_id_column specified during ARIMA model training.
299
+ # Only present when time_series_id_column training option was used.
280
300
  # Corresponds to the JSON property `timeSeriesId`
281
301
  # @return [String]
282
302
  attr_accessor :time_series_id
283
303
 
304
+ # The tuple of time_series_ids identifying this time series. It will be one of
305
+ # the unique tuples of values present in the time_series_id_columns specified
306
+ # during ARIMA model training. Only present when time_series_id_columns training
307
+ # option was used and the order of values here are same as the order of
308
+ # time_series_id_columns.
309
+ # Corresponds to the JSON property `timeSeriesIds`
310
+ # @return [Array<String>]
311
+ attr_accessor :time_series_ids
312
+
284
313
  def initialize(**args)
285
314
  update!(**args)
286
315
  end
@@ -290,9 +319,13 @@ module Google
290
319
  @arima_coefficients = args[:arima_coefficients] if args.key?(:arima_coefficients)
291
320
  @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
292
321
  @has_drift = args[:has_drift] if args.key?(:has_drift)
322
+ @has_holiday_effect = args[:has_holiday_effect] if args.key?(:has_holiday_effect)
323
+ @has_spikes_and_dips = args[:has_spikes_and_dips] if args.key?(:has_spikes_and_dips)
324
+ @has_step_changes = args[:has_step_changes] if args.key?(:has_step_changes)
293
325
  @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
294
326
  @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
295
327
  @time_series_id = args[:time_series_id] if args.key?(:time_series_id)
328
+ @time_series_ids = args[:time_series_ids] if args.key?(:time_series_ids)
296
329
  end
297
330
  end
298
331
 
@@ -370,6 +403,24 @@ module Google
370
403
  attr_accessor :has_drift
371
404
  alias_method :has_drift?, :has_drift
372
405
 
406
+ # If true, holiday_effect is a part of time series decomposition result.
407
+ # Corresponds to the JSON property `hasHolidayEffect`
408
+ # @return [Boolean]
409
+ attr_accessor :has_holiday_effect
410
+ alias_method :has_holiday_effect?, :has_holiday_effect
411
+
412
+ # If true, spikes_and_dips is a part of time series decomposition result.
413
+ # Corresponds to the JSON property `hasSpikesAndDips`
414
+ # @return [Boolean]
415
+ attr_accessor :has_spikes_and_dips
416
+ alias_method :has_spikes_and_dips?, :has_spikes_and_dips
417
+
418
+ # If true, step_changes is a part of time series decomposition result.
419
+ # Corresponds to the JSON property `hasStepChanges`
420
+ # @return [Boolean]
421
+ attr_accessor :has_step_changes
422
+ alias_method :has_step_changes?, :has_step_changes
423
+
373
424
  # Arima order, can be used for both non-seasonal and seasonal parts.
374
425
  # Corresponds to the JSON property `nonSeasonalOrder`
375
426
  # @return [Google::Apis::BigqueryV2::ArimaOrder]
@@ -381,11 +432,22 @@ module Google
381
432
  # @return [Array<String>]
382
433
  attr_accessor :seasonal_periods
383
434
 
384
- # The id to indicate different time series.
435
+ # The time_series_id value for this time series. It will be one of the unique
436
+ # values from the time_series_id_column specified during ARIMA model training.
437
+ # Only present when time_series_id_column training option was used.
385
438
  # Corresponds to the JSON property `timeSeriesId`
386
439
  # @return [String]
387
440
  attr_accessor :time_series_id
388
441
 
442
+ # The tuple of time_series_ids identifying this time series. It will be one of
443
+ # the unique tuples of values present in the time_series_id_columns specified
444
+ # during ARIMA model training. Only present when time_series_id_columns training
445
+ # option was used and the order of values here are same as the order of
446
+ # time_series_id_columns.
447
+ # Corresponds to the JSON property `timeSeriesIds`
448
+ # @return [Array<String>]
449
+ attr_accessor :time_series_ids
450
+
389
451
  def initialize(**args)
390
452
  update!(**args)
391
453
  end
@@ -394,9 +456,13 @@ module Google
394
456
  def update!(**args)
395
457
  @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
396
458
  @has_drift = args[:has_drift] if args.key?(:has_drift)
459
+ @has_holiday_effect = args[:has_holiday_effect] if args.key?(:has_holiday_effect)
460
+ @has_spikes_and_dips = args[:has_spikes_and_dips] if args.key?(:has_spikes_and_dips)
461
+ @has_step_changes = args[:has_step_changes] if args.key?(:has_step_changes)
397
462
  @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
398
463
  @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
399
464
  @time_series_id = args[:time_series_id] if args.key?(:time_series_id)
465
+ @time_series_ids = args[:time_series_ids] if args.key?(:time_series_ids)
400
466
  end
401
467
  end
402
468
 
@@ -784,11 +850,6 @@ module Google
784
850
  class Binding
785
851
  include Google::Apis::Core::Hashable
786
852
 
787
- #
788
- # Corresponds to the JSON property `bindingId`
789
- # @return [String]
790
- attr_accessor :binding_id
791
-
792
853
  # Represents a textual expression in the Common Expression Language (CEL) syntax.
793
854
  # CEL is a C-like expression language. The syntax and semantics of CEL are
794
855
  # documented at https://github.com/google/cel-spec. Example (Comparison): title:
@@ -850,7 +911,6 @@ module Google
850
911
 
851
912
  # Update properties of this object
852
913
  def update!(**args)
853
- @binding_id = args[:binding_id] if args.key?(:binding_id)
854
914
  @condition = args[:condition] if args.key?(:condition)
855
915
  @members = args[:members] if args.key?(:members)
856
916
  @role = args[:role] if args.key?(:role)
@@ -1158,7 +1218,7 @@ module Google
1158
1218
  class ClusteringMetrics
1159
1219
  include Google::Apis::Core::Hashable
1160
1220
 
1161
- # [Beta] Information for all clusters.
1221
+ # Information for all clusters.
1162
1222
  # Corresponds to the JSON property `clusters`
1163
1223
  # @return [Array<Google::Apis::BigqueryV2::Cluster>]
1164
1224
  attr_accessor :clusters
@@ -1489,6 +1549,15 @@ module Google
1489
1549
  class Access
1490
1550
  include Google::Apis::Core::Hashable
1491
1551
 
1552
+ # [Pick one] A grant authorizing all resources of a particular type in a
1553
+ # particular dataset access to this dataset. Only views are supported for now.
1554
+ # The role field is not required when this field is set. If that dataset is
1555
+ # deleted and re-created, its access needs to be granted again via an update
1556
+ # operation.
1557
+ # Corresponds to the JSON property `dataset`
1558
+ # @return [Google::Apis::BigqueryV2::DatasetAccessEntry]
1559
+ attr_accessor :dataset
1560
+
1492
1561
  # [Pick one] A domain to grant access to. Any users signed in with the domain
1493
1562
  # specified will be granted the specified access. Example: "example.com". Maps
1494
1563
  # to IAM policy member "domain:DOMAIN".
@@ -1557,6 +1626,7 @@ module Google
1557
1626
 
1558
1627
  # Update properties of this object
1559
1628
  def update!(**args)
1629
+ @dataset = args[:dataset] if args.key?(:dataset)
1560
1630
  @domain = args[:domain] if args.key?(:domain)
1561
1631
  @group_by_email = args[:group_by_email] if args.key?(:group_by_email)
1562
1632
  @iam_member = args[:iam_member] if args.key?(:iam_member)
@@ -1569,6 +1639,52 @@ module Google
1569
1639
  end
1570
1640
  end
1571
1641
 
1642
+ #
1643
+ class DatasetAccessEntry
1644
+ include Google::Apis::Core::Hashable
1645
+
1646
+ # [Required] The dataset this entry applies to.
1647
+ # Corresponds to the JSON property `dataset`
1648
+ # @return [Google::Apis::BigqueryV2::DatasetReference]
1649
+ attr_accessor :dataset
1650
+
1651
+ #
1652
+ # Corresponds to the JSON property `target_types`
1653
+ # @return [Array<Google::Apis::BigqueryV2::DatasetAccessEntry::TargetType>]
1654
+ attr_accessor :target_types
1655
+
1656
+ def initialize(**args)
1657
+ update!(**args)
1658
+ end
1659
+
1660
+ # Update properties of this object
1661
+ def update!(**args)
1662
+ @dataset = args[:dataset] if args.key?(:dataset)
1663
+ @target_types = args[:target_types] if args.key?(:target_types)
1664
+ end
1665
+
1666
+ #
1667
+ class TargetType
1668
+ include Google::Apis::Core::Hashable
1669
+
1670
+ # [Required] Which resources in the dataset this entry applies to. Currently,
1671
+ # only views are supported, but additional target types may be added in the
1672
+ # future. Possible values: VIEWS: This entry applies to all views in the dataset.
1673
+ # Corresponds to the JSON property `targetType`
1674
+ # @return [String]
1675
+ attr_accessor :target_type
1676
+
1677
+ def initialize(**args)
1678
+ update!(**args)
1679
+ end
1680
+
1681
+ # Update properties of this object
1682
+ def update!(**args)
1683
+ @target_type = args[:target_type] if args.key?(:target_type)
1684
+ end
1685
+ end
1686
+ end
1687
+
1572
1688
  #
1573
1689
  class DatasetList
1574
1690
  include Google::Apis::Core::Hashable
@@ -2202,7 +2318,7 @@ module Google
2202
2318
  # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
2203
2319
  attr_accessor :google_sheets_options
2204
2320
 
2205
- # [Optional, Trusted Tester] Options to configure hive partitioning support.
2321
+ # [Optional] Options to configure hive partitioning support.
2206
2322
  # Corresponds to the JSON property `hivePartitioningOptions`
2207
2323
  # @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
2208
2324
  attr_accessor :hive_partitioning_options
@@ -2231,6 +2347,11 @@ module Google
2231
2347
  # @return [Fixnum]
2232
2348
  attr_accessor :max_bad_records
2233
2349
 
2350
+ # Additional properties to set if sourceFormat is set to Parquet.
2351
+ # Corresponds to the JSON property `parquetOptions`
2352
+ # @return [Google::Apis::BigqueryV2::ParquetOptions]
2353
+ attr_accessor :parquet_options
2354
+
2234
2355
  # [Optional] The schema for the data. Schema is required for CSV and JSON
2235
2356
  # formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore
2236
2357
  # backups, and Avro formats.
@@ -2273,6 +2394,7 @@ module Google
2273
2394
  @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
2274
2395
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
2275
2396
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
2397
+ @parquet_options = args[:parquet_options] if args.key?(:parquet_options)
2276
2398
  @schema = args[:schema] if args.key?(:schema)
2277
2399
  @source_format = args[:source_format] if args.key?(:source_format)
2278
2400
  @source_uris = args[:source_uris] if args.key?(:source_uris)
@@ -2944,23 +3066,24 @@ module Google
2944
3066
  # @return [String]
2945
3067
  attr_accessor :create_disposition
2946
3068
 
2947
- # [Trusted Tester] Defines the list of possible SQL data types to which the
2948
- # source decimal values are converted. This list and the precision and the scale
2949
- # parameters of the decimal field determine the target type. In the order of
2950
- # NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified
2951
- # list and if it supports the precision and the scale. STRING supports all
2952
- # precision and scale values. If none of the listed types supports the precision
2953
- # and the scale, the type supporting the widest range in the specified list is
2954
- # picked, and if a value exceeds the supported range when reading the data, an
2955
- # error will be thrown. For example: suppose decimal_target_type = ["NUMERIC", "
2956
- # BIGNUMERIC"]. Then if (precision,scale) is: * (38,9) -> NUMERIC; * (39,9) ->
2957
- # BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (
2958
- # NUMERIC cannot hold 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -
2959
- # > BIGNUMERIC (error if value exeeds supported range). For duplicated types in
2960
- # this field, only one will be considered and the rest will be ignored. The
2961
- # order of the types in this field is ignored. For example, ["BIGNUMERIC", "
2962
- # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
2963
- # precedence over BIGNUMERIC.
3069
+ # Defines the list of possible SQL data types to which the source decimal values
3070
+ # are converted. This list and the precision and the scale parameters of the
3071
+ # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC ([
3072
+ # Preview](/products/#product-launch-stages)), and STRING, a type is picked if
3073
+ # it is in the specified list and if it supports the precision and the scale.
3074
+ # STRING supports all precision and scale values. If none of the listed types
3075
+ # supports the precision and the scale, the type supporting the widest range in
3076
+ # the specified list is picked, and if a value exceeds the supported range when
3077
+ # reading the data, an error will be thrown. Example: Suppose the value of this
3078
+ # field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) ->
3079
+ # NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
3080
+ # 10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
3081
+ # BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range).
3082
+ # This field cannot contain duplicate types. The order of the types in this
3083
+ # field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["
3084
+ # NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC.
3085
+ # Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file
3086
+ # formats.
2964
3087
  # Corresponds to the JSON property `decimalTargetTypes`
2965
3088
  # @return [Array<String>]
2966
3089
  attr_accessor :decimal_target_types
@@ -2999,7 +3122,7 @@ module Google
2999
3122
  # @return [String]
3000
3123
  attr_accessor :field_delimiter
3001
3124
 
3002
- # [Optional, Trusted Tester] Options to configure hive partitioning support.
3125
+ # [Optional] Options to configure hive partitioning support.
3003
3126
  # Corresponds to the JSON property `hivePartitioningOptions`
3004
3127
  # @return [Google::Apis::BigqueryV2::HivePartitioningOptions]
3005
3128
  attr_accessor :hive_partitioning_options
@@ -3016,6 +3139,14 @@ module Google
3016
3139
  attr_accessor :ignore_unknown_values
3017
3140
  alias_method :ignore_unknown_values?, :ignore_unknown_values
3018
3141
 
3142
+ # [Optional] If sourceFormat is set to newline-delimited JSON, indicates whether
3143
+ # it should be processed as a JSON variant such as GeoJSON. For a sourceFormat
3144
+ # other than JSON, omit this field. If the sourceFormat is newline-delimited
3145
+ # JSON: - for newline-delimited GeoJSON: set to GEOJSON.
3146
+ # Corresponds to the JSON property `jsonExtension`
3147
+ # @return [String]
3148
+ attr_accessor :json_extension
3149
+
3019
3150
  # [Optional] The maximum number of bad records that BigQuery can ignore when
3020
3151
  # running the job. If the number of bad records exceeds this value, an invalid
3021
3152
  # error is returned in the job result. This is only valid for CSV and JSON. The
@@ -3034,6 +3165,11 @@ module Google
3034
3165
  # @return [String]
3035
3166
  attr_accessor :null_marker
3036
3167
 
3168
+ # [Optional] Options to configure parquet support.
3169
+ # Corresponds to the JSON property `parquetOptions`
3170
+ # @return [Google::Apis::BigqueryV2::ParquetOptions]
3171
+ attr_accessor :parquet_options
3172
+
3037
3173
  # If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
3038
3174
  # properties to load into BigQuery from a Cloud Datastore backup. Property names
3039
3175
  # are case sensitive and must be top-level properties. If no properties are
@@ -3162,8 +3298,10 @@ module Google
3162
3298
  @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
3163
3299
  @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
3164
3300
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
3301
+ @json_extension = args[:json_extension] if args.key?(:json_extension)
3165
3302
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
3166
3303
  @null_marker = args[:null_marker] if args.key?(:null_marker)
3304
+ @parquet_options = args[:parquet_options] if args.key?(:parquet_options)
3167
3305
  @projection_fields = args[:projection_fields] if args.key?(:projection_fields)
3168
3306
  @quote = args[:quote] if args.key?(:quote)
3169
3307
  @range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
@@ -3216,6 +3354,14 @@ module Google
3216
3354
  # @return [String]
3217
3355
  attr_accessor :create_disposition
3218
3356
 
3357
+ # If true, creates a new session, where session id will be a server generated
3358
+ # random id. If false, runs query with an existing session_id passed in
3359
+ # ConnectionProperty, otherwise runs query in non-session mode.
3360
+ # Corresponds to the JSON property `createSession`
3361
+ # @return [Boolean]
3362
+ attr_accessor :create_session
3363
+ alias_method :create_session?, :create_session
3364
+
3219
3365
  # [Optional] Specifies the default dataset to use for unqualified table names in
3220
3366
  # the query. Note that this does not alter behavior of unqualified dataset names.
3221
3367
  # Corresponds to the JSON property `defaultDataset`
@@ -3365,6 +3511,7 @@ module Google
3365
3511
  @clustering = args[:clustering] if args.key?(:clustering)
3366
3512
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
3367
3513
  @create_disposition = args[:create_disposition] if args.key?(:create_disposition)
3514
+ @create_session = args[:create_session] if args.key?(:create_session)
3368
3515
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
3369
3516
  @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
3370
3517
  @destination_table = args[:destination_table] if args.key?(:destination_table)
@@ -3676,6 +3823,11 @@ module Google
3676
3823
  # @return [Google::Apis::BigqueryV2::ScriptStatistics]
3677
3824
  attr_accessor :script_statistics
3678
3825
 
3826
+ # [Output-only] [Preview] Information of the session if this job is part of one.
3827
+ # Corresponds to the JSON property `sessionInfoTemplate`
3828
+ # @return [Google::Apis::BigqueryV2::SessionInfo]
3829
+ attr_accessor :session_info_template
3830
+
3679
3831
  # [Output-only] Start time of this job, in milliseconds since the epoch. This
3680
3832
  # field will be present when the job transitions from the PENDING state to
3681
3833
  # either RUNNING or DONE.
@@ -3719,6 +3871,7 @@ module Google
3719
3871
  @reservation_id = args[:reservation_id] if args.key?(:reservation_id)
3720
3872
  @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
3721
3873
  @script_statistics = args[:script_statistics] if args.key?(:script_statistics)
3874
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
3722
3875
  @start_time = args[:start_time] if args.key?(:start_time)
3723
3876
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
3724
3877
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@@ -3772,6 +3925,12 @@ module Google
3772
3925
  # @return [Fixnum]
3773
3926
  attr_accessor :ddl_affected_row_access_policy_count
3774
3927
 
3928
+ # [Output-only] The DDL destination table. Present only for ALTER TABLE RENAME
3929
+ # TO queries. Note that ddl_target_table is used just for its type information.
3930
+ # Corresponds to the JSON property `ddlDestinationTable`
3931
+ # @return [Google::Apis::BigqueryV2::TableReference]
3932
+ attr_accessor :ddl_destination_table
3933
+
3775
3934
  # The DDL operation performed, possibly dependent on the pre-existence of the
3776
3935
  # DDL target. Possible values (new values might be added in the future): "CREATE"
3777
3936
  # : The query created the DDL target. "SKIP": No-op. Example cases: the query is
@@ -3783,6 +3942,12 @@ module Google
3783
3942
  # @return [String]
3784
3943
  attr_accessor :ddl_operation_performed
3785
3944
 
3945
+ # [Output-only] The DDL target dataset. Present only for CREATE/ALTER/DROP
3946
+ # SCHEMA queries.
3947
+ # Corresponds to the JSON property `ddlTargetDataset`
3948
+ # @return [Google::Apis::BigqueryV2::DatasetReference]
3949
+ attr_accessor :ddl_target_dataset
3950
+
3786
3951
  # The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE
3787
3952
  # queries.
3788
3953
  # Corresponds to the JSON property `ddlTargetRoutine`
@@ -3925,7 +4090,9 @@ module Google
3925
4090
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
3926
4091
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
3927
4092
  @ddl_affected_row_access_policy_count = args[:ddl_affected_row_access_policy_count] if args.key?(:ddl_affected_row_access_policy_count)
4093
+ @ddl_destination_table = args[:ddl_destination_table] if args.key?(:ddl_destination_table)
3928
4094
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
4095
+ @ddl_target_dataset = args[:ddl_target_dataset] if args.key?(:ddl_target_dataset)
3929
4096
  @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
3930
4097
  @ddl_target_row_access_policy = args[:ddl_target_row_access_policy] if args.key?(:ddl_target_row_access_policy)
3931
4098
  @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
@@ -4230,6 +4397,11 @@ module Google
4230
4397
  class Model
4231
4398
  include Google::Apis::Core::Hashable
4232
4399
 
4400
+ # The best trial_id across all training runs.
4401
+ # Corresponds to the JSON property `bestTrialId`
4402
+ # @return [Fixnum]
4403
+ attr_accessor :best_trial_id
4404
+
4233
4405
  # Output only. The time when this model was created, in millisecs since the
4234
4406
  # epoch.
4235
4407
  # Corresponds to the JSON property `creationTime`
@@ -4322,6 +4494,7 @@ module Google
4322
4494
 
4323
4495
  # Update properties of this object
4324
4496
  def update!(**args)
4497
+ @best_trial_id = args[:best_trial_id] if args.key?(:best_trial_id)
4325
4498
  @creation_time = args[:creation_time] if args.key?(:creation_time)
4326
4499
  @description = args[:description] if args.key?(:description)
4327
4500
  @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
@@ -4463,6 +4636,35 @@ module Google
4463
4636
  end
4464
4637
  end
4465
4638
 
4639
+ #
4640
+ class ParquetOptions
4641
+ include Google::Apis::Core::Hashable
4642
+
4643
+ # [Optional] Indicates whether to use schema inference specifically for Parquet
4644
+ # LIST logical type.
4645
+ # Corresponds to the JSON property `enableListInference`
4646
+ # @return [Boolean]
4647
+ attr_accessor :enable_list_inference
4648
+ alias_method :enable_list_inference?, :enable_list_inference
4649
+
4650
+ # [Optional] Indicates whether to infer Parquet ENUM logical type as STRING
4651
+ # instead of BYTES by default.
4652
+ # Corresponds to the JSON property `enumAsString`
4653
+ # @return [Boolean]
4654
+ attr_accessor :enum_as_string
4655
+ alias_method :enum_as_string?, :enum_as_string
4656
+
4657
+ def initialize(**args)
4658
+ update!(**args)
4659
+ end
4660
+
4661
+ # Update properties of this object
4662
+ def update!(**args)
4663
+ @enable_list_inference = args[:enable_list_inference] if args.key?(:enable_list_inference)
4664
+ @enum_as_string = args[:enum_as_string] if args.key?(:enum_as_string)
4665
+ end
4666
+ end
4667
+
4466
4668
  # An Identity and Access Management (IAM) policy, which specifies access
4467
4669
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
4468
4670
  # A `binding` binds one or more `members` to a single `role`. Members can be
@@ -4794,6 +4996,14 @@ module Google
4794
4996
  # @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
4795
4997
  attr_accessor :connection_properties
4796
4998
 
4999
+ # If true, creates a new session, where session id will be a server generated
5000
+ # random id. If false, runs query with an existing session_id passed in
5001
+ # ConnectionProperty, otherwise runs query in non-session mode.
5002
+ # Corresponds to the JSON property `createSession`
5003
+ # @return [Boolean]
5004
+ attr_accessor :create_session
5005
+ alias_method :create_session?, :create_session
5006
+
4797
5007
  # [Optional] Specifies the default datasetId and projectId to assume for any
4798
5008
  # unqualified table names in the query. If not set, all table names in the query
4799
5009
  # string must be qualified in the format 'datasetId.tableId'.
@@ -4928,6 +5138,7 @@ module Google
4928
5138
  # Update properties of this object
4929
5139
  def update!(**args)
4930
5140
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
5141
+ @create_session = args[:create_session] if args.key?(:create_session)
4931
5142
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
4932
5143
  @dry_run = args[:dry_run] if args.key?(:dry_run)
4933
5144
  @kind = args[:kind] if args.key?(:kind)
@@ -5008,6 +5219,11 @@ module Google
5008
5219
  # @return [Google::Apis::BigqueryV2::TableSchema]
5009
5220
  attr_accessor :schema
5010
5221
 
5222
+ # [Output-only] [Preview] Information of the session if this job is part of one.
5223
+ # Corresponds to the JSON property `sessionInfoTemplate`
5224
+ # @return [Google::Apis::BigqueryV2::SessionInfo]
5225
+ attr_accessor :session_info_template
5226
+
5011
5227
  # The total number of bytes processed for this query. If this query was a dry
5012
5228
  # run, this is the number of bytes that would be processed if the query were run.
5013
5229
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -5035,6 +5251,7 @@ module Google
5035
5251
  @page_token = args[:page_token] if args.key?(:page_token)
5036
5252
  @rows = args[:rows] if args.key?(:rows)
5037
5253
  @schema = args[:schema] if args.key?(:schema)
5254
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
5038
5255
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
5039
5256
  @total_rows = args[:total_rows] if args.key?(:total_rows)
5040
5257
  end
@@ -5212,7 +5429,7 @@ module Google
5212
5429
  # @return [Float]
5213
5430
  attr_accessor :median_absolute_error
5214
5431
 
5215
- # R^2 score.
5432
+ # R^2 score. This corresponds to r2_score in ML.EVALUATE.
5216
5433
  # Corresponds to the JSON property `rSquared`
5217
5434
  # @return [Float]
5218
5435
  attr_accessor :r_squared
@@ -5293,6 +5510,11 @@ module Google
5293
5510
  # @return [Fixnum]
5294
5511
  attr_accessor :last_modified_time
5295
5512
 
5513
+ # A table type
5514
+ # Corresponds to the JSON property `returnTableType`
5515
+ # @return [Google::Apis::BigqueryV2::StandardSqlTableType]
5516
+ attr_accessor :return_table_type
5517
+
5296
5518
  # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
5297
5519
  # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
5298
5520
  # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
@@ -5326,6 +5548,7 @@ module Google
5326
5548
  @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
5327
5549
  @language = args[:language] if args.key?(:language)
5328
5550
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
5551
+ @return_table_type = args[:return_table_type] if args.key?(:return_table_type)
5329
5552
  @return_type = args[:return_type] if args.key?(:return_type)
5330
5553
  @routine_reference = args[:routine_reference] if args.key?(:routine_reference)
5331
5554
  @routine_type = args[:routine_type] if args.key?(:routine_type)
@@ -5575,6 +5798,25 @@ module Google
5575
5798
  end
5576
5799
  end
5577
5800
 
5801
+ #
5802
+ class SessionInfo
5803
+ include Google::Apis::Core::Hashable
5804
+
5805
+ # [Output-only] // [Preview] Id of the session.
5806
+ # Corresponds to the JSON property `sessionId`
5807
+ # @return [String]
5808
+ attr_accessor :session_id
5809
+
5810
+ def initialize(**args)
5811
+ update!(**args)
5812
+ end
5813
+
5814
+ # Update properties of this object
5815
+ def update!(**args)
5816
+ @session_id = args[:session_id] if args.key?(:session_id)
5817
+ end
5818
+ end
5819
+
5578
5820
  # Request message for `SetIamPolicy` method.
5579
5821
  class SetIamPolicyRequest
5580
5822
  include Google::Apis::Core::Hashable
@@ -5738,6 +5980,25 @@ module Google
5738
5980
  end
5739
5981
  end
5740
5982
 
5983
+ # A table type
5984
+ class StandardSqlTableType
5985
+ include Google::Apis::Core::Hashable
5986
+
5987
+ # The columns in this table type
5988
+ # Corresponds to the JSON property `columns`
5989
+ # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
5990
+ attr_accessor :columns
5991
+
5992
+ def initialize(**args)
5993
+ update!(**args)
5994
+ end
5995
+
5996
+ # Update properties of this object
5997
+ def update!(**args)
5998
+ @columns = args[:columns] if args.key?(:columns)
5999
+ end
6000
+ end
6001
+
5741
6002
  #
5742
6003
  class Streamingbuffer
5743
6004
  include Google::Apis::Core::Hashable
@@ -6209,6 +6470,16 @@ module Google
6209
6470
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
6210
6471
  attr_accessor :fields
6211
6472
 
6473
+ # [Optional] Maximum length of values of this field for STRINGS or BYTES. If
6474
+ # max_length is not specified, no maximum length constraint is imposed on this
6475
+ # field. If type = "STRING", then max_length represents the maximum UTF-8 length
6476
+ # of strings in this field. If type = "BYTES", then max_length represents the
6477
+ # maximum number of bytes in this field. It is invalid to set this field if type
6478
+ # ≠ "STRING" and ≠ "BYTES".
6479
+ # Corresponds to the JSON property `maxLength`
6480
+ # @return [Fixnum]
6481
+ attr_accessor :max_length
6482
+
6212
6483
  # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and
6213
6484
  # REPEATED. The default value is NULLABLE.
6214
6485
  # Corresponds to the JSON property `mode`
@@ -6217,7 +6488,7 @@ module Google
6217
6488
 
6218
6489
  # [Required] The field name. The name must contain only letters (a-z, A-Z),
6219
6490
  # numbers (0-9), or underscores (_), and must start with a letter or underscore.
6220
- # The maximum length is 128 characters.
6491
+ # The maximum length is 300 characters.
6221
6492
  # Corresponds to the JSON property `name`
6222
6493
  # @return [String]
6223
6494
  attr_accessor :name
@@ -6227,10 +6498,36 @@ module Google
6227
6498
  # @return [Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags]
6228
6499
  attr_accessor :policy_tags
6229
6500
 
6501
+ # [Optional] Precision (maximum number of total digits in base 10) and scale (
6502
+ # maximum number of digits in the fractional part in base 10) constraints for
6503
+ # values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision
6504
+ # or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are
6505
+ # not specified, no value range constraint is imposed on this field insofar as
6506
+ # values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field
6507
+ # must be in this range when: - Precision (P) and scale (S) are specified: [-10P-
6508
+ # S + 10-S, 10P-S - 10-S] - Precision (P) is specified but not scale (and thus
6509
+ # scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable
6510
+ # values for precision and scale if both are specified: - If type = "NUMERIC": 1
6511
+ # ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. - If type = "BIGNUMERIC": 1 ≤
6512
+ # precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if
6513
+ # only precision is specified but not scale (and thus scale is interpreted to be
6514
+ # equal to zero): - If type = "NUMERIC": 1 ≤ precision ≤ 29. - If type = "
6515
+ # BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then
6516
+ # it is invalid.
6517
+ # Corresponds to the JSON property `precision`
6518
+ # @return [Fixnum]
6519
+ attr_accessor :precision
6520
+
6521
+ # [Optional] See documentation for precision.
6522
+ # Corresponds to the JSON property `scale`
6523
+ # @return [Fixnum]
6524
+ attr_accessor :scale
6525
+
6230
6526
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
6231
- # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), BOOLEAN, BOOL (same
6232
- # as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (where RECORD indicates
6233
- # that the field contains a nested schema) or STRUCT (same as RECORD).
6527
+ # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
6528
+ # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, INTERVAL,
6529
+ # RECORD (where RECORD indicates that the field contains a nested schema) or
6530
+ # STRUCT (same as RECORD).
6234
6531
  # Corresponds to the JSON property `type`
6235
6532
  # @return [String]
6236
6533
  attr_accessor :type
@@ -6244,9 +6541,12 @@ module Google
6244
6541
  @categories = args[:categories] if args.key?(:categories)
6245
6542
  @description = args[:description] if args.key?(:description)
6246
6543
  @fields = args[:fields] if args.key?(:fields)
6544
+ @max_length = args[:max_length] if args.key?(:max_length)
6247
6545
  @mode = args[:mode] if args.key?(:mode)
6248
6546
  @name = args[:name] if args.key?(:name)
6249
6547
  @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
6548
+ @precision = args[:precision] if args.key?(:precision)
6549
+ @scale = args[:scale] if args.key?(:scale)
6250
6550
  @type = args[:type] if args.key?(:type)
6251
6551
  end
6252
6552
 
@@ -6599,10 +6899,16 @@ module Google
6599
6899
  end
6600
6900
  end
6601
6901
 
6602
- #
6902
+ # Options used in model training.
6603
6903
  class TrainingOptions
6604
6904
  include Google::Apis::Core::Hashable
6605
6905
 
6906
+ # If true, detect step changes and make data adjustment in the input time series.
6907
+ # Corresponds to the JSON property `adjustStepChanges`
6908
+ # @return [Boolean]
6909
+ attr_accessor :adjust_step_changes
6910
+ alias_method :adjust_step_changes?, :adjust_step_changes
6911
+
6606
6912
  # Whether to enable auto ARIMA or not.
6607
6913
  # Corresponds to the JSON property `autoArima`
6608
6914
  # @return [Boolean]
@@ -6619,6 +6925,12 @@ module Google
6619
6925
  # @return [Fixnum]
6620
6926
  attr_accessor :batch_size
6621
6927
 
6928
+ # If true, clean spikes and dips in the input time series.
6929
+ # Corresponds to the JSON property `cleanSpikesAndDips`
6930
+ # @return [Boolean]
6931
+ attr_accessor :clean_spikes_and_dips
6932
+ alias_method :clean_spikes_and_dips?, :clean_spikes_and_dips
6933
+
6622
6934
  # The data frequency of a time series.
6623
6935
  # Corresponds to the JSON property `dataFrequency`
6624
6936
  # @return [String]
@@ -6648,6 +6960,12 @@ module Google
6648
6960
  # @return [String]
6649
6961
  attr_accessor :data_split_method
6650
6962
 
6963
+ # If true, perform decompose time series and save the results.
6964
+ # Corresponds to the JSON property `decomposeTimeSeries`
6965
+ # @return [Boolean]
6966
+ attr_accessor :decompose_time_series
6967
+ alias_method :decompose_time_series?, :decompose_time_series
6968
+
6651
6969
  # Distance type for clustering models.
6652
6970
  # Corresponds to the JSON property `distanceType`
6653
6971
  # @return [String]
@@ -6773,8 +7091,8 @@ module Google
6773
7091
  # @return [Float]
6774
7092
  attr_accessor :min_split_loss
6775
7093
 
6776
- # [Beta] Google Cloud Storage URI from which the model was imported. Only
6777
- # applicable for imported models.
7094
+ # Google Cloud Storage URI from which the model was imported. Only applicable
7095
+ # for imported models.
6778
7096
  # Corresponds to the JSON property `modelUri`
6779
7097
  # @return [String]
6780
7098
  attr_accessor :model_uri
@@ -6818,12 +7136,16 @@ module Google
6818
7136
  # @return [String]
6819
7137
  attr_accessor :time_series_data_column
6820
7138
 
6821
- # The id column that will be used to indicate different time series to forecast
6822
- # in parallel.
7139
+ # The time series id column that was used during ARIMA model training.
6823
7140
  # Corresponds to the JSON property `timeSeriesIdColumn`
6824
7141
  # @return [String]
6825
7142
  attr_accessor :time_series_id_column
6826
7143
 
7144
+ # The time series id columns that were used during ARIMA model training.
7145
+ # Corresponds to the JSON property `timeSeriesIdColumns`
7146
+ # @return [Array<String>]
7147
+ attr_accessor :time_series_id_columns
7148
+
6827
7149
  # Column to be designated as time series timestamp for ARIMA model.
6828
7150
  # Corresponds to the JSON property `timeSeriesTimestampColumn`
6829
7151
  # @return [String]
@@ -6851,13 +7173,16 @@ module Google
6851
7173
 
6852
7174
  # Update properties of this object
6853
7175
  def update!(**args)
7176
+ @adjust_step_changes = args[:adjust_step_changes] if args.key?(:adjust_step_changes)
6854
7177
  @auto_arima = args[:auto_arima] if args.key?(:auto_arima)
6855
7178
  @auto_arima_max_order = args[:auto_arima_max_order] if args.key?(:auto_arima_max_order)
6856
7179
  @batch_size = args[:batch_size] if args.key?(:batch_size)
7180
+ @clean_spikes_and_dips = args[:clean_spikes_and_dips] if args.key?(:clean_spikes_and_dips)
6857
7181
  @data_frequency = args[:data_frequency] if args.key?(:data_frequency)
6858
7182
  @data_split_column = args[:data_split_column] if args.key?(:data_split_column)
6859
7183
  @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
6860
7184
  @data_split_method = args[:data_split_method] if args.key?(:data_split_method)
7185
+ @decompose_time_series = args[:decompose_time_series] if args.key?(:decompose_time_series)
6861
7186
  @distance_type = args[:distance_type] if args.key?(:distance_type)
6862
7187
  @dropout = args[:dropout] if args.key?(:dropout)
6863
7188
  @early_stop = args[:early_stop] if args.key?(:early_stop)
@@ -6890,6 +7215,7 @@ module Google
6890
7215
  @subsample = args[:subsample] if args.key?(:subsample)
6891
7216
  @time_series_data_column = args[:time_series_data_column] if args.key?(:time_series_data_column)
6892
7217
  @time_series_id_column = args[:time_series_id_column] if args.key?(:time_series_id_column)
7218
+ @time_series_id_columns = args[:time_series_id_columns] if args.key?(:time_series_id_columns)
6893
7219
  @time_series_timestamp_column = args[:time_series_timestamp_column] if args.key?(:time_series_timestamp_column)
6894
7220
  @user_column = args[:user_column] if args.key?(:user_column)
6895
7221
  @wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
@@ -6931,8 +7257,7 @@ module Google
6931
7257
  # @return [String]
6932
7258
  attr_accessor :start_time
6933
7259
 
6934
- # Options that were used for this training run, includes user specified and
6935
- # default options that were used.
7260
+ # Options used in model training.
6936
7261
  # Corresponds to the JSON property `trainingOptions`
6937
7262
  # @return [Google::Apis::BigqueryV2::TrainingOptions]
6938
7263
  attr_accessor :training_options