google-apis-bigquery_v2 0.12.0 → 0.13.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: 6a44ebd05f6ef21146f6a201b0ac93d5757a27fde3570198f11ebcf620dcf4bc
4
- data.tar.gz: 4da8c4cf1c4b9253219df736d530298549e6fc3d09b18deb829ed8471555e1da
3
+ metadata.gz: 819a4cffd54494696c9857bc472d6562fe48010d9984ad30a0346bb915181fc0
4
+ data.tar.gz: 1e670c613c23839c249a244736ceec83adb8cbd4929d17489416a7b90e7da8fa
5
5
  SHA512:
6
- metadata.gz: d3880b6f97a1f55873df6fd5d64ce3b05479234291e3f008382293b55517ef436a8b0a82937897a5b75256bb1116765b3001a0a9a15838054b48ff4985b8549a
7
- data.tar.gz: e03b1a28b17b06395482e903c7878f05394b5685a4bab8184e3a663e194bfcb0dd945dc1f765eeacd61ec2cf47ef6814ade21e74e1613ca4c8cea901d728072b
6
+ metadata.gz: c92ebf6d294b6ec1ce525330aef135f5390ceb7ae8013ed85487a564f8e7ac824b9a555470b33fdd3d62c808104d557ed4e10b1227a4dfd134d2d8639306cbae
7
+ data.tar.gz: 0d230f6665b07150cb896208de25f8e20487ae6605255534643558fbff2ce0ec182e229a19e89ccd46c26230f7ba2c5f1757fd05582837bc36181dccdd8be3e6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.13.0 (2021-06-04)
4
+
5
+ * Regenerated from discovery document revision 20210529
6
+ * Regenerated using generator version 0.3.0
7
+
3
8
  ### v0.12.0 (2021-05-28)
4
9
 
5
10
  * Regenerated from discovery document revision 20210518
@@ -2313,6 +2313,27 @@ module Google
2313
2313
  # @return [Google::Apis::BigqueryV2::CsvOptions]
2314
2314
  attr_accessor :csv_options
2315
2315
 
2316
+ # [Optional] Defines the list of possible SQL data types to which the source
2317
+ # decimal values are converted. This list and the precision and the scale
2318
+ # parameters of the decimal field determine the target type. In the order of
2319
+ # NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified
2320
+ # list and if it supports the precision and the scale. STRING supports all
2321
+ # precision and scale values. If none of the listed types supports the precision
2322
+ # and the scale, the type supporting the widest range in the specified list is
2323
+ # picked, and if a value exceeds the supported range when reading the data, an
2324
+ # error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "
2325
+ # BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC
2326
+ # (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot
2327
+ # hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (
2328
+ # error if value exeeds supported range). This field cannot contain duplicate
2329
+ # types. The order of the types in this field is ignored. For example, ["
2330
+ # BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC
2331
+ # always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for
2332
+ # ORC and ["NUMERIC"] for the other file formats.
2333
+ # Corresponds to the JSON property `decimalTargetTypes`
2334
+ # @return [Array<String>]
2335
+ attr_accessor :decimal_target_types
2336
+
2316
2337
  # [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
2317
2338
  # Corresponds to the JSON property `googleSheetsOptions`
2318
2339
  # @return [Google::Apis::BigqueryV2::GoogleSheetsOptions]
@@ -2390,6 +2411,7 @@ module Google
2390
2411
  @compression = args[:compression] if args.key?(:compression)
2391
2412
  @connection_id = args[:connection_id] if args.key?(:connection_id)
2392
2413
  @csv_options = args[:csv_options] if args.key?(:csv_options)
2414
+ @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types)
2393
2415
  @google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
2394
2416
  @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
2395
2417
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
@@ -3066,24 +3088,23 @@ module Google
3066
3088
  # @return [String]
3067
3089
  attr_accessor :create_disposition
3068
3090
 
3069
- # Defines the list of possible SQL data types to which the source decimal values
3070
- # are converted. This list and the precision and the scale parameters of the
3071
- # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC ([
3072
- # Preview](/products/#product-launch-stages)), and STRING, a type is picked if
3073
- # it is in the specified list and if it supports the precision and the scale.
3074
- # STRING supports all precision and scale values. If none of the listed types
3075
- # supports the precision and the scale, the type supporting the widest range in
3076
- # the specified list is picked, and if a value exceeds the supported range when
3077
- # reading the data, an error will be thrown. Example: Suppose the value of this
3078
- # field is ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) ->
3079
- # NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,
3080
- # 10) -> BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
3081
- # BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exeeds supported range).
3082
- # This field cannot contain duplicate types. The order of the types in this
3083
- # field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the same as ["
3084
- # NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over BIGNUMERIC.
3085
- # Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for the other file
3086
- # formats.
3091
+ # [Optional] Defines the list of possible SQL data types to which the source
3092
+ # decimal values are converted. This list and the precision and the scale
3093
+ # parameters of the decimal field determine the target type. In the order of
3094
+ # NUMERIC, BIGNUMERIC, and STRING, a type is picked if it is in the specified
3095
+ # list and if it supports the precision and the scale. STRING supports all
3096
+ # precision and scale values. If none of the listed types supports the precision
3097
+ # and the scale, the type supporting the widest range in the specified list is
3098
+ # picked, and if a value exceeds the supported range when reading the data, an
3099
+ # error will be thrown. Example: Suppose the value of this field is ["NUMERIC", "
3100
+ # BIGNUMERIC"]. If (precision,scale) is: (38,9) -> NUMERIC; (39,9) -> BIGNUMERIC
3101
+ # (NUMERIC cannot hold 30 integer digits); (38,10) -> BIGNUMERIC (NUMERIC cannot
3102
+ # hold 10 fractional digits); (76,38) -> BIGNUMERIC; (77,38) -> BIGNUMERIC (
3103
+ # error if value exeeds supported range). This field cannot contain duplicate
3104
+ # types. The order of the types in this field is ignored. For example, ["
3105
+ # BIGNUMERIC", "NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC
3106
+ # always takes precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for
3107
+ # ORC and ["NUMERIC"] for the other file formats.
3087
3108
  # Corresponds to the JSON property `decimalTargetTypes`
3088
3109
  # @return [Array<String>]
3089
3110
  attr_accessor :decimal_target_types
@@ -3848,9 +3869,9 @@ module Google
3848
3869
 
3849
3870
  # [Output-only] [Alpha] Information of the multi-statement transaction if this
3850
3871
  # job is part of one.
3851
- # Corresponds to the JSON property `transactionInfoTemplate`
3872
+ # Corresponds to the JSON property `transactionInfo`
3852
3873
  # @return [Google::Apis::BigqueryV2::TransactionInfo]
3853
- attr_accessor :transaction_info_template
3874
+ attr_accessor :transaction_info
3854
3875
 
3855
3876
  def initialize(**args)
3856
3877
  update!(**args)
@@ -3875,7 +3896,7 @@ module Google
3875
3896
  @start_time = args[:start_time] if args.key?(:start_time)
3876
3897
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
3877
3898
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
3878
- @transaction_info_template = args[:transaction_info_template] if args.key?(:transaction_info_template)
3899
+ @transaction_info = args[:transaction_info] if args.key?(:transaction_info)
3879
3900
  end
3880
3901
 
3881
3902
  #
@@ -3966,6 +3987,12 @@ module Google
3966
3987
  # @return [Google::Apis::BigqueryV2::TableReference]
3967
3988
  attr_accessor :ddl_target_table
3968
3989
 
3990
+ # [Output-only] Detailed statistics for DML statements Present only for DML
3991
+ # statements INSERT, UPDATE, DELETE or TRUNCATE.
3992
+ # Corresponds to the JSON property `dmlStats`
3993
+ # @return [Object]
3994
+ attr_accessor :dml_stats
3995
+
3969
3996
  # [Output-only] The original estimate of bytes processed for the job.
3970
3997
  # Corresponds to the JSON property `estimatedBytesProcessed`
3971
3998
  # @return [Fixnum]
@@ -4096,6 +4123,7 @@ module Google
4096
4123
  @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
4097
4124
  @ddl_target_row_access_policy = args[:ddl_target_row_access_policy] if args.key?(:ddl_target_row_access_policy)
4098
4125
  @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
4126
+ @dml_stats = args[:dml_stats] if args.key?(:dml_stats)
4099
4127
  @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
4100
4128
  @model_training = args[:model_training] if args.key?(:model_training)
4101
4129
  @model_training_current_iteration = args[:model_training_current_iteration] if args.key?(:model_training_current_iteration)
@@ -5167,6 +5195,12 @@ module Google
5167
5195
  attr_accessor :cache_hit
5168
5196
  alias_method :cache_hit?, :cache_hit
5169
5197
 
5198
+ # [Output-only] Detailed statistics for DML statements Present only for DML
5199
+ # statements INSERT, UPDATE, DELETE or TRUNCATE.
5200
+ # Corresponds to the JSON property `dmlStats`
5201
+ # @return [Object]
5202
+ attr_accessor :dml_stats
5203
+
5170
5204
  # [Output-only] The first errors or warnings encountered during the running of
5171
5205
  # the job. The final message includes the number of errors that caused the
5172
5206
  # process to stop. Errors here do not necessarily mean that the job has
@@ -5243,6 +5277,7 @@ module Google
5243
5277
  # Update properties of this object
5244
5278
  def update!(**args)
5245
5279
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
5280
+ @dml_stats = args[:dml_stats] if args.key?(:dml_stats)
5246
5281
  @errors = args[:errors] if args.key?(:errors)
5247
5282
  @job_complete = args[:job_complete] if args.key?(:job_complete)
5248
5283
  @job_reference = args[:job_reference] if args.key?(:job_reference)
@@ -5874,12 +5909,13 @@ module Google
5874
5909
  class SnapshotDefinition
5875
5910
  include Google::Apis::Core::Hashable
5876
5911
 
5877
- # [Required] Reference describing the ID of the table that is snapshotted.
5912
+ # [Required] Reference describing the ID of the table that was snapshot.
5878
5913
  # Corresponds to the JSON property `baseTableReference`
5879
5914
  # @return [Google::Apis::BigqueryV2::TableReference]
5880
5915
  attr_accessor :base_table_reference
5881
5916
 
5882
- # [Required] The time at which the base table was snapshot.
5917
+ # [Required] The time at which the base table was snapshot. This value is
5918
+ # reported in the JSON response using RFC3339 format.
5883
5919
  # Corresponds to the JSON property `snapshotTime`
5884
5920
  # @return [DateTime]
5885
5921
  attr_accessor :snapshot_time
@@ -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.12.0"
19
+ GEM_VERSION = "0.13.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.2.0"
22
+ GENERATOR_VERSION = "0.3.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210518"
25
+ REVISION = "20210529"
26
26
  end
27
27
  end
28
28
  end
@@ -1416,6 +1416,7 @@ module Google
1416
1416
  property :connection_id, as: 'connectionId'
1417
1417
  property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
1418
1418
 
1419
+ collection :decimal_target_types, as: 'decimalTargetTypes'
1419
1420
  property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
1420
1421
 
1421
1422
  property :hive_partitioning_options, as: 'hivePartitioningOptions', class: Google::Apis::BigqueryV2::HivePartitioningOptions, decorator: Google::Apis::BigqueryV2::HivePartitioningOptions::Representation
@@ -1760,7 +1761,7 @@ module Google
1760
1761
  property :start_time, :numeric_string => true, as: 'startTime'
1761
1762
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
1762
1763
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
1763
- property :transaction_info_template, as: 'transactionInfoTemplate', class: Google::Apis::BigqueryV2::TransactionInfo, decorator: Google::Apis::BigqueryV2::TransactionInfo::Representation
1764
+ property :transaction_info, as: 'transactionInfo', class: Google::Apis::BigqueryV2::TransactionInfo, decorator: Google::Apis::BigqueryV2::TransactionInfo::Representation
1764
1765
 
1765
1766
  end
1766
1767
 
@@ -1790,6 +1791,7 @@ module Google
1790
1791
 
1791
1792
  property :ddl_target_table, as: 'ddlTargetTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
1792
1793
 
1794
+ property :dml_stats, as: 'dmlStats'
1793
1795
  property :estimated_bytes_processed, :numeric_string => true, as: 'estimatedBytesProcessed'
1794
1796
  property :model_training, as: 'modelTraining', class: Google::Apis::BigqueryV2::BigQueryModelTraining, decorator: Google::Apis::BigqueryV2::BigQueryModelTraining::Representation
1795
1797
 
@@ -2089,6 +2091,7 @@ module Google
2089
2091
  # @private
2090
2092
  class Representation < Google::Apis::Core::JsonRepresentation
2091
2093
  property :cache_hit, as: 'cacheHit'
2094
+ property :dml_stats, as: 'dmlStats'
2092
2095
  collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
2093
2096
 
2094
2097
  property :job_complete, as: 'jobComplete'
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.12.0
4
+ version: 0.13.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-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-07 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.12.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.13.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: []