google-apis-bigquery_v2 0.7.0 → 0.12.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: 56c838165f7a17549feb840b93cb9f673f17bc9852f8b2f0ce226696d4cb0a75
4
- data.tar.gz: 8abc25725e98014460f4358f2463c10946e9e625e2855d82752d6dd717af2c04
3
+ metadata.gz: 6a44ebd05f6ef21146f6a201b0ac93d5757a27fde3570198f11ebcf620dcf4bc
4
+ data.tar.gz: 4da8c4cf1c4b9253219df736d530298549e6fc3d09b18deb829ed8471555e1da
5
5
  SHA512:
6
- metadata.gz: 24b362c3b5d48050c840e96d2f938b17bebad183bc5795048bdcb91e0619c7db48b08e8147b02480b81c27ee7ce687bf2770d5f9f505295ac00a7ab90c10d83a
7
- data.tar.gz: 553a09d88e6cf07a19951f4e24ae9cabfa3067d240bce16a84836bfafad89227bdaf0257c1e004dacd55362d68ee089513055c4a9b2317450b6684555e856fb8
6
+ metadata.gz: d3880b6f97a1f55873df6fd5d64ce3b05479234291e3f008382293b55517ef436a8b0a82937897a5b75256bb1116765b3001a0a9a15838054b48ff4985b8549a
7
+ data.tar.gz: e03b1a28b17b06395482e903c7878f05394b5685a4bab8184e3a663e194bfcb0dd945dc1f765eeacd61ec2cf47ef6814ade21e74e1613ca4c8cea901d728072b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.12.0 (2021-05-28)
4
+
5
+ * Regenerated from discovery document revision 20210518
6
+
7
+ ### v0.11.0 (2021-05-19)
8
+
9
+ * Unspecified changes
10
+
11
+ ### v0.10.0 (2021-05-07)
12
+
13
+ * Regenerated from discovery document revision 20210430
14
+
15
+ ### v0.9.0 (2021-04-02)
16
+
17
+ * Regenerated from discovery document revision 20210327
18
+
19
+ ### v0.8.0 (2021-03-18)
20
+
21
+ * Regenerated from discovery document revision 20210313
22
+
3
23
  ### v0.7.0 (2021-03-10)
4
24
 
5
25
  * Regenerated from discovery document revision 20210303
@@ -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
@@ -3792,6 +3823,11 @@ module Google
3792
3823
  # @return [Google::Apis::BigqueryV2::ScriptStatistics]
3793
3824
  attr_accessor :script_statistics
3794
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
+
3795
3831
  # [Output-only] Start time of this job, in milliseconds since the epoch. This
3796
3832
  # field will be present when the job transitions from the PENDING state to
3797
3833
  # either RUNNING or DONE.
@@ -3835,6 +3871,7 @@ module Google
3835
3871
  @reservation_id = args[:reservation_id] if args.key?(:reservation_id)
3836
3872
  @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
3837
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)
3838
3875
  @start_time = args[:start_time] if args.key?(:start_time)
3839
3876
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
3840
3877
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@@ -3888,6 +3925,12 @@ module Google
3888
3925
  # @return [Fixnum]
3889
3926
  attr_accessor :ddl_affected_row_access_policy_count
3890
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
+
3891
3934
  # The DDL operation performed, possibly dependent on the pre-existence of the
3892
3935
  # DDL target. Possible values (new values might be added in the future): "CREATE"
3893
3936
  # : The query created the DDL target. "SKIP": No-op. Example cases: the query is
@@ -4047,6 +4090,7 @@ module Google
4047
4090
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
4048
4091
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
4049
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)
4050
4094
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
4051
4095
  @ddl_target_dataset = args[:ddl_target_dataset] if args.key?(:ddl_target_dataset)
4052
4096
  @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
@@ -4711,45 +4755,6 @@ module Google
4711
4755
  end
4712
4756
  end
4713
4757
 
4714
- # Principal component infos, used only for eigen decomposition based models, e.g.
4715
- # , PCA. Ordered by explained_variance in the descending order.
4716
- class PrincipalComponentInfo
4717
- include Google::Apis::Core::Hashable
4718
-
4719
- # The explained_variance is pre-ordered in the descending order to compute the
4720
- # cumulative explained variance ratio.
4721
- # Corresponds to the JSON property `cumulativeExplainedVarianceRatio`
4722
- # @return [Float]
4723
- attr_accessor :cumulative_explained_variance_ratio
4724
-
4725
- # Explained variance by this principal component, which is simply the eigenvalue.
4726
- # Corresponds to the JSON property `explainedVariance`
4727
- # @return [Float]
4728
- attr_accessor :explained_variance
4729
-
4730
- # Explained_variance over the total explained variance.
4731
- # Corresponds to the JSON property `explainedVarianceRatio`
4732
- # @return [Float]
4733
- attr_accessor :explained_variance_ratio
4734
-
4735
- # Id of the principal component.
4736
- # Corresponds to the JSON property `principalComponentId`
4737
- # @return [Fixnum]
4738
- attr_accessor :principal_component_id
4739
-
4740
- def initialize(**args)
4741
- update!(**args)
4742
- end
4743
-
4744
- # Update properties of this object
4745
- def update!(**args)
4746
- @cumulative_explained_variance_ratio = args[:cumulative_explained_variance_ratio] if args.key?(:cumulative_explained_variance_ratio)
4747
- @explained_variance = args[:explained_variance] if args.key?(:explained_variance)
4748
- @explained_variance_ratio = args[:explained_variance_ratio] if args.key?(:explained_variance_ratio)
4749
- @principal_component_id = args[:principal_component_id] if args.key?(:principal_component_id)
4750
- end
4751
- end
4752
-
4753
4758
  #
4754
4759
  class ProjectList
4755
4760
  include Google::Apis::Core::Hashable
@@ -5214,6 +5219,11 @@ module Google
5214
5219
  # @return [Google::Apis::BigqueryV2::TableSchema]
5215
5220
  attr_accessor :schema
5216
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
+
5217
5227
  # The total number of bytes processed for this query. If this query was a dry
5218
5228
  # run, this is the number of bytes that would be processed if the query were run.
5219
5229
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -5241,6 +5251,7 @@ module Google
5241
5251
  @page_token = args[:page_token] if args.key?(:page_token)
5242
5252
  @rows = args[:rows] if args.key?(:rows)
5243
5253
  @schema = args[:schema] if args.key?(:schema)
5254
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
5244
5255
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
5245
5256
  @total_rows = args[:total_rows] if args.key?(:total_rows)
5246
5257
  end
@@ -5787,6 +5798,25 @@ module Google
5787
5798
  end
5788
5799
  end
5789
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
+
5790
5820
  # Request message for `SetIamPolicy` method.
5791
5821
  class SetIamPolicyRequest
5792
5822
  include Google::Apis::Core::Hashable
@@ -6440,6 +6470,16 @@ module Google
6440
6470
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
6441
6471
  attr_accessor :fields
6442
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
+
6443
6483
  # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and
6444
6484
  # REPEATED. The default value is NULLABLE.
6445
6485
  # Corresponds to the JSON property `mode`
@@ -6448,7 +6488,7 @@ module Google
6448
6488
 
6449
6489
  # [Required] The field name. The name must contain only letters (a-z, A-Z),
6450
6490
  # numbers (0-9), or underscores (_), and must start with a letter or underscore.
6451
- # The maximum length is 128 characters.
6491
+ # The maximum length is 300 characters.
6452
6492
  # Corresponds to the JSON property `name`
6453
6493
  # @return [String]
6454
6494
  attr_accessor :name
@@ -6458,11 +6498,36 @@ module Google
6458
6498
  # @return [Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags]
6459
6499
  attr_accessor :policy_tags
6460
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
+
6461
6526
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
6462
6527
  # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
6463
- # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
6464
- # where RECORD indicates that the field contains a nested schema) or STRUCT (
6465
- # 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).
6466
6531
  # Corresponds to the JSON property `type`
6467
6532
  # @return [String]
6468
6533
  attr_accessor :type
@@ -6476,9 +6541,12 @@ module Google
6476
6541
  @categories = args[:categories] if args.key?(:categories)
6477
6542
  @description = args[:description] if args.key?(:description)
6478
6543
  @fields = args[:fields] if args.key?(:fields)
6544
+ @max_length = args[:max_length] if args.key?(:max_length)
6479
6545
  @mode = args[:mode] if args.key?(:mode)
6480
6546
  @name = args[:name] if args.key?(:name)
6481
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)
6482
6550
  @type = args[:type] if args.key?(:type)
6483
6551
  end
6484
6552
 
@@ -6835,6 +6903,12 @@ module Google
6835
6903
  class TrainingOptions
6836
6904
  include Google::Apis::Core::Hashable
6837
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
+
6838
6912
  # Whether to enable auto ARIMA or not.
6839
6913
  # Corresponds to the JSON property `autoArima`
6840
6914
  # @return [Boolean]
@@ -6851,6 +6925,12 @@ module Google
6851
6925
  # @return [Fixnum]
6852
6926
  attr_accessor :batch_size
6853
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
+
6854
6934
  # The data frequency of a time series.
6855
6935
  # Corresponds to the JSON property `dataFrequency`
6856
6936
  # @return [String]
@@ -6880,6 +6960,12 @@ module Google
6880
6960
  # @return [String]
6881
6961
  attr_accessor :data_split_method
6882
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
+
6883
6969
  # Distance type for clustering models.
6884
6970
  # Corresponds to the JSON property `distanceType`
6885
6971
  # @return [String]
@@ -7055,6 +7141,11 @@ module Google
7055
7141
  # @return [String]
7056
7142
  attr_accessor :time_series_id_column
7057
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
+
7058
7149
  # Column to be designated as time series timestamp for ARIMA model.
7059
7150
  # Corresponds to the JSON property `timeSeriesTimestampColumn`
7060
7151
  # @return [String]
@@ -7082,13 +7173,16 @@ module Google
7082
7173
 
7083
7174
  # Update properties of this object
7084
7175
  def update!(**args)
7176
+ @adjust_step_changes = args[:adjust_step_changes] if args.key?(:adjust_step_changes)
7085
7177
  @auto_arima = args[:auto_arima] if args.key?(:auto_arima)
7086
7178
  @auto_arima_max_order = args[:auto_arima_max_order] if args.key?(:auto_arima_max_order)
7087
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)
7088
7181
  @data_frequency = args[:data_frequency] if args.key?(:data_frequency)
7089
7182
  @data_split_column = args[:data_split_column] if args.key?(:data_split_column)
7090
7183
  @data_split_eval_fraction = args[:data_split_eval_fraction] if args.key?(:data_split_eval_fraction)
7091
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)
7092
7186
  @distance_type = args[:distance_type] if args.key?(:distance_type)
7093
7187
  @dropout = args[:dropout] if args.key?(:dropout)
7094
7188
  @early_stop = args[:early_stop] if args.key?(:early_stop)
@@ -7121,6 +7215,7 @@ module Google
7121
7215
  @subsample = args[:subsample] if args.key?(:subsample)
7122
7216
  @time_series_data_column = args[:time_series_data_column] if args.key?(:time_series_data_column)
7123
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)
7124
7219
  @time_series_timestamp_column = args[:time_series_timestamp_column] if args.key?(:time_series_timestamp_column)
7125
7220
  @user_column = args[:user_column] if args.key?(:user_column)
7126
7221
  @wals_alpha = args[:wals_alpha] if args.key?(:wals_alpha)
@@ -7243,6 +7338,14 @@ module Google
7243
7338
  # @return [String]
7244
7339
  attr_accessor :query
7245
7340
 
7341
+ # True if the column names are explicitly specified. For example by using the '
7342
+ # CREATE VIEW v(c1, c2) AS ...' syntax. Can only be set using BigQuery's
7343
+ # standard SQL: https://cloud.google.com/bigquery/sql-reference/
7344
+ # Corresponds to the JSON property `useExplicitColumnNames`
7345
+ # @return [Boolean]
7346
+ attr_accessor :use_explicit_column_names
7347
+ alias_method :use_explicit_column_names?, :use_explicit_column_names
7348
+
7246
7349
  # Specifies whether to use BigQuery's legacy SQL for this view. The default
7247
7350
  # value is true. If set to false, the view will use BigQuery's standard SQL:
7248
7351
  # https://cloud.google.com/bigquery/sql-reference/ Queries and views that
@@ -7264,6 +7367,7 @@ module Google
7264
7367
  # Update properties of this object
7265
7368
  def update!(**args)
7266
7369
  @query = args[:query] if args.key?(:query)
7370
+ @use_explicit_column_names = args[:use_explicit_column_names] if args.key?(:use_explicit_column_names)
7267
7371
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
7268
7372
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
7269
7373
  end
@@ -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.7.0"
19
+ GEM_VERSION = "0.12.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210303"
25
+ REVISION = "20210518"
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
 
@@ -933,10 +927,14 @@ module Google
933
927
  property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
934
928
 
935
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'
936
933
  property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
937
934
 
938
935
  collection :seasonal_periods, as: 'seasonalPeriods'
939
936
  property :time_series_id, as: 'timeSeriesId'
937
+ collection :time_series_ids, as: 'timeSeriesIds'
940
938
  end
941
939
  end
942
940
 
@@ -964,10 +962,14 @@ module Google
964
962
  property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation
965
963
 
966
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'
967
968
  property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation
968
969
 
969
970
  collection :seasonal_periods, as: 'seasonalPeriods'
970
971
  property :time_series_id, as: 'timeSeriesId'
972
+ collection :time_series_ids, as: 'timeSeriesIds'
971
973
  end
972
974
  end
973
975
 
@@ -1298,13 +1300,6 @@ module Google
1298
1300
  end
1299
1301
  end
1300
1302
 
1301
- class DimensionalityReductionMetrics
1302
- # @private
1303
- class Representation < Google::Apis::Core::JsonRepresentation
1304
- property :total_explained_variance_ratio, as: 'totalExplainedVarianceRatio'
1305
- end
1306
- end
1307
-
1308
1303
  class EncryptionConfiguration
1309
1304
  # @private
1310
1305
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1339,8 +1334,6 @@ module Google
1339
1334
 
1340
1335
  property :clustering_metrics, as: 'clusteringMetrics', class: Google::Apis::BigqueryV2::ClusteringMetrics, decorator: Google::Apis::BigqueryV2::ClusteringMetrics::Representation
1341
1336
 
1342
- property :dimensionality_reduction_metrics, as: 'dimensionalityReductionMetrics', class: Google::Apis::BigqueryV2::DimensionalityReductionMetrics, decorator: Google::Apis::BigqueryV2::DimensionalityReductionMetrics::Representation
1343
-
1344
1337
  property :multi_class_classification_metrics, as: 'multiClassClassificationMetrics', class: Google::Apis::BigqueryV2::MultiClassClassificationMetrics, decorator: Google::Apis::BigqueryV2::MultiClassClassificationMetrics::Representation
1345
1338
 
1346
1339
  property :ranking_metrics, as: 'rankingMetrics', class: Google::Apis::BigqueryV2::RankingMetrics, decorator: Google::Apis::BigqueryV2::RankingMetrics::Representation
@@ -1530,8 +1523,6 @@ module Google
1530
1523
  property :eval_loss, as: 'evalLoss'
1531
1524
  property :index, as: 'index'
1532
1525
  property :learn_rate, as: 'learnRate'
1533
- collection :principal_component_infos, as: 'principalComponentInfos', class: Google::Apis::BigqueryV2::PrincipalComponentInfo, decorator: Google::Apis::BigqueryV2::PrincipalComponentInfo::Representation
1534
-
1535
1526
  property :training_loss, as: 'trainingLoss'
1536
1527
  end
1537
1528
  end
@@ -1764,6 +1755,8 @@ module Google
1764
1755
 
1765
1756
  property :script_statistics, as: 'scriptStatistics', class: Google::Apis::BigqueryV2::ScriptStatistics, decorator: Google::Apis::BigqueryV2::ScriptStatistics::Representation
1766
1757
 
1758
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
1759
+
1767
1760
  property :start_time, :numeric_string => true, as: 'startTime'
1768
1761
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
1769
1762
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
@@ -1786,6 +1779,8 @@ module Google
1786
1779
  property :billing_tier, as: 'billingTier'
1787
1780
  property :cache_hit, as: 'cacheHit'
1788
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
+
1789
1784
  property :ddl_operation_performed, as: 'ddlOperationPerformed'
1790
1785
  property :ddl_target_dataset, as: 'ddlTargetDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1791
1786
 
@@ -1990,16 +1985,6 @@ module Google
1990
1985
  end
1991
1986
  end
1992
1987
 
1993
- class PrincipalComponentInfo
1994
- # @private
1995
- class Representation < Google::Apis::Core::JsonRepresentation
1996
- property :cumulative_explained_variance_ratio, as: 'cumulativeExplainedVarianceRatio'
1997
- property :explained_variance, as: 'explainedVariance'
1998
- property :explained_variance_ratio, as: 'explainedVarianceRatio'
1999
- property :principal_component_id, :numeric_string => true, as: 'principalComponentId'
2000
- end
2001
- end
2002
-
2003
1988
  class ProjectList
2004
1989
  # @private
2005
1990
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2116,6 +2101,8 @@ module Google
2116
2101
 
2117
2102
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
2118
2103
 
2104
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
2105
+
2119
2106
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
2120
2107
  property :total_rows, :numeric_string => true, as: 'totalRows'
2121
2108
  end
@@ -2262,6 +2249,13 @@ module Google
2262
2249
  end
2263
2250
  end
2264
2251
 
2252
+ class SessionInfo
2253
+ # @private
2254
+ class Representation < Google::Apis::Core::JsonRepresentation
2255
+ property :session_id, as: 'sessionId'
2256
+ end
2257
+ end
2258
+
2265
2259
  class SetIamPolicyRequest
2266
2260
  # @private
2267
2261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2438,10 +2432,13 @@ module Google
2438
2432
  property :description, as: 'description'
2439
2433
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
2440
2434
 
2435
+ property :max_length, :numeric_string => true, as: 'maxLength'
2441
2436
  property :mode, as: 'mode'
2442
2437
  property :name, as: 'name'
2443
2438
  property :policy_tags, as: 'policyTags', class: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags, decorator: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags::Representation
2444
2439
 
2440
+ property :precision, :numeric_string => true, as: 'precision'
2441
+ property :scale, :numeric_string => true, as: 'scale'
2445
2442
  property :type, as: 'type'
2446
2443
  end
2447
2444
 
@@ -2554,13 +2551,16 @@ module Google
2554
2551
  class TrainingOptions
2555
2552
  # @private
2556
2553
  class Representation < Google::Apis::Core::JsonRepresentation
2554
+ property :adjust_step_changes, as: 'adjustStepChanges'
2557
2555
  property :auto_arima, as: 'autoArima'
2558
2556
  property :auto_arima_max_order, :numeric_string => true, as: 'autoArimaMaxOrder'
2559
2557
  property :batch_size, :numeric_string => true, as: 'batchSize'
2558
+ property :clean_spikes_and_dips, as: 'cleanSpikesAndDips'
2560
2559
  property :data_frequency, as: 'dataFrequency'
2561
2560
  property :data_split_column, as: 'dataSplitColumn'
2562
2561
  property :data_split_eval_fraction, as: 'dataSplitEvalFraction'
2563
2562
  property :data_split_method, as: 'dataSplitMethod'
2563
+ property :decompose_time_series, as: 'decomposeTimeSeries'
2564
2564
  property :distance_type, as: 'distanceType'
2565
2565
  property :dropout, as: 'dropout'
2566
2566
  property :early_stop, as: 'earlyStop'
@@ -2594,6 +2594,7 @@ module Google
2594
2594
  property :subsample, as: 'subsample'
2595
2595
  property :time_series_data_column, as: 'timeSeriesDataColumn'
2596
2596
  property :time_series_id_column, as: 'timeSeriesIdColumn'
2597
+ collection :time_series_id_columns, as: 'timeSeriesIdColumns'
2597
2598
  property :time_series_timestamp_column, as: 'timeSeriesTimestampColumn'
2598
2599
  property :user_column, as: 'userColumn'
2599
2600
  property :wals_alpha, as: 'walsAlpha'
@@ -2637,6 +2638,7 @@ module Google
2637
2638
  # @private
2638
2639
  class Representation < Google::Apis::Core::JsonRepresentation
2639
2640
  property :query, as: 'query'
2641
+ property :use_explicit_column_names, as: 'useExplicitColumnNames'
2640
2642
  property :use_legacy_sql, as: 'useLegacySql'
2641
2643
  collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
2642
2644
 
@@ -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.7.0
4
+ version: 0.12.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-15 00:00:00.000000000 Z
11
+ date: 2021-05-31 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.7.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.12.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: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.13
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