google-apis-bigquery_v2 0.66.0 → 0.68.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12b3b8f91c37e1f2672bbda0246599448b8faa5c2c09ebd751d6f1444565c3b4
4
- data.tar.gz: e350f146fa4164cfe9391f99787c52db8c95ddd9b699cf61a1334b23abedb9cc
3
+ metadata.gz: 3497b0da4f58e593d9ae0ff306fdc0189354c8a1ec6aaae9fe66bf10ddcd7871
4
+ data.tar.gz: 03d4e435aaa92261d3d5b54a68470501de8b8b1357815daafc5151d3575dd828
5
5
  SHA512:
6
- metadata.gz: 4e39e0d76bfa17f6cebce71f94c76cf2b7b52ea4f3269329dc39cc6538a0d59f2ff54faa6873e6fffef913913a632f10a510fdb423c642c5857335d10bffe9d2
7
- data.tar.gz: c1f456b56e776ec24a452b7e61d3678ecb7542b56fbd1e1dd1cd24be9de31beb7e66736cc3d12045a80dd011a4e33bb5e7cba2dc0eca2155fc710b2572c58720
6
+ metadata.gz: 2ab69a7d89e1238308c0b3d8c7b3b8a694bc0fd1aa511b169ab0aefcc87467ef0a08d344faec763e1a166dd5d040d25788a78f9968541398389057c6459f6785
7
+ data.tar.gz: 4e61deb12cf4e295fceacf5805429e529a3ea0f894a53974505df97e5095ac90b6f134c91858fccf632d09a07ac75feb40443f768778b8a337c451e5a443b15a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.68.0 (2024-04-28)
4
+
5
+ * Regenerated from discovery document revision 20240418
6
+
7
+ ### v0.67.0 (2024-03-31)
8
+
9
+ * Regenerated from discovery document revision 20240323
10
+
3
11
  ### v0.66.0 (2024-03-10)
4
12
 
5
13
  * Regenerated from discovery document revision 20240229
@@ -1564,7 +1564,12 @@ module Google
1564
1564
  # @return [String]
1565
1565
  attr_accessor :field_delimiter
1566
1566
 
1567
- # [Optional] A custom string that will represent a NULL value in CSV import data.
1567
+ # Optional. Specifies a string that represents a null value in a CSV file. For
1568
+ # example, if you specify "\N", BigQuery interprets "\N" as a null value when
1569
+ # querying a CSV file. The default value is the empty string. If you set this
1570
+ # property to a custom value, BigQuery throws an error if an empty string is
1571
+ # present for all data types except for STRING and BYTE. For STRING and BYTE
1572
+ # columns, BigQuery interprets the empty string as an empty value.
1568
1573
  # Corresponds to the JSON property `nullMarker`
1569
1574
  # @return [String]
1570
1575
  attr_accessor :null_marker
@@ -1789,6 +1794,13 @@ module Google
1789
1794
  # @return [String]
1790
1795
  attr_accessor :etag
1791
1796
 
1797
+ # Options defining open source compatible datasets living in the BigQuery
1798
+ # catalog. Contains metadata of open source database, schema or namespace
1799
+ # represented by the current dataset.
1800
+ # Corresponds to the JSON property `externalCatalogDatasetOptions`
1801
+ # @return [Google::Apis::BigqueryV2::ExternalCatalogDatasetOptions]
1802
+ attr_accessor :external_catalog_dataset_options
1803
+
1792
1804
  # Configures the access a dataset defined in an external metadata storage.
1793
1805
  # Corresponds to the JSON property `externalDatasetReference`
1794
1806
  # @return [Google::Apis::BigqueryV2::ExternalDatasetReference]
@@ -1855,6 +1867,14 @@ module Google
1855
1867
  # @return [Fixnum]
1856
1868
  attr_accessor :max_time_travel_hours
1857
1869
 
1870
+ # Optional. Output only. Restriction config for all tables and dataset. If set,
1871
+ # restrict certain accesses on the dataset and all its tables based on the
1872
+ # config. See [Data egress](/bigquery/docs/analytics-hub-introduction#
1873
+ # data_egress) for more details.
1874
+ # Corresponds to the JSON property `restrictions`
1875
+ # @return [Google::Apis::BigqueryV2::RestrictionConfig]
1876
+ attr_accessor :restrictions
1877
+
1858
1878
  # Output only. Reserved for future use.
1859
1879
  # Corresponds to the JSON property `satisfiesPzi`
1860
1880
  # @return [Boolean]
@@ -1886,8 +1906,7 @@ module Google
1886
1906
  # Output only. Same as `type` in `ListFormatDataset`. The type of the dataset,
1887
1907
  # one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC
1888
1908
  # - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with
1889
- # definition in external metadata catalog. -- *BIGLAKE_METASTORE - dataset that
1890
- # references a database created in BigLakeMetastore service. --
1909
+ # definition in external metadata catalog.
1891
1910
  # Corresponds to the JSON property `type`
1892
1911
  # @return [String]
1893
1912
  attr_accessor :type
@@ -1908,6 +1927,7 @@ module Google
1908
1927
  @default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms)
1909
1928
  @description = args[:description] if args.key?(:description)
1910
1929
  @etag = args[:etag] if args.key?(:etag)
1930
+ @external_catalog_dataset_options = args[:external_catalog_dataset_options] if args.key?(:external_catalog_dataset_options)
1911
1931
  @external_dataset_reference = args[:external_dataset_reference] if args.key?(:external_dataset_reference)
1912
1932
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
1913
1933
  @id = args[:id] if args.key?(:id)
@@ -1919,6 +1939,7 @@ module Google
1919
1939
  @linked_dataset_source = args[:linked_dataset_source] if args.key?(:linked_dataset_source)
1920
1940
  @location = args[:location] if args.key?(:location)
1921
1941
  @max_time_travel_hours = args[:max_time_travel_hours] if args.key?(:max_time_travel_hours)
1942
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
1922
1943
  @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
1923
1944
  @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
1924
1945
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -2248,6 +2269,106 @@ module Google
2248
2269
  end
2249
2270
  end
2250
2271
 
2272
+ # Represents privacy policy associated with "differential privacy" method.
2273
+ class DifferentialPrivacyPolicy
2274
+ include Google::Apis::Core::Hashable
2275
+
2276
+ # Optional. The total delta budget for all queries against the privacy-protected
2277
+ # view. Each subscriber query against this view charges the amount of delta that
2278
+ # is pre-defined by the contributor through the privacy policy delta_per_query
2279
+ # field. If there is sufficient budget, then the subscriber query attempts to
2280
+ # complete. It might still fail due to other reasons, in which case the charge
2281
+ # is refunded. If there is insufficient budget the query is rejected. There
2282
+ # might be multiple charge attempts if a single query references multiple views.
2283
+ # In this case there must be sufficient budget for all charges or the query is
2284
+ # rejected and charges are refunded in best effort. The budget does not have a
2285
+ # refresh policy and can only be updated via ALTER VIEW or circumvented by
2286
+ # creating a new view that can be queried with a fresh budget.
2287
+ # Corresponds to the JSON property `deltaBudget`
2288
+ # @return [Float]
2289
+ attr_accessor :delta_budget
2290
+
2291
+ # Output only. The delta budget remaining. If budget is exhausted, no more
2292
+ # queries are allowed. Note that the budget for queries that are in progress is
2293
+ # deducted before the query executes. If the query fails or is cancelled then
2294
+ # the budget is refunded. In this case the amount of budget remaining can
2295
+ # increase.
2296
+ # Corresponds to the JSON property `deltaBudgetRemaining`
2297
+ # @return [Float]
2298
+ attr_accessor :delta_budget_remaining
2299
+
2300
+ # Optional. The delta value that is used per query. Delta represents the
2301
+ # probability that any row will fail to be epsilon differentially private.
2302
+ # Indicates the risk associated with exposing aggregate rows in the result of a
2303
+ # query.
2304
+ # Corresponds to the JSON property `deltaPerQuery`
2305
+ # @return [Float]
2306
+ attr_accessor :delta_per_query
2307
+
2308
+ # Optional. The total epsilon budget for all queries against the privacy-
2309
+ # protected view. Each subscriber query against this view charges the amount of
2310
+ # epsilon they request in their query. If there is sufficient budget, then the
2311
+ # subscriber query attempts to complete. It might still fail due to other
2312
+ # reasons, in which case the charge is refunded. If there is insufficient budget
2313
+ # the query is rejected. There might be multiple charge attempts if a single
2314
+ # query references multiple views. In this case there must be sufficient budget
2315
+ # for all charges or the query is rejected and charges are refunded in best
2316
+ # effort. The budget does not have a refresh policy and can only be updated via
2317
+ # ALTER VIEW or circumvented by creating a new view that can be queried with a
2318
+ # fresh budget.
2319
+ # Corresponds to the JSON property `epsilonBudget`
2320
+ # @return [Float]
2321
+ attr_accessor :epsilon_budget
2322
+
2323
+ # Output only. The epsilon budget remaining. If budget is exhausted, no more
2324
+ # queries are allowed. Note that the budget for queries that are in progress is
2325
+ # deducted before the query executes. If the query fails or is cancelled then
2326
+ # the budget is refunded. In this case the amount of budget remaining can
2327
+ # increase.
2328
+ # Corresponds to the JSON property `epsilonBudgetRemaining`
2329
+ # @return [Float]
2330
+ attr_accessor :epsilon_budget_remaining
2331
+
2332
+ # Optional. The maximum epsilon value that a query can consume. If the
2333
+ # subscriber specifies epsilon as a parameter in a SELECT query, it must be less
2334
+ # than or equal to this value. The epsilon parameter controls the amount of
2335
+ # noise that is added to the groups — a higher epsilon means less noise.
2336
+ # Corresponds to the JSON property `maxEpsilonPerQuery`
2337
+ # @return [Float]
2338
+ attr_accessor :max_epsilon_per_query
2339
+
2340
+ # Optional. The maximum groups contributed value that is used per query.
2341
+ # Represents the maximum number of groups to which each protected entity can
2342
+ # contribute. Changing this value does not improve or worsen privacy. The best
2343
+ # value for accuracy and utility depends on the query and data.
2344
+ # Corresponds to the JSON property `maxGroupsContributed`
2345
+ # @return [Fixnum]
2346
+ attr_accessor :max_groups_contributed
2347
+
2348
+ # Optional. The privacy unit column associated with this policy. Differential
2349
+ # privacy policies can only have one privacy unit column per data source object (
2350
+ # table, view).
2351
+ # Corresponds to the JSON property `privacyUnitColumn`
2352
+ # @return [String]
2353
+ attr_accessor :privacy_unit_column
2354
+
2355
+ def initialize(**args)
2356
+ update!(**args)
2357
+ end
2358
+
2359
+ # Update properties of this object
2360
+ def update!(**args)
2361
+ @delta_budget = args[:delta_budget] if args.key?(:delta_budget)
2362
+ @delta_budget_remaining = args[:delta_budget_remaining] if args.key?(:delta_budget_remaining)
2363
+ @delta_per_query = args[:delta_per_query] if args.key?(:delta_per_query)
2364
+ @epsilon_budget = args[:epsilon_budget] if args.key?(:epsilon_budget)
2365
+ @epsilon_budget_remaining = args[:epsilon_budget_remaining] if args.key?(:epsilon_budget_remaining)
2366
+ @max_epsilon_per_query = args[:max_epsilon_per_query] if args.key?(:max_epsilon_per_query)
2367
+ @max_groups_contributed = args[:max_groups_contributed] if args.key?(:max_groups_contributed)
2368
+ @privacy_unit_column = args[:privacy_unit_column] if args.key?(:privacy_unit_column)
2369
+ end
2370
+ end
2371
+
2251
2372
  # Model evaluation metrics for dimensionality reduction models.
2252
2373
  class DimensionalityReductionMetrics
2253
2374
  include Google::Apis::Core::Hashable
@@ -2846,6 +2967,73 @@ module Google
2846
2967
  end
2847
2968
  end
2848
2969
 
2970
+ # Options defining open source compatible datasets living in the BigQuery
2971
+ # catalog. Contains metadata of open source database, schema or namespace
2972
+ # represented by the current dataset.
2973
+ class ExternalCatalogDatasetOptions
2974
+ include Google::Apis::Core::Hashable
2975
+
2976
+ # Optional. The storage location URI for all tables in the dataset. Equivalent
2977
+ # to hive metastore's database locationUri. Maximum length of 1024 characters.
2978
+ # Corresponds to the JSON property `defaultStorageLocationUri`
2979
+ # @return [String]
2980
+ attr_accessor :default_storage_location_uri
2981
+
2982
+ # Optional. A map of key value pairs defining the parameters and properties of
2983
+ # the open source schema. Maximum size of 2Mib.
2984
+ # Corresponds to the JSON property `parameters`
2985
+ # @return [Hash<String,String>]
2986
+ attr_accessor :parameters
2987
+
2988
+ def initialize(**args)
2989
+ update!(**args)
2990
+ end
2991
+
2992
+ # Update properties of this object
2993
+ def update!(**args)
2994
+ @default_storage_location_uri = args[:default_storage_location_uri] if args.key?(:default_storage_location_uri)
2995
+ @parameters = args[:parameters] if args.key?(:parameters)
2996
+ end
2997
+ end
2998
+
2999
+ # Metadata about open source compatible table. The fields contained in these
3000
+ # options correspond to hive metastore's table level properties.
3001
+ class ExternalCatalogTableOptions
3002
+ include Google::Apis::Core::Hashable
3003
+
3004
+ # Optional. The connection specifying the credentials to be used to read
3005
+ # external storage, such as Azure Blob, Cloud Storage, or S3. The connection is
3006
+ # needed to read the open source table from BigQuery Engine. The connection_id
3007
+ # can have the form `..` or `projects//locations//connections/`.
3008
+ # Corresponds to the JSON property `connectionId`
3009
+ # @return [String]
3010
+ attr_accessor :connection_id
3011
+
3012
+ # Optional. A map of key value pairs defining the parameters and properties of
3013
+ # the open source table. Corresponds with hive meta store table parameters.
3014
+ # Maximum size of 4Mib.
3015
+ # Corresponds to the JSON property `parameters`
3016
+ # @return [Hash<String,String>]
3017
+ attr_accessor :parameters
3018
+
3019
+ # Contains information about how a table's data is stored and accessed by open
3020
+ # source query engines.
3021
+ # Corresponds to the JSON property `storageDescriptor`
3022
+ # @return [Google::Apis::BigqueryV2::StorageDescriptor]
3023
+ attr_accessor :storage_descriptor
3024
+
3025
+ def initialize(**args)
3026
+ update!(**args)
3027
+ end
3028
+
3029
+ # Update properties of this object
3030
+ def update!(**args)
3031
+ @connection_id = args[:connection_id] if args.key?(:connection_id)
3032
+ @parameters = args[:parameters] if args.key?(:parameters)
3033
+ @storage_descriptor = args[:storage_descriptor] if args.key?(:storage_descriptor)
3034
+ end
3035
+ end
3036
+
2849
3037
  #
2850
3038
  class ExternalDataConfiguration
2851
3039
  include Google::Apis::Core::Hashable
@@ -3156,6 +3344,26 @@ module Google
3156
3344
  end
3157
3345
  end
3158
3346
 
3347
+ # Metadata about the foreign data type definition such as the system in which
3348
+ # the type is defined.
3349
+ class ForeignTypeInfo
3350
+ include Google::Apis::Core::Hashable
3351
+
3352
+ # Required. Specifies the system which defines the foreign data type.
3353
+ # Corresponds to the JSON property `typeSystem`
3354
+ # @return [String]
3355
+ attr_accessor :type_system
3356
+
3357
+ def initialize(**args)
3358
+ update!(**args)
3359
+ end
3360
+
3361
+ # Update properties of this object
3362
+ def update!(**args)
3363
+ @type_system = args[:type_system] if args.key?(:type_system)
3364
+ end
3365
+ end
3366
+
3159
3367
  # Request message for `GetIamPolicy` method.
3160
3368
  class GetIamPolicyRequest
3161
3369
  include Google::Apis::Core::Hashable
@@ -4260,15 +4468,15 @@ module Google
4260
4468
  # @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
4261
4469
  attr_accessor :connection_properties
4262
4470
 
4263
- # Optional. [Experimental] Configures the load job to only copy files to the
4264
- # destination BigLake managed table with an external storage_uri, without
4265
- # reading file content and writing them to new files. Copying files only is
4266
- # supported when: * source_uris are in the same external storage system as the
4267
- # destination table but they do not overlap with storage_uri of the destination
4268
- # table. * source_format is the same file format as the destination table. *
4269
- # destination_table is an existing BigLake managed table. Its schema does not
4270
- # have default value expression. It schema does not have type parameters other
4271
- # than precision and scale. * No options other than the above are specified.
4471
+ # Optional. [Experimental] Configures the load job to copy files directly to the
4472
+ # destination BigLake managed table, bypassing file content reading and
4473
+ # rewriting. Copying files only is supported when all the following are true: * `
4474
+ # source_uris` are located in the same Cloud Storage location as the destination
4475
+ # table's `storage_uri` location. * `source_format` is `PARQUET`. * `
4476
+ # destination_table` is an existing BigLake managed table. The table's schema
4477
+ # does not have flexible column names. The table's columns do not have type
4478
+ # parameters other than precision and scale. * No options other than the above
4479
+ # are specified.
4272
4480
  # Corresponds to the JSON property `copyFilesOnly`
4273
4481
  # @return [Boolean]
4274
4482
  attr_accessor :copy_files_only
@@ -5253,7 +5461,8 @@ module Google
5253
5461
  class ReservationUsage
5254
5462
  include Google::Apis::Core::Hashable
5255
5463
 
5256
- # Reservation name or "unreserved" for on-demand resources usage.
5464
+ # Reservation name or "unreserved" for on-demand resource usage and multi-
5465
+ # statement queries.
5257
5466
  # Corresponds to the JSON property `name`
5258
5467
  # @return [String]
5259
5468
  attr_accessor :name
@@ -5657,7 +5866,8 @@ module Google
5657
5866
  class ReservationUsage
5658
5867
  include Google::Apis::Core::Hashable
5659
5868
 
5660
- # Reservation name or "unreserved" for on-demand resources usage.
5869
+ # Reservation name or "unreserved" for on-demand resource usage and multi-
5870
+ # statement queries.
5661
5871
  # Corresponds to the JSON property `name`
5662
5872
  # @return [String]
5663
5873
  attr_accessor :name
@@ -5829,6 +6039,36 @@ module Google
5829
6039
  end
5830
6040
  end
5831
6041
 
6042
+ # Represents privacy policy associated with "join restrictions". Join
6043
+ # restriction gives data providers the ability to enforce joins on the '
6044
+ # join_allowed_columns' when data is queried from a privacy protected view.
6045
+ class JoinRestrictionPolicy
6046
+ include Google::Apis::Core::Hashable
6047
+
6048
+ # Optional. The only columns that joins are allowed on. This field is must be
6049
+ # specified for join_conditions JOIN_ANY and JOIN_ALL and it cannot be set for
6050
+ # JOIN_BLOCKED.
6051
+ # Corresponds to the JSON property `joinAllowedColumns`
6052
+ # @return [Array<String>]
6053
+ attr_accessor :join_allowed_columns
6054
+
6055
+ # Optional. Specifies if a join is required or not on queries for the view.
6056
+ # Default is JOIN_CONDITION_UNSPECIFIED.
6057
+ # Corresponds to the JSON property `joinCondition`
6058
+ # @return [String]
6059
+ attr_accessor :join_condition
6060
+
6061
+ def initialize(**args)
6062
+ update!(**args)
6063
+ end
6064
+
6065
+ # Update properties of this object
6066
+ def update!(**args)
6067
+ @join_allowed_columns = args[:join_allowed_columns] if args.key?(:join_allowed_columns)
6068
+ @join_condition = args[:join_condition] if args.key?(:join_condition)
6069
+ end
6070
+ end
6071
+
5832
6072
  # Json Options for load and make external tables.
5833
6073
  class JsonOptions
5834
6074
  include Google::Apis::Core::Hashable
@@ -6092,8 +6332,8 @@ module Google
6092
6332
  class MaterializedViewDefinition
6093
6333
  include Google::Apis::Core::Hashable
6094
6334
 
6095
- # Optional. This option declares authors intention to construct a materialized
6096
- # view that will not be refreshed incrementally.
6335
+ # Optional. This option declares the intention to construct a materialized view
6336
+ # that isn't refreshed incrementally.
6097
6337
  # Corresponds to the JSON property `allowNonIncrementalDefinition`
6098
6338
  # @return [Boolean]
6099
6339
  attr_accessor :allow_non_incremental_definition
@@ -6584,6 +6824,11 @@ module Google
6584
6824
  attr_accessor :enum_as_string
6585
6825
  alias_method :enum_as_string?, :enum_as_string
6586
6826
 
6827
+ # Optional. Will indicate how to represent a parquet map if present.
6828
+ # Corresponds to the JSON property `mapTargetType`
6829
+ # @return [String]
6830
+ attr_accessor :map_target_type
6831
+
6587
6832
  def initialize(**args)
6588
6833
  update!(**args)
6589
6834
  end
@@ -6592,6 +6837,26 @@ module Google
6592
6837
  def update!(**args)
6593
6838
  @enable_list_inference = args[:enable_list_inference] if args.key?(:enable_list_inference)
6594
6839
  @enum_as_string = args[:enum_as_string] if args.key?(:enum_as_string)
6840
+ @map_target_type = args[:map_target_type] if args.key?(:map_target_type)
6841
+ end
6842
+ end
6843
+
6844
+ # Partition skew detailed information.
6845
+ class PartitionSkew
6846
+ include Google::Apis::Core::Hashable
6847
+
6848
+ # Output only. Source stages which produce skewed data.
6849
+ # Corresponds to the JSON property `skewSources`
6850
+ # @return [Array<Google::Apis::BigqueryV2::SkewSource>]
6851
+ attr_accessor :skew_sources
6852
+
6853
+ def initialize(**args)
6854
+ update!(**args)
6855
+ end
6856
+
6857
+ # Update properties of this object
6858
+ def update!(**args)
6859
+ @skew_sources = args[:skew_sources] if args.key?(:skew_sources)
6595
6860
  end
6596
6861
  end
6597
6862
 
@@ -6815,6 +7080,18 @@ module Google
6815
7080
  # @return [Google::Apis::BigqueryV2::AggregationThresholdPolicy]
6816
7081
  attr_accessor :aggregation_threshold_policy
6817
7082
 
7083
+ # Represents privacy policy associated with "differential privacy" method.
7084
+ # Corresponds to the JSON property `differentialPrivacyPolicy`
7085
+ # @return [Google::Apis::BigqueryV2::DifferentialPrivacyPolicy]
7086
+ attr_accessor :differential_privacy_policy
7087
+
7088
+ # Represents privacy policy associated with "join restrictions". Join
7089
+ # restriction gives data providers the ability to enforce joins on the '
7090
+ # join_allowed_columns' when data is queried from a privacy protected view.
7091
+ # Corresponds to the JSON property `joinRestrictionPolicy`
7092
+ # @return [Google::Apis::BigqueryV2::JoinRestrictionPolicy]
7093
+ attr_accessor :join_restriction_policy
7094
+
6818
7095
  def initialize(**args)
6819
7096
  update!(**args)
6820
7097
  end
@@ -6822,6 +7099,8 @@ module Google
6822
7099
  # Update properties of this object
6823
7100
  def update!(**args)
6824
7101
  @aggregation_threshold_policy = args[:aggregation_threshold_policy] if args.key?(:aggregation_threshold_policy)
7102
+ @differential_privacy_policy = args[:differential_privacy_policy] if args.key?(:differential_privacy_policy)
7103
+ @join_restriction_policy = args[:join_restriction_policy] if args.key?(:join_restriction_policy)
6825
7104
  end
6826
7105
  end
6827
7106
 
@@ -7738,6 +8017,25 @@ module Google
7738
8017
  end
7739
8018
  end
7740
8019
 
8020
+ #
8021
+ class RestrictionConfig
8022
+ include Google::Apis::Core::Hashable
8023
+
8024
+ # Output only. Specifies the type of dataset/table restriction.
8025
+ # Corresponds to the JSON property `type`
8026
+ # @return [String]
8027
+ attr_accessor :type
8028
+
8029
+ def initialize(**args)
8030
+ update!(**args)
8031
+ end
8032
+
8033
+ # Update properties of this object
8034
+ def update!(**args)
8035
+ @type = args[:type] if args.key?(:type)
8036
+ end
8037
+ end
8038
+
7741
8039
  # A user-defined function or a stored procedure.
7742
8040
  class Routine
7743
8041
  include Google::Apis::Core::Hashable
@@ -8203,6 +8501,41 @@ module Google
8203
8501
  end
8204
8502
  end
8205
8503
 
8504
+ # Serializer and deserializer information.
8505
+ class SerDeInfo
8506
+ include Google::Apis::Core::Hashable
8507
+
8508
+ # Optional. Name of the SerDe. The maximum length is 256 characters.
8509
+ # Corresponds to the JSON property `name`
8510
+ # @return [String]
8511
+ attr_accessor :name
8512
+
8513
+ # Optional. Key-value pairs that define the initialization parameters for the
8514
+ # serialization library. Maximum size 10 Kib.
8515
+ # Corresponds to the JSON property `parameters`
8516
+ # @return [Hash<String,String>]
8517
+ attr_accessor :parameters
8518
+
8519
+ # Required. Specifies a fully-qualified class name of the serialization library
8520
+ # that is responsible for the translation of data between table representation
8521
+ # and the underlying low-level input and output format structures. The maximum
8522
+ # length is 256 characters.
8523
+ # Corresponds to the JSON property `serializationLibrary`
8524
+ # @return [String]
8525
+ attr_accessor :serialization_library
8526
+
8527
+ def initialize(**args)
8528
+ update!(**args)
8529
+ end
8530
+
8531
+ # Update properties of this object
8532
+ def update!(**args)
8533
+ @name = args[:name] if args.key?(:name)
8534
+ @parameters = args[:parameters] if args.key?(:parameters)
8535
+ @serialization_library = args[:serialization_library] if args.key?(:serialization_library)
8536
+ end
8537
+ end
8538
+
8206
8539
  # [Preview] Information related to sessions.
8207
8540
  class SessionInfo
8208
8541
  include Google::Apis::Core::Hashable
@@ -8275,6 +8608,25 @@ module Google
8275
8608
  end
8276
8609
  end
8277
8610
 
8611
+ # Details about source stages which produce skewed data.
8612
+ class SkewSource
8613
+ include Google::Apis::Core::Hashable
8614
+
8615
+ # Output only. Stage id of the skew source stage.
8616
+ # Corresponds to the JSON property `stageId`
8617
+ # @return [Fixnum]
8618
+ attr_accessor :stage_id
8619
+
8620
+ def initialize(**args)
8621
+ update!(**args)
8622
+ end
8623
+
8624
+ # Update properties of this object
8625
+ def update!(**args)
8626
+ @stage_id = args[:stage_id] if args.key?(:stage_id)
8627
+ end
8628
+ end
8629
+
8278
8630
  # Information about base table and snapshot time of the snapshot.
8279
8631
  class SnapshotDefinition
8280
8632
  include Google::Apis::Core::Hashable
@@ -8528,6 +8880,11 @@ module Google
8528
8880
  attr_accessor :insufficient_shuffle_quota
8529
8881
  alias_method :insufficient_shuffle_quota?, :insufficient_shuffle_quota
8530
8882
 
8883
+ # Partition skew detailed information.
8884
+ # Corresponds to the JSON property `partitionSkew`
8885
+ # @return [Google::Apis::BigqueryV2::PartitionSkew]
8886
+ attr_accessor :partition_skew
8887
+
8531
8888
  # Output only. True if the stage has a slot contention issue.
8532
8889
  # Corresponds to the JSON property `slotContention`
8533
8890
  # @return [Boolean]
@@ -8548,6 +8905,7 @@ module Google
8548
8905
  @bi_engine_reasons = args[:bi_engine_reasons] if args.key?(:bi_engine_reasons)
8549
8906
  @high_cardinality_joins = args[:high_cardinality_joins] if args.key?(:high_cardinality_joins)
8550
8907
  @insufficient_shuffle_quota = args[:insufficient_shuffle_quota] if args.key?(:insufficient_shuffle_quota)
8908
+ @partition_skew = args[:partition_skew] if args.key?(:partition_skew)
8551
8909
  @slot_contention = args[:slot_contention] if args.key?(:slot_contention)
8552
8910
  @stage_id = args[:stage_id] if args.key?(:stage_id)
8553
8911
  end
@@ -8674,6 +9032,50 @@ module Google
8674
9032
  end
8675
9033
  end
8676
9034
 
9035
+ # Contains information about how a table's data is stored and accessed by open
9036
+ # source query engines.
9037
+ class StorageDescriptor
9038
+ include Google::Apis::Core::Hashable
9039
+
9040
+ # Optional. Specifies the fully qualified class name of the InputFormat (e.g. "
9041
+ # org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum length is 128
9042
+ # characters.
9043
+ # Corresponds to the JSON property `inputFormat`
9044
+ # @return [String]
9045
+ attr_accessor :input_format
9046
+
9047
+ # Optional. The physical location of the table (e.g. 'gs://spark-dataproc-data/
9048
+ # pangea-data/case_sensitive/' or 'gs://spark-dataproc-data/pangea-data/*'). The
9049
+ # maximum length is 2056 bytes.
9050
+ # Corresponds to the JSON property `locationUri`
9051
+ # @return [String]
9052
+ attr_accessor :location_uri
9053
+
9054
+ # Optional. Specifies the fully qualified class name of the OutputFormat (e.g. "
9055
+ # org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat"). The maximum length is 128
9056
+ # characters.
9057
+ # Corresponds to the JSON property `outputFormat`
9058
+ # @return [String]
9059
+ attr_accessor :output_format
9060
+
9061
+ # Serializer and deserializer information.
9062
+ # Corresponds to the JSON property `serdeInfo`
9063
+ # @return [Google::Apis::BigqueryV2::SerDeInfo]
9064
+ attr_accessor :serde_info
9065
+
9066
+ def initialize(**args)
9067
+ update!(**args)
9068
+ end
9069
+
9070
+ # Update properties of this object
9071
+ def update!(**args)
9072
+ @input_format = args[:input_format] if args.key?(:input_format)
9073
+ @location_uri = args[:location_uri] if args.key?(:location_uri)
9074
+ @output_format = args[:output_format] if args.key?(:output_format)
9075
+ @serde_info = args[:serde_info] if args.key?(:serde_info)
9076
+ end
9077
+ end
9078
+
8677
9079
  #
8678
9080
  class Streamingbuffer
8679
9081
  include Google::Apis::Core::Hashable
@@ -8821,6 +9223,12 @@ module Google
8821
9223
  # @return [Fixnum]
8822
9224
  attr_accessor :expiration_time
8823
9225
 
9226
+ # Metadata about open source compatible table. The fields contained in these
9227
+ # options correspond to hive metastore's table level properties.
9228
+ # Corresponds to the JSON property `externalCatalogTableOptions`
9229
+ # @return [Google::Apis::BigqueryV2::ExternalCatalogTableOptions]
9230
+ attr_accessor :external_catalog_table_options
9231
+
8824
9232
  # Optional. Describes the data format, location, and other properties of a table
8825
9233
  # stored outside of BigQuery. By defining these properties, the data source can
8826
9234
  # then be queried as if it were a standard BigQuery table.
@@ -8993,6 +9401,13 @@ module Google
8993
9401
  # @return [Hash<String,String>]
8994
9402
  attr_accessor :resource_tags
8995
9403
 
9404
+ # Optional. Output only. Restriction config for table. If set, restrict certain
9405
+ # accesses on the table based on the config. See [Data egress](/bigquery/docs/
9406
+ # analytics-hub-introduction#data_egress) for more details.
9407
+ # Corresponds to the JSON property `restrictions`
9408
+ # @return [Google::Apis::BigqueryV2::RestrictionConfig]
9409
+ attr_accessor :restrictions
9410
+
8996
9411
  # Schema of a table
8997
9412
  # Corresponds to the JSON property `schema`
8998
9413
  # @return [Google::Apis::BigqueryV2::TableSchema]
@@ -9069,6 +9484,7 @@ module Google
9069
9484
  @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
9070
9485
  @etag = args[:etag] if args.key?(:etag)
9071
9486
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
9487
+ @external_catalog_table_options = args[:external_catalog_table_options] if args.key?(:external_catalog_table_options)
9072
9488
  @external_data_configuration = args[:external_data_configuration] if args.key?(:external_data_configuration)
9073
9489
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
9074
9490
  @id = args[:id] if args.key?(:id)
@@ -9097,6 +9513,7 @@ module Google
9097
9513
  @replicas = args[:replicas] if args.key?(:replicas)
9098
9514
  @require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter)
9099
9515
  @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
9516
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
9100
9517
  @schema = args[:schema] if args.key?(:schema)
9101
9518
  @self_link = args[:self_link] if args.key?(:self_link)
9102
9519
  @snapshot_definition = args[:snapshot_definition] if args.key?(:snapshot_definition)
@@ -9480,6 +9897,12 @@ module Google
9480
9897
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
9481
9898
  attr_accessor :fields
9482
9899
 
9900
+ # Optional. Definition of the foreign data type. Only valid for top-level schema
9901
+ # fields (not nested fields). If the type is FOREIGN, this field is required.
9902
+ # Corresponds to the JSON property `foreignTypeDefinition`
9903
+ # @return [String]
9904
+ attr_accessor :foreign_type_definition
9905
+
9483
9906
  # Optional. Maximum length of values of this field for STRINGS or BYTES. If
9484
9907
  # max_length is not specified, no maximum length constraint is imposed on this
9485
9908
  # field. If type = "STRING", then max_length represents the maximum UTF-8 length
@@ -9565,6 +9988,7 @@ module Google
9565
9988
  @default_value_expression = args[:default_value_expression] if args.key?(:default_value_expression)
9566
9989
  @description = args[:description] if args.key?(:description)
9567
9990
  @fields = args[:fields] if args.key?(:fields)
9991
+ @foreign_type_definition = args[:foreign_type_definition] if args.key?(:foreign_type_definition)
9568
9992
  @max_length = args[:max_length] if args.key?(:max_length)
9569
9993
  @mode = args[:mode] if args.key?(:mode)
9570
9994
  @name = args[:name] if args.key?(:name)
@@ -9952,6 +10376,12 @@ module Google
9952
10376
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
9953
10377
  attr_accessor :fields
9954
10378
 
10379
+ # Metadata about the foreign data type definition such as the system in which
10380
+ # the type is defined.
10381
+ # Corresponds to the JSON property `foreignTypeInfo`
10382
+ # @return [Google::Apis::BigqueryV2::ForeignTypeInfo]
10383
+ attr_accessor :foreign_type_info
10384
+
9955
10385
  def initialize(**args)
9956
10386
  update!(**args)
9957
10387
  end
@@ -9959,6 +10389,7 @@ module Google
9959
10389
  # Update properties of this object
9960
10390
  def update!(**args)
9961
10391
  @fields = args[:fields] if args.key?(:fields)
10392
+ @foreign_type_info = args[:foreign_type_info] if args.key?(:foreign_type_info)
9962
10393
  end
9963
10394
  end
9964
10395
 
@@ -10778,8 +11209,8 @@ module Google
10778
11209
  class UndeleteDatasetRequest
10779
11210
  include Google::Apis::Core::Hashable
10780
11211
 
10781
- # Optional. The exact time when the dataset was deleted. If not specified, it
10782
- # will undelete the most recently deleted version.
11212
+ # Optional. The exact time when the dataset was deleted. If not specified, the
11213
+ # most recently deleted version is undeleted.
10783
11214
  # Corresponds to the JSON property `deletionTime`
10784
11215
  # @return [String]
10785
11216
  attr_accessor :deletion_time
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryV2
18
18
  # Version of the google-apis-bigquery_v2 gem
19
- GEM_VERSION = "0.66.0"
19
+ GEM_VERSION = "0.68.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.14.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240229"
25
+ REVISION = "20240418"
26
26
  end
27
27
  end
28
28
  end
@@ -304,6 +304,12 @@ module Google
304
304
  include Google::Apis::Core::JsonObjectSupport
305
305
  end
306
306
 
307
+ class DifferentialPrivacyPolicy
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
307
313
  class DimensionalityReductionMetrics
308
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
315
 
@@ -388,6 +394,18 @@ module Google
388
394
  include Google::Apis::Core::JsonObjectSupport
389
395
  end
390
396
 
397
+ class ExternalCatalogDatasetOptions
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
403
+ class ExternalCatalogTableOptions
404
+ class Representation < Google::Apis::Core::JsonRepresentation; end
405
+
406
+ include Google::Apis::Core::JsonObjectSupport
407
+ end
408
+
391
409
  class ExternalDataConfiguration
392
410
  class Representation < Google::Apis::Core::JsonRepresentation; end
393
411
 
@@ -412,6 +430,12 @@ module Google
412
430
  include Google::Apis::Core::JsonObjectSupport
413
431
  end
414
432
 
433
+ class ForeignTypeInfo
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
415
439
  class GetIamPolicyRequest
416
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
441
 
@@ -634,6 +658,12 @@ module Google
634
658
  include Google::Apis::Core::JsonObjectSupport
635
659
  end
636
660
 
661
+ class JoinRestrictionPolicy
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
637
667
  class JsonOptions
638
668
  class Representation < Google::Apis::Core::JsonRepresentation; end
639
669
 
@@ -760,6 +790,12 @@ module Google
760
790
  include Google::Apis::Core::JsonObjectSupport
761
791
  end
762
792
 
793
+ class PartitionSkew
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
763
799
  class PartitionedColumn
764
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
765
801
 
@@ -904,6 +940,12 @@ module Google
904
940
  include Google::Apis::Core::JsonObjectSupport
905
941
  end
906
942
 
943
+ class RestrictionConfig
944
+ class Representation < Google::Apis::Core::JsonRepresentation; end
945
+
946
+ include Google::Apis::Core::JsonObjectSupport
947
+ end
948
+
907
949
  class Routine
908
950
  class Representation < Google::Apis::Core::JsonRepresentation; end
909
951
 
@@ -964,6 +1006,12 @@ module Google
964
1006
  include Google::Apis::Core::JsonObjectSupport
965
1007
  end
966
1008
 
1009
+ class SerDeInfo
1010
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1011
+
1012
+ include Google::Apis::Core::JsonObjectSupport
1013
+ end
1014
+
967
1015
  class SessionInfo
968
1016
  class Representation < Google::Apis::Core::JsonRepresentation; end
969
1017
 
@@ -976,6 +1024,12 @@ module Google
976
1024
  include Google::Apis::Core::JsonObjectSupport
977
1025
  end
978
1026
 
1027
+ class SkewSource
1028
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1029
+
1030
+ include Google::Apis::Core::JsonObjectSupport
1031
+ end
1032
+
979
1033
  class SnapshotDefinition
980
1034
  class Representation < Google::Apis::Core::JsonRepresentation; end
981
1035
 
@@ -1036,6 +1090,12 @@ module Google
1036
1090
  include Google::Apis::Core::JsonObjectSupport
1037
1091
  end
1038
1092
 
1093
+ class StorageDescriptor
1094
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1095
+
1096
+ include Google::Apis::Core::JsonObjectSupport
1097
+ end
1098
+
1039
1099
  class Streamingbuffer
1040
1100
  class Representation < Google::Apis::Core::JsonRepresentation; end
1041
1101
 
@@ -1690,6 +1750,8 @@ module Google
1690
1750
  property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
1691
1751
  property :description, as: 'description'
1692
1752
  property :etag, as: 'etag'
1753
+ property :external_catalog_dataset_options, as: 'externalCatalogDatasetOptions', class: Google::Apis::BigqueryV2::ExternalCatalogDatasetOptions, decorator: Google::Apis::BigqueryV2::ExternalCatalogDatasetOptions::Representation
1754
+
1693
1755
  property :external_dataset_reference, as: 'externalDatasetReference', class: Google::Apis::BigqueryV2::ExternalDatasetReference, decorator: Google::Apis::BigqueryV2::ExternalDatasetReference::Representation
1694
1756
 
1695
1757
  property :friendly_name, as: 'friendlyName'
@@ -1704,6 +1766,8 @@ module Google
1704
1766
 
1705
1767
  property :location, as: 'location'
1706
1768
  property :max_time_travel_hours, :numeric_string => true, as: 'maxTimeTravelHours'
1769
+ property :restrictions, as: 'restrictions', class: Google::Apis::BigqueryV2::RestrictionConfig, decorator: Google::Apis::BigqueryV2::RestrictionConfig::Representation
1770
+
1707
1771
  property :satisfies_pzi, as: 'satisfiesPzi'
1708
1772
  property :satisfies_pzs, as: 'satisfiesPzs'
1709
1773
  property :self_link, as: 'selfLink'
@@ -1793,6 +1857,20 @@ module Google
1793
1857
  end
1794
1858
  end
1795
1859
 
1860
+ class DifferentialPrivacyPolicy
1861
+ # @private
1862
+ class Representation < Google::Apis::Core::JsonRepresentation
1863
+ property :delta_budget, as: 'deltaBudget'
1864
+ property :delta_budget_remaining, as: 'deltaBudgetRemaining'
1865
+ property :delta_per_query, as: 'deltaPerQuery'
1866
+ property :epsilon_budget, as: 'epsilonBudget'
1867
+ property :epsilon_budget_remaining, as: 'epsilonBudgetRemaining'
1868
+ property :max_epsilon_per_query, as: 'maxEpsilonPerQuery'
1869
+ property :max_groups_contributed, :numeric_string => true, as: 'maxGroupsContributed'
1870
+ property :privacy_unit_column, as: 'privacyUnitColumn'
1871
+ end
1872
+ end
1873
+
1796
1874
  class DimensionalityReductionMetrics
1797
1875
  # @private
1798
1876
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1951,6 +2029,24 @@ module Google
1951
2029
  end
1952
2030
  end
1953
2031
 
2032
+ class ExternalCatalogDatasetOptions
2033
+ # @private
2034
+ class Representation < Google::Apis::Core::JsonRepresentation
2035
+ property :default_storage_location_uri, as: 'defaultStorageLocationUri'
2036
+ hash :parameters, as: 'parameters'
2037
+ end
2038
+ end
2039
+
2040
+ class ExternalCatalogTableOptions
2041
+ # @private
2042
+ class Representation < Google::Apis::Core::JsonRepresentation
2043
+ property :connection_id, as: 'connectionId'
2044
+ hash :parameters, as: 'parameters'
2045
+ property :storage_descriptor, as: 'storageDescriptor', class: Google::Apis::BigqueryV2::StorageDescriptor, decorator: Google::Apis::BigqueryV2::StorageDescriptor::Representation
2046
+
2047
+ end
2048
+ end
2049
+
1954
2050
  class ExternalDataConfiguration
1955
2051
  # @private
1956
2052
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2015,6 +2111,13 @@ module Google
2015
2111
  end
2016
2112
  end
2017
2113
 
2114
+ class ForeignTypeInfo
2115
+ # @private
2116
+ class Representation < Google::Apis::Core::JsonRepresentation
2117
+ property :type_system, as: 'typeSystem'
2118
+ end
2119
+ end
2120
+
2018
2121
  class GetIamPolicyRequest
2019
2122
  # @private
2020
2123
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2647,6 +2750,14 @@ module Google
2647
2750
  end
2648
2751
  end
2649
2752
 
2753
+ class JoinRestrictionPolicy
2754
+ # @private
2755
+ class Representation < Google::Apis::Core::JsonRepresentation
2756
+ collection :join_allowed_columns, as: 'joinAllowedColumns'
2757
+ property :join_condition, as: 'joinCondition'
2758
+ end
2759
+ end
2760
+
2650
2761
  class JsonOptions
2651
2762
  # @private
2652
2763
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2862,6 +2973,15 @@ module Google
2862
2973
  class Representation < Google::Apis::Core::JsonRepresentation
2863
2974
  property :enable_list_inference, as: 'enableListInference'
2864
2975
  property :enum_as_string, as: 'enumAsString'
2976
+ property :map_target_type, as: 'mapTargetType'
2977
+ end
2978
+ end
2979
+
2980
+ class PartitionSkew
2981
+ # @private
2982
+ class Representation < Google::Apis::Core::JsonRepresentation
2983
+ collection :skew_sources, as: 'skewSources', class: Google::Apis::BigqueryV2::SkewSource, decorator: Google::Apis::BigqueryV2::SkewSource::Representation
2984
+
2865
2985
  end
2866
2986
  end
2867
2987
 
@@ -2918,6 +3038,10 @@ module Google
2918
3038
  class Representation < Google::Apis::Core::JsonRepresentation
2919
3039
  property :aggregation_threshold_policy, as: 'aggregationThresholdPolicy', class: Google::Apis::BigqueryV2::AggregationThresholdPolicy, decorator: Google::Apis::BigqueryV2::AggregationThresholdPolicy::Representation
2920
3040
 
3041
+ property :differential_privacy_policy, as: 'differentialPrivacyPolicy', class: Google::Apis::BigqueryV2::DifferentialPrivacyPolicy, decorator: Google::Apis::BigqueryV2::DifferentialPrivacyPolicy::Representation
3042
+
3043
+ property :join_restriction_policy, as: 'joinRestrictionPolicy', class: Google::Apis::BigqueryV2::JoinRestrictionPolicy, decorator: Google::Apis::BigqueryV2::JoinRestrictionPolicy::Representation
3044
+
2921
3045
  end
2922
3046
  end
2923
3047
 
@@ -3147,6 +3271,13 @@ module Google
3147
3271
  end
3148
3272
  end
3149
3273
 
3274
+ class RestrictionConfig
3275
+ # @private
3276
+ class Representation < Google::Apis::Core::JsonRepresentation
3277
+ property :type, as: 'type'
3278
+ end
3279
+ end
3280
+
3150
3281
  class Routine
3151
3282
  # @private
3152
3283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3263,6 +3394,15 @@ module Google
3263
3394
  end
3264
3395
  end
3265
3396
 
3397
+ class SerDeInfo
3398
+ # @private
3399
+ class Representation < Google::Apis::Core::JsonRepresentation
3400
+ property :name, as: 'name'
3401
+ hash :parameters, as: 'parameters'
3402
+ property :serialization_library, as: 'serializationLibrary'
3403
+ end
3404
+ end
3405
+
3266
3406
  class SessionInfo
3267
3407
  # @private
3268
3408
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3279,6 +3419,13 @@ module Google
3279
3419
  end
3280
3420
  end
3281
3421
 
3422
+ class SkewSource
3423
+ # @private
3424
+ class Representation < Google::Apis::Core::JsonRepresentation
3425
+ property :stage_id, :numeric_string => true, as: 'stageId'
3426
+ end
3427
+ end
3428
+
3282
3429
  class SnapshotDefinition
3283
3430
  # @private
3284
3431
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3343,6 +3490,8 @@ module Google
3343
3490
  collection :high_cardinality_joins, as: 'highCardinalityJoins', class: Google::Apis::BigqueryV2::HighCardinalityJoin, decorator: Google::Apis::BigqueryV2::HighCardinalityJoin::Representation
3344
3491
 
3345
3492
  property :insufficient_shuffle_quota, as: 'insufficientShuffleQuota'
3493
+ property :partition_skew, as: 'partitionSkew', class: Google::Apis::BigqueryV2::PartitionSkew, decorator: Google::Apis::BigqueryV2::PartitionSkew::Representation
3494
+
3346
3495
  property :slot_contention, as: 'slotContention'
3347
3496
  property :stage_id, :numeric_string => true, as: 'stageId'
3348
3497
  end
@@ -3386,6 +3535,17 @@ module Google
3386
3535
  end
3387
3536
  end
3388
3537
 
3538
+ class StorageDescriptor
3539
+ # @private
3540
+ class Representation < Google::Apis::Core::JsonRepresentation
3541
+ property :input_format, as: 'inputFormat'
3542
+ property :location_uri, as: 'locationUri'
3543
+ property :output_format, as: 'outputFormat'
3544
+ property :serde_info, as: 'serdeInfo', class: Google::Apis::BigqueryV2::SerDeInfo, decorator: Google::Apis::BigqueryV2::SerDeInfo::Representation
3545
+
3546
+ end
3547
+ end
3548
+
3389
3549
  class Streamingbuffer
3390
3550
  # @private
3391
3551
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3428,6 +3588,8 @@ module Google
3428
3588
 
3429
3589
  property :etag, as: 'etag'
3430
3590
  property :expiration_time, :numeric_string => true, as: 'expirationTime'
3591
+ property :external_catalog_table_options, as: 'externalCatalogTableOptions', class: Google::Apis::BigqueryV2::ExternalCatalogTableOptions, decorator: Google::Apis::BigqueryV2::ExternalCatalogTableOptions::Representation
3592
+
3431
3593
  property :external_data_configuration, as: 'externalDataConfiguration', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation
3432
3594
 
3433
3595
  property :friendly_name, as: 'friendlyName'
@@ -3463,6 +3625,8 @@ module Google
3463
3625
 
3464
3626
  property :require_partition_filter, as: 'requirePartitionFilter'
3465
3627
  hash :resource_tags, as: 'resourceTags'
3628
+ property :restrictions, as: 'restrictions', class: Google::Apis::BigqueryV2::RestrictionConfig, decorator: Google::Apis::BigqueryV2::RestrictionConfig::Representation
3629
+
3466
3630
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
3467
3631
 
3468
3632
  property :self_link, as: 'selfLink'
@@ -3597,6 +3761,7 @@ module Google
3597
3761
  property :description, as: 'description'
3598
3762
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
3599
3763
 
3764
+ property :foreign_type_definition, as: 'foreignTypeDefinition'
3600
3765
  property :max_length, :numeric_string => true, as: 'maxLength'
3601
3766
  property :mode, as: 'mode'
3602
3767
  property :name, as: 'name'
@@ -3723,6 +3888,8 @@ module Google
3723
3888
  class Representation < Google::Apis::Core::JsonRepresentation
3724
3889
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
3725
3890
 
3891
+ property :foreign_type_info, as: 'foreignTypeInfo', class: Google::Apis::BigqueryV2::ForeignTypeInfo, decorator: Google::Apis::BigqueryV2::ForeignTypeInfo::Representation
3892
+
3726
3893
  end
3727
3894
  end
3728
3895
 
@@ -169,7 +169,7 @@ module Google
169
169
  # An expression for filtering the results of the request by label. The syntax is
170
170
  # \"labels.<name>[:<value>]\". Multiple filters can be ANDed together by
171
171
  # connecting with a space. Example: \"labels.department:receiving labels.active\"
172
- # . See [Filtering datasets using labels](/bigquery/docs/labeling-datasets#
172
+ # . See [Filtering datasets using labels](/bigquery/docs/filtering-labels#
173
173
  # filtering_datasets_using_labels) for details.
174
174
  # @param [Fixnum] max_results
175
175
  # The maximum number of results to return in a single response page. Leverage
@@ -946,6 +946,42 @@ module Google
946
946
  execute_or_queue_command(command, &block)
947
947
  end
948
948
 
949
+ # Gets the access control policy for a resource. Returns an empty policy if the
950
+ # resource exists and does not have a policy set.
951
+ # @param [String] resource
952
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
953
+ # names](https://cloud.google.com/apis/design/resource_names) for the
954
+ # appropriate value for this field.
955
+ # @param [Google::Apis::BigqueryV2::GetIamPolicyRequest] get_iam_policy_request_object
956
+ # @param [String] fields
957
+ # Selector specifying which fields to include in a partial response.
958
+ # @param [String] quota_user
959
+ # Available to use for quota purposes for server-side applications. Can be any
960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
961
+ # @param [Google::Apis::RequestOptions] options
962
+ # Request-specific options
963
+ #
964
+ # @yield [result, err] Result & error if block supplied
965
+ # @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
966
+ # @yieldparam err [StandardError] error object if request failed
967
+ #
968
+ # @return [Google::Apis::BigqueryV2::Policy]
969
+ #
970
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
971
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
972
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
973
+ def get_routine_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
974
+ command = make_simple_command(:post, '{+resource}:getIamPolicy', options)
975
+ command.request_representation = Google::Apis::BigqueryV2::GetIamPolicyRequest::Representation
976
+ command.request_object = get_iam_policy_request_object
977
+ command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
978
+ command.response_class = Google::Apis::BigqueryV2::Policy
979
+ command.params['resource'] = resource unless resource.nil?
980
+ command.query['fields'] = fields unless fields.nil?
981
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
982
+ execute_or_queue_command(command, &block)
983
+ end
984
+
949
985
  # Creates a new routine in the dataset.
950
986
  # @param [String] project_id
951
987
  # Required. Project ID of the new routine
@@ -1033,6 +1069,43 @@ module Google
1033
1069
  execute_or_queue_command(command, &block)
1034
1070
  end
1035
1071
 
1072
+ # Sets the access control policy on the specified resource. Replaces any
1073
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1074
+ # PERMISSION_DENIED` errors.
1075
+ # @param [String] resource
1076
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1077
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1078
+ # appropriate value for this field.
1079
+ # @param [Google::Apis::BigqueryV2::SetIamPolicyRequest] set_iam_policy_request_object
1080
+ # @param [String] fields
1081
+ # Selector specifying which fields to include in a partial response.
1082
+ # @param [String] quota_user
1083
+ # Available to use for quota purposes for server-side applications. Can be any
1084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1085
+ # @param [Google::Apis::RequestOptions] options
1086
+ # Request-specific options
1087
+ #
1088
+ # @yield [result, err] Result & error if block supplied
1089
+ # @yieldparam result [Google::Apis::BigqueryV2::Policy] parsed result object
1090
+ # @yieldparam err [StandardError] error object if request failed
1091
+ #
1092
+ # @return [Google::Apis::BigqueryV2::Policy]
1093
+ #
1094
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1095
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1096
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1097
+ def set_routine_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1098
+ command = make_simple_command(:post, '{+resource}:setIamPolicy', options)
1099
+ command.request_representation = Google::Apis::BigqueryV2::SetIamPolicyRequest::Representation
1100
+ command.request_object = set_iam_policy_request_object
1101
+ command.response_representation = Google::Apis::BigqueryV2::Policy::Representation
1102
+ command.response_class = Google::Apis::BigqueryV2::Policy
1103
+ command.params['resource'] = resource unless resource.nil?
1104
+ command.query['fields'] = fields unless fields.nil?
1105
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1106
+ execute_or_queue_command(command, &block)
1107
+ end
1108
+
1036
1109
  # Updates information in an existing routine. The update method replaces the
1037
1110
  # entire Routine resource.
1038
1111
  # @param [String] project_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.66.0
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-10 00:00:00.000000000 Z
11
+ date: 2024-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  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.66.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.68.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
63
63
  post_install_message:
64
64
  rdoc_options: []