google-apis-bigquery_v2 0.83.0 → 0.86.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: 97fb4d8512d9dd27b2ed1559cef8b970ec20e72e2e5e24d1e9e7832fc9c036d1
4
- data.tar.gz: 6726192ca190f24d0940b1f21a9d4e6df49c406ddc0b16cb9df70c327e4cdee6
3
+ metadata.gz: a2206d80bd28c0bf1d42d75e91e9a013c860ff909fe8af8a8a4a95f38406304a
4
+ data.tar.gz: 7f43f72cb5228452360e5fd56f16fdd3f5bfe4f944a8b5c40ec625940a3047cc
5
5
  SHA512:
6
- metadata.gz: e5ebf97d9a0886eb85168c19d835fab057a59fe51fd629c0f1bfb4293cdb104d7408a03aae3f299fef478ac3dc61dea884e250855e9255ee08dec4fd716cd8e2
7
- data.tar.gz: f574d56f4358b81a21b235f2a9ef273766d99c0557d13090acbf23336f5d22b2743c29221d366d1691dcab9feb9711347d11081e87ceee66373491fb9ed51ae1
6
+ metadata.gz: 506f208dbf24f820c1a27e49239a6369ff2a0aa47bb452938735da0be6c760d0caa0bde820258c6ee5702742c0a5b86b78412287fb1c2fa9908790b65453cc8c
7
+ data.tar.gz: 74fcede957ab25db9c6933743236ca3eae6eea0bcc38283a63a93079a7e085252d2e425438a649d73a15eb46a61079eb088c727e21bb0e8eee2a1090e5e45bfb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.86.0 (2025-03-23)
4
+
5
+ * Regenerated from discovery document revision 20250313
6
+
7
+ ### v0.85.0 (2025-03-16)
8
+
9
+ * Regenerated from discovery document revision 20250302
10
+
11
+ ### v0.84.0 (2025-02-26)
12
+
13
+ * Regenerated from discovery document revision 20250216
14
+ * Regenerated using generator version 0.16.0
15
+
3
16
  ### v0.83.0 (2025-01-05)
4
17
 
5
18
  * Regenerated from discovery document revision 20241222
@@ -66,7 +66,7 @@ module Google
66
66
  attr_accessor :roc_auc
67
67
 
68
68
  # Threshold at which the metrics are computed. For binary classification models
69
- # this is the positive class threshold. For multi-class classfication models
69
+ # this is the positive class threshold. For multi-class classification models
70
70
  # this is the confidence threshold.
71
71
  # Corresponds to the JSON property `threshold`
72
72
  # @return [Float]
@@ -601,6 +601,34 @@ module Google
601
601
  end
602
602
  end
603
603
 
604
+ # Request message for the BatchDeleteRowAccessPoliciesRequest method.
605
+ class BatchDeleteRowAccessPoliciesRequest
606
+ include Google::Apis::Core::Hashable
607
+
608
+ # If set to true, it deletes the row access policy even if it's the last row
609
+ # access policy on the table and the deletion will widen the access rather
610
+ # narrowing it.
611
+ # Corresponds to the JSON property `force`
612
+ # @return [Boolean]
613
+ attr_accessor :force
614
+ alias_method :force?, :force
615
+
616
+ # Required. Policy IDs of the row access policies.
617
+ # Corresponds to the JSON property `policyIds`
618
+ # @return [Array<String>]
619
+ attr_accessor :policy_ids
620
+
621
+ def initialize(**args)
622
+ update!(**args)
623
+ end
624
+
625
+ # Update properties of this object
626
+ def update!(**args)
627
+ @force = args[:force] if args.key?(:force)
628
+ @policy_ids = args[:policy_ids] if args.key?(:policy_ids)
629
+ end
630
+ end
631
+
604
632
  # Reason why BI Engine didn't accelerate the query (or sub-query).
605
633
  class BiEngineReason
606
634
  include Google::Apis::Core::Hashable
@@ -1578,6 +1606,17 @@ module Google
1578
1606
  # @return [String]
1579
1607
  attr_accessor :null_marker
1580
1608
 
1609
+ # Optional. A list of strings represented as SQL NULL value in a CSV file.
1610
+ # null_marker and null_markers can't be set at the same time. If null_marker is
1611
+ # set, null_markers has to be not set. If null_markers is set, null_marker has
1612
+ # to be not set. If both null_marker and null_markers are set at the same time,
1613
+ # a user error would be thrown. Any strings listed in null_markers, including
1614
+ # empty string would be interpreted as SQL NULL. This applies to all column
1615
+ # types.
1616
+ # Corresponds to the JSON property `nullMarkers`
1617
+ # @return [Array<String>]
1618
+ attr_accessor :null_markers
1619
+
1581
1620
  # Optional. Indicates if the embedded ASCII control characters (the first 32
1582
1621
  # characters in the ASCII-table, from '\x00' to '\x1F') are preserved.
1583
1622
  # Corresponds to the JSON property `preserveAsciiControlCharacters`
@@ -1613,6 +1652,18 @@ module Google
1613
1652
  # @return [Fixnum]
1614
1653
  attr_accessor :skip_leading_rows
1615
1654
 
1655
+ # Optional. Controls the strategy used to match loaded columns to the schema. If
1656
+ # not set, a sensible default is chosen based on how the schema is provided. If
1657
+ # autodetect is used, then columns are matched by name. Otherwise, columns are
1658
+ # matched by position. This is done to keep the behavior backward-compatible.
1659
+ # Acceptable values are: POSITION - matches by position. This assumes that the
1660
+ # columns are ordered the same way as the schema. NAME - matches by name. This
1661
+ # reads the header row as column names and reorders columns to match the field
1662
+ # names in the schema.
1663
+ # Corresponds to the JSON property `sourceColumnMatch`
1664
+ # @return [String]
1665
+ attr_accessor :source_column_match
1666
+
1616
1667
  def initialize(**args)
1617
1668
  update!(**args)
1618
1669
  end
@@ -1624,9 +1675,11 @@ module Google
1624
1675
  @encoding = args[:encoding] if args.key?(:encoding)
1625
1676
  @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter)
1626
1677
  @null_marker = args[:null_marker] if args.key?(:null_marker)
1678
+ @null_markers = args[:null_markers] if args.key?(:null_markers)
1627
1679
  @preserve_ascii_control_characters = args[:preserve_ascii_control_characters] if args.key?(:preserve_ascii_control_characters)
1628
1680
  @quote = args[:quote] if args.key?(:quote)
1629
1681
  @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
1682
+ @source_column_match = args[:source_column_match] if args.key?(:source_column_match)
1630
1683
  end
1631
1684
  end
1632
1685
 
@@ -3135,6 +3188,18 @@ module Google
3135
3188
  # @return [Google::Apis::BigqueryV2::CsvOptions]
3136
3189
  attr_accessor :csv_options
3137
3190
 
3191
+ # Optional. Format used to parse DATE values. Supports C-style and SQL-style
3192
+ # values.
3193
+ # Corresponds to the JSON property `dateFormat`
3194
+ # @return [String]
3195
+ attr_accessor :date_format
3196
+
3197
+ # Optional. Format used to parse DATETIME values. Supports C-style and SQL-style
3198
+ # values.
3199
+ # Corresponds to the JSON property `datetimeFormat`
3200
+ # @return [String]
3201
+ attr_accessor :datetime_format
3202
+
3138
3203
  # Defines the list of possible SQL data types to which the source decimal values
3139
3204
  # are converted. This list and the precision and the scale parameters of the
3140
3205
  # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC,
@@ -3147,7 +3212,7 @@ module Google
3147
3212
  # precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC
3148
3213
  # cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold
3149
3214
  # 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error
3150
- # if value exeeds supported range). This field cannot contain duplicate types.
3215
+ # if value exceeds supported range). This field cannot contain duplicate types.
3151
3216
  # The order of the types in this field is ignored. For example, ["BIGNUMERIC", "
3152
3217
  # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
3153
3218
  # precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["
@@ -3262,6 +3327,25 @@ module Google
3262
3327
  # @return [Array<String>]
3263
3328
  attr_accessor :source_uris
3264
3329
 
3330
+ # Optional. Format used to parse TIME values. Supports C-style and SQL-style
3331
+ # values.
3332
+ # Corresponds to the JSON property `timeFormat`
3333
+ # @return [String]
3334
+ attr_accessor :time_format
3335
+
3336
+ # Optional. Time zone used when parsing timestamp values that do not have
3337
+ # specific time zone information (e.g. 2024-04-20 12:34:56). The expected format
3338
+ # is a IANA timezone string (e.g. America/Los_Angeles).
3339
+ # Corresponds to the JSON property `timeZone`
3340
+ # @return [String]
3341
+ attr_accessor :time_zone
3342
+
3343
+ # Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-
3344
+ # style values.
3345
+ # Corresponds to the JSON property `timestampFormat`
3346
+ # @return [String]
3347
+ attr_accessor :timestamp_format
3348
+
3265
3349
  def initialize(**args)
3266
3350
  update!(**args)
3267
3351
  end
@@ -3274,6 +3358,8 @@ module Google
3274
3358
  @compression = args[:compression] if args.key?(:compression)
3275
3359
  @connection_id = args[:connection_id] if args.key?(:connection_id)
3276
3360
  @csv_options = args[:csv_options] if args.key?(:csv_options)
3361
+ @date_format = args[:date_format] if args.key?(:date_format)
3362
+ @datetime_format = args[:datetime_format] if args.key?(:datetime_format)
3277
3363
  @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types)
3278
3364
  @file_set_spec_type = args[:file_set_spec_type] if args.key?(:file_set_spec_type)
3279
3365
  @google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
@@ -3289,6 +3375,9 @@ module Google
3289
3375
  @schema = args[:schema] if args.key?(:schema)
3290
3376
  @source_format = args[:source_format] if args.key?(:source_format)
3291
3377
  @source_uris = args[:source_uris] if args.key?(:source_uris)
3378
+ @time_format = args[:time_format] if args.key?(:time_format)
3379
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
3380
+ @timestamp_format = args[:timestamp_format] if args.key?(:timestamp_format)
3292
3381
  end
3293
3382
  end
3294
3383
 
@@ -4408,6 +4497,14 @@ module Google
4408
4497
  # @return [Google::Apis::BigqueryV2::JobConfigurationQuery]
4409
4498
  attr_accessor :query
4410
4499
 
4500
+ # Optional. The reservation that job would use. User can specify a reservation
4501
+ # to execute the job. If reservation is not set, reservation is determined based
4502
+ # on the rules defined by the reservation assignments. The expected format is `
4503
+ # projects/`project`/locations/`location`/reservations/`reservation``.
4504
+ # Corresponds to the JSON property `reservation`
4505
+ # @return [String]
4506
+ attr_accessor :reservation
4507
+
4411
4508
  def initialize(**args)
4412
4509
  update!(**args)
4413
4510
  end
@@ -4422,6 +4519,7 @@ module Google
4422
4519
  @labels = args[:labels] if args.key?(:labels)
4423
4520
  @load = args[:load] if args.key?(:load)
4424
4521
  @query = args[:query] if args.key?(:query)
4522
+ @reservation = args[:reservation] if args.key?(:reservation)
4425
4523
  end
4426
4524
  end
4427
4525
 
@@ -4600,6 +4698,16 @@ module Google
4600
4698
  attr_accessor :create_session
4601
4699
  alias_method :create_session?, :create_session
4602
4700
 
4701
+ # Optional. Date format used for parsing DATE values.
4702
+ # Corresponds to the JSON property `dateFormat`
4703
+ # @return [String]
4704
+ attr_accessor :date_format
4705
+
4706
+ # Optional. Date format used for parsing DATETIME values.
4707
+ # Corresponds to the JSON property `datetimeFormat`
4708
+ # @return [String]
4709
+ attr_accessor :datetime_format
4710
+
4603
4711
  # Defines the list of possible SQL data types to which the source decimal values
4604
4712
  # are converted. This list and the precision and the scale parameters of the
4605
4713
  # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC,
@@ -4612,7 +4720,7 @@ module Google
4612
4720
  # precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC
4613
4721
  # cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold
4614
4722
  # 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error
4615
- # if value exeeds supported range). This field cannot contain duplicate types.
4723
+ # if value exceeds supported range). This field cannot contain duplicate types.
4616
4724
  # The order of the types in this field is ignored. For example, ["BIGNUMERIC", "
4617
4725
  # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
4618
4726
  # precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["
@@ -4717,6 +4825,17 @@ module Google
4717
4825
  # @return [String]
4718
4826
  attr_accessor :null_marker
4719
4827
 
4828
+ # Optional. A list of strings represented as SQL NULL value in a CSV file.
4829
+ # null_marker and null_markers can't be set at the same time. If null_marker is
4830
+ # set, null_markers has to be not set. If null_markers is set, null_marker has
4831
+ # to be not set. If both null_marker and null_markers are set at the same time,
4832
+ # a user error would be thrown. Any strings listed in null_markers, including
4833
+ # empty string would be interpreted as SQL NULL. This applies to all column
4834
+ # types.
4835
+ # Corresponds to the JSON property `nullMarkers`
4836
+ # @return [Array<String>]
4837
+ attr_accessor :null_markers
4838
+
4720
4839
  # Parquet Options for load and make external tables.
4721
4840
  # Corresponds to the JSON property `parquetOptions`
4722
4841
  # @return [Google::Apis::BigqueryV2::ParquetOptions]
@@ -4809,6 +4928,14 @@ module Google
4809
4928
  # @return [Fixnum]
4810
4929
  attr_accessor :skip_leading_rows
4811
4930
 
4931
+ # Optional. Controls the strategy used to match loaded columns to the schema. If
4932
+ # not set, a sensible default is chosen based on how the schema is provided. If
4933
+ # autodetect is used, then columns are matched by name. Otherwise, columns are
4934
+ # matched by position. This is done to keep the behavior backward-compatible.
4935
+ # Corresponds to the JSON property `sourceColumnMatch`
4936
+ # @return [String]
4937
+ attr_accessor :source_column_match
4938
+
4812
4939
  # Optional. The format of the data files. For CSV files, specify "CSV". For
4813
4940
  # datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON,
4814
4941
  # specify "NEWLINE_DELIMITED_JSON". For Avro, specify "AVRO". For parquet,
@@ -4828,12 +4955,28 @@ module Google
4828
4955
  # @return [Array<String>]
4829
4956
  attr_accessor :source_uris
4830
4957
 
4958
+ # Optional. Date format used for parsing TIME values.
4959
+ # Corresponds to the JSON property `timeFormat`
4960
+ # @return [String]
4961
+ attr_accessor :time_format
4962
+
4831
4963
  # Time-based partitioning specification for the destination table. Only one of
4832
4964
  # timePartitioning and rangePartitioning should be specified.
4833
4965
  # Corresponds to the JSON property `timePartitioning`
4834
4966
  # @return [Google::Apis::BigqueryV2::TimePartitioning]
4835
4967
  attr_accessor :time_partitioning
4836
4968
 
4969
+ # Optional. [Experimental] Default time zone that will apply when parsing
4970
+ # timestamp values that have no specific time zone.
4971
+ # Corresponds to the JSON property `timeZone`
4972
+ # @return [String]
4973
+ attr_accessor :time_zone
4974
+
4975
+ # Optional. Date format used for parsing TIMESTAMP values.
4976
+ # Corresponds to the JSON property `timestampFormat`
4977
+ # @return [String]
4978
+ attr_accessor :timestamp_format
4979
+
4837
4980
  # Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
4838
4981
  # logical types as the corresponding BigQuery data type (for example, TIMESTAMP),
4839
4982
  # instead of using the raw type (for example, INTEGER).
@@ -4870,6 +5013,8 @@ module Google
4870
5013
  @copy_files_only = args[:copy_files_only] if args.key?(:copy_files_only)
4871
5014
  @create_disposition = args[:create_disposition] if args.key?(:create_disposition)
4872
5015
  @create_session = args[:create_session] if args.key?(:create_session)
5016
+ @date_format = args[:date_format] if args.key?(:date_format)
5017
+ @datetime_format = args[:datetime_format] if args.key?(:datetime_format)
4873
5018
  @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types)
4874
5019
  @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
4875
5020
  @destination_table = args[:destination_table] if args.key?(:destination_table)
@@ -4882,6 +5027,7 @@ module Google
4882
5027
  @json_extension = args[:json_extension] if args.key?(:json_extension)
4883
5028
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
4884
5029
  @null_marker = args[:null_marker] if args.key?(:null_marker)
5030
+ @null_markers = args[:null_markers] if args.key?(:null_markers)
4885
5031
  @parquet_options = args[:parquet_options] if args.key?(:parquet_options)
4886
5032
  @preserve_ascii_control_characters = args[:preserve_ascii_control_characters] if args.key?(:preserve_ascii_control_characters)
4887
5033
  @projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@@ -4893,9 +5039,13 @@ module Google
4893
5039
  @schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
4894
5040
  @schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
4895
5041
  @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
5042
+ @source_column_match = args[:source_column_match] if args.key?(:source_column_match)
4896
5043
  @source_format = args[:source_format] if args.key?(:source_format)
4897
5044
  @source_uris = args[:source_uris] if args.key?(:source_uris)
5045
+ @time_format = args[:time_format] if args.key?(:time_format)
4898
5046
  @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
5047
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
5048
+ @timestamp_format = args[:timestamp_format] if args.key?(:timestamp_format)
4899
5049
  @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types)
4900
5050
  @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
4901
5051
  end
@@ -5109,6 +5259,15 @@ module Google
5109
5259
  # @return [String]
5110
5260
  attr_accessor :write_disposition
5111
5261
 
5262
+ # Optional. This is only supported for a SELECT query using a temporary table.
5263
+ # If set, the query is allowed to write results incrementally to the temporary
5264
+ # result table. This may incur a performance penalty. This option cannot be used
5265
+ # with Legacy SQL. This feature is not yet available.
5266
+ # Corresponds to the JSON property `writeIncrementalResults`
5267
+ # @return [Boolean]
5268
+ attr_accessor :write_incremental_results
5269
+ alias_method :write_incremental_results?, :write_incremental_results
5270
+
5112
5271
  def initialize(**args)
5113
5272
  update!(**args)
5114
5273
  end
@@ -5142,6 +5301,7 @@ module Google
5142
5301
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
5143
5302
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
5144
5303
  @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
5304
+ @write_incremental_results = args[:write_incremental_results] if args.key?(:write_incremental_results)
5145
5305
  end
5146
5306
  end
5147
5307
 
@@ -5695,7 +5855,7 @@ module Google
5695
5855
  # @return [Google::Apis::BigqueryV2::MaterializedViewStatistics]
5696
5856
  attr_accessor :materialized_view_statistics
5697
5857
 
5698
- # Statistics for metadata caching in BigLake tables.
5858
+ # Statistics for metadata caching in queried tables.
5699
5859
  # Corresponds to the JSON property `metadataCacheStatistics`
5700
5860
  # @return [Google::Apis::BigqueryV2::MetadataCacheStatistics]
5701
5861
  attr_accessor :metadata_cache_statistics
@@ -6444,7 +6604,9 @@ module Google
6444
6604
  include Google::Apis::Core::Hashable
6445
6605
 
6446
6606
  # Optional. This option declares the intention to construct a materialized view
6447
- # that isn't refreshed incrementally.
6607
+ # that isn't refreshed incrementally. Non-incremental materialized views support
6608
+ # an expanded range of SQL queries. The `allow_non_incremental_definition`
6609
+ # option can't be changed after the materialized view is created.
6448
6610
  # Corresponds to the JSON property `allowNonIncrementalDefinition`
6449
6611
  # @return [Boolean]
6450
6612
  attr_accessor :allow_non_incremental_definition
@@ -6544,7 +6706,7 @@ module Google
6544
6706
  end
6545
6707
  end
6546
6708
 
6547
- # Statistics for metadata caching in BigLake tables.
6709
+ # Statistics for metadata caching in queried tables.
6548
6710
  class MetadataCacheStatistics
6549
6711
  include Google::Apis::Core::Hashable
6550
6712
 
@@ -7518,6 +7680,11 @@ module Google
7518
7680
  # @return [Google::Apis::BigqueryV2::DatasetReference]
7519
7681
  attr_accessor :default_dataset
7520
7682
 
7683
+ # Configuration for Cloud KMS encryption settings.
7684
+ # Corresponds to the JSON property `destinationEncryptionConfiguration`
7685
+ # @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
7686
+ attr_accessor :destination_encryption_configuration
7687
+
7521
7688
  # Optional. If set to true, BigQuery doesn't run the job. Instead, if the query
7522
7689
  # is valid, BigQuery returns statistics about the job such as how many bytes
7523
7690
  # would be processed. If the query is invalid, an error returns. The default
@@ -7539,6 +7706,16 @@ module Google
7539
7706
  # @return [String]
7540
7707
  attr_accessor :job_creation_mode
7541
7708
 
7709
+ # Optional. Job timeout in milliseconds. If this time limit is exceeded,
7710
+ # BigQuery will attempt to stop a longer job, but may not always succeed in
7711
+ # canceling it before the job completes. For example, a job that takes more than
7712
+ # 60 seconds to complete has a better chance of being stopped than a job that
7713
+ # takes 10 seconds to complete. This timeout applies to the query even if a job
7714
+ # does not need to be created.
7715
+ # Corresponds to the JSON property `jobTimeoutMs`
7716
+ # @return [Fixnum]
7717
+ attr_accessor :job_timeout_ms
7718
+
7542
7719
  # The resource type of the request.
7543
7720
  # Corresponds to the JSON property `kind`
7544
7721
  # @return [String]
@@ -7622,6 +7799,13 @@ module Google
7622
7799
  # @return [String]
7623
7800
  attr_accessor :request_id
7624
7801
 
7802
+ # Optional. The reservation that jobs.query request would use. User can specify
7803
+ # a reservation to execute the job.query. The expected format is `projects/`
7804
+ # project`/locations/`location`/reservations/`reservation``.
7805
+ # Corresponds to the JSON property `reservation`
7806
+ # @return [String]
7807
+ attr_accessor :reservation
7808
+
7625
7809
  # Optional. Optional: Specifies the maximum amount of time, in milliseconds,
7626
7810
  # that the client is willing to wait for the query to complete. By default, this
7627
7811
  # limit is 10 seconds (10,000 milliseconds). If the query is complete, the
@@ -7654,6 +7838,15 @@ module Google
7654
7838
  attr_accessor :use_query_cache
7655
7839
  alias_method :use_query_cache?, :use_query_cache
7656
7840
 
7841
+ # Optional. This is only supported for SELECT query. If set, the query is
7842
+ # allowed to write results incrementally to the temporary result table. This may
7843
+ # incur a performance penalty. This option cannot be used with Legacy SQL. This
7844
+ # feature is not yet available.
7845
+ # Corresponds to the JSON property `writeIncrementalResults`
7846
+ # @return [Boolean]
7847
+ attr_accessor :write_incremental_results
7848
+ alias_method :write_incremental_results?, :write_incremental_results
7849
+
7657
7850
  def initialize(**args)
7658
7851
  update!(**args)
7659
7852
  end
@@ -7664,9 +7857,11 @@ module Google
7664
7857
  @continuous = args[:continuous] if args.key?(:continuous)
7665
7858
  @create_session = args[:create_session] if args.key?(:create_session)
7666
7859
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
7860
+ @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
7667
7861
  @dry_run = args[:dry_run] if args.key?(:dry_run)
7668
7862
  @format_options = args[:format_options] if args.key?(:format_options)
7669
7863
  @job_creation_mode = args[:job_creation_mode] if args.key?(:job_creation_mode)
7864
+ @job_timeout_ms = args[:job_timeout_ms] if args.key?(:job_timeout_ms)
7670
7865
  @kind = args[:kind] if args.key?(:kind)
7671
7866
  @labels = args[:labels] if args.key?(:labels)
7672
7867
  @location = args[:location] if args.key?(:location)
@@ -7677,9 +7872,11 @@ module Google
7677
7872
  @query = args[:query] if args.key?(:query)
7678
7873
  @query_parameters = args[:query_parameters] if args.key?(:query_parameters)
7679
7874
  @request_id = args[:request_id] if args.key?(:request_id)
7875
+ @reservation = args[:reservation] if args.key?(:reservation)
7680
7876
  @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
7681
7877
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
7682
7878
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
7879
+ @write_incremental_results = args[:write_incremental_results] if args.key?(:write_incremental_results)
7683
7880
  end
7684
7881
  end
7685
7882
 
@@ -7693,11 +7890,23 @@ module Google
7693
7890
  attr_accessor :cache_hit
7694
7891
  alias_method :cache_hit?, :cache_hit
7695
7892
 
7893
+ # Output only. Creation time of this query, in milliseconds since the epoch.
7894
+ # This field will be present on all queries.
7895
+ # Corresponds to the JSON property `creationTime`
7896
+ # @return [Fixnum]
7897
+ attr_accessor :creation_time
7898
+
7696
7899
  # Detailed statistics for DML statements
7697
7900
  # Corresponds to the JSON property `dmlStats`
7698
7901
  # @return [Google::Apis::BigqueryV2::DmlStatistics]
7699
7902
  attr_accessor :dml_stats
7700
7903
 
7904
+ # Output only. End time of this query, in milliseconds since the epoch. This
7905
+ # field will be present whenever a query job is in the DONE state.
7906
+ # Corresponds to the JSON property `endTime`
7907
+ # @return [Fixnum]
7908
+ attr_accessor :end_time
7909
+
7701
7910
  # Output only. The first errors or warnings encountered during the running of
7702
7911
  # the job. The final message includes the number of errors that caused the
7703
7912
  # process to stop. Errors here do not necessarily mean that the job has
@@ -7734,6 +7943,12 @@ module Google
7734
7943
  # @return [String]
7735
7944
  attr_accessor :kind
7736
7945
 
7946
+ # Output only. The geographic location of the query. For more information about
7947
+ # BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations
7948
+ # Corresponds to the JSON property `location`
7949
+ # @return [String]
7950
+ attr_accessor :location
7951
+
7737
7952
  # Output only. The number of rows affected by a DML statement. Present only for
7738
7953
  # DML statements INSERT, UPDATE or DELETE.
7739
7954
  # Corresponds to the JSON property `numDmlAffectedRows`
@@ -7772,6 +7987,21 @@ module Google
7772
7987
  # @return [Google::Apis::BigqueryV2::SessionInfo]
7773
7988
  attr_accessor :session_info
7774
7989
 
7990
+ # Output only. Start time of this query, in milliseconds since the epoch. This
7991
+ # field will be present when the query job transitions from the PENDING state to
7992
+ # either RUNNING or DONE.
7993
+ # Corresponds to the JSON property `startTime`
7994
+ # @return [Fixnum]
7995
+ attr_accessor :start_time
7996
+
7997
+ # Output only. If the project is configured to use on-demand pricing, then this
7998
+ # field contains the total bytes billed for the job. If the project is
7999
+ # configured to use flat-rate pricing, then you are not billed for bytes and
8000
+ # this field is informational only.
8001
+ # Corresponds to the JSON property `totalBytesBilled`
8002
+ # @return [Fixnum]
8003
+ attr_accessor :total_bytes_billed
8004
+
7775
8005
  # The total number of bytes processed for this query. If this query was a dry
7776
8006
  # run, this is the number of bytes that would be processed if the query were run.
7777
8007
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -7784,6 +8014,11 @@ module Google
7784
8014
  # @return [Fixnum]
7785
8015
  attr_accessor :total_rows
7786
8016
 
8017
+ # Output only. Number of slot ms the user is actually billed for.
8018
+ # Corresponds to the JSON property `totalSlotMs`
8019
+ # @return [Fixnum]
8020
+ attr_accessor :total_slot_ms
8021
+
7787
8022
  def initialize(**args)
7788
8023
  update!(**args)
7789
8024
  end
@@ -7791,20 +8026,26 @@ module Google
7791
8026
  # Update properties of this object
7792
8027
  def update!(**args)
7793
8028
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
8029
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
7794
8030
  @dml_stats = args[:dml_stats] if args.key?(:dml_stats)
8031
+ @end_time = args[:end_time] if args.key?(:end_time)
7795
8032
  @errors = args[:errors] if args.key?(:errors)
7796
8033
  @job_complete = args[:job_complete] if args.key?(:job_complete)
7797
8034
  @job_creation_reason = args[:job_creation_reason] if args.key?(:job_creation_reason)
7798
8035
  @job_reference = args[:job_reference] if args.key?(:job_reference)
7799
8036
  @kind = args[:kind] if args.key?(:kind)
8037
+ @location = args[:location] if args.key?(:location)
7800
8038
  @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
7801
8039
  @page_token = args[:page_token] if args.key?(:page_token)
7802
8040
  @query_id = args[:query_id] if args.key?(:query_id)
7803
8041
  @rows = args[:rows] if args.key?(:rows)
7804
8042
  @schema = args[:schema] if args.key?(:schema)
7805
8043
  @session_info = args[:session_info] if args.key?(:session_info)
8044
+ @start_time = args[:start_time] if args.key?(:start_time)
8045
+ @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
7806
8046
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
7807
8047
  @total_rows = args[:total_rows] if args.key?(:total_rows)
8048
+ @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
7808
8049
  end
7809
8050
  end
7810
8051
 
@@ -8387,6 +8628,27 @@ module Google
8387
8628
  # @return [String]
8388
8629
  attr_accessor :filter_predicate
8389
8630
 
8631
+ # Optional. Input only. The optional list of iam_member users or groups that
8632
+ # specifies the initial members that the row-level access policy should be
8633
+ # created with. grantees types: - "user:alice@example.com": An email address
8634
+ # that represents a specific Google account. - "serviceAccount:my-other-app@
8635
+ # appspot.gserviceaccount.com": An email address that represents a service
8636
+ # account. - "group:admins@example.com": An email address that represents a
8637
+ # Google group. - "domain:example.com":The Google Workspace domain (primary)
8638
+ # that represents all the users of that domain. - "allAuthenticatedUsers": A
8639
+ # special identifier that represents all service accounts and all users on the
8640
+ # internet who have authenticated with a Google Account. This identifier
8641
+ # includes accounts that aren't connected to a Google Workspace or Cloud
8642
+ # Identity domain, such as personal Gmail accounts. Users who aren't
8643
+ # authenticated, such as anonymous visitors, aren't included. - "allUsers":A
8644
+ # special identifier that represents anyone who is on the internet, including
8645
+ # authenticated and unauthenticated users. Because BigQuery requires
8646
+ # authentication before a user can access the service, allUsers includes only
8647
+ # authenticated users.
8648
+ # Corresponds to the JSON property `grantees`
8649
+ # @return [Array<String>]
8650
+ attr_accessor :grantees
8651
+
8390
8652
  # Output only. The time when this row access policy was last modified, in
8391
8653
  # milliseconds since the epoch.
8392
8654
  # Corresponds to the JSON property `lastModifiedTime`
@@ -8407,6 +8669,7 @@ module Google
8407
8669
  @creation_time = args[:creation_time] if args.key?(:creation_time)
8408
8670
  @etag = args[:etag] if args.key?(:etag)
8409
8671
  @filter_predicate = args[:filter_predicate] if args.key?(:filter_predicate)
8672
+ @grantees = args[:grantees] if args.key?(:grantees)
8410
8673
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
8411
8674
  @row_access_policy_reference = args[:row_access_policy_reference] if args.key?(:row_access_policy_reference)
8412
8675
  end
@@ -9197,6 +9460,72 @@ module Google
9197
9460
  end
9198
9461
  end
9199
9462
 
9463
+ # If the stored column was not used, explain why.
9464
+ class StoredColumnsUnusedReason
9465
+ include Google::Apis::Core::Hashable
9466
+
9467
+ # Specifies the high-level reason for the unused scenario, each reason must have
9468
+ # a code associated.
9469
+ # Corresponds to the JSON property `code`
9470
+ # @return [String]
9471
+ attr_accessor :code
9472
+
9473
+ # Specifies the detailed description for the scenario.
9474
+ # Corresponds to the JSON property `message`
9475
+ # @return [String]
9476
+ attr_accessor :message
9477
+
9478
+ # Specifies which columns were not covered by the stored columns for the
9479
+ # specified code up to 20 columns. This is populated when the code is
9480
+ # STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS.
9481
+ # Corresponds to the JSON property `uncoveredColumns`
9482
+ # @return [Array<String>]
9483
+ attr_accessor :uncovered_columns
9484
+
9485
+ def initialize(**args)
9486
+ update!(**args)
9487
+ end
9488
+
9489
+ # Update properties of this object
9490
+ def update!(**args)
9491
+ @code = args[:code] if args.key?(:code)
9492
+ @message = args[:message] if args.key?(:message)
9493
+ @uncovered_columns = args[:uncovered_columns] if args.key?(:uncovered_columns)
9494
+ end
9495
+ end
9496
+
9497
+ # Indicates the stored columns usage in the query.
9498
+ class StoredColumnsUsage
9499
+ include Google::Apis::Core::Hashable
9500
+
9501
+ # Specifies the base table.
9502
+ # Corresponds to the JSON property `baseTable`
9503
+ # @return [Google::Apis::BigqueryV2::TableReference]
9504
+ attr_accessor :base_table
9505
+
9506
+ # Specifies whether the query was accelerated with stored columns.
9507
+ # Corresponds to the JSON property `isQueryAccelerated`
9508
+ # @return [Boolean]
9509
+ attr_accessor :is_query_accelerated
9510
+ alias_method :is_query_accelerated?, :is_query_accelerated
9511
+
9512
+ # If stored columns were not used, explain why.
9513
+ # Corresponds to the JSON property `storedColumnsUnusedReasons`
9514
+ # @return [Array<Google::Apis::BigqueryV2::StoredColumnsUnusedReason>]
9515
+ attr_accessor :stored_columns_unused_reasons
9516
+
9517
+ def initialize(**args)
9518
+ update!(**args)
9519
+ end
9520
+
9521
+ # Update properties of this object
9522
+ def update!(**args)
9523
+ @base_table = args[:base_table] if args.key?(:base_table)
9524
+ @is_query_accelerated = args[:is_query_accelerated] if args.key?(:is_query_accelerated)
9525
+ @stored_columns_unused_reasons = args[:stored_columns_unused_reasons] if args.key?(:stored_columns_unused_reasons)
9526
+ end
9527
+ end
9528
+
9200
9529
  #
9201
9530
  class Streamingbuffer
9202
9531
  include Google::Apis::Core::Hashable
@@ -10820,6 +11149,19 @@ module Google
10820
11149
  attr_accessor :fit_intercept
10821
11150
  alias_method :fit_intercept?, :fit_intercept
10822
11151
 
11152
+ # The forecast limit lower bound that was used during ARIMA model training with
11153
+ # limits. To see more details of the algorithm: https://otexts.com/fpp2/limits.
11154
+ # html
11155
+ # Corresponds to the JSON property `forecastLimitLowerBound`
11156
+ # @return [Float]
11157
+ attr_accessor :forecast_limit_lower_bound
11158
+
11159
+ # The forecast limit upper bound that was used during ARIMA model training with
11160
+ # limits.
11161
+ # Corresponds to the JSON property `forecastLimitUpperBound`
11162
+ # @return [Float]
11163
+ attr_accessor :forecast_limit_upper_bound
11164
+
10823
11165
  # Hidden units for dnn models.
10824
11166
  # Corresponds to the JSON property `hiddenUnits`
10825
11167
  # @return [Array<Fixnum>]
@@ -11190,6 +11532,8 @@ module Google
11190
11532
  @enable_global_explain = args[:enable_global_explain] if args.key?(:enable_global_explain)
11191
11533
  @feedback_type = args[:feedback_type] if args.key?(:feedback_type)
11192
11534
  @fit_intercept = args[:fit_intercept] if args.key?(:fit_intercept)
11535
+ @forecast_limit_lower_bound = args[:forecast_limit_lower_bound] if args.key?(:forecast_limit_lower_bound)
11536
+ @forecast_limit_upper_bound = args[:forecast_limit_upper_bound] if args.key?(:forecast_limit_upper_bound)
11193
11537
  @hidden_units = args[:hidden_units] if args.key?(:hidden_units)
11194
11538
  @holiday_region = args[:holiday_region] if args.key?(:holiday_region)
11195
11539
  @holiday_regions = args[:holiday_regions] if args.key?(:holiday_regions)
@@ -11457,6 +11801,12 @@ module Google
11457
11801
  # @return [String]
11458
11802
  attr_accessor :index_usage_mode
11459
11803
 
11804
+ # Specifies the usage of stored columns in the query when stored columns are
11805
+ # used in the query.
11806
+ # Corresponds to the JSON property `storedColumnsUsages`
11807
+ # @return [Array<Google::Apis::BigqueryV2::StoredColumnsUsage>]
11808
+ attr_accessor :stored_columns_usages
11809
+
11460
11810
  def initialize(**args)
11461
11811
  update!(**args)
11462
11812
  end
@@ -11465,6 +11815,7 @@ module Google
11465
11815
  def update!(**args)
11466
11816
  @index_unused_reasons = args[:index_unused_reasons] if args.key?(:index_unused_reasons)
11467
11817
  @index_usage_mode = args[:index_usage_mode] if args.key?(:index_usage_mode)
11818
+ @stored_columns_usages = args[:stored_columns_usages] if args.key?(:stored_columns_usages)
11468
11819
  end
11469
11820
  end
11470
11821
 
@@ -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.83.0"
19
+ GEM_VERSION = "0.86.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241222"
25
+ REVISION = "20250313"
26
26
  end
27
27
  end
28
28
  end
@@ -100,6 +100,12 @@ module Google
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
+ class BatchDeleteRowAccessPoliciesRequest
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class BiEngineReason
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -1108,6 +1114,18 @@ module Google
1108
1114
  include Google::Apis::Core::JsonObjectSupport
1109
1115
  end
1110
1116
 
1117
+ class StoredColumnsUnusedReason
1118
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1119
+
1120
+ include Google::Apis::Core::JsonObjectSupport
1121
+ end
1122
+
1123
+ class StoredColumnsUsage
1124
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1125
+
1126
+ include Google::Apis::Core::JsonObjectSupport
1127
+ end
1128
+
1111
1129
  class Streamingbuffer
1112
1130
  class Representation < Google::Apis::Core::JsonRepresentation; end
1113
1131
 
@@ -1480,6 +1498,14 @@ module Google
1480
1498
  end
1481
1499
  end
1482
1500
 
1501
+ class BatchDeleteRowAccessPoliciesRequest
1502
+ # @private
1503
+ class Representation < Google::Apis::Core::JsonRepresentation
1504
+ property :force, as: 'force'
1505
+ collection :policy_ids, as: 'policyIds'
1506
+ end
1507
+ end
1508
+
1483
1509
  class BiEngineReason
1484
1510
  # @private
1485
1511
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1714,9 +1740,11 @@ module Google
1714
1740
  property :encoding, as: 'encoding'
1715
1741
  property :field_delimiter, as: 'fieldDelimiter'
1716
1742
  property :null_marker, as: 'nullMarker'
1743
+ collection :null_markers, as: 'nullMarkers'
1717
1744
  property :preserve_ascii_control_characters, as: 'preserveAsciiControlCharacters'
1718
1745
  property :quote, as: 'quote'
1719
1746
  property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
1747
+ property :source_column_match, as: 'sourceColumnMatch'
1720
1748
  end
1721
1749
  end
1722
1750
 
@@ -2081,6 +2109,8 @@ module Google
2081
2109
  property :connection_id, as: 'connectionId'
2082
2110
  property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
2083
2111
 
2112
+ property :date_format, as: 'dateFormat'
2113
+ property :datetime_format, as: 'datetimeFormat'
2084
2114
  collection :decimal_target_types, as: 'decimalTargetTypes'
2085
2115
  property :file_set_spec_type, as: 'fileSetSpecType'
2086
2116
  property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
@@ -2101,6 +2131,9 @@ module Google
2101
2131
 
2102
2132
  property :source_format, as: 'sourceFormat'
2103
2133
  collection :source_uris, as: 'sourceUris'
2134
+ property :time_format, as: 'timeFormat'
2135
+ property :time_zone, as: 'timeZone'
2136
+ property :timestamp_format, as: 'timestampFormat'
2104
2137
  end
2105
2138
  end
2106
2139
 
@@ -2420,6 +2453,7 @@ module Google
2420
2453
 
2421
2454
  property :query, as: 'query', class: Google::Apis::BigqueryV2::JobConfigurationQuery, decorator: Google::Apis::BigqueryV2::JobConfigurationQuery::Representation
2422
2455
 
2456
+ property :reservation, as: 'reservation'
2423
2457
  end
2424
2458
  end
2425
2459
 
@@ -2456,6 +2490,8 @@ module Google
2456
2490
  property :copy_files_only, as: 'copyFilesOnly'
2457
2491
  property :create_disposition, as: 'createDisposition'
2458
2492
  property :create_session, as: 'createSession'
2493
+ property :date_format, as: 'dateFormat'
2494
+ property :datetime_format, as: 'datetimeFormat'
2459
2495
  collection :decimal_target_types, as: 'decimalTargetTypes'
2460
2496
  property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
2461
2497
 
@@ -2472,6 +2508,7 @@ module Google
2472
2508
  property :json_extension, as: 'jsonExtension'
2473
2509
  property :max_bad_records, as: 'maxBadRecords'
2474
2510
  property :null_marker, as: 'nullMarker'
2511
+ collection :null_markers, as: 'nullMarkers'
2475
2512
  property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
2476
2513
 
2477
2514
  property :preserve_ascii_control_characters, as: 'preserveAsciiControlCharacters'
@@ -2486,10 +2523,14 @@ module Google
2486
2523
  property :schema_inline_format, as: 'schemaInlineFormat'
2487
2524
  collection :schema_update_options, as: 'schemaUpdateOptions'
2488
2525
  property :skip_leading_rows, as: 'skipLeadingRows'
2526
+ property :source_column_match, as: 'sourceColumnMatch'
2489
2527
  property :source_format, as: 'sourceFormat'
2490
2528
  collection :source_uris, as: 'sourceUris'
2529
+ property :time_format, as: 'timeFormat'
2491
2530
  property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
2492
2531
 
2532
+ property :time_zone, as: 'timeZone'
2533
+ property :timestamp_format, as: 'timestampFormat'
2493
2534
  property :use_avro_logical_types, as: 'useAvroLogicalTypes'
2494
2535
  property :write_disposition, as: 'writeDisposition'
2495
2536
  end
@@ -2537,6 +2578,7 @@ module Google
2537
2578
  collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
2538
2579
 
2539
2580
  property :write_disposition, as: 'writeDisposition'
2581
+ property :write_incremental_results, as: 'writeIncrementalResults'
2540
2582
  end
2541
2583
  end
2542
2584
 
@@ -3171,10 +3213,13 @@ module Google
3171
3213
  property :create_session, as: 'createSession'
3172
3214
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
3173
3215
 
3216
+ property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
3217
+
3174
3218
  property :dry_run, as: 'dryRun'
3175
3219
  property :format_options, as: 'formatOptions', class: Google::Apis::BigqueryV2::DataFormatOptions, decorator: Google::Apis::BigqueryV2::DataFormatOptions::Representation
3176
3220
 
3177
3221
  property :job_creation_mode, as: 'jobCreationMode'
3222
+ property :job_timeout_ms, :numeric_string => true, as: 'jobTimeoutMs'
3178
3223
  property :kind, as: 'kind'
3179
3224
  hash :labels, as: 'labels'
3180
3225
  property :location, as: 'location'
@@ -3186,9 +3231,11 @@ module Google
3186
3231
  collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
3187
3232
 
3188
3233
  property :request_id, as: 'requestId'
3234
+ property :reservation, as: 'reservation'
3189
3235
  property :timeout_ms, as: 'timeoutMs'
3190
3236
  property :use_legacy_sql, as: 'useLegacySql'
3191
3237
  property :use_query_cache, as: 'useQueryCache'
3238
+ property :write_incremental_results, as: 'writeIncrementalResults'
3192
3239
  end
3193
3240
  end
3194
3241
 
@@ -3196,8 +3243,10 @@ module Google
3196
3243
  # @private
3197
3244
  class Representation < Google::Apis::Core::JsonRepresentation
3198
3245
  property :cache_hit, as: 'cacheHit'
3246
+ property :creation_time, :numeric_string => true, as: 'creationTime'
3199
3247
  property :dml_stats, as: 'dmlStats', class: Google::Apis::BigqueryV2::DmlStatistics, decorator: Google::Apis::BigqueryV2::DmlStatistics::Representation
3200
3248
 
3249
+ property :end_time, :numeric_string => true, as: 'endTime'
3201
3250
  collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
3202
3251
 
3203
3252
  property :job_complete, as: 'jobComplete'
@@ -3206,6 +3255,7 @@ module Google
3206
3255
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
3207
3256
 
3208
3257
  property :kind, as: 'kind'
3258
+ property :location, as: 'location'
3209
3259
  property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
3210
3260
  property :page_token, as: 'pageToken'
3211
3261
  property :query_id, as: 'queryId'
@@ -3215,8 +3265,11 @@ module Google
3215
3265
 
3216
3266
  property :session_info, as: 'sessionInfo', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
3217
3267
 
3268
+ property :start_time, :numeric_string => true, as: 'startTime'
3269
+ property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
3218
3270
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
3219
3271
  property :total_rows, :numeric_string => true, as: 'totalRows'
3272
+ property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
3220
3273
  end
3221
3274
  end
3222
3275
 
@@ -3364,6 +3417,7 @@ module Google
3364
3417
  property :creation_time, as: 'creationTime'
3365
3418
  property :etag, as: 'etag'
3366
3419
  property :filter_predicate, as: 'filterPredicate'
3420
+ collection :grantees, as: 'grantees'
3367
3421
  property :last_modified_time, as: 'lastModifiedTime'
3368
3422
  property :row_access_policy_reference, as: 'rowAccessPolicyReference', class: Google::Apis::BigqueryV2::RowAccessPolicyReference, decorator: Google::Apis::BigqueryV2::RowAccessPolicyReference::Representation
3369
3423
 
@@ -3578,6 +3632,26 @@ module Google
3578
3632
  end
3579
3633
  end
3580
3634
 
3635
+ class StoredColumnsUnusedReason
3636
+ # @private
3637
+ class Representation < Google::Apis::Core::JsonRepresentation
3638
+ property :code, as: 'code'
3639
+ property :message, as: 'message'
3640
+ collection :uncovered_columns, as: 'uncoveredColumns'
3641
+ end
3642
+ end
3643
+
3644
+ class StoredColumnsUsage
3645
+ # @private
3646
+ class Representation < Google::Apis::Core::JsonRepresentation
3647
+ property :base_table, as: 'baseTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
3648
+
3649
+ property :is_query_accelerated, as: 'isQueryAccelerated'
3650
+ collection :stored_columns_unused_reasons, as: 'storedColumnsUnusedReasons', class: Google::Apis::BigqueryV2::StoredColumnsUnusedReason, decorator: Google::Apis::BigqueryV2::StoredColumnsUnusedReason::Representation
3651
+
3652
+ end
3653
+ end
3654
+
3581
3655
  class Streamingbuffer
3582
3656
  # @private
3583
3657
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3988,6 +4062,8 @@ module Google
3988
4062
  property :enable_global_explain, as: 'enableGlobalExplain'
3989
4063
  property :feedback_type, as: 'feedbackType'
3990
4064
  property :fit_intercept, as: 'fitIntercept'
4065
+ property :forecast_limit_lower_bound, as: 'forecastLimitLowerBound'
4066
+ property :forecast_limit_upper_bound, as: 'forecastLimitUpperBound'
3991
4067
  collection :hidden_units, as: 'hiddenUnits'
3992
4068
  property :holiday_region, as: 'holidayRegion'
3993
4069
  collection :holiday_regions, as: 'holidayRegions'
@@ -4111,6 +4187,8 @@ module Google
4111
4187
  collection :index_unused_reasons, as: 'indexUnusedReasons', class: Google::Apis::BigqueryV2::IndexUnusedReason, decorator: Google::Apis::BigqueryV2::IndexUnusedReason::Representation
4112
4188
 
4113
4189
  property :index_usage_mode, as: 'indexUsageMode'
4190
+ collection :stored_columns_usages, as: 'storedColumnsUsages', class: Google::Apis::BigqueryV2::StoredColumnsUsage, decorator: Google::Apis::BigqueryV2::StoredColumnsUsage::Representation
4191
+
4114
4192
  end
4115
4193
  end
4116
4194
 
@@ -195,7 +195,7 @@ module Google
195
195
  # Whether to list all datasets, including hidden ones
196
196
  # @param [String] filter
197
197
  # An expression for filtering the results of the request by label. The syntax is
198
- # `labels.[:]`. Multiple filters can be ANDed together by connecting with a
198
+ # `labels.[:]`. Multiple filters can be AND-ed together by connecting with a
199
199
  # space. Example: `labels.department:receiving labels.active`. See [Filtering
200
200
  # datasets using labels](https://cloud.google.com/bigquery/docs/filtering-labels#
201
201
  # filtering_datasets_using_labels) for details.
@@ -1205,6 +1205,124 @@ module Google
1205
1205
  execute_or_queue_command(command, &block)
1206
1206
  end
1207
1207
 
1208
+ # Deletes provided row access policies.
1209
+ # @param [String] project_id
1210
+ # Required. Project ID of the table to delete the row access policies.
1211
+ # @param [String] dataset_id
1212
+ # Required. Dataset ID of the table to delete the row access policies.
1213
+ # @param [String] table_id
1214
+ # Required. Table ID of the table to delete the row access policies.
1215
+ # @param [Google::Apis::BigqueryV2::BatchDeleteRowAccessPoliciesRequest] batch_delete_row_access_policies_request_object
1216
+ # @param [String] fields
1217
+ # Selector specifying which fields to include in a partial response.
1218
+ # @param [String] quota_user
1219
+ # Available to use for quota purposes for server-side applications. Can be any
1220
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1221
+ # @param [Google::Apis::RequestOptions] options
1222
+ # Request-specific options
1223
+ #
1224
+ # @yield [result, err] Result & error if block supplied
1225
+ # @yieldparam result [NilClass] No result returned for this method
1226
+ # @yieldparam err [StandardError] error object if request failed
1227
+ #
1228
+ # @return [void]
1229
+ #
1230
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1231
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1232
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1233
+ def batch_row_access_policy_delete_row_access_policies(project_id, dataset_id, table_id, batch_delete_row_access_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1234
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies:batchDelete', options)
1235
+ command.request_representation = Google::Apis::BigqueryV2::BatchDeleteRowAccessPoliciesRequest::Representation
1236
+ command.request_object = batch_delete_row_access_policies_request_object
1237
+ command.params['projectId'] = project_id unless project_id.nil?
1238
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1239
+ command.params['tableId'] = table_id unless table_id.nil?
1240
+ command.query['fields'] = fields unless fields.nil?
1241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1242
+ execute_or_queue_command(command, &block)
1243
+ end
1244
+
1245
+ # Deletes a row access policy.
1246
+ # @param [String] project_id
1247
+ # Required. Project ID of the table to delete the row access policy.
1248
+ # @param [String] dataset_id
1249
+ # Required. Dataset ID of the table to delete the row access policy.
1250
+ # @param [String] table_id
1251
+ # Required. Table ID of the table to delete the row access policy.
1252
+ # @param [String] policy_id
1253
+ # Required. Policy ID of the row access policy.
1254
+ # @param [Boolean] force
1255
+ # If set to true, it deletes the row access policy even if it's the last row
1256
+ # access policy on the table and the deletion will widen the access rather
1257
+ # narrowing it.
1258
+ # @param [String] fields
1259
+ # Selector specifying which fields to include in a partial response.
1260
+ # @param [String] quota_user
1261
+ # Available to use for quota purposes for server-side applications. Can be any
1262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1263
+ # @param [Google::Apis::RequestOptions] options
1264
+ # Request-specific options
1265
+ #
1266
+ # @yield [result, err] Result & error if block supplied
1267
+ # @yieldparam result [NilClass] No result returned for this method
1268
+ # @yieldparam err [StandardError] error object if request failed
1269
+ #
1270
+ # @return [void]
1271
+ #
1272
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1273
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1274
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1275
+ def delete_row_access_policy(project_id, dataset_id, table_id, policy_id, force: nil, fields: nil, quota_user: nil, options: nil, &block)
1276
+ command = make_simple_command(:delete, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1277
+ command.params['projectId'] = project_id unless project_id.nil?
1278
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1279
+ command.params['tableId'] = table_id unless table_id.nil?
1280
+ command.params['policyId'] = policy_id unless policy_id.nil?
1281
+ command.query['force'] = force unless force.nil?
1282
+ command.query['fields'] = fields unless fields.nil?
1283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1284
+ execute_or_queue_command(command, &block)
1285
+ end
1286
+
1287
+ # Gets the specified row access policy by policy ID.
1288
+ # @param [String] project_id
1289
+ # Required. Project ID of the table to get the row access policy.
1290
+ # @param [String] dataset_id
1291
+ # Required. Dataset ID of the table to get the row access policy.
1292
+ # @param [String] table_id
1293
+ # Required. Table ID of the table to get the row access policy.
1294
+ # @param [String] policy_id
1295
+ # Required. Policy ID of the row access policy.
1296
+ # @param [String] fields
1297
+ # Selector specifying which fields to include in a partial response.
1298
+ # @param [String] quota_user
1299
+ # Available to use for quota purposes for server-side applications. Can be any
1300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1301
+ # @param [Google::Apis::RequestOptions] options
1302
+ # Request-specific options
1303
+ #
1304
+ # @yield [result, err] Result & error if block supplied
1305
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1306
+ # @yieldparam err [StandardError] error object if request failed
1307
+ #
1308
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1309
+ #
1310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1313
+ def get_row_access_policy(project_id, dataset_id, table_id, policy_id, fields: nil, quota_user: nil, options: nil, &block)
1314
+ command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1315
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1316
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1317
+ command.params['projectId'] = project_id unless project_id.nil?
1318
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1319
+ command.params['tableId'] = table_id unless table_id.nil?
1320
+ command.params['policyId'] = policy_id unless policy_id.nil?
1321
+ command.query['fields'] = fields unless fields.nil?
1322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1323
+ execute_or_queue_command(command, &block)
1324
+ end
1325
+
1208
1326
  # Gets the access control policy for a resource. Returns an empty policy if the
1209
1327
  # resource exists and does not have a policy set.
1210
1328
  # @param [String] resource
@@ -1241,6 +1359,45 @@ module Google
1241
1359
  execute_or_queue_command(command, &block)
1242
1360
  end
1243
1361
 
1362
+ # Creates a row access policy.
1363
+ # @param [String] project_id
1364
+ # Required. Project ID of the table to get the row access policy.
1365
+ # @param [String] dataset_id
1366
+ # Required. Dataset ID of the table to get the row access policy.
1367
+ # @param [String] table_id
1368
+ # Required. Table ID of the table to get the row access policy.
1369
+ # @param [Google::Apis::BigqueryV2::RowAccessPolicy] row_access_policy_object
1370
+ # @param [String] fields
1371
+ # Selector specifying which fields to include in a partial response.
1372
+ # @param [String] quota_user
1373
+ # Available to use for quota purposes for server-side applications. Can be any
1374
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1375
+ # @param [Google::Apis::RequestOptions] options
1376
+ # Request-specific options
1377
+ #
1378
+ # @yield [result, err] Result & error if block supplied
1379
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1380
+ # @yieldparam err [StandardError] error object if request failed
1381
+ #
1382
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1383
+ #
1384
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1385
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1386
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1387
+ def insert_row_access_policy(project_id, dataset_id, table_id, row_access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1388
+ command = make_simple_command(:post, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies', options)
1389
+ command.request_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1390
+ command.request_object = row_access_policy_object
1391
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1392
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1393
+ command.params['projectId'] = project_id unless project_id.nil?
1394
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1395
+ command.params['tableId'] = table_id unless table_id.nil?
1396
+ command.query['fields'] = fields unless fields.nil?
1397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1398
+ execute_or_queue_command(command, &block)
1399
+ end
1400
+
1244
1401
  # Lists all row access policies on the specified table.
1245
1402
  # @param [String] project_id
1246
1403
  # Required. Project ID of the row access policies to list.
@@ -1323,6 +1480,48 @@ module Google
1323
1480
  execute_or_queue_command(command, &block)
1324
1481
  end
1325
1482
 
1483
+ # Updates a row access policy.
1484
+ # @param [String] project_id
1485
+ # Required. Project ID of the table to get the row access policy.
1486
+ # @param [String] dataset_id
1487
+ # Required. Dataset ID of the table to get the row access policy.
1488
+ # @param [String] table_id
1489
+ # Required. Table ID of the table to get the row access policy.
1490
+ # @param [String] policy_id
1491
+ # Required. Policy ID of the row access policy.
1492
+ # @param [Google::Apis::BigqueryV2::RowAccessPolicy] row_access_policy_object
1493
+ # @param [String] fields
1494
+ # Selector specifying which fields to include in a partial response.
1495
+ # @param [String] quota_user
1496
+ # Available to use for quota purposes for server-side applications. Can be any
1497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1498
+ # @param [Google::Apis::RequestOptions] options
1499
+ # Request-specific options
1500
+ #
1501
+ # @yield [result, err] Result & error if block supplied
1502
+ # @yieldparam result [Google::Apis::BigqueryV2::RowAccessPolicy] parsed result object
1503
+ # @yieldparam err [StandardError] error object if request failed
1504
+ #
1505
+ # @return [Google::Apis::BigqueryV2::RowAccessPolicy]
1506
+ #
1507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1510
+ def update_row_access_policy(project_id, dataset_id, table_id, policy_id, row_access_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1511
+ command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/rowAccessPolicies/{+policyId}', options)
1512
+ command.request_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1513
+ command.request_object = row_access_policy_object
1514
+ command.response_representation = Google::Apis::BigqueryV2::RowAccessPolicy::Representation
1515
+ command.response_class = Google::Apis::BigqueryV2::RowAccessPolicy
1516
+ command.params['projectId'] = project_id unless project_id.nil?
1517
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1518
+ command.params['tableId'] = table_id unless table_id.nil?
1519
+ command.params['policyId'] = policy_id unless policy_id.nil?
1520
+ command.query['fields'] = fields unless fields.nil?
1521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1522
+ execute_or_queue_command(command, &block)
1523
+ end
1524
+
1326
1525
  # Streams data into BigQuery one record at a time without needing to run a load
1327
1526
  # job.
1328
1527
  # @param [String] project_id
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.83.0
4
+ version: 0.86.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-23 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.83.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.86.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for BigQuery API V2
82
79
  test_files: []