google-apis-bigquery_v2 0.75.0 → 0.77.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: acddc81a77096b0ae1f5ccbf71198b0a64111a352ba2155692f7d1ae1ba8063d
4
- data.tar.gz: 59dea40b84cab8e1427edda4bb397796bbc9f418dfddfb4d4066df7dc72fc89e
3
+ metadata.gz: 4e25087efb339d362481754c79bcea0ba8c986e7b2ace9d4021e1b560baa29c7
4
+ data.tar.gz: 588f31c0d761071c77a4525d9974dd253b51b3eae1ab6abb807c2351523785ee
5
5
  SHA512:
6
- metadata.gz: 980be8a1d5f3ea2380f5bcb2e7e4f271e212ce1ad04ca68ac010b6bef90dddd11d8e7fe38319552c5f36d1874d96e408eb4a8d92750587a3d10d0b0dee60454d
7
- data.tar.gz: 2c22579b584a02ecfbe1796b59601ac21055529b855ff3cbdf4dfd7aa8fc921b4d01c8a3723cb08a3b5db17e02b2a4ca4c78a442bccc7eec2fd5fa589780f7e9
6
+ metadata.gz: c44e3f93910bcfb931c11a960a3763f0732be3f7d9a716e99e8d47ffad9410dc831a0c4ec73e0edec0f6663838d3b2170766b6ff8793006e765ceeaa500e93bd
7
+ data.tar.gz: a7d4c39619782a1db797b79d7eb85286a726a9327a92c9a71fd9e064a324a2c42cc4d2f9f37709e6dd1036172a3a82080c7f627f3afc3f95976ca495f40c30d3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.77.0 (2024-08-25)
4
+
5
+ * Regenerated from discovery document revision 20240815
6
+
7
+ ### v0.76.0 (2024-08-18)
8
+
9
+ * Regenerated from discovery document revision 20240803
10
+
3
11
  ### v0.75.0 (2024-08-11)
4
12
 
5
13
  * Regenerated from discovery document revision 20240727
@@ -131,7 +131,8 @@ module Google
131
131
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
132
132
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
133
133
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
134
- # DATE"` ` ` ] ` `
134
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
135
+ # typeKind": "DATE"` `
135
136
  # Corresponds to the JSON property `dataType`
136
137
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
137
138
  attr_accessor :data_type
@@ -1669,6 +1670,27 @@ module Google
1669
1670
  end
1670
1671
  end
1671
1672
 
1673
+ # Data policy option proto, it currently supports name only, will support
1674
+ # precedence later.
1675
+ class DataPolicyOption
1676
+ include Google::Apis::Core::Hashable
1677
+
1678
+ # Data policy resource name in the form of projects/project_id/locations/
1679
+ # location_id/dataPolicies/data_policy_id.
1680
+ # Corresponds to the JSON property `name`
1681
+ # @return [String]
1682
+ attr_accessor :name
1683
+
1684
+ def initialize(**args)
1685
+ update!(**args)
1686
+ end
1687
+
1688
+ # Update properties of this object
1689
+ def update!(**args)
1690
+ @name = args[:name] if args.key?(:name)
1691
+ end
1692
+ end
1693
+
1672
1694
  # Data split result. This contains references to the training and evaluation
1673
1695
  # data tables that were used to train the model.
1674
1696
  class DataSplitResult
@@ -3966,40 +3988,6 @@ module Google
3966
3988
  end
3967
3989
  end
3968
3990
 
3969
- # Metadata for value generation for an identity column.
3970
- class IdentityColumnInfo
3971
- include Google::Apis::Core::Hashable
3972
-
3973
- # Optional. Dictates when system generated values are used to populate the field.
3974
- # Corresponds to the JSON property `generatedMode`
3975
- # @return [String]
3976
- attr_accessor :generated_mode
3977
-
3978
- # Optional. The minimum difference between two successive generated values.
3979
- # Should be INTEGER compatible. Can be negative or positive but not 0. The
3980
- # default value is 1 if the field is not specified.
3981
- # Corresponds to the JSON property `increment`
3982
- # @return [String]
3983
- attr_accessor :increment
3984
-
3985
- # Optional. The first generated value. Should be INTEGER compatible. The default
3986
- # value is 1 if the field is not specified.
3987
- # Corresponds to the JSON property `start`
3988
- # @return [String]
3989
- attr_accessor :start
3990
-
3991
- def initialize(**args)
3992
- update!(**args)
3993
- end
3994
-
3995
- # Update properties of this object
3996
- def update!(**args)
3997
- @generated_mode = args[:generated_mode] if args.key?(:generated_mode)
3998
- @increment = args[:increment] if args.key?(:increment)
3999
- @start = args[:start] if args.key?(:start)
4000
- end
4001
- end
4002
-
4003
3991
  # Reason about why no search index was used in the search query (or sub-query).
4004
3992
  class IndexUnusedReason
4005
3993
  include Google::Apis::Core::Hashable
@@ -4248,8 +4236,7 @@ module Google
4248
4236
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
4249
4237
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
4250
4238
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
4251
- # always be `REQUESTED`. This feature is not yet available. Jobs will always be
4252
- # created.
4239
+ # always be `REQUESTED`. [Preview](/products/#product-launch-stages)
4253
4240
  # Corresponds to the JSON property `jobCreationReason`
4254
4241
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
4255
4242
  attr_accessor :job_creation_reason
@@ -5215,8 +5202,7 @@ module Google
5215
5202
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
5216
5203
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
5217
5204
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
5218
- # always be `REQUESTED`. This feature is not yet available. Jobs will always be
5219
- # created.
5205
+ # always be `REQUESTED`. [Preview](/products/#product-launch-stages)
5220
5206
  class JobCreationReason
5221
5207
  include Google::Apis::Core::Hashable
5222
5208
 
@@ -7505,8 +7491,8 @@ module Google
7505
7491
  attr_accessor :format_options
7506
7492
 
7507
7493
  # Optional. If not set, jobs are always required. If set, the query request will
7508
- # follow the behavior described JobCreationMode. This feature is not yet
7509
- # available. Jobs will always be created.
7494
+ # follow the behavior described JobCreationMode. [Preview](/products/#product-
7495
+ # launch-stages)
7510
7496
  # Corresponds to the JSON property `jobCreationMode`
7511
7497
  # @return [String]
7512
7498
  attr_accessor :job_creation_mode
@@ -7689,8 +7675,7 @@ module Google
7689
7675
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
7690
7676
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
7691
7677
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
7692
- # always be `REQUESTED`. This feature is not yet available. Jobs will always be
7693
- # created.
7678
+ # always be `REQUESTED`. [Preview](/products/#product-launch-stages)
7694
7679
  # Corresponds to the JSON property `jobCreationReason`
7695
7680
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
7696
7681
  attr_accessor :job_creation_reason
@@ -7720,8 +7705,7 @@ module Google
7720
7705
  # @return [String]
7721
7706
  attr_accessor :page_token
7722
7707
 
7723
- # Query ID for the completed query. This ID will be auto-generated. This field
7724
- # is not yet available and it is currently not guaranteed to be populated.
7708
+ # Auto-generated ID for the query. [Preview](/products/#product-launch-stages)
7725
7709
  # Corresponds to the JSON property `queryId`
7726
7710
  # @return [String]
7727
7711
  attr_accessor :query_id
@@ -8208,7 +8192,8 @@ module Google
8208
8192
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
8209
8193
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
8210
8194
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
8211
- # DATE"` ` ` ] ` `
8195
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
8196
+ # typeKind": "DATE"` `
8212
8197
  # Corresponds to the JSON property `returnType`
8213
8198
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
8214
8199
  attr_accessor :return_type
@@ -9003,7 +8988,8 @@ module Google
9003
8988
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
9004
8989
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
9005
8990
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
9006
- # DATE"` ` ` ] ` `
8991
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
8992
+ # typeKind": "DATE"` `
9007
8993
  class StandardSqlDataType
9008
8994
  include Google::Apis::Core::Hashable
9009
8995
 
@@ -9012,7 +8998,8 @@ module Google
9012
8998
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
9013
8999
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
9014
9000
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
9015
- # DATE"` ` ` ] ` `
9001
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
9002
+ # typeKind": "DATE"` `
9016
9003
  # Corresponds to the JSON property `arrayElementType`
9017
9004
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
9018
9005
  attr_accessor :array_element_type
@@ -9022,7 +9009,8 @@ module Google
9022
9009
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
9023
9010
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
9024
9011
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
9025
- # DATE"` ` ` ] ` `
9012
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
9013
+ # typeKind": "DATE"` `
9026
9014
  # Corresponds to the JSON property `rangeElementType`
9027
9015
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
9028
9016
  attr_accessor :range_element_type
@@ -9065,7 +9053,8 @@ module Google
9065
9053
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
9066
9054
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
9067
9055
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
9068
- # DATE"` ` ` ] ` `
9056
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
9057
+ # typeKind": "DATE"` `
9069
9058
  # Corresponds to the JSON property `type`
9070
9059
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
9071
9060
  attr_accessor :type
@@ -9975,6 +9964,11 @@ module Google
9975
9964
  # @return [String]
9976
9965
  attr_accessor :collation
9977
9966
 
9967
+ # Optional. Data policy options, will replace the data_policies.
9968
+ # Corresponds to the JSON property `dataPolicies`
9969
+ # @return [Array<Google::Apis::BigqueryV2::DataPolicyOption>]
9970
+ attr_accessor :data_policies
9971
+
9978
9972
  # Optional. A SQL expression to specify the [default value] (https://cloud.
9979
9973
  # google.com/bigquery/docs/default-values) for this field.
9980
9974
  # Corresponds to the JSON property `defaultValueExpression`
@@ -9998,11 +9992,6 @@ module Google
9998
9992
  # @return [String]
9999
9993
  attr_accessor :foreign_type_definition
10000
9994
 
10001
- # Metadata for value generation for an identity column.
10002
- # Corresponds to the JSON property `identityColumnInfo`
10003
- # @return [Google::Apis::BigqueryV2::IdentityColumnInfo]
10004
- attr_accessor :identity_column_info
10005
-
10006
9995
  # Optional. Maximum length of values of this field for STRINGS or BYTES. If
10007
9996
  # max_length is not specified, no maximum length constraint is imposed on this
10008
9997
  # field. If type = "STRING", then max_length represents the maximum UTF-8 length
@@ -10071,8 +10060,8 @@ module Google
10071
10060
  # Required. The field data type. Possible values include: * STRING * BYTES *
10072
10061
  # INTEGER (or INT64) * FLOAT (or FLOAT64) * BOOLEAN (or BOOL) * TIMESTAMP * DATE
10073
10062
  # * TIME * DATETIME * GEOGRAPHY * NUMERIC * BIGNUMERIC * JSON * RECORD (or
10074
- # STRUCT) * RANGE ([Preview](/products/#product-launch-stages)) Use of RECORD/
10075
- # STRUCT indicates that the field contains a nested schema.
10063
+ # STRUCT) * RANGE Use of RECORD/STRUCT indicates that the field contains a
10064
+ # nested schema.
10076
10065
  # Corresponds to the JSON property `type`
10077
10066
  # @return [String]
10078
10067
  attr_accessor :type
@@ -10085,11 +10074,11 @@ module Google
10085
10074
  def update!(**args)
10086
10075
  @categories = args[:categories] if args.key?(:categories)
10087
10076
  @collation = args[:collation] if args.key?(:collation)
10077
+ @data_policies = args[:data_policies] if args.key?(:data_policies)
10088
10078
  @default_value_expression = args[:default_value_expression] if args.key?(:default_value_expression)
10089
10079
  @description = args[:description] if args.key?(:description)
10090
10080
  @fields = args[:fields] if args.key?(:fields)
10091
10081
  @foreign_type_definition = args[:foreign_type_definition] if args.key?(:foreign_type_definition)
10092
- @identity_column_info = args[:identity_column_info] if args.key?(:identity_column_info)
10093
10082
  @max_length = args[:max_length] if args.key?(:max_length)
10094
10083
  @mode = args[:mode] if args.key?(:mode)
10095
10084
  @name = args[:name] if args.key?(:name)
@@ -11297,7 +11286,8 @@ module Google
11297
11286
  # arrayElementType": `"typeKind": "STRING"` ` * STRUCT>: ` "typeKind": "STRUCT",
11298
11287
  # "structType": ` "fields": [ ` "name": "x", "type": `"typeKind": "STRING"` `, `
11299
11288
  # "name": "y", "type": ` "typeKind": "ARRAY", "arrayElementType": `"typeKind": "
11300
- # DATE"` ` ` ] ` `
11289
+ # DATE"` ` ` ] ` ` * RANGE: ` "typeKind": "RANGE", "rangeElementType": `"
11290
+ # typeKind": "DATE"` `
11301
11291
  # Corresponds to the JSON property `type`
11302
11292
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
11303
11293
  attr_accessor :type
@@ -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.75.0"
19
+ GEM_VERSION = "0.77.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240727"
25
+ REVISION = "20240815"
26
26
  end
27
27
  end
28
28
  end
@@ -250,6 +250,12 @@ module Google
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
+ class DataPolicyOption
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+
256
+ include Google::Apis::Core::JsonObjectSupport
257
+ end
258
+
253
259
  class DataSplitResult
254
260
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
261
 
@@ -502,12 +508,6 @@ module Google
502
508
  include Google::Apis::Core::JsonObjectSupport
503
509
  end
504
510
 
505
- class IdentityColumnInfo
506
- class Representation < Google::Apis::Core::JsonRepresentation; end
507
-
508
- include Google::Apis::Core::JsonObjectSupport
509
- end
510
-
511
511
  class IndexUnusedReason
512
512
  class Representation < Google::Apis::Core::JsonRepresentation; end
513
513
 
@@ -1734,6 +1734,13 @@ module Google
1734
1734
  end
1735
1735
  end
1736
1736
 
1737
+ class DataPolicyOption
1738
+ # @private
1739
+ class Representation < Google::Apis::Core::JsonRepresentation
1740
+ property :name, as: 'name'
1741
+ end
1742
+ end
1743
+
1737
1744
  class DataSplitResult
1738
1745
  # @private
1739
1746
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2290,15 +2297,6 @@ module Google
2290
2297
  end
2291
2298
  end
2292
2299
 
2293
- class IdentityColumnInfo
2294
- # @private
2295
- class Representation < Google::Apis::Core::JsonRepresentation
2296
- property :generated_mode, as: 'generatedMode'
2297
- property :increment, as: 'increment'
2298
- property :start, as: 'start'
2299
- end
2300
- end
2301
-
2302
2300
  class IndexUnusedReason
2303
2301
  # @private
2304
2302
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3790,13 +3788,13 @@ module Google
3790
3788
  property :categories, as: 'categories', class: Google::Apis::BigqueryV2::TableFieldSchema::Categories, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Categories::Representation
3791
3789
 
3792
3790
  property :collation, as: 'collation'
3791
+ collection :data_policies, as: 'dataPolicies', class: Google::Apis::BigqueryV2::DataPolicyOption, decorator: Google::Apis::BigqueryV2::DataPolicyOption::Representation
3792
+
3793
3793
  property :default_value_expression, as: 'defaultValueExpression'
3794
3794
  property :description, as: 'description'
3795
3795
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
3796
3796
 
3797
3797
  property :foreign_type_definition, as: 'foreignTypeDefinition'
3798
- property :identity_column_info, as: 'identityColumnInfo', class: Google::Apis::BigqueryV2::IdentityColumnInfo, decorator: Google::Apis::BigqueryV2::IdentityColumnInfo::Representation
3799
-
3800
3798
  property :max_length, :numeric_string => true, as: 'maxLength'
3801
3799
  property :mode, as: 'mode'
3802
3800
  property :name, as: 'name'
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.75.0
4
+ version: 0.77.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-08-11 00:00:00.000000000 Z
11
+ date: 2024-08-25 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.75.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.77.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: []