google-apis-bigquery_v2 0.5.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99b981f1f35cc7f653f5def161757aab5509f948c04eee28877cef679d39bd75
4
- data.tar.gz: 523cef039b5d26df55b31c071f48460bddc53a367c988c06f947fe0a66eff258
3
+ metadata.gz: 48a27e0a4c344e4836fb233e76443e94997d51116b1baf9520404fa5aec2cb0b
4
+ data.tar.gz: c9f0557ca87343dc1190e4efb3afeb5df6ec6300b84c2cd920bd86233ac5d4c4
5
5
  SHA512:
6
- metadata.gz: fa035dcc0395167de1659dd73d910616e6b6293ba25cc45707bcf438dd31f109987c2738dd4dad29807d6aed7ba1ec2eeb0fd0a07bbcd35eab18426b20e23f79
7
- data.tar.gz: 4eac905733b9ec51d7dfa2dc37cff46802a042e45894a532ba35a91d5eac770cc4e1a53b63a6ddf1a73ed9a0c80eb27c130c8df066ce27f13e3cd297334f4dd4
6
+ metadata.gz: eb4e4d01e11fa1f6dbeaaa1958217cc0049d0a488e5984afe4a1567954b6562b0f4b50eda8a0bd6791ffbac4071519a4152d48c01c960ce841efe39a937f574d
7
+ data.tar.gz: a3ea3e2c9167483a4615d0d4d913d5180ebb4d0a204562e925adf115e83c5d60c55b9233c6c148a1e10b00c7f76cdf45bbb3dd208e107eff070c88bae9de6241
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.10.0 (2021-05-07)
4
+
5
+ * Regenerated from discovery document revision 20210430
6
+
7
+ ### v0.9.0 (2021-04-02)
8
+
9
+ * Regenerated from discovery document revision 20210327
10
+
11
+ ### v0.8.0 (2021-03-18)
12
+
13
+ * Regenerated from discovery document revision 20210313
14
+
15
+ ### v0.7.0 (2021-03-10)
16
+
17
+ * Regenerated from discovery document revision 20210303
18
+ * Regenerated using generator version 0.2.0
19
+
20
+ ### v0.6.0 (2021-03-04)
21
+
22
+ * Unspecified changes
23
+
3
24
  ### v0.5.0 (2021-02-26)
4
25
 
5
26
  * Regenerated from discovery document revision 20210219
@@ -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]
@@ -283,6 +301,15 @@ module Google
283
301
  # @return [String]
284
302
  attr_accessor :time_series_id
285
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
+
286
313
  def initialize(**args)
287
314
  update!(**args)
288
315
  end
@@ -292,9 +319,13 @@ module Google
292
319
  @arima_coefficients = args[:arima_coefficients] if args.key?(:arima_coefficients)
293
320
  @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
294
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)
295
325
  @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
296
326
  @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
297
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)
298
329
  end
299
330
  end
300
331
 
@@ -372,6 +403,24 @@ module Google
372
403
  attr_accessor :has_drift
373
404
  alias_method :has_drift?, :has_drift
374
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
+
375
424
  # Arima order, can be used for both non-seasonal and seasonal parts.
376
425
  # Corresponds to the JSON property `nonSeasonalOrder`
377
426
  # @return [Google::Apis::BigqueryV2::ArimaOrder]
@@ -390,6 +439,15 @@ module Google
390
439
  # @return [String]
391
440
  attr_accessor :time_series_id
392
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
+
393
451
  def initialize(**args)
394
452
  update!(**args)
395
453
  end
@@ -398,9 +456,13 @@ module Google
398
456
  def update!(**args)
399
457
  @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics)
400
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)
401
462
  @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order)
402
463
  @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods)
403
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)
404
466
  end
405
467
  end
406
468
 
@@ -1781,25 +1843,6 @@ module Google
1781
1843
  end
1782
1844
  end
1783
1845
 
1784
- # Model evaluation metrics for dimensionality reduction models.
1785
- class DimensionalityReductionMetrics
1786
- include Google::Apis::Core::Hashable
1787
-
1788
- # Total percentage of variance explained by the selected principal components.
1789
- # Corresponds to the JSON property `totalExplainedVarianceRatio`
1790
- # @return [Float]
1791
- attr_accessor :total_explained_variance_ratio
1792
-
1793
- def initialize(**args)
1794
- update!(**args)
1795
- end
1796
-
1797
- # Update properties of this object
1798
- def update!(**args)
1799
- @total_explained_variance_ratio = args[:total_explained_variance_ratio] if args.key?(:total_explained_variance_ratio)
1800
- end
1801
- end
1802
-
1803
1846
  #
1804
1847
  class EncryptionConfiguration
1805
1848
  include Google::Apis::Core::Hashable
@@ -1906,11 +1949,6 @@ module Google
1906
1949
  # @return [Google::Apis::BigqueryV2::ClusteringMetrics]
1907
1950
  attr_accessor :clustering_metrics
1908
1951
 
1909
- # Model evaluation metrics for dimensionality reduction models.
1910
- # Corresponds to the JSON property `dimensionalityReductionMetrics`
1911
- # @return [Google::Apis::BigqueryV2::DimensionalityReductionMetrics]
1912
- attr_accessor :dimensionality_reduction_metrics
1913
-
1914
1952
  # Evaluation metrics for multi-class classification/classifier models.
1915
1953
  # Corresponds to the JSON property `multiClassClassificationMetrics`
1916
1954
  # @return [Google::Apis::BigqueryV2::MultiClassClassificationMetrics]
@@ -1937,7 +1975,6 @@ module Google
1937
1975
  @arima_forecasting_metrics = args[:arima_forecasting_metrics] if args.key?(:arima_forecasting_metrics)
1938
1976
  @binary_classification_metrics = args[:binary_classification_metrics] if args.key?(:binary_classification_metrics)
1939
1977
  @clustering_metrics = args[:clustering_metrics] if args.key?(:clustering_metrics)
1940
- @dimensionality_reduction_metrics = args[:dimensionality_reduction_metrics] if args.key?(:dimensionality_reduction_metrics)
1941
1978
  @multi_class_classification_metrics = args[:multi_class_classification_metrics] if args.key?(:multi_class_classification_metrics)
1942
1979
  @ranking_metrics = args[:ranking_metrics] if args.key?(:ranking_metrics)
1943
1980
  @regression_metrics = args[:regression_metrics] if args.key?(:regression_metrics)
@@ -2715,11 +2752,6 @@ module Google
2715
2752
  # @return [Float]
2716
2753
  attr_accessor :learn_rate
2717
2754
 
2718
- # The information of the principal components.
2719
- # Corresponds to the JSON property `principalComponentInfos`
2720
- # @return [Array<Google::Apis::BigqueryV2::PrincipalComponentInfo>]
2721
- attr_accessor :principal_component_infos
2722
-
2723
2755
  # Loss computed on the training data at the end of iteration.
2724
2756
  # Corresponds to the JSON property `trainingLoss`
2725
2757
  # @return [Float]
@@ -2737,7 +2769,6 @@ module Google
2737
2769
  @eval_loss = args[:eval_loss] if args.key?(:eval_loss)
2738
2770
  @index = args[:index] if args.key?(:index)
2739
2771
  @learn_rate = args[:learn_rate] if args.key?(:learn_rate)
2740
- @principal_component_infos = args[:principal_component_infos] if args.key?(:principal_component_infos)
2741
2772
  @training_loss = args[:training_loss] if args.key?(:training_loss)
2742
2773
  end
2743
2774
  end
@@ -3323,6 +3354,14 @@ module Google
3323
3354
  # @return [String]
3324
3355
  attr_accessor :create_disposition
3325
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
+
3326
3365
  # [Optional] Specifies the default dataset to use for unqualified table names in
3327
3366
  # the query. Note that this does not alter behavior of unqualified dataset names.
3328
3367
  # Corresponds to the JSON property `defaultDataset`
@@ -3472,6 +3511,7 @@ module Google
3472
3511
  @clustering = args[:clustering] if args.key?(:clustering)
3473
3512
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
3474
3513
  @create_disposition = args[:create_disposition] if args.key?(:create_disposition)
3514
+ @create_session = args[:create_session] if args.key?(:create_session)
3475
3515
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
3476
3516
  @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
3477
3517
  @destination_table = args[:destination_table] if args.key?(:destination_table)
@@ -3783,6 +3823,11 @@ module Google
3783
3823
  # @return [Google::Apis::BigqueryV2::ScriptStatistics]
3784
3824
  attr_accessor :script_statistics
3785
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
+
3786
3831
  # [Output-only] Start time of this job, in milliseconds since the epoch. This
3787
3832
  # field will be present when the job transitions from the PENDING state to
3788
3833
  # either RUNNING or DONE.
@@ -3826,6 +3871,7 @@ module Google
3826
3871
  @reservation_id = args[:reservation_id] if args.key?(:reservation_id)
3827
3872
  @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
3828
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)
3829
3875
  @start_time = args[:start_time] if args.key?(:start_time)
3830
3876
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
3831
3877
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@@ -3879,6 +3925,12 @@ module Google
3879
3925
  # @return [Fixnum]
3880
3926
  attr_accessor :ddl_affected_row_access_policy_count
3881
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
+
3882
3934
  # The DDL operation performed, possibly dependent on the pre-existence of the
3883
3935
  # DDL target. Possible values (new values might be added in the future): "CREATE"
3884
3936
  # : The query created the DDL target. "SKIP": No-op. Example cases: the query is
@@ -4038,6 +4090,7 @@ module Google
4038
4090
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
4039
4091
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
4040
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)
4041
4094
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
4042
4095
  @ddl_target_dataset = args[:ddl_target_dataset] if args.key?(:ddl_target_dataset)
4043
4096
  @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
@@ -4344,6 +4397,11 @@ module Google
4344
4397
  class Model
4345
4398
  include Google::Apis::Core::Hashable
4346
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
+
4347
4405
  # Output only. The time when this model was created, in millisecs since the
4348
4406
  # epoch.
4349
4407
  # Corresponds to the JSON property `creationTime`
@@ -4436,6 +4494,7 @@ module Google
4436
4494
 
4437
4495
  # Update properties of this object
4438
4496
  def update!(**args)
4497
+ @best_trial_id = args[:best_trial_id] if args.key?(:best_trial_id)
4439
4498
  @creation_time = args[:creation_time] if args.key?(:creation_time)
4440
4499
  @description = args[:description] if args.key?(:description)
4441
4500
  @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
@@ -4696,45 +4755,6 @@ module Google
4696
4755
  end
4697
4756
  end
4698
4757
 
4699
- # Principal component infos, used only for eigen decomposition based models, e.g.
4700
- # , PCA. Ordered by explained_variance in the descending order.
4701
- class PrincipalComponentInfo
4702
- include Google::Apis::Core::Hashable
4703
-
4704
- # The explained_variance is pre-ordered in the descending order to compute the
4705
- # cumulative explained variance ratio.
4706
- # Corresponds to the JSON property `cumulativeExplainedVarianceRatio`
4707
- # @return [Float]
4708
- attr_accessor :cumulative_explained_variance_ratio
4709
-
4710
- # Explained variance by this principal component, which is simply the eigenvalue.
4711
- # Corresponds to the JSON property `explainedVariance`
4712
- # @return [Float]
4713
- attr_accessor :explained_variance
4714
-
4715
- # Explained_variance over the total explained variance.
4716
- # Corresponds to the JSON property `explainedVarianceRatio`
4717
- # @return [Float]
4718
- attr_accessor :explained_variance_ratio
4719
-
4720
- # Id of the principal component.
4721
- # Corresponds to the JSON property `principalComponentId`
4722
- # @return [Fixnum]
4723
- attr_accessor :principal_component_id
4724
-
4725
- def initialize(**args)
4726
- update!(**args)
4727
- end
4728
-
4729
- # Update properties of this object
4730
- def update!(**args)
4731
- @cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio)
4732
- @explained_variance = args[:explained_variance] if args.key?(:explained_variance)
4733
- @explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio)
4734
- @principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id)
4735
- end
4736
- end
4737
-
4738
4758
  #
4739
4759
  class ProjectList
4740
4760
  include Google::Apis::Core::Hashable
@@ -4976,6 +4996,14 @@ module Google
4976
4996
  # @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
4977
4997
  attr_accessor :connection_properties
4978
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
+
4979
5007
  # [Optional] Specifies the default datasetId and projectId to assume for any
4980
5008
  # unqualified table names in the query. If not set, all table names in the query
4981
5009
  # string must be qualified in the format 'datasetId.tableId'.
@@ -5110,6 +5138,7 @@ module Google
5110
5138
  # Update properties of this object
5111
5139
  def update!(**args)
5112
5140
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
5141
+ @create_session = args[:create_session] if args.key?(:create_session)
5113
5142
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
5114
5143
  @dry_run = args[:dry_run] if args.key?(:dry_run)
5115
5144
  @kind = args[:kind] if args.key?(:kind)
@@ -5190,6 +5219,11 @@ module Google
5190
5219
  # @return [Google::Apis::BigqueryV2::TableSchema]
5191
5220
  attr_accessor :schema
5192
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
+
5193
5227
  # The total number of bytes processed for this query. If this query was a dry
5194
5228
  # run, this is the number of bytes that would be processed if the query were run.
5195
5229
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -5217,6 +5251,7 @@ module Google
5217
5251
  @page_token = args[:page_token] if args.key?(:page_token)
5218
5252
  @rows = args[:rows] if args.key?(:rows)
5219
5253
  @schema = args[:schema] if args.key?(:schema)
5254
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
5220
5255
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
5221
5256
  @total_rows = args[:total_rows] if args.key?(:total_rows)
5222
5257
  end
@@ -5475,6 +5510,11 @@ module Google
5475
5510
  # @return [Fixnum]
5476
5511
  attr_accessor :last_modified_time
5477
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
+
5478
5518
  # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
5479
5519
  # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
5480
5520
  # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
@@ -5508,6 +5548,7 @@ module Google
5508
5548
  @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
5509
5549
  @language = args[:language] if args.key?(:language)
5510
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)
5511
5552
  @return_type = args[:return_type] if args.key?(:return_type)
5512
5553
  @routine_reference = args[:routine_reference] if args.key?(:routine_reference)
5513
5554
  @routine_type = args[:routine_type] if args.key?(:routine_type)
@@ -5757,6 +5798,25 @@ module Google
5757
5798
  end
5758
5799
  end
5759
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
+
5760
5820
  # Request message for `SetIamPolicy` method.
5761
5821
  class SetIamPolicyRequest
5762
5822
  include Google::Apis::Core::Hashable
@@ -5920,6 +5980,25 @@ module Google
5920
5980
  end
5921
5981
  end
5922
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
+
5923
6002
  #
5924
6003
  class Streamingbuffer
5925
6004
  include Google::Apis::Core::Hashable
@@ -6391,6 +6470,16 @@ module Google
6391
6470
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
6392
6471
  attr_accessor :fields
6393
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
+
6394
6483
  # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and
6395
6484
  # REPEATED. The default value is NULLABLE.
6396
6485
  # Corresponds to the JSON property `mode`
@@ -6399,7 +6488,7 @@ module Google
6399
6488
 
6400
6489
  # [Required] The field name. The name must contain only letters (a-z, A-Z),
6401
6490
  # numbers (0-9), or underscores (_), and must start with a letter or underscore.
6402
- # The maximum length is 128 characters.
6491
+ # The maximum length is 300 characters.
6403
6492
  # Corresponds to the JSON property `name`
6404
6493
  # @return [String]
6405
6494
  attr_accessor :name
@@ -6409,11 +6498,36 @@ module Google
6409
6498
  # @return [Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags]
6410
6499
  attr_accessor :policy_tags
6411
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
+
6412
6526
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
6413
6527
  # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
6414
- # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
6415
- # where RECORD indicates that the field contains a nested schema) or STRUCT (
6416
- # same as RECORD).
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).
6417
6531
  # Corresponds to the JSON property `type`
6418
6532
  # @return [String]
6419
6533
  attr_accessor :type
@@ -6427,9 +6541,12 @@ module Google
6427
6541
  @categories = args[:categories] if args.key?(:categories)
6428
6542
  @description = args[:description] if args.key?(:description)
6429
6543
  @fields = args[:fields] if args.key?(:fields)
6544
+ @max_length = args[:max_length] if args.key?(:max_length)
6430
6545
  @mode = args[:mode] if args.key?(:mode)
6431
6546
  @name = args[:name] if args.key?(:name)
6432
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)
6433
6550
  @type = args[:type] if args.key?(:type)
6434
6551
  end
6435
6552
 
@@ -6786,6 +6903,12 @@ module Google
6786
6903
  class TrainingOptions
6787
6904
  include Google::Apis::Core::Hashable
6788
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
+
6789
6912
  # Whether to enable auto ARIMA or not.
6790
6913
  # Corresponds to the JSON property `autoArima`
6791
6914
  # @return [Boolean]
@@ -6802,6 +6925,12 @@ module Google
6802
6925
  # @return [Fixnum]
6803
6926
  attr_accessor :batch_size
6804
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
+
6805
6934
  # The data frequency of a time series.
6806
6935
  # Corresponds to the JSON property `dataFrequency`
6807
6936
  # @return [String]
@@ -6831,6 +6960,12 @@ module Google
6831
6960
  # @return [String]
6832
6961
  attr_accessor :data_split_method
6833
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
+
6834
6969
  # Distance type for clustering models.
6835
6970
  # Corresponds to the JSON property `distanceType`
6836
6971
  # @return [String]
@@ -7006,6 +7141,11 @@ module Google
7006
7141
  # @return [String]
7007
7142
  attr_accessor :time_series_id_column
7008
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
+
7009
7149
  # Column to be designated as time series timestamp for ARIMA model.
7010
7150
  # Corresponds to the JSON property `timeSeriesTimestampColumn`
7011
7151
  # @return [String]
@@ -7033,13 +7173,16 @@ module Google
7033
7173
 
7034
7174
  # Update properties of this object
7035
7175
  def update!(**args)
7176
+ @adjust_step_changes = args[:adjust_step_changes] if args.key?(:adjust_step_changes)
7036
7177
  @auto_arima = args[:auto_arima] if args.key?(:auto_arima)
7037
7178
  @auto_arima_max_order = args[:auto_arima_max_order] if args.key?(:auto_arima_max_order)
7038
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)
7039
7181
  @data_frequency = args[:data_frequency] if args.key?(:data_frequency)
7040
7182
  @data_split_column = args[:data_split_column] if args.key?(:data_split_column)
7041
7183
  @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
7042
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)
7043
7186
  @distance_type = args[:distance_type] if args.key?(:distance_type)
7044
7187
  @dropout = args[:dropout] if args.key?(:dropout)
7045
7188
  @early_stop = args[:early_stop] if args.key?(:early_stop)
@@ -7072,6 +7215,7 @@ module Google
7072
7215
  @subsample = args[:subsample] if args.key?(:subsample)
7073
7216
  @time_series_data_column = args[:time_series_data_column] if args.key?(:time_series_data_column)
7074
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)
7075
7219
  @time_series_timestamp_column = args[:time_series_timestamp_column] if args.key?(:time_series_timestamp_column)
7076
7220
  @user_column = args[:user_column] if args.key?(:user_column)
7077
7221
  @wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryV2
18
18
  # Version of the google-apis-bigquery_v2 gem
19
- GEM_VERSION = "0.5.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210219"
25
+ REVISION = "20210430"
26
26
  end
27
27
  end
28
28
  end
@@ -256,12 +256,6 @@ module Google
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
- class DimensionalityReductionMetrics
260
- class Representation < Google::Apis::Core::JsonRepresentation; end
261
-
262
- include Google::Apis::Core::JsonObjectSupport
263
- end
264
-
265
259
  class EncryptionConfiguration
266
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
261
 
@@ -544,12 +538,6 @@ module Google
544
538
  include Google::Apis::Core::JsonObjectSupport
545
539
  end
546
540
 
547
- class PrincipalComponentInfo
548
- class Representation < Google::Apis::Core::JsonRepresentation; end
549
-
550
- include Google::Apis::Core::JsonObjectSupport
551
- end
552
-
553
541
  class ProjectList
554
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
555
543
 
@@ -682,6 +670,12 @@ module Google
682
670
  include Google::Apis::Core::JsonObjectSupport
683
671
  end
684
672
 
673
+ class SessionInfo
674
+ class Representation < Google::Apis::Core::JsonRepresentation; end
675
+
676
+ include Google::Apis::Core::JsonObjectSupport
677
+ end
678
+
685
679
  class SetIamPolicyRequest
686
680
  class Representation < Google::Apis::Core::JsonRepresentation; end
687
681
 
@@ -712,6 +706,12 @@ module Google
712
706
  include Google::Apis::Core::JsonObjectSupport
713
707
  end
714
708
 
709
+ class StandardSqlTableType
710
+ class Representation < Google::Apis::Core::JsonRepresentation; end
711
+
712
+ include Google::Apis::Core::JsonObjectSupport
713
+ end
714
+
715
715
  class Streamingbuffer
716
716
  class Representation < Google::Apis::Core::JsonRepresentation; end
717
717
 
@@ -927,10 +927,14 @@ module Google
927
927
  property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
928
928
 
929
929
  property :has_drift, as: 'hasDrift'
930
+ property :has_holiday_effect, as: 'hasHolidayEffect'
931
+ property :has_spikes_and_dips, as: 'hasSpikesAndDips'
932
+ property :has_step_changes, as: 'hasStepChanges'
930
933
  property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
931
934
 
932
935
  collection :seasonal_periods, as: 'seasonalPeriods'
933
936
  property :time_series_id, as: 'timeSeriesId'
937
+ collection :time_series_ids, as: 'timeSeriesIds'
934
938
  end
935
939
  end
936
940
 
@@ -958,10 +962,14 @@ module Google
958
962
  property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
959
963
 
960
964
  property :has_drift, as: 'hasDrift'
965
+ property :has_holiday_effect, as: 'hasHolidayEffect'
966
+ property :has_spikes_and_dips, as: 'hasSpikesAndDips'
967
+ property :has_step_changes, as: 'hasStepChanges'
961
968
  property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
962
969
 
963
970
  collection :seasonal_periods, as: 'seasonalPeriods'
964
971
  property :time_series_id, as: 'timeSeriesId'
972
+ collection :time_series_ids, as: 'timeSeriesIds'
965
973
  end
966
974
  end
967
975
 
@@ -1292,13 +1300,6 @@ module Google
1292
1300
  end
1293
1301
  end
1294
1302
 
1295
- class DimensionalityReductionMetrics
1296
- # @private
1297
- class Representation < Google::Apis::Core::JsonRepresentation
1298
- property :total_explained_variance_ratio, as: 'totalExplainedVarianceRatio'
1299
- end
1300
- end
1301
-
1302
1303
  class EncryptionConfiguration
1303
1304
  # @private
1304
1305
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1333,8 +1334,6 @@ module Google
1333
1334
 
1334
1335
  property :clustering_metrics, as: 'clusteringMetrics', class: Google::Apis::BigqueryV2::ClusteringMetrics, decorator: Google::Apis::BigqueryV2::ClusteringMetrics::Representation
1335
1336
 
1336
- property :dimensionality_reduction_metrics, as: 'dimensionalityReductionMetrics', class: Google::Apis::BigqueryV2::DimensionalityReductionMetrics, decorator: Google::Apis::BigqueryV2::DimensionalityReductionMetrics::Representation
1337
-
1338
1337
  property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation
1339
1338
 
1340
1339
  property :ranking_metrics, as: 'rankingMetrics', class: Google::Apis::BigqueryV2::RankingMetrics, decorator: Google::Apis::BigqueryV2::RankingMetrics::Representation
@@ -1524,8 +1523,6 @@ module Google
1524
1523
  property :eval_loss, as: 'evalLoss'
1525
1524
  property :index, as: 'index'
1526
1525
  property :learn_rate, as: 'learnRate'
1527
- collection :principal_component_infos, as: 'principalComponentInfos', class: Google::Apis::BigqueryV2::PrincipalComponentInfo, decorator: Google::Apis::BigqueryV2::PrincipalComponentInfo::Representation
1528
-
1529
1526
  property :training_loss, as: 'trainingLoss'
1530
1527
  end
1531
1528
  end
@@ -1647,6 +1644,7 @@ module Google
1647
1644
  collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
1648
1645
 
1649
1646
  property :create_disposition, as: 'createDisposition'
1647
+ property :create_session, as: 'createSession'
1650
1648
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1651
1649
 
1652
1650
  property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
@@ -1757,6 +1755,8 @@ module Google
1757
1755
 
1758
1756
  property :script_statistics, as: 'scriptStatistics', class: Google::Apis::BigqueryV2::ScriptStatistics, decorator: Google::Apis::BigqueryV2::ScriptStatistics::Representation
1759
1757
 
1758
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
1759
+
1760
1760
  property :start_time, :numeric_string => true, as: 'startTime'
1761
1761
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
1762
1762
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
@@ -1779,6 +1779,8 @@ module Google
1779
1779
  property :billing_tier, as: 'billingTier'
1780
1780
  property :cache_hit, as: 'cacheHit'
1781
1781
  property :ddl_affected_row_access_policy_count, :numeric_string => true, as: 'ddlAffectedRowAccessPolicyCount'
1782
+ property :ddl_destination_table, as: 'ddlDestinationTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
1783
+
1782
1784
  property :ddl_operation_performed, as: 'ddlOperationPerformed'
1783
1785
  property :ddl_target_dataset, as: 'ddlTargetDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1784
1786
 
@@ -1902,6 +1904,7 @@ module Google
1902
1904
  class Model
1903
1905
  # @private
1904
1906
  class Representation < Google::Apis::Core::JsonRepresentation
1907
+ property :best_trial_id, :numeric_string => true, as: 'bestTrialId'
1905
1908
  property :creation_time, :numeric_string => true, as: 'creationTime'
1906
1909
  property :description, as: 'description'
1907
1910
  property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
@@ -1982,16 +1985,6 @@ module Google
1982
1985
  end
1983
1986
  end
1984
1987
 
1985
- class PrincipalComponentInfo
1986
- # @private
1987
- class Representation < Google::Apis::Core::JsonRepresentation
1988
- property :cumulative_explained_variance_ratio, as: 'cumulativeExplainedVarianceRatio'
1989
- property :explained_variance, as: 'explainedVariance'
1990
- property :explained_variance_ratio, as: 'explainedVarianceRatio'
1991
- property :principal_component_id, :numeric_string => true, as: 'principalComponentId'
1992
- end
1993
- end
1994
-
1995
1988
  class ProjectList
1996
1989
  # @private
1997
1990
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2071,6 +2064,7 @@ module Google
2071
2064
  class Representation < Google::Apis::Core::JsonRepresentation
2072
2065
  collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
2073
2066
 
2067
+ property :create_session, as: 'createSession'
2074
2068
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
2075
2069
 
2076
2070
  property :dry_run, as: 'dryRun'
@@ -2107,6 +2101,8 @@ module Google
2107
2101
 
2108
2102
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
2109
2103
 
2104
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
2105
+
2110
2106
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
2111
2107
  property :total_rows, :numeric_string => true, as: 'totalRows'
2112
2108
  end
@@ -2175,6 +2171,8 @@ module Google
2175
2171
  collection :imported_libraries, as: 'importedLibraries'
2176
2172
  property :language, as: 'language'
2177
2173
  property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
2174
+ property :return_table_type, as: 'returnTableType', class: Google::Apis::BigqueryV2::StandardSqlTableType, decorator: Google::Apis::BigqueryV2::StandardSqlTableType::Representation
2175
+
2178
2176
  property :return_type, as: 'returnType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
2179
2177
 
2180
2178
  property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
@@ -2251,6 +2249,13 @@ module Google
2251
2249
  end
2252
2250
  end
2253
2251
 
2252
+ class SessionInfo
2253
+ # @private
2254
+ class Representation < Google::Apis::Core::JsonRepresentation
2255
+ property :session_id, as: 'sessionId'
2256
+ end
2257
+ end
2258
+
2254
2259
  class SetIamPolicyRequest
2255
2260
  # @private
2256
2261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2298,6 +2303,14 @@ module Google
2298
2303
  end
2299
2304
  end
2300
2305
 
2306
+ class StandardSqlTableType
2307
+ # @private
2308
+ class Representation < Google::Apis::Core::JsonRepresentation
2309
+ collection :columns, as: 'columns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation
2310
+
2311
+ end
2312
+ end
2313
+
2301
2314
  class Streamingbuffer
2302
2315
  # @private
2303
2316
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2419,10 +2432,13 @@ module Google
2419
2432
  property :description, as: 'description'
2420
2433
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
2421
2434
 
2435
+ property :max_length, :numeric_string => true, as: 'maxLength'
2422
2436
  property :mode, as: 'mode'
2423
2437
  property :name, as: 'name'
2424
2438
  property :policy_tags, as: 'policyTags', class: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags, decorator: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags::Representation
2425
2439
 
2440
+ property :precision, :numeric_string => true, as: 'precision'
2441
+ property :scale, :numeric_string => true, as: 'scale'
2426
2442
  property :type, as: 'type'
2427
2443
  end
2428
2444
 
@@ -2535,13 +2551,16 @@ module Google
2535
2551
  class TrainingOptions
2536
2552
  # @private
2537
2553
  class Representation < Google::Apis::Core::JsonRepresentation
2554
+ property :adjust_step_changes, as: 'adjustStepChanges'
2538
2555
  property :auto_arima, as: 'autoArima'
2539
2556
  property :auto_arima_max_order, :numeric_string => true, as: 'autoArimaMaxOrder'
2540
2557
  property :batch_size, :numeric_string => true, as: 'batchSize'
2558
+ property :clean_spikes_and_dips, as: 'cleanSpikesAndDips'
2541
2559
  property :data_frequency, as: 'dataFrequency'
2542
2560
  property :data_split_column, as: 'dataSplitColumn'
2543
2561
  property :data_split_eval_fraction, as: 'dataSplitEvalFraction'
2544
2562
  property :data_split_method, as: 'dataSplitMethod'
2563
+ property :decompose_time_series, as: 'decomposeTimeSeries'
2545
2564
  property :distance_type, as: 'distanceType'
2546
2565
  property :dropout, as: 'dropout'
2547
2566
  property :early_stop, as: 'earlyStop'
@@ -2575,6 +2594,7 @@ module Google
2575
2594
  property :subsample, as: 'subsample'
2576
2595
  property :time_series_data_column, as: 'timeSeriesDataColumn'
2577
2596
  property :time_series_id_column, as: 'timeSeriesIdColumn'
2597
+ collection :time_series_id_columns, as: 'timeSeriesIdColumns'
2578
2598
  property :time_series_timestamp_column, as: 'timeSeriesTimestampColumn'
2579
2599
  property :user_column, as: 'userColumn'
2580
2600
  property :wals_alpha, as: 'walsAlpha'
@@ -340,6 +340,47 @@ module Google
340
340
  execute_or_queue_command(command, &block)
341
341
  end
342
342
 
343
+ # Requests that a job is deleted. This call will return when the job is deleted.
344
+ # This method is available in limited preview.
345
+ # @param [String] project_id
346
+ # Required. Project ID of the job to be deleted.
347
+ # @param [String] job_id
348
+ # Required. Job ID of the job to be deleted. If this is a parent job which has
349
+ # child jobs, all child jobs will be deleted as well. Deletion of child jobs
350
+ # directly is not allowed.
351
+ # @param [String] location
352
+ # The geographic location of the job. Required. See details at: https://cloud.
353
+ # google.com/bigquery/docs/locations#specifying_your_location.
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
+ # @param [String] quota_user
357
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
358
+ # characters.
359
+ # @param [String] user_ip
360
+ # Deprecated. Please use quotaUser instead.
361
+ # @param [Google::Apis::RequestOptions] options
362
+ # Request-specific options
363
+ #
364
+ # @yield [result, err] Result & error if block supplied
365
+ # @yieldparam result [NilClass] No result returned for this method
366
+ # @yieldparam err [StandardError] error object if request failed
367
+ #
368
+ # @return [void]
369
+ #
370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
373
+ def delete_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
374
+ command = make_simple_command(:delete, 'projects/{+projectId}/jobs/{+jobId}/delete', options)
375
+ command.params['projectId'] = project_id unless project_id.nil?
376
+ command.params['jobId'] = job_id unless job_id.nil?
377
+ command.query['location'] = location unless location.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ command.query['userIp'] = user_ip unless user_ip.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
343
384
  # Returns information about a specific job. Job information is available for a
344
385
  # six month period after creation. Requires that you're the person who ran the
345
386
  # job, or have the Is Owner project role.
@@ -660,6 +701,8 @@ module Google
660
701
  end
661
702
 
662
703
  # Lists all models in the specified dataset. Requires the READER dataset role.
704
+ # After retrieving the list of models, you can get information about a
705
+ # particular model by calling the models.get method.
663
706
  # @param [String] project_id
664
707
  # Required. Project ID of the models to list.
665
708
  # @param [String] dataset_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-01 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.5.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.10.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.11
72
+ rubygems_version: 3.2.17
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for BigQuery API V2