google-apis-bigquery_v2 0.82.0 → 0.84.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: 15c55699abe6881645a22427359a692112a7187b8ee41fe76b59afdbbcbe5270
4
- data.tar.gz: 0cce1be21b607a00e8be6402a22c620f154a46d81aa7a1946e5fb8446124440f
3
+ metadata.gz: b37029d95a84bf90d39393db51bff70f84c9599e567e7f2b77c9a6e16b3d2a74
4
+ data.tar.gz: 235e074c6f676d13e6ba30c6bcac6309b746174397bfa8924804324d2be21543
5
5
  SHA512:
6
- metadata.gz: 6aaa876c5117a701856f68923acb2b50ad7dfffe7fabc6536855fb266c98796829c5de113449da7424951ee68323ef7538d0e61648721204dea4d046ad8ea76f
7
- data.tar.gz: dd558d4d6a63d65454e597f17110ca4df74083af87875512c722490f2ef6de91c68eaa81dad00958a860fed4b6a3219700cb41cd0cf6f37fa6a16ef5b3e12398
6
+ metadata.gz: 82a130522c290cbfa8f39c5b5d3ae2afa12c42bd88cbddee4c098af57da9920469dd9f45a94ebf326f543c51a129a8a64298bf0f93d2676a81b8dcc1ac64d727
7
+ data.tar.gz: 3601f4b4a18cad014b136c6d16d8f51b78d58d06ffc3d6d609c3a12b961006443e1b1bd420ee260495c922f4832ce40dead519fbe449db11b9b4ff1be55b8d1f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.84.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250216
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.83.0 (2025-01-05)
9
+
10
+ * Regenerated from discovery document revision 20241222
11
+
3
12
  ### v0.82.0 (2024-12-08)
4
13
 
5
14
  * Regenerated from discovery document revision 20241115
@@ -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
@@ -1411,8 +1439,8 @@ module Google
1411
1439
  # One or more fields on which data should be clustered. Only top-level, non-
1412
1440
  # repeated, simple-type fields are supported. The ordering of the clustering
1413
1441
  # fields should be prioritized from most to least important for filtering
1414
- # purposes. Additional information on limitations can be found here: https://
1415
- # cloud.google.com/bigquery/docs/creating-clustered-tables#limitations
1442
+ # purposes. For additional information, see [Introduction to clustered tables](
1443
+ # https://cloud.google.com/bigquery/docs/clustered-tables#limitations).
1416
1444
  # Corresponds to the JSON property `fields`
1417
1445
  # @return [Array<String>]
1418
1446
  attr_accessor :fields
@@ -1819,7 +1847,7 @@ module Google
1819
1847
  attr_accessor :etag
1820
1848
 
1821
1849
  # Options defining open source compatible datasets living in the BigQuery
1822
- # catalog. Contains metadata of open source database, schema or namespace
1850
+ # catalog. Contains metadata of open source database, schema, or namespace
1823
1851
  # represented by the current dataset.
1824
1852
  # Corresponds to the JSON property `externalCatalogDatasetOptions`
1825
1853
  # @return [Google::Apis::BigqueryV2::ExternalCatalogDatasetOptions]
@@ -3026,7 +3054,7 @@ module Google
3026
3054
  end
3027
3055
 
3028
3056
  # Options defining open source compatible datasets living in the BigQuery
3029
- # catalog. Contains metadata of open source database, schema or namespace
3057
+ # catalog. Contains metadata of open source database, schema, or namespace
3030
3058
  # represented by the current dataset.
3031
3059
  class ExternalCatalogDatasetOptions
3032
3060
  include Google::Apis::Core::Hashable
@@ -3038,7 +3066,7 @@ module Google
3038
3066
  attr_accessor :default_storage_location_uri
3039
3067
 
3040
3068
  # Optional. A map of key value pairs defining the parameters and properties of
3041
- # the open source schema. Maximum size of 2Mib.
3069
+ # the open source schema. Maximum size of 2MiB.
3042
3070
  # Corresponds to the JSON property `parameters`
3043
3071
  # @return [Hash<String,String>]
3044
3072
  attr_accessor :parameters
@@ -3055,21 +3083,22 @@ module Google
3055
3083
  end
3056
3084
 
3057
3085
  # Metadata about open source compatible table. The fields contained in these
3058
- # options correspond to hive metastore's table level properties.
3086
+ # options correspond to Hive metastore's table-level properties.
3059
3087
  class ExternalCatalogTableOptions
3060
3088
  include Google::Apis::Core::Hashable
3061
3089
 
3062
- # Optional. The connection specifying the credentials to be used to read
3063
- # external storage, such as Azure Blob, Cloud Storage, or S3. The connection is
3064
- # needed to read the open source table from BigQuery Engine. The connection_id
3065
- # can have the form `..` or `projects//locations//connections/`.
3090
+ # Optional. A connection ID that specifies the credentials to be used to read
3091
+ # external storage, such as Azure Blob, Cloud Storage, or Amazon S3. This
3092
+ # connection is needed to read the open source table from BigQuery. The
3093
+ # connection_id format must be either `..` or `projects//locations//connections/`
3094
+ # .
3066
3095
  # Corresponds to the JSON property `connectionId`
3067
3096
  # @return [String]
3068
3097
  attr_accessor :connection_id
3069
3098
 
3070
- # Optional. A map of key value pairs defining the parameters and properties of
3071
- # the open source table. Corresponds with hive meta store table parameters.
3072
- # Maximum size of 4Mib.
3099
+ # Optional. A map of the key-value pairs defining the parameters and properties
3100
+ # of the open source table. Corresponds with Hive metastore table parameters.
3101
+ # Maximum size of 4MiB.
3073
3102
  # Corresponds to the JSON property `parameters`
3074
3103
  # @return [Hash<String,String>]
3075
3104
  attr_accessor :parameters
@@ -3134,6 +3163,18 @@ module Google
3134
3163
  # @return [Google::Apis::BigqueryV2::CsvOptions]
3135
3164
  attr_accessor :csv_options
3136
3165
 
3166
+ # Optional. Format used to parse DATE values. Supports C-style and SQL-style
3167
+ # values.
3168
+ # Corresponds to the JSON property `dateFormat`
3169
+ # @return [String]
3170
+ attr_accessor :date_format
3171
+
3172
+ # Optional. Format used to parse DATETIME values. Supports C-style and SQL-style
3173
+ # values.
3174
+ # Corresponds to the JSON property `datetimeFormat`
3175
+ # @return [String]
3176
+ attr_accessor :datetime_format
3177
+
3137
3178
  # Defines the list of possible SQL data types to which the source decimal values
3138
3179
  # are converted. This list and the precision and the scale parameters of the
3139
3180
  # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC,
@@ -3146,7 +3187,7 @@ module Google
3146
3187
  # precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC
3147
3188
  # cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold
3148
3189
  # 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error
3149
- # if value exeeds supported range). This field cannot contain duplicate types.
3190
+ # if value exceeds supported range). This field cannot contain duplicate types.
3150
3191
  # The order of the types in this field is ignored. For example, ["BIGNUMERIC", "
3151
3192
  # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
3152
3193
  # precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["
@@ -3261,6 +3302,25 @@ module Google
3261
3302
  # @return [Array<String>]
3262
3303
  attr_accessor :source_uris
3263
3304
 
3305
+ # Optional. Format used to parse TIME values. Supports C-style and SQL-style
3306
+ # values.
3307
+ # Corresponds to the JSON property `timeFormat`
3308
+ # @return [String]
3309
+ attr_accessor :time_format
3310
+
3311
+ # Optional. Time zone used when parsing timestamp values that do not have
3312
+ # specific time zone information (e.g. 2024-04-20 12:34:56). The expected format
3313
+ # is a IANA timezone string (e.g. America/Los_Angeles).
3314
+ # Corresponds to the JSON property `timeZone`
3315
+ # @return [String]
3316
+ attr_accessor :time_zone
3317
+
3318
+ # Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-
3319
+ # style values.
3320
+ # Corresponds to the JSON property `timestampFormat`
3321
+ # @return [String]
3322
+ attr_accessor :timestamp_format
3323
+
3264
3324
  def initialize(**args)
3265
3325
  update!(**args)
3266
3326
  end
@@ -3273,6 +3333,8 @@ module Google
3273
3333
  @compression = args[:compression] if args.key?(:compression)
3274
3334
  @connection_id = args[:connection_id] if args.key?(:connection_id)
3275
3335
  @csv_options = args[:csv_options] if args.key?(:csv_options)
3336
+ @date_format = args[:date_format] if args.key?(:date_format)
3337
+ @datetime_format = args[:datetime_format] if args.key?(:datetime_format)
3276
3338
  @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types)
3277
3339
  @file_set_spec_type = args[:file_set_spec_type] if args.key?(:file_set_spec_type)
3278
3340
  @google_sheets_options = args[:google_sheets_options] if args.key?(:google_sheets_options)
@@ -3288,6 +3350,9 @@ module Google
3288
3350
  @schema = args[:schema] if args.key?(:schema)
3289
3351
  @source_format = args[:source_format] if args.key?(:source_format)
3290
3352
  @source_uris = args[:source_uris] if args.key?(:source_uris)
3353
+ @time_format = args[:time_format] if args.key?(:time_format)
3354
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
3355
+ @timestamp_format = args[:timestamp_format] if args.key?(:timestamp_format)
3291
3356
  end
3292
3357
  end
3293
3358
 
@@ -4599,6 +4664,16 @@ module Google
4599
4664
  attr_accessor :create_session
4600
4665
  alias_method :create_session?, :create_session
4601
4666
 
4667
+ # Optional. Date format used for parsing DATE values.
4668
+ # Corresponds to the JSON property `dateFormat`
4669
+ # @return [String]
4670
+ attr_accessor :date_format
4671
+
4672
+ # Optional. Date format used for parsing DATETIME values.
4673
+ # Corresponds to the JSON property `datetimeFormat`
4674
+ # @return [String]
4675
+ attr_accessor :datetime_format
4676
+
4602
4677
  # Defines the list of possible SQL data types to which the source decimal values
4603
4678
  # are converted. This list and the precision and the scale parameters of the
4604
4679
  # decimal field determine the target type. In the order of NUMERIC, BIGNUMERIC,
@@ -4611,7 +4686,7 @@ module Google
4611
4686
  # precision,scale) is: * (38,9) -> NUMERIC; * (39,9) -> BIGNUMERIC (NUMERIC
4612
4687
  # cannot hold 30 integer digits); * (38,10) -> BIGNUMERIC (NUMERIC cannot hold
4613
4688
  # 10 fractional digits); * (76,38) -> BIGNUMERIC; * (77,38) -> BIGNUMERIC (error
4614
- # if value exeeds supported range). This field cannot contain duplicate types.
4689
+ # if value exceeds supported range). This field cannot contain duplicate types.
4615
4690
  # The order of the types in this field is ignored. For example, ["BIGNUMERIC", "
4616
4691
  # NUMERIC"] is the same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes
4617
4692
  # precedence over BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["
@@ -4827,12 +4902,28 @@ module Google
4827
4902
  # @return [Array<String>]
4828
4903
  attr_accessor :source_uris
4829
4904
 
4905
+ # Optional. Date format used for parsing TIME values.
4906
+ # Corresponds to the JSON property `timeFormat`
4907
+ # @return [String]
4908
+ attr_accessor :time_format
4909
+
4830
4910
  # Time-based partitioning specification for the destination table. Only one of
4831
4911
  # timePartitioning and rangePartitioning should be specified.
4832
4912
  # Corresponds to the JSON property `timePartitioning`
4833
4913
  # @return [Google::Apis::BigqueryV2::TimePartitioning]
4834
4914
  attr_accessor :time_partitioning
4835
4915
 
4916
+ # Optional. [Experimental] Default time zone that will apply when parsing
4917
+ # timestamp values that have no specific time zone.
4918
+ # Corresponds to the JSON property `timeZone`
4919
+ # @return [String]
4920
+ attr_accessor :time_zone
4921
+
4922
+ # Optional. Date format used for parsing TIMESTAMP values.
4923
+ # Corresponds to the JSON property `timestampFormat`
4924
+ # @return [String]
4925
+ attr_accessor :timestamp_format
4926
+
4836
4927
  # Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
4837
4928
  # logical types as the corresponding BigQuery data type (for example, TIMESTAMP),
4838
4929
  # instead of using the raw type (for example, INTEGER).
@@ -4869,6 +4960,8 @@ module Google
4869
4960
  @copy_files_only = args[:copy_files_only] if args.key?(:copy_files_only)
4870
4961
  @create_disposition = args[:create_disposition] if args.key?(:create_disposition)
4871
4962
  @create_session = args[:create_session] if args.key?(:create_session)
4963
+ @date_format = args[:date_format] if args.key?(:date_format)
4964
+ @datetime_format = args[:datetime_format] if args.key?(:datetime_format)
4872
4965
  @decimal_target_types = args[:decimal_target_types] if args.key?(:decimal_target_types)
4873
4966
  @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
4874
4967
  @destination_table = args[:destination_table] if args.key?(:destination_table)
@@ -4894,7 +4987,10 @@ module Google
4894
4987
  @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows)
4895
4988
  @source_format = args[:source_format] if args.key?(:source_format)
4896
4989
  @source_uris = args[:source_uris] if args.key?(:source_uris)
4990
+ @time_format = args[:time_format] if args.key?(:time_format)
4897
4991
  @time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)
4992
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
4993
+ @timestamp_format = args[:timestamp_format] if args.key?(:timestamp_format)
4898
4994
  @use_avro_logical_types = args[:use_avro_logical_types] if args.key?(:use_avro_logical_types)
4899
4995
  @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
4900
4996
  end
@@ -5108,6 +5204,15 @@ module Google
5108
5204
  # @return [String]
5109
5205
  attr_accessor :write_disposition
5110
5206
 
5207
+ # Optional. This is only supported for a SELECT query using a temporary table.
5208
+ # If set, the query is allowed to write results incrementally to the temporary
5209
+ # result table. This may incur a performance penalty. This option cannot be used
5210
+ # with Legacy SQL. This feature is not yet available.
5211
+ # Corresponds to the JSON property `writeIncrementalResults`
5212
+ # @return [Boolean]
5213
+ attr_accessor :write_incremental_results
5214
+ alias_method :write_incremental_results?, :write_incremental_results
5215
+
5111
5216
  def initialize(**args)
5112
5217
  update!(**args)
5113
5218
  end
@@ -5141,6 +5246,7 @@ module Google
5141
5246
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
5142
5247
  @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources)
5143
5248
  @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
5249
+ @write_incremental_results = args[:write_incremental_results] if args.key?(:write_incremental_results)
5144
5250
  end
5145
5251
  end
5146
5252
 
@@ -5694,7 +5800,7 @@ module Google
5694
5800
  # @return [Google::Apis::BigqueryV2::MaterializedViewStatistics]
5695
5801
  attr_accessor :materialized_view_statistics
5696
5802
 
5697
- # Statistics for metadata caching in BigLake tables.
5803
+ # Statistics for metadata caching in queried tables.
5698
5804
  # Corresponds to the JSON property `metadataCacheStatistics`
5699
5805
  # @return [Google::Apis::BigqueryV2::MetadataCacheStatistics]
5700
5806
  attr_accessor :metadata_cache_statistics
@@ -5778,7 +5884,7 @@ module Google
5778
5884
  # google.com/bigquery/docs/reference/standard-sql/debugging-statements#assert)
5779
5885
  # statement. * `INSERT`: [`INSERT`](https://cloud.google.com/bigquery/docs/
5780
5886
  # reference/standard-sql/dml-syntax#insert_statement) statement. * `UPDATE`: [`
5781
- # UPDATE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/query-
5887
+ # UPDATE`](https://cloud.google.com/bigquery/docs/reference/standard-sql/dml-
5782
5888
  # syntax#update_statement) statement. * `DELETE`: [`DELETE`](https://cloud.
5783
5889
  # google.com/bigquery/docs/reference/standard-sql/data-manipulation-language)
5784
5890
  # statement. * `MERGE`: [`MERGE`](https://cloud.google.com/bigquery/docs/
@@ -5787,8 +5893,8 @@ module Google
5787
5893
  # sql/data-definition-language#create_table_statement) statement, without `AS
5788
5894
  # SELECT`. * `CREATE_TABLE_AS_SELECT`: [`CREATE TABLE AS SELECT`](https://cloud.
5789
5895
  # google.com/bigquery/docs/reference/standard-sql/data-definition-language#
5790
- # query_statement) statement. * `CREATE_VIEW`: [`CREATE VIEW`](https://cloud.
5791
- # google.com/bigquery/docs/reference/standard-sql/data-definition-language#
5896
+ # create_table_statement) statement. * `CREATE_VIEW`: [`CREATE VIEW`](https://
5897
+ # cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#
5792
5898
  # create_view_statement) statement. * `CREATE_MODEL`: [`CREATE MODEL`](https://
5793
5899
  # cloud.google.com/bigquery-ml/docs/reference/standard-sql/bigqueryml-syntax-
5794
5900
  # create#create_model_statement) statement. * `CREATE_MATERIALIZED_VIEW`: [`
@@ -5846,7 +5952,7 @@ module Google
5846
5952
  # bigquery/docs/reference/standard-sql/data-definition-language#
5847
5953
  # alter_materialized_view_set_options_statement) statement. * `ALTER_SCHEMA`: [`
5848
5954
  # ALTER SCHEMA`](https://cloud.google.com/bigquery/docs/reference/standard-sql/
5849
- # data-definition-language#aalter_schema_set_options_statement) statement. * `
5955
+ # data-definition-language#alter_schema_set_options_statement) statement. * `
5850
5956
  # SCRIPT`: [`SCRIPT`](https://cloud.google.com/bigquery/docs/reference/standard-
5851
5957
  # sql/procedural-language). * `TRUNCATE_TABLE`: [`TRUNCATE TABLE`](https://cloud.
5852
5958
  # google.com/bigquery/docs/reference/standard-sql/dml-syntax#
@@ -6443,7 +6549,9 @@ module Google
6443
6549
  include Google::Apis::Core::Hashable
6444
6550
 
6445
6551
  # Optional. This option declares the intention to construct a materialized view
6446
- # that isn't refreshed incrementally.
6552
+ # that isn't refreshed incrementally. Non-incremental materialized views support
6553
+ # an expanded range of SQL queries. The `allow_non_incremental_definition`
6554
+ # option can't be changed after the materialized view is created.
6447
6555
  # Corresponds to the JSON property `allowNonIncrementalDefinition`
6448
6556
  # @return [Boolean]
6449
6557
  attr_accessor :allow_non_incremental_definition
@@ -6543,7 +6651,7 @@ module Google
6543
6651
  end
6544
6652
  end
6545
6653
 
6546
- # Statistics for metadata caching in BigLake tables.
6654
+ # Statistics for metadata caching in queried tables.
6547
6655
  class MetadataCacheStatistics
6548
6656
  include Google::Apis::Core::Hashable
6549
6657
 
@@ -7517,6 +7625,11 @@ module Google
7517
7625
  # @return [Google::Apis::BigqueryV2::DatasetReference]
7518
7626
  attr_accessor :default_dataset
7519
7627
 
7628
+ # Configuration for Cloud KMS encryption settings.
7629
+ # Corresponds to the JSON property `destinationEncryptionConfiguration`
7630
+ # @return [Google::Apis::BigqueryV2::EncryptionConfiguration]
7631
+ attr_accessor :destination_encryption_configuration
7632
+
7520
7633
  # Optional. If set to true, BigQuery doesn't run the job. Instead, if the query
7521
7634
  # is valid, BigQuery returns statistics about the job such as how many bytes
7522
7635
  # would be processed. If the query is invalid, an error returns. The default
@@ -7538,6 +7651,16 @@ module Google
7538
7651
  # @return [String]
7539
7652
  attr_accessor :job_creation_mode
7540
7653
 
7654
+ # Optional. Job timeout in milliseconds. If this time limit is exceeded,
7655
+ # BigQuery will attempt to stop a longer job, but may not always succeed in
7656
+ # canceling it before the job completes. For example, a job that takes more than
7657
+ # 60 seconds to complete has a better chance of being stopped than a job that
7658
+ # takes 10 seconds to complete. This timeout applies to the query even if a job
7659
+ # does not need to be created.
7660
+ # Corresponds to the JSON property `jobTimeoutMs`
7661
+ # @return [Fixnum]
7662
+ attr_accessor :job_timeout_ms
7663
+
7541
7664
  # The resource type of the request.
7542
7665
  # Corresponds to the JSON property `kind`
7543
7666
  # @return [String]
@@ -7552,8 +7675,9 @@ module Google
7552
7675
  # @return [Hash<String,String>]
7553
7676
  attr_accessor :labels
7554
7677
 
7555
- # The geographic location where the job should run. See details at https://cloud.
7556
- # google.com/bigquery/docs/locations#specifying_your_location.
7678
+ # The geographic location where the job should run. For more information, see
7679
+ # how to [specify locations](https://cloud.google.com/bigquery/docs/locations#
7680
+ # specify_locations).
7557
7681
  # Corresponds to the JSON property `location`
7558
7682
  # @return [String]
7559
7683
  attr_accessor :location
@@ -7652,6 +7776,15 @@ module Google
7652
7776
  attr_accessor :use_query_cache
7653
7777
  alias_method :use_query_cache?, :use_query_cache
7654
7778
 
7779
+ # Optional. This is only supported for SELECT query. If set, the query is
7780
+ # allowed to write results incrementally to the temporary result table. This may
7781
+ # incur a performance penalty. This option cannot be used with Legacy SQL. This
7782
+ # feature is not yet available.
7783
+ # Corresponds to the JSON property `writeIncrementalResults`
7784
+ # @return [Boolean]
7785
+ attr_accessor :write_incremental_results
7786
+ alias_method :write_incremental_results?, :write_incremental_results
7787
+
7655
7788
  def initialize(**args)
7656
7789
  update!(**args)
7657
7790
  end
@@ -7662,9 +7795,11 @@ module Google
7662
7795
  @continuous = args[:continuous] if args.key?(:continuous)
7663
7796
  @create_session = args[:create_session] if args.key?(:create_session)
7664
7797
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
7798
+ @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
7665
7799
  @dry_run = args[:dry_run] if args.key?(:dry_run)
7666
7800
  @format_options = args[:format_options] if args.key?(:format_options)
7667
7801
  @job_creation_mode = args[:job_creation_mode] if args.key?(:job_creation_mode)
7802
+ @job_timeout_ms = args[:job_timeout_ms] if args.key?(:job_timeout_ms)
7668
7803
  @kind = args[:kind] if args.key?(:kind)
7669
7804
  @labels = args[:labels] if args.key?(:labels)
7670
7805
  @location = args[:location] if args.key?(:location)
@@ -7678,6 +7813,7 @@ module Google
7678
7813
  @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms)
7679
7814
  @use_legacy_sql = args[:use_legacy_sql] if args.key?(:use_legacy_sql)
7680
7815
  @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache)
7816
+ @write_incremental_results = args[:write_incremental_results] if args.key?(:write_incremental_results)
7681
7817
  end
7682
7818
  end
7683
7819
 
@@ -7691,11 +7827,23 @@ module Google
7691
7827
  attr_accessor :cache_hit
7692
7828
  alias_method :cache_hit?, :cache_hit
7693
7829
 
7830
+ # Output only. Creation time of this query, in milliseconds since the epoch.
7831
+ # This field will be present on all queries.
7832
+ # Corresponds to the JSON property `creationTime`
7833
+ # @return [Fixnum]
7834
+ attr_accessor :creation_time
7835
+
7694
7836
  # Detailed statistics for DML statements
7695
7837
  # Corresponds to the JSON property `dmlStats`
7696
7838
  # @return [Google::Apis::BigqueryV2::DmlStatistics]
7697
7839
  attr_accessor :dml_stats
7698
7840
 
7841
+ # Output only. End time of this query, in milliseconds since the epoch. This
7842
+ # field will be present whenever a query job is in the DONE state.
7843
+ # Corresponds to the JSON property `endTime`
7844
+ # @return [Fixnum]
7845
+ attr_accessor :end_time
7846
+
7699
7847
  # Output only. The first errors or warnings encountered during the running of
7700
7848
  # the job. The final message includes the number of errors that caused the
7701
7849
  # process to stop. Errors here do not necessarily mean that the job has
@@ -7732,6 +7880,12 @@ module Google
7732
7880
  # @return [String]
7733
7881
  attr_accessor :kind
7734
7882
 
7883
+ # Output only. The geographic location of the query. For more information about
7884
+ # BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations
7885
+ # Corresponds to the JSON property `location`
7886
+ # @return [String]
7887
+ attr_accessor :location
7888
+
7735
7889
  # Output only. The number of rows affected by a DML statement. Present only for
7736
7890
  # DML statements INSERT, UPDATE or DELETE.
7737
7891
  # Corresponds to the JSON property `numDmlAffectedRows`
@@ -7770,6 +7924,21 @@ module Google
7770
7924
  # @return [Google::Apis::BigqueryV2::SessionInfo]
7771
7925
  attr_accessor :session_info
7772
7926
 
7927
+ # Output only. Start time of this query, in milliseconds since the epoch. This
7928
+ # field will be present when the query job transitions from the PENDING state to
7929
+ # either RUNNING or DONE.
7930
+ # Corresponds to the JSON property `startTime`
7931
+ # @return [Fixnum]
7932
+ attr_accessor :start_time
7933
+
7934
+ # Output only. If the project is configured to use on-demand pricing, then this
7935
+ # field contains the total bytes billed for the job. If the project is
7936
+ # configured to use flat-rate pricing, then you are not billed for bytes and
7937
+ # this field is informational only.
7938
+ # Corresponds to the JSON property `totalBytesBilled`
7939
+ # @return [Fixnum]
7940
+ attr_accessor :total_bytes_billed
7941
+
7773
7942
  # The total number of bytes processed for this query. If this query was a dry
7774
7943
  # run, this is the number of bytes that would be processed if the query were run.
7775
7944
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -7782,6 +7951,11 @@ module Google
7782
7951
  # @return [Fixnum]
7783
7952
  attr_accessor :total_rows
7784
7953
 
7954
+ # Output only. Number of slot ms the user is actually billed for.
7955
+ # Corresponds to the JSON property `totalSlotMs`
7956
+ # @return [Fixnum]
7957
+ attr_accessor :total_slot_ms
7958
+
7785
7959
  def initialize(**args)
7786
7960
  update!(**args)
7787
7961
  end
@@ -7789,20 +7963,26 @@ module Google
7789
7963
  # Update properties of this object
7790
7964
  def update!(**args)
7791
7965
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
7966
+ @creation_time = args[:creation_time] if args.key?(:creation_time)
7792
7967
  @dml_stats = args[:dml_stats] if args.key?(:dml_stats)
7968
+ @end_time = args[:end_time] if args.key?(:end_time)
7793
7969
  @errors = args[:errors] if args.key?(:errors)
7794
7970
  @job_complete = args[:job_complete] if args.key?(:job_complete)
7795
7971
  @job_creation_reason = args[:job_creation_reason] if args.key?(:job_creation_reason)
7796
7972
  @job_reference = args[:job_reference] if args.key?(:job_reference)
7797
7973
  @kind = args[:kind] if args.key?(:kind)
7974
+ @location = args[:location] if args.key?(:location)
7798
7975
  @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
7799
7976
  @page_token = args[:page_token] if args.key?(:page_token)
7800
7977
  @query_id = args[:query_id] if args.key?(:query_id)
7801
7978
  @rows = args[:rows] if args.key?(:rows)
7802
7979
  @schema = args[:schema] if args.key?(:schema)
7803
7980
  @session_info = args[:session_info] if args.key?(:session_info)
7981
+ @start_time = args[:start_time] if args.key?(:start_time)
7982
+ @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
7804
7983
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
7805
7984
  @total_rows = args[:total_rows] if args.key?(:total_rows)
7985
+ @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
7806
7986
  end
7807
7987
  end
7808
7988
 
@@ -8385,6 +8565,27 @@ module Google
8385
8565
  # @return [String]
8386
8566
  attr_accessor :filter_predicate
8387
8567
 
8568
+ # Optional. Input only. The optional list of iam_member users or groups that
8569
+ # specifies the initial members that the row-level access policy should be
8570
+ # created with. grantees types: - "user:alice@example.com": An email address
8571
+ # that represents a specific Google account. - "serviceAccount:my-other-app@
8572
+ # appspot.gserviceaccount.com": An email address that represents a service
8573
+ # account. - "group:admins@example.com": An email address that represents a
8574
+ # Google group. - "domain:example.com":The Google Workspace domain (primary)
8575
+ # that represents all the users of that domain. - "allAuthenticatedUsers": A
8576
+ # special identifier that represents all service accounts and all users on the
8577
+ # internet who have authenticated with a Google Account. This identifier
8578
+ # includes accounts that aren't connected to a Google Workspace or Cloud
8579
+ # Identity domain, such as personal Gmail accounts. Users who aren't
8580
+ # authenticated, such as anonymous visitors, aren't included. - "allUsers":A
8581
+ # special identifier that represents anyone who is on the internet, including
8582
+ # authenticated and unauthenticated users. Because BigQuery requires
8583
+ # authentication before a user can access the service, allUsers includes only
8584
+ # authenticated users.
8585
+ # Corresponds to the JSON property `grantees`
8586
+ # @return [Array<String>]
8587
+ attr_accessor :grantees
8588
+
8388
8589
  # Output only. The time when this row access policy was last modified, in
8389
8590
  # milliseconds since the epoch.
8390
8591
  # Corresponds to the JSON property `lastModifiedTime`
@@ -8405,6 +8606,7 @@ module Google
8405
8606
  @creation_time = args[:creation_time] if args.key?(:creation_time)
8406
8607
  @etag = args[:etag] if args.key?(:etag)
8407
8608
  @filter_predicate = args[:filter_predicate] if args.key?(:filter_predicate)
8609
+ @grantees = args[:grantees] if args.key?(:grantees)
8408
8610
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
8409
8611
  @row_access_policy_reference = args[:row_access_policy_reference] if args.key?(:row_access_policy_reference)
8410
8612
  end
@@ -9195,6 +9397,72 @@ module Google
9195
9397
  end
9196
9398
  end
9197
9399
 
9400
+ # If the stored column was not used, explain why.
9401
+ class StoredColumnsUnusedReason
9402
+ include Google::Apis::Core::Hashable
9403
+
9404
+ # Specifies the high-level reason for the unused scenario, each reason must have
9405
+ # a code associated.
9406
+ # Corresponds to the JSON property `code`
9407
+ # @return [String]
9408
+ attr_accessor :code
9409
+
9410
+ # Specifies the detailed description for the scenario.
9411
+ # Corresponds to the JSON property `message`
9412
+ # @return [String]
9413
+ attr_accessor :message
9414
+
9415
+ # Specifies which columns were not covered by the stored columns for the
9416
+ # specified code up to 20 columns. This is populated when the code is
9417
+ # STORED_COLUMNS_COVER_INSUFFICIENT and BASE_TABLE_HAS_CLS.
9418
+ # Corresponds to the JSON property `uncoveredColumns`
9419
+ # @return [Array<String>]
9420
+ attr_accessor :uncovered_columns
9421
+
9422
+ def initialize(**args)
9423
+ update!(**args)
9424
+ end
9425
+
9426
+ # Update properties of this object
9427
+ def update!(**args)
9428
+ @code = args[:code] if args.key?(:code)
9429
+ @message = args[:message] if args.key?(:message)
9430
+ @uncovered_columns = args[:uncovered_columns] if args.key?(:uncovered_columns)
9431
+ end
9432
+ end
9433
+
9434
+ # Indicates the stored columns usage in the query.
9435
+ class StoredColumnsUsage
9436
+ include Google::Apis::Core::Hashable
9437
+
9438
+ # Specifies the base table.
9439
+ # Corresponds to the JSON property `baseTable`
9440
+ # @return [Google::Apis::BigqueryV2::TableReference]
9441
+ attr_accessor :base_table
9442
+
9443
+ # Specifies whether the query was accelerated with stored columns.
9444
+ # Corresponds to the JSON property `isQueryAccelerated`
9445
+ # @return [Boolean]
9446
+ attr_accessor :is_query_accelerated
9447
+ alias_method :is_query_accelerated?, :is_query_accelerated
9448
+
9449
+ # If stored columns were not used, explain why.
9450
+ # Corresponds to the JSON property `storedColumnsUnusedReasons`
9451
+ # @return [Array<Google::Apis::BigqueryV2::StoredColumnsUnusedReason>]
9452
+ attr_accessor :stored_columns_unused_reasons
9453
+
9454
+ def initialize(**args)
9455
+ update!(**args)
9456
+ end
9457
+
9458
+ # Update properties of this object
9459
+ def update!(**args)
9460
+ @base_table = args[:base_table] if args.key?(:base_table)
9461
+ @is_query_accelerated = args[:is_query_accelerated] if args.key?(:is_query_accelerated)
9462
+ @stored_columns_unused_reasons = args[:stored_columns_unused_reasons] if args.key?(:stored_columns_unused_reasons)
9463
+ end
9464
+ end
9465
+
9198
9466
  #
9199
9467
  class Streamingbuffer
9200
9468
  include Google::Apis::Core::Hashable
@@ -9343,7 +9611,7 @@ module Google
9343
9611
  attr_accessor :expiration_time
9344
9612
 
9345
9613
  # Metadata about open source compatible table. The fields contained in these
9346
- # options correspond to hive metastore's table level properties.
9614
+ # options correspond to Hive metastore's table-level properties.
9347
9615
  # Corresponds to the JSON property `externalCatalogTableOptions`
9348
9616
  # @return [Google::Apis::BigqueryV2::ExternalCatalogTableOptions]
9349
9617
  attr_accessor :external_catalog_table_options
@@ -10753,8 +11021,8 @@ module Google
10753
11021
  # When data_split_method is SEQ, the first DATA_SPLIT_EVAL_FRACTION rows (from
10754
11022
  # smallest to largest) in the corresponding column are used as training data,
10755
11023
  # and the rest are eval data. It respects the order in Orderable data types:
10756
- # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-
10757
- # type-properties
11024
+ # https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#
11025
+ # data_type_properties
10758
11026
  # Corresponds to the JSON property `dataSplitColumn`
10759
11027
  # @return [String]
10760
11028
  attr_accessor :data_split_column
@@ -10818,6 +11086,19 @@ module Google
10818
11086
  attr_accessor :fit_intercept
10819
11087
  alias_method :fit_intercept?, :fit_intercept
10820
11088
 
11089
+ # The forecast limit lower bound that was used during ARIMA model training with
11090
+ # limits. To see more details of the algorithm: https://otexts.com/fpp2/limits.
11091
+ # html
11092
+ # Corresponds to the JSON property `forecastLimitLowerBound`
11093
+ # @return [Float]
11094
+ attr_accessor :forecast_limit_lower_bound
11095
+
11096
+ # The forecast limit upper bound that was used during ARIMA model training with
11097
+ # limits.
11098
+ # Corresponds to the JSON property `forecastLimitUpperBound`
11099
+ # @return [Float]
11100
+ attr_accessor :forecast_limit_upper_bound
11101
+
10821
11102
  # Hidden units for dnn models.
10822
11103
  # Corresponds to the JSON property `hiddenUnits`
10823
11104
  # @return [Array<Fixnum>]
@@ -11188,6 +11469,8 @@ module Google
11188
11469
  @enable_global_explain = args[:enable_global_explain] if args.key?(:enable_global_explain)
11189
11470
  @feedback_type = args[:feedback_type] if args.key?(:feedback_type)
11190
11471
  @fit_intercept = args[:fit_intercept] if args.key?(:fit_intercept)
11472
+ @forecast_limit_lower_bound = args[:forecast_limit_lower_bound] if args.key?(:forecast_limit_lower_bound)
11473
+ @forecast_limit_upper_bound = args[:forecast_limit_upper_bound] if args.key?(:forecast_limit_upper_bound)
11191
11474
  @hidden_units = args[:hidden_units] if args.key?(:hidden_units)
11192
11475
  @holiday_region = args[:holiday_region] if args.key?(:holiday_region)
11193
11476
  @holiday_regions = args[:holiday_regions] if args.key?(:holiday_regions)
@@ -11455,6 +11738,12 @@ module Google
11455
11738
  # @return [String]
11456
11739
  attr_accessor :index_usage_mode
11457
11740
 
11741
+ # Specifies the usage of stored columns in the query when stored columns are
11742
+ # used in the query.
11743
+ # Corresponds to the JSON property `storedColumnsUsages`
11744
+ # @return [Array<Google::Apis::BigqueryV2::StoredColumnsUsage>]
11745
+ attr_accessor :stored_columns_usages
11746
+
11458
11747
  def initialize(**args)
11459
11748
  update!(**args)
11460
11749
  end
@@ -11463,6 +11752,7 @@ module Google
11463
11752
  def update!(**args)
11464
11753
  @index_unused_reasons = args[:index_unused_reasons] if args.key?(:index_unused_reasons)
11465
11754
  @index_usage_mode = args[:index_usage_mode] if args.key?(:index_usage_mode)
11755
+ @stored_columns_usages = args[:stored_columns_usages] if args.key?(:stored_columns_usages)
11466
11756
  end
11467
11757
  end
11468
11758
 
@@ -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.82.0"
19
+ GEM_VERSION = "0.84.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 = "20241115"
25
+ REVISION = "20250216"
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
@@ -2081,6 +2107,8 @@ module Google
2081
2107
  property :connection_id, as: 'connectionId'
2082
2108
  property :csv_options, as: 'csvOptions', class: Google::Apis::BigqueryV2::CsvOptions, decorator: Google::Apis::BigqueryV2::CsvOptions::Representation
2083
2109
 
2110
+ property :date_format, as: 'dateFormat'
2111
+ property :datetime_format, as: 'datetimeFormat'
2084
2112
  collection :decimal_target_types, as: 'decimalTargetTypes'
2085
2113
  property :file_set_spec_type, as: 'fileSetSpecType'
2086
2114
  property :google_sheets_options, as: 'googleSheetsOptions', class: Google::Apis::BigqueryV2::GoogleSheetsOptions, decorator: Google::Apis::BigqueryV2::GoogleSheetsOptions::Representation
@@ -2101,6 +2129,9 @@ module Google
2101
2129
 
2102
2130
  property :source_format, as: 'sourceFormat'
2103
2131
  collection :source_uris, as: 'sourceUris'
2132
+ property :time_format, as: 'timeFormat'
2133
+ property :time_zone, as: 'timeZone'
2134
+ property :timestamp_format, as: 'timestampFormat'
2104
2135
  end
2105
2136
  end
2106
2137
 
@@ -2456,6 +2487,8 @@ module Google
2456
2487
  property :copy_files_only, as: 'copyFilesOnly'
2457
2488
  property :create_disposition, as: 'createDisposition'
2458
2489
  property :create_session, as: 'createSession'
2490
+ property :date_format, as: 'dateFormat'
2491
+ property :datetime_format, as: 'datetimeFormat'
2459
2492
  collection :decimal_target_types, as: 'decimalTargetTypes'
2460
2493
  property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
2461
2494
 
@@ -2488,8 +2521,11 @@ module Google
2488
2521
  property :skip_leading_rows, as: 'skipLeadingRows'
2489
2522
  property :source_format, as: 'sourceFormat'
2490
2523
  collection :source_uris, as: 'sourceUris'
2524
+ property :time_format, as: 'timeFormat'
2491
2525
  property :time_partitioning, as: 'timePartitioning', class: Google::Apis::BigqueryV2::TimePartitioning, decorator: Google::Apis::BigqueryV2::TimePartitioning::Representation
2492
2526
 
2527
+ property :time_zone, as: 'timeZone'
2528
+ property :timestamp_format, as: 'timestampFormat'
2493
2529
  property :use_avro_logical_types, as: 'useAvroLogicalTypes'
2494
2530
  property :write_disposition, as: 'writeDisposition'
2495
2531
  end
@@ -2537,6 +2573,7 @@ module Google
2537
2573
  collection :user_defined_function_resources, as: 'userDefinedFunctionResources', class: Google::Apis::BigqueryV2::UserDefinedFunctionResource, decorator: Google::Apis::BigqueryV2::UserDefinedFunctionResource::Representation
2538
2574
 
2539
2575
  property :write_disposition, as: 'writeDisposition'
2576
+ property :write_incremental_results, as: 'writeIncrementalResults'
2540
2577
  end
2541
2578
  end
2542
2579
 
@@ -3171,10 +3208,13 @@ module Google
3171
3208
  property :create_session, as: 'createSession'
3172
3209
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
3173
3210
 
3211
+ property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
3212
+
3174
3213
  property :dry_run, as: 'dryRun'
3175
3214
  property :format_options, as: 'formatOptions', class: Google::Apis::BigqueryV2::DataFormatOptions, decorator: Google::Apis::BigqueryV2::DataFormatOptions::Representation
3176
3215
 
3177
3216
  property :job_creation_mode, as: 'jobCreationMode'
3217
+ property :job_timeout_ms, :numeric_string => true, as: 'jobTimeoutMs'
3178
3218
  property :kind, as: 'kind'
3179
3219
  hash :labels, as: 'labels'
3180
3220
  property :location, as: 'location'
@@ -3189,6 +3229,7 @@ module Google
3189
3229
  property :timeout_ms, as: 'timeoutMs'
3190
3230
  property :use_legacy_sql, as: 'useLegacySql'
3191
3231
  property :use_query_cache, as: 'useQueryCache'
3232
+ property :write_incremental_results, as: 'writeIncrementalResults'
3192
3233
  end
3193
3234
  end
3194
3235
 
@@ -3196,8 +3237,10 @@ module Google
3196
3237
  # @private
3197
3238
  class Representation < Google::Apis::Core::JsonRepresentation
3198
3239
  property :cache_hit, as: 'cacheHit'
3240
+ property :creation_time, :numeric_string => true, as: 'creationTime'
3199
3241
  property :dml_stats, as: 'dmlStats', class: Google::Apis::BigqueryV2::DmlStatistics, decorator: Google::Apis::BigqueryV2::DmlStatistics::Representation
3200
3242
 
3243
+ property :end_time, :numeric_string => true, as: 'endTime'
3201
3244
  collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
3202
3245
 
3203
3246
  property :job_complete, as: 'jobComplete'
@@ -3206,6 +3249,7 @@ module Google
3206
3249
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
3207
3250
 
3208
3251
  property :kind, as: 'kind'
3252
+ property :location, as: 'location'
3209
3253
  property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
3210
3254
  property :page_token, as: 'pageToken'
3211
3255
  property :query_id, as: 'queryId'
@@ -3215,8 +3259,11 @@ module Google
3215
3259
 
3216
3260
  property :session_info, as: 'sessionInfo', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
3217
3261
 
3262
+ property :start_time, :numeric_string => true, as: 'startTime'
3263
+ property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
3218
3264
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
3219
3265
  property :total_rows, :numeric_string => true, as: 'totalRows'
3266
+ property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
3220
3267
  end
3221
3268
  end
3222
3269
 
@@ -3364,6 +3411,7 @@ module Google
3364
3411
  property :creation_time, as: 'creationTime'
3365
3412
  property :etag, as: 'etag'
3366
3413
  property :filter_predicate, as: 'filterPredicate'
3414
+ collection :grantees, as: 'grantees'
3367
3415
  property :last_modified_time, as: 'lastModifiedTime'
3368
3416
  property :row_access_policy_reference, as: 'rowAccessPolicyReference', class: Google::Apis::BigqueryV2::RowAccessPolicyReference, decorator: Google::Apis::BigqueryV2::RowAccessPolicyReference::Representation
3369
3417
 
@@ -3578,6 +3626,26 @@ module Google
3578
3626
  end
3579
3627
  end
3580
3628
 
3629
+ class StoredColumnsUnusedReason
3630
+ # @private
3631
+ class Representation < Google::Apis::Core::JsonRepresentation
3632
+ property :code, as: 'code'
3633
+ property :message, as: 'message'
3634
+ collection :uncovered_columns, as: 'uncoveredColumns'
3635
+ end
3636
+ end
3637
+
3638
+ class StoredColumnsUsage
3639
+ # @private
3640
+ class Representation < Google::Apis::Core::JsonRepresentation
3641
+ property :base_table, as: 'baseTable', class: Google::Apis::BigqueryV2::TableReference, decorator: Google::Apis::BigqueryV2::TableReference::Representation
3642
+
3643
+ property :is_query_accelerated, as: 'isQueryAccelerated'
3644
+ collection :stored_columns_unused_reasons, as: 'storedColumnsUnusedReasons', class: Google::Apis::BigqueryV2::StoredColumnsUnusedReason, decorator: Google::Apis::BigqueryV2::StoredColumnsUnusedReason::Representation
3645
+
3646
+ end
3647
+ end
3648
+
3581
3649
  class Streamingbuffer
3582
3650
  # @private
3583
3651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3988,6 +4056,8 @@ module Google
3988
4056
  property :enable_global_explain, as: 'enableGlobalExplain'
3989
4057
  property :feedback_type, as: 'feedbackType'
3990
4058
  property :fit_intercept, as: 'fitIntercept'
4059
+ property :forecast_limit_lower_bound, as: 'forecastLimitLowerBound'
4060
+ property :forecast_limit_upper_bound, as: 'forecastLimitUpperBound'
3991
4061
  collection :hidden_units, as: 'hiddenUnits'
3992
4062
  property :holiday_region, as: 'holidayRegion'
3993
4063
  collection :holiday_regions, as: 'holidayRegions'
@@ -4111,6 +4181,8 @@ module Google
4111
4181
  collection :index_unused_reasons, as: 'indexUnusedReasons', class: Google::Apis::BigqueryV2::IndexUnusedReason, decorator: Google::Apis::BigqueryV2::IndexUnusedReason::Representation
4112
4182
 
4113
4183
  property :index_usage_mode, as: 'indexUsageMode'
4184
+ collection :stored_columns_usages, as: 'storedColumnsUsages', class: Google::Apis::BigqueryV2::StoredColumnsUsage, decorator: Google::Apis::BigqueryV2::StoredColumnsUsage::Representation
4185
+
4114
4186
  end
4115
4187
  end
4116
4188
 
@@ -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.
@@ -388,11 +388,11 @@ module Google
388
388
  # @param [String] job_id
389
389
  # Required. Job ID of the job to cancel
390
390
  # @param [String] location
391
- # The geographic location of the job. You must specify the location to run the
392
- # job for the following scenarios: * If the location to run a job is not in the `
393
- # us` or the `eu` multi-regional location * If the job's location is in a single
394
- # region (for example, `us-central1`) For more information, see https://cloud.
395
- # google.com/bigquery/docs/locations#specifying_your_location.
391
+ # The geographic location of the job. You must [specify the location](https://
392
+ # cloud.google.com/bigquery/docs/locations#specify_locations) to run the job for
393
+ # the following scenarios: * If the location to run a job is not in the `us` or
394
+ # the `eu` multi-regional location * If the job's location is in a single region
395
+ # (for example, `us-central1`)
396
396
  # @param [String] fields
397
397
  # Selector specifying which fields to include in a partial response.
398
398
  # @param [String] quota_user
@@ -431,8 +431,9 @@ module Google
431
431
  # parent job which has child jobs, the metadata from all child jobs will be
432
432
  # deleted as well. Direct deletion of the metadata of child jobs is not allowed.
433
433
  # @param [String] location
434
- # The geographic location of the job. Required. See details at: https://cloud.
435
- # google.com/bigquery/docs/locations#specifying_your_location.
434
+ # The geographic location of the job. Required. For more information, see how to
435
+ # [specify locations](https://cloud.google.com/bigquery/docs/locations#
436
+ # specify_locations).
436
437
  # @param [String] fields
437
438
  # Selector specifying which fields to include in a partial response.
438
439
  # @param [String] quota_user
@@ -471,8 +472,8 @@ module Google
471
472
  # The geographic location of the job. You must specify the location to run the
472
473
  # job for the following scenarios: * If the location to run a job is not in the `
473
474
  # us` or the `eu` multi-regional location * If the job's location is in a single
474
- # region (for example, `us-central1`) For more information, see https://cloud.
475
- # google.com/bigquery/docs/locations#specifying_your_location.
475
+ # region (for example, `us-central1`) For more information, see how to [specify
476
+ # locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
476
477
  # @param [String] fields
477
478
  # Selector specifying which fields to include in a partial response.
478
479
  # @param [String] quota_user
@@ -513,8 +514,8 @@ module Google
513
514
  # The geographic location of the job. You must specify the location to run the
514
515
  # job for the following scenarios: * If the location to run a job is not in the `
515
516
  # us` or the `eu` multi-regional location * If the job's location is in a single
516
- # region (for example, `us-central1`) For more information, see https://cloud.
517
- # google.com/bigquery/docs/locations#specifying_your_location.
517
+ # region (for example, `us-central1`) For more information, see how to [specify
518
+ # locations](https://cloud.google.com/bigquery/docs/locations#specify_locations).
518
519
  # @param [Fixnum] max_results
519
520
  # Maximum number of results to read.
520
521
  # @param [String] page_token
@@ -1204,6 +1205,124 @@ module Google
1204
1205
  execute_or_queue_command(command, &block)
1205
1206
  end
1206
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
+
1207
1326
  # Gets the access control policy for a resource. Returns an empty policy if the
1208
1327
  # resource exists and does not have a policy set.
1209
1328
  # @param [String] resource
@@ -1240,6 +1359,45 @@ module Google
1240
1359
  execute_or_queue_command(command, &block)
1241
1360
  end
1242
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
+
1243
1401
  # Lists all row access policies on the specified table.
1244
1402
  # @param [String] project_id
1245
1403
  # Required. Project ID of the row access policies to list.
@@ -1322,6 +1480,48 @@ module Google
1322
1480
  execute_or_queue_command(command, &block)
1323
1481
  end
1324
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
+
1325
1525
  # Streams data into BigQuery one record at a time without needing to run a load
1326
1526
  # job.
1327
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.82.0
4
+ version: 0.84.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-08 00:00:00.000000000 Z
10
+ date: 2025-03-02 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.82.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.84.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: []