google-apis-bigquery_v2 0.58.0 → 0.60.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: a44c910c5081978430c675926c9268870fef6a7daf83837595af8ad936bdfe05
4
- data.tar.gz: 47bdf0a2cb09f3ce7ecfcbee024a30924704aad91eddca48099f0207e452e8cf
3
+ metadata.gz: 4b617a99890fcee57c60cc923e5bec380a6afdc7a223c319f231f66dcffd0acd
4
+ data.tar.gz: 7203c3a5e52f9879edb44c00d643bc6ddfdd917c6c01c503bbaf737ce6673205
5
5
  SHA512:
6
- metadata.gz: e2b1a0178390792340ce5a43fcd3873523480f64899ceadb795161ca54f9edcb789ea769bcc7c5c6b3619c0171bf73d03b18f878472e2e16537484d12f0d7551
7
- data.tar.gz: 8e423dae7e5798536f314c4b21fe376cc251248c2bf66d60212874ef4bb3f8bc4b78143081ca73cb049ed70e36023d8ab88c9e91b24d62b3a4101c51da855e2c
6
+ metadata.gz: a659c4f9e8c3132000e89bced5e9f4906db0c35210a5b2619b45abcf195318eb706b952cd9c4022a1b00ffbc49ca563ffee0f58efe80f4686efa1e193b28a50b
7
+ data.tar.gz: fd36ae672a4d010e400bdd1ad6eb819b2f3f68c30393890d5bfcec5a7f1e98582b5665c49f277cf5315476b3afaaa828f1703aa2a4edb537211d8b167ceeeb1b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.60.0 (2023-10-15)
4
+
5
+ * Regenerated from discovery document revision 20231008
6
+
7
+ ### v0.59.0 (2023-08-27)
8
+
9
+ * Regenerated from discovery document revision 20230812
10
+
3
11
  ### v0.58.0 (2023-08-13)
4
12
 
5
13
  * Regenerated from discovery document revision 20230805
@@ -88,6 +88,35 @@ module Google
88
88
  end
89
89
  end
90
90
 
91
+ # Represents privacy policy associated with "aggregation threshold" method.
92
+ class AggregationThresholdPolicy
93
+ include Google::Apis::Core::Hashable
94
+
95
+ # Optional. The privacy unit column(s) associated with this policy. For now,
96
+ # only one column per data source object (table, view) is allowed as a privacy
97
+ # unit column. Representing as a repeated field in metadata for extensibility to
98
+ # multiple columns in future. Duplicates and Repeated struct fields are not
99
+ # allowed. For nested fields, use dot notation ("outer.inner")
100
+ # Corresponds to the JSON property `privacyUnitColumns`
101
+ # @return [Array<String>]
102
+ attr_accessor :privacy_unit_columns
103
+
104
+ # Optional. The threshold for the "aggregation threshold" policy.
105
+ # Corresponds to the JSON property `threshold`
106
+ # @return [Fixnum]
107
+ attr_accessor :threshold
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @privacy_unit_columns = args[:privacy_unit_columns] if args.key?(:privacy_unit_columns)
116
+ @threshold = args[:threshold] if args.key?(:threshold)
117
+ end
118
+ end
119
+
91
120
  # Input/output argument of a function or a stored procedure.
92
121
  class Argument
93
122
  include Google::Apis::Core::Hashable
@@ -107,6 +136,15 @@ module Google
107
136
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
108
137
  attr_accessor :data_type
109
138
 
139
+ # Optional. Whether the argument is an aggregate function parameter. Must be
140
+ # Unset for routine types other than AGGREGATE_FUNCTION. For AGGREGATE_FUNCTION,
141
+ # if set to false, it is equivalent to adding "NOT AGGREGATE" clause in DDL;
142
+ # Otherwise, it is equivalent to omitting "NOT AGGREGATE" clause in DDL.
143
+ # Corresponds to the JSON property `isAggregate`
144
+ # @return [Boolean]
145
+ attr_accessor :is_aggregate
146
+ alias_method :is_aggregate?, :is_aggregate
147
+
110
148
  # Optional. Specifies whether the argument is input or output. Can be set for
111
149
  # procedures only.
112
150
  # Corresponds to the JSON property `mode`
@@ -127,6 +165,7 @@ module Google
127
165
  def update!(**args)
128
166
  @argument_kind = args[:argument_kind] if args.key?(:argument_kind)
129
167
  @data_type = args[:data_type] if args.key?(:data_type)
168
+ @is_aggregate = args[:is_aggregate] if args.key?(:is_aggregate)
130
169
  @mode = args[:mode] if args.key?(:mode)
131
170
  @name = args[:name] if args.key?(:name)
132
171
  end
@@ -1494,7 +1533,7 @@ module Google
1494
1533
 
1495
1534
  # [Optional] An custom string that will represent a NULL value in CSV import
1496
1535
  # data.
1497
- # Corresponds to the JSON property `null_marker`
1536
+ # Corresponds to the JSON property `nullMarker`
1498
1537
  # @return [String]
1499
1538
  attr_accessor :null_marker
1500
1539
 
@@ -1687,6 +1726,12 @@ module Google
1687
1726
  # @return [String]
1688
1727
  attr_accessor :etag
1689
1728
 
1729
+ # [Optional] Information about the external metadata storage where the dataset
1730
+ # is defined. Filled out when the dataset type is EXTERNAL.
1731
+ # Corresponds to the JSON property `externalDatasetReference`
1732
+ # @return [Google::Apis::BigqueryV2::ExternalDatasetReference]
1733
+ attr_accessor :external_dataset_reference
1734
+
1690
1735
  # [Optional] A descriptive name for the dataset.
1691
1736
  # Corresponds to the JSON property `friendlyName`
1692
1737
  # @return [String]
@@ -1775,6 +1820,7 @@ module Google
1775
1820
  @default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms)
1776
1821
  @description = args[:description] if args.key?(:description)
1777
1822
  @etag = args[:etag] if args.key?(:etag)
1823
+ @external_dataset_reference = args[:external_dataset_reference] if args.key?(:external_dataset_reference)
1778
1824
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
1779
1825
  @id = args[:id] if args.key?(:id)
1780
1826
  @is_case_insensitive = args[:is_case_insensitive] if args.key?(:is_case_insensitive)
@@ -2848,6 +2894,33 @@ module Google
2848
2894
  end
2849
2895
  end
2850
2896
 
2897
+ #
2898
+ class ExternalDatasetReference
2899
+ include Google::Apis::Core::Hashable
2900
+
2901
+ # [Required] The connection id that is used to access the external_source.
2902
+ # Format: projects/`project_id`/locations/`location_id`/connections/`
2903
+ # connection_id`
2904
+ # Corresponds to the JSON property `connection`
2905
+ # @return [String]
2906
+ attr_accessor :connection
2907
+
2908
+ # [Required] External source that backs this dataset.
2909
+ # Corresponds to the JSON property `externalSource`
2910
+ # @return [String]
2911
+ attr_accessor :external_source
2912
+
2913
+ def initialize(**args)
2914
+ update!(**args)
2915
+ end
2916
+
2917
+ # Update properties of this object
2918
+ def update!(**args)
2919
+ @connection = args[:connection] if args.key?(:connection)
2920
+ @external_source = args[:external_source] if args.key?(:external_source)
2921
+ end
2922
+ end
2923
+
2851
2924
  # Representative value of a single feature within the cluster.
2852
2925
  class FeatureValue
2853
2926
  include Google::Apis::Core::Hashable
@@ -3610,6 +3683,13 @@ module Google
3610
3683
  # @return [String]
3611
3684
  attr_accessor :id
3612
3685
 
3686
+ # [Output-only] If set, it provides the reason why a Job was created. If not set,
3687
+ # it should be treated as the default: REQUESTED. This feature is not yet
3688
+ # available. Jobs will always be created.
3689
+ # Corresponds to the JSON property `jobCreationReason`
3690
+ # @return [Object]
3691
+ attr_accessor :job_creation_reason
3692
+
3613
3693
  # [Optional] Reference describing the unique-per-user name of the job.
3614
3694
  # Corresponds to the JSON property `jobReference`
3615
3695
  # @return [Google::Apis::BigqueryV2::JobReference]
@@ -3651,6 +3731,7 @@ module Google
3651
3731
  @configuration = args[:configuration] if args.key?(:configuration)
3652
3732
  @etag = args[:etag] if args.key?(:etag)
3653
3733
  @id = args[:id] if args.key?(:id)
3734
+ @job_creation_reason = args[:job_creation_reason] if args.key?(:job_creation_reason)
3654
3735
  @job_reference = args[:job_reference] if args.key?(:job_reference)
3655
3736
  @kind = args[:kind] if args.key?(:kind)
3656
3737
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -4473,6 +4554,30 @@ module Google
4473
4554
  end
4474
4555
  end
4475
4556
 
4557
+ # Reason about why a Job was created from a [`jobs.query`](https://cloud.google.
4558
+ # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
4559
+ # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
4560
+ # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
4561
+ # always be `REQUESTED`. This feature is not yet available. Jobs will always be
4562
+ # created.
4563
+ class JobCreationReason
4564
+ include Google::Apis::Core::Hashable
4565
+
4566
+ # Output only. Specifies the high level reason why a Job was created.
4567
+ # Corresponds to the JSON property `code`
4568
+ # @return [String]
4569
+ attr_accessor :code
4570
+
4571
+ def initialize(**args)
4572
+ update!(**args)
4573
+ end
4574
+
4575
+ # Update properties of this object
4576
+ def update!(**args)
4577
+ @code = args[:code] if args.key?(:code)
4578
+ end
4579
+ end
4580
+
4476
4581
  #
4477
4582
  class JobList
4478
4583
  include Google::Apis::Core::Hashable
@@ -4825,8 +4930,8 @@ module Google
4825
4930
  # @return [String]
4826
4931
  attr_accessor :ddl_operation_performed
4827
4932
 
4828
- # [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP
4829
- # SCHEMA queries.
4933
+ # [Output only] The DDL target dataset. Present only for CREATE/ALTER/DROP/
4934
+ # UNDROP SCHEMA queries.
4830
4935
  # Corresponds to the JSON property `ddlTargetDataset`
4831
4936
  # @return [Google::Apis::BigqueryV2::DatasetReference]
4832
4937
  attr_accessor :ddl_target_dataset
@@ -5214,7 +5319,7 @@ module Google
5214
5319
  end
5215
5320
  end
5216
5321
 
5217
- #
5322
+ # Response format for a single page when listing BigQuery ML models.
5218
5323
  class ListModelsResponse
5219
5324
  include Google::Apis::Core::Hashable
5220
5325
 
@@ -5240,7 +5345,7 @@ module Google
5240
5345
  end
5241
5346
  end
5242
5347
 
5243
- #
5348
+ # Describes the format of a single result page when listing routines.
5244
5349
  class ListRoutinesResponse
5245
5350
  include Google::Apis::Core::Hashable
5246
5351
 
@@ -5852,6 +5957,26 @@ module Google
5852
5957
  end
5853
5958
  end
5854
5959
 
5960
+ # Represents privacy policy that contains the privacy requirements specified by
5961
+ # the data owner. Currently, this is only supported on views.
5962
+ class PrivacyPolicy
5963
+ include Google::Apis::Core::Hashable
5964
+
5965
+ # Represents privacy policy associated with "aggregation threshold" method.
5966
+ # Corresponds to the JSON property `aggregationThresholdPolicy`
5967
+ # @return [Google::Apis::BigqueryV2::AggregationThresholdPolicy]
5968
+ attr_accessor :aggregation_threshold_policy
5969
+
5970
+ def initialize(**args)
5971
+ update!(**args)
5972
+ end
5973
+
5974
+ # Update properties of this object
5975
+ def update!(**args)
5976
+ @aggregation_threshold_policy = args[:aggregation_threshold_policy] if args.key?(:aggregation_threshold_policy)
5977
+ end
5978
+ end
5979
+
5855
5980
  #
5856
5981
  class ProjectList
5857
5982
  include Google::Apis::Core::Hashable
@@ -6124,6 +6249,13 @@ module Google
6124
6249
  attr_accessor :dry_run
6125
6250
  alias_method :dry_run?, :dry_run
6126
6251
 
6252
+ # Optional. If not set, jobs are always required. If set, the query request will
6253
+ # follow the behavior described JobCreationMode. This feature is not yet
6254
+ # available. Jobs will always be created.
6255
+ # Corresponds to the JSON property `jobCreationMode`
6256
+ # @return [String]
6257
+ attr_accessor :job_creation_mode
6258
+
6127
6259
  # The resource type of the request.
6128
6260
  # Corresponds to the JSON property `kind`
6129
6261
  # @return [String]
@@ -6246,6 +6378,7 @@ module Google
6246
6378
  @create_session = args[:create_session] if args.key?(:create_session)
6247
6379
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
6248
6380
  @dry_run = args[:dry_run] if args.key?(:dry_run)
6381
+ @job_creation_mode = args[:job_creation_mode] if args.key?(:job_creation_mode)
6249
6382
  @kind = args[:kind] if args.key?(:kind)
6250
6383
  @labels = args[:labels] if args.key?(:labels)
6251
6384
  @location = args[:location] if args.key?(:location)
@@ -6293,6 +6426,16 @@ module Google
6293
6426
  attr_accessor :job_complete
6294
6427
  alias_method :job_complete?, :job_complete
6295
6428
 
6429
+ # Optional. Only relevant when a job_reference is present in the response. If
6430
+ # job_reference is not present it will always be unset. When job_reference is
6431
+ # present, this field should be interpreted as follows: If set, it will provide
6432
+ # the reason of why a Job was created. If not set, it should be treated as the
6433
+ # default: REQUESTED. This feature is not yet available. Jobs will always be
6434
+ # created.
6435
+ # Corresponds to the JSON property `jobCreationReason`
6436
+ # @return [Object]
6437
+ attr_accessor :job_creation_reason
6438
+
6296
6439
  # Reference to the Job that was created to run the query. This field will be
6297
6440
  # present even if the original request timed out, in which case GetQueryResults
6298
6441
  # can be used to read the results once the query has completed. Since this API
@@ -6318,6 +6461,12 @@ module Google
6318
6461
  # @return [String]
6319
6462
  attr_accessor :page_token
6320
6463
 
6464
+ # Query ID for the completed query. This ID will be auto-generated. This field
6465
+ # is not yet available and it is currently not guaranteed to be populated.
6466
+ # Corresponds to the JSON property `queryId`
6467
+ # @return [String]
6468
+ attr_accessor :query_id
6469
+
6321
6470
  # An object with as many results as can be contained within the maximum
6322
6471
  # permitted reply size. To get any additional rows, you can call GetQueryResults
6323
6472
  # and specify the jobReference returned above.
@@ -6357,10 +6506,12 @@ module Google
6357
6506
  @dml_stats = args[:dml_stats] if args.key?(:dml_stats)
6358
6507
  @errors = args[:errors] if args.key?(:errors)
6359
6508
  @job_complete = args[:job_complete] if args.key?(:job_complete)
6509
+ @job_creation_reason = args[:job_creation_reason] if args.key?(:job_creation_reason)
6360
6510
  @job_reference = args[:job_reference] if args.key?(:job_reference)
6361
6511
  @kind = args[:kind] if args.key?(:kind)
6362
6512
  @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
6363
6513
  @page_token = args[:page_token] if args.key?(:page_token)
6514
+ @query_id = args[:query_id] if args.key?(:query_id)
6364
6515
  @rows = args[:rows] if args.key?(:rows)
6365
6516
  @schema = args[:schema] if args.key?(:schema)
6366
6517
  @session_info = args[:session_info] if args.key?(:session_info)
@@ -6674,8 +6825,10 @@ module Google
6674
6825
  # @return [Fixnum]
6675
6826
  attr_accessor :creation_time
6676
6827
 
6677
- # Optional. Data governance specific option, if the value is DATA_MASKING, the
6678
- # function will be validated as masking functions.
6828
+ # Optional. If set to `DATA_MASKING`, the function is validated and made
6829
+ # available as a masking function. For more information, see [Create custom
6830
+ # masking routines](https://cloud.google.com/bigquery/docs/user-defined-
6831
+ # functions#custom-mask).
6679
6832
  # Corresponds to the JSON property `dataGovernanceType`
6680
6833
  # @return [String]
6681
6834
  attr_accessor :data_governance_type
@@ -6757,6 +6910,12 @@ module Google
6757
6910
  # @return [String]
6758
6911
  attr_accessor :routine_type
6759
6912
 
6913
+ # Optional. The security mode of the routine, if defined. If not defined, the
6914
+ # security mode is automatically determined from the routine's configuration.
6915
+ # Corresponds to the JSON property `securityMode`
6916
+ # @return [String]
6917
+ attr_accessor :security_mode
6918
+
6760
6919
  # Options for a user-defined Spark routine.
6761
6920
  # Corresponds to the JSON property `sparkOptions`
6762
6921
  # @return [Google::Apis::BigqueryV2::SparkOptions]
@@ -6793,6 +6952,7 @@ module Google
6793
6952
  @return_type = args[:return_type] if args.key?(:return_type)
6794
6953
  @routine_reference = args[:routine_reference] if args.key?(:routine_reference)
6795
6954
  @routine_type = args[:routine_type] if args.key?(:routine_type)
6955
+ @security_mode = args[:security_mode] if args.key?(:security_mode)
6796
6956
  @spark_options = args[:spark_options] if args.key?(:spark_options)
6797
6957
  @strict_mode = args[:strict_mode] if args.key?(:strict_mode)
6798
6958
  end
@@ -7171,12 +7331,12 @@ module Google
7171
7331
  include Google::Apis::Core::Hashable
7172
7332
 
7173
7333
  # [Output-only] Project ID used for logging
7174
- # Corresponds to the JSON property `project_id`
7334
+ # Corresponds to the JSON property `projectId`
7175
7335
  # @return [String]
7176
7336
  attr_accessor :project_id
7177
7337
 
7178
7338
  # [Output-only] Resource type used for logging
7179
- # Corresponds to the JSON property `resource_type`
7339
+ # Corresponds to the JSON property `resourceType`
7180
7340
  # @return [String]
7181
7341
  attr_accessor :resource_type
7182
7342
 
@@ -7348,7 +7508,7 @@ module Google
7348
7508
  # @return [Google::Apis::BigqueryV2::StandardSqlDataType]
7349
7509
  attr_accessor :range_element_type
7350
7510
 
7351
- # The fields of this struct, in order, if type_kind = "STRUCT".
7511
+ # The representation of a SQL STRUCT type.
7352
7512
  # Corresponds to the JSON property `structType`
7353
7513
  # @return [Google::Apis::BigqueryV2::StandardSqlStructType]
7354
7514
  attr_accessor :struct_type
@@ -7402,11 +7562,11 @@ module Google
7402
7562
  end
7403
7563
  end
7404
7564
 
7405
- #
7565
+ # The representation of a SQL STRUCT type.
7406
7566
  class StandardSqlStructType
7407
7567
  include Google::Apis::Core::Hashable
7408
7568
 
7409
- #
7569
+ # Fields within the struct.
7410
7570
  # Corresponds to the JSON property `fields`
7411
7571
  # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
7412
7572
  attr_accessor :fields
@@ -7705,6 +7865,16 @@ module Google
7705
7865
  attr_accessor :require_partition_filter
7706
7866
  alias_method :require_partition_filter?, :require_partition_filter
7707
7867
 
7868
+ # [Optional] The tags associated with this table. Tag keys are globally unique.
7869
+ # See additional information on [tags](https://cloud.google.com/iam/docs/tags-
7870
+ # access-control#definitions). An object containing a list of "key": value pairs.
7871
+ # The key is the namespaced friendly name of the tag key, e.g. "12345/
7872
+ # environment" where 12345 is parent id. The value is the friendly short name of
7873
+ # the tag value, e.g. "production".
7874
+ # Corresponds to the JSON property `resourceTags`
7875
+ # @return [Hash<String,String>]
7876
+ attr_accessor :resource_tags
7877
+
7708
7878
  # [Optional] Describes the schema of this table.
7709
7879
  # Corresponds to the JSON property `schema`
7710
7880
  # @return [Google::Apis::BigqueryV2::TableSchema]
@@ -7798,6 +7968,7 @@ module Google
7798
7968
  @num_total_physical_bytes = args[:num_total_physical_bytes] if args.key?(:num_total_physical_bytes)
7799
7969
  @range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
7800
7970
  @require_partition_filter = args[:require_partition_filter] if args.key?(:require_partition_filter)
7971
+ @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
7801
7972
  @schema = args[:schema] if args.key?(:schema)
7802
7973
  @self_link = args[:self_link] if args.key?(:self_link)
7803
7974
  @snapshot_definition = args[:snapshot_definition] if args.key?(:snapshot_definition)
@@ -8221,6 +8392,13 @@ module Google
8221
8392
  # @return [Fixnum]
8222
8393
  attr_accessor :precision
8223
8394
 
8395
+ # Optional. The subtype of the RANGE, if the type of this field is RANGE. If the
8396
+ # type is RANGE, this field is required. Possible values for the field element
8397
+ # type of a RANGE include: - DATE - DATETIME - TIMESTAMP
8398
+ # Corresponds to the JSON property `rangeElementType`
8399
+ # @return [Google::Apis::BigqueryV2::TableFieldSchema::RangeElementType]
8400
+ attr_accessor :range_element_type
8401
+
8224
8402
  # Optional. Rounding Mode specification of the field. It only can be set on
8225
8403
  # NUMERIC or BIGNUMERIC type fields.
8226
8404
  # Corresponds to the JSON property `roundingMode`
@@ -8257,6 +8435,7 @@ module Google
8257
8435
  @name = args[:name] if args.key?(:name)
8258
8436
  @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
8259
8437
  @precision = args[:precision] if args.key?(:precision)
8438
+ @range_element_type = args[:range_element_type] if args.key?(:range_element_type)
8260
8439
  @rounding_mode = args[:rounding_mode] if args.key?(:rounding_mode)
8261
8440
  @scale = args[:scale] if args.key?(:scale)
8262
8441
  @type = args[:type] if args.key?(:type)
@@ -8302,6 +8481,27 @@ module Google
8302
8481
  @names = args[:names] if args.key?(:names)
8303
8482
  end
8304
8483
  end
8484
+
8485
+ # Optional. The subtype of the RANGE, if the type of this field is RANGE. If the
8486
+ # type is RANGE, this field is required. Possible values for the field element
8487
+ # type of a RANGE include: - DATE - DATETIME - TIMESTAMP
8488
+ class RangeElementType
8489
+ include Google::Apis::Core::Hashable
8490
+
8491
+ # The field element type of a RANGE
8492
+ # Corresponds to the JSON property `type`
8493
+ # @return [String]
8494
+ attr_accessor :type
8495
+
8496
+ def initialize(**args)
8497
+ update!(**args)
8498
+ end
8499
+
8500
+ # Update properties of this object
8501
+ def update!(**args)
8502
+ @type = args[:type] if args.key?(:type)
8503
+ end
8504
+ end
8305
8505
  end
8306
8506
 
8307
8507
  #
@@ -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.58.0"
19
+ GEM_VERSION = "0.60.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230805"
25
+ REVISION = "20231008"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AggregationThresholdPolicy
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Argument
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -376,6 +382,12 @@ module Google
376
382
  include Google::Apis::Core::JsonObjectSupport
377
383
  end
378
384
 
385
+ class ExternalDatasetReference
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
379
391
  class FeatureValue
380
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
393
 
@@ -520,6 +532,12 @@ module Google
520
532
  include Google::Apis::Core::JsonObjectSupport
521
533
  end
522
534
 
535
+ class JobCreationReason
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
523
541
  class JobList
524
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
543
 
@@ -676,6 +694,12 @@ module Google
676
694
  include Google::Apis::Core::JsonObjectSupport
677
695
  end
678
696
 
697
+ class PrivacyPolicy
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
679
703
  class ProjectList
680
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
705
 
@@ -984,6 +1008,12 @@ module Google
984
1008
 
985
1009
  include Google::Apis::Core::JsonObjectSupport
986
1010
  end
1011
+
1012
+ class RangeElementType
1013
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1014
+
1015
+ include Google::Apis::Core::JsonObjectSupport
1016
+ end
987
1017
 
988
1018
  include Google::Apis::Core::JsonObjectSupport
989
1019
  end
@@ -1091,12 +1121,21 @@ module Google
1091
1121
  end
1092
1122
  end
1093
1123
 
1124
+ class AggregationThresholdPolicy
1125
+ # @private
1126
+ class Representation < Google::Apis::Core::JsonRepresentation
1127
+ collection :privacy_unit_columns, as: 'privacyUnitColumns'
1128
+ property :threshold, :numeric_string => true, as: 'threshold'
1129
+ end
1130
+ end
1131
+
1094
1132
  class Argument
1095
1133
  # @private
1096
1134
  class Representation < Google::Apis::Core::JsonRepresentation
1097
1135
  property :argument_kind, as: 'argumentKind'
1098
1136
  property :data_type, as: 'dataType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
1099
1137
 
1138
+ property :is_aggregate, as: 'isAggregate'
1100
1139
  property :mode, as: 'mode'
1101
1140
  property :name, as: 'name'
1102
1141
  end
@@ -1445,7 +1484,7 @@ module Google
1445
1484
  property :allow_quoted_newlines, as: 'allowQuotedNewlines'
1446
1485
  property :encoding, as: 'encoding'
1447
1486
  property :field_delimiter, as: 'fieldDelimiter'
1448
- property :null_marker, as: 'null_marker'
1487
+ property :null_marker, as: 'nullMarker'
1449
1488
  property :preserve_ascii_control_characters, as: 'preserveAsciiControlCharacters'
1450
1489
  property :quote, as: 'quote'
1451
1490
  property :skip_leading_rows, :numeric_string => true, as: 'skipLeadingRows'
@@ -1487,6 +1526,8 @@ module Google
1487
1526
  property :default_table_expiration_ms, :numeric_string => true, as: 'defaultTableExpirationMs'
1488
1527
  property :description, as: 'description'
1489
1528
  property :etag, as: 'etag'
1529
+ property :external_dataset_reference, as: 'externalDatasetReference', class: Google::Apis::BigqueryV2::ExternalDatasetReference, decorator: Google::Apis::BigqueryV2::ExternalDatasetReference::Representation
1530
+
1490
1531
  property :friendly_name, as: 'friendlyName'
1491
1532
  property :id, as: 'id'
1492
1533
  property :is_case_insensitive, as: 'isCaseInsensitive'
@@ -1764,6 +1805,14 @@ module Google
1764
1805
  end
1765
1806
  end
1766
1807
 
1808
+ class ExternalDatasetReference
1809
+ # @private
1810
+ class Representation < Google::Apis::Core::JsonRepresentation
1811
+ property :connection, as: 'connection'
1812
+ property :external_source, as: 'externalSource'
1813
+ end
1814
+ end
1815
+
1767
1816
  class FeatureValue
1768
1817
  # @private
1769
1818
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1984,6 +2033,7 @@ module Google
1984
2033
 
1985
2034
  property :etag, as: 'etag'
1986
2035
  property :id, as: 'id'
2036
+ property :job_creation_reason, as: 'jobCreationReason'
1987
2037
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
1988
2038
 
1989
2039
  property :kind, as: 'kind'
@@ -2150,6 +2200,13 @@ module Google
2150
2200
  end
2151
2201
  end
2152
2202
 
2203
+ class JobCreationReason
2204
+ # @private
2205
+ class Representation < Google::Apis::Core::JsonRepresentation
2206
+ property :code, as: 'code'
2207
+ end
2208
+ end
2209
+
2153
2210
  class JobList
2154
2211
  # @private
2155
2212
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2503,6 +2560,14 @@ module Google
2503
2560
  end
2504
2561
  end
2505
2562
 
2563
+ class PrivacyPolicy
2564
+ # @private
2565
+ class Representation < Google::Apis::Core::JsonRepresentation
2566
+ property :aggregation_threshold_policy, as: 'aggregationThresholdPolicy', class: Google::Apis::BigqueryV2::AggregationThresholdPolicy, decorator: Google::Apis::BigqueryV2::AggregationThresholdPolicy::Representation
2567
+
2568
+ end
2569
+ end
2570
+
2506
2571
  class ProjectList
2507
2572
  # @private
2508
2573
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2587,6 +2652,7 @@ module Google
2587
2652
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
2588
2653
 
2589
2654
  property :dry_run, as: 'dryRun'
2655
+ property :job_creation_mode, as: 'jobCreationMode'
2590
2656
  property :kind, as: 'kind'
2591
2657
  hash :labels, as: 'labels'
2592
2658
  property :location, as: 'location'
@@ -2613,11 +2679,13 @@ module Google
2613
2679
  collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
2614
2680
 
2615
2681
  property :job_complete, as: 'jobComplete'
2682
+ property :job_creation_reason, as: 'jobCreationReason'
2616
2683
  property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
2617
2684
 
2618
2685
  property :kind, as: 'kind'
2619
2686
  property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
2620
2687
  property :page_token, as: 'pageToken'
2688
+ property :query_id, as: 'queryId'
2621
2689
  collection :rows, as: 'rows', class: Google::Apis::BigqueryV2::TableRow, decorator: Google::Apis::BigqueryV2::TableRow::Representation
2622
2690
 
2623
2691
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
@@ -2724,6 +2792,7 @@ module Google
2724
2792
  property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
2725
2793
 
2726
2794
  property :routine_type, as: 'routineType'
2795
+ property :security_mode, as: 'securityMode'
2727
2796
  property :spark_options, as: 'sparkOptions', class: Google::Apis::BigqueryV2::SparkOptions, decorator: Google::Apis::BigqueryV2::SparkOptions::Representation
2728
2797
 
2729
2798
  property :strict_mode, as: 'strictMode'
@@ -2836,8 +2905,8 @@ module Google
2836
2905
  class SparkLoggingInfo
2837
2906
  # @private
2838
2907
  class Representation < Google::Apis::Core::JsonRepresentation
2839
- property :project_id, as: 'project_id'
2840
- property :resource_type, as: 'resource_type'
2908
+ property :project_id, as: 'projectId'
2909
+ property :resource_type, as: 'resourceType'
2841
2910
  end
2842
2911
  end
2843
2912
 
@@ -2967,6 +3036,7 @@ module Google
2967
3036
  property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
2968
3037
 
2969
3038
  property :require_partition_filter, as: 'requirePartitionFilter'
3039
+ hash :resource_tags, as: 'resourceTags'
2970
3040
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
2971
3041
 
2972
3042
  property :self_link, as: 'selfLink'
@@ -3104,6 +3174,8 @@ module Google
3104
3174
  property :policy_tags, as: 'policyTags', class: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags, decorator: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags::Representation
3105
3175
 
3106
3176
  property :precision, :numeric_string => true, as: 'precision'
3177
+ property :range_element_type, as: 'rangeElementType', class: Google::Apis::BigqueryV2::TableFieldSchema::RangeElementType, decorator: Google::Apis::BigqueryV2::TableFieldSchema::RangeElementType::Representation
3178
+
3107
3179
  property :rounding_mode, as: 'roundingMode'
3108
3180
  property :scale, :numeric_string => true, as: 'scale'
3109
3181
  property :type, as: 'type'
@@ -3122,6 +3194,13 @@ module Google
3122
3194
  collection :names, as: 'names'
3123
3195
  end
3124
3196
  end
3197
+
3198
+ class RangeElementType
3199
+ # @private
3200
+ class Representation < Google::Apis::Core::JsonRepresentation
3201
+ property :type, as: 'type'
3202
+ end
3203
+ end
3125
3204
  end
3126
3205
 
3127
3206
  class TableList
@@ -99,6 +99,10 @@ module Google
99
99
  # Project ID of the requested dataset
100
100
  # @param [String] dataset_id
101
101
  # Dataset ID of the requested dataset
102
+ # @param [String] dataset_view
103
+ # Specifies the view that determines which dataset information is returned. By
104
+ # default, metadata and ACL information are returned. Allowed values: METADATA,
105
+ # ACL, FULL.
102
106
  # @param [String] fields
103
107
  # Selector specifying which fields to include in a partial response.
104
108
  # @param [String] quota_user
@@ -118,12 +122,13 @@ module Google
118
122
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
123
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
124
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
- def get_dataset(project_id, dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
125
+ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
126
  command = make_simple_command(:get, 'projects/{projectId}/datasets/{datasetId}', options)
123
127
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
124
128
  command.response_class = Google::Apis::BigqueryV2::Dataset
125
129
  command.params['projectId'] = project_id unless project_id.nil?
126
130
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
131
+ command.query['datasetView'] = dataset_view unless dataset_view.nil?
127
132
  command.query['fields'] = fields unless fields.nil?
128
133
  command.query['quotaUser'] = quota_user unless quota_user.nil?
129
134
  command.query['userIp'] = user_ip unless user_ip.nil?
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.58.0
4
+ version: 0.60.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: 2023-08-13 00:00:00.000000000 Z
11
+ date: 2023-10-15 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.58.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.60.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery API V2