google-apis-bigquery_v2 0.4.0 → 0.9.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: aa120096a87f62bf1694ae8745374624ef9bb88383098c0780f8f0ecd75970cb
4
- data.tar.gz: 87402c6776dc7cb373fb89ab69e99283c643081ee2615001c2f856d2e1d51e6a
3
+ metadata.gz: b70f30627fcc54e305122d5442de5e82bac938d607850bee31bba0382b2b6d55
4
+ data.tar.gz: 5e02bf116b0debbb6806105a48d70f149c6794abe1c25496648a296678aa882f
5
5
  SHA512:
6
- metadata.gz: 89daa782d234aa7360670a6600211c9798a88ccdd1a167dc8edb626ce204df5cb7e5a93d165a06f15d50356c484669a9125fd59ac1e65d3c235bc22d90454487
7
- data.tar.gz: 02a1a4102edeb29af105954b968481d3a2c826b68fa93189335a04cecfdfb0a72c7414098c094e38cb46d26181ef51a6104c83dec75f22a85909c6d8f1c33b9a
6
+ metadata.gz: 1813455a88fd9af79994b9f3ab42ef1f2c39b58370e6fdd7fd033a6d2943e9abb360ea270b02afa7ab17c9d0a00b46f3f00acce86439773d714c5efa983507ec
7
+ data.tar.gz: bec0fc87928500af6243a25a0feeb6346ad55321d44f3d96b6477e59fc6aa736a9d3578c2267751ed5e793aa31221308799474419f54696b23138f947c1a2ccb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.9.0 (2021-04-02)
4
+
5
+ * Regenerated from discovery document revision 20210327
6
+
7
+ ### v0.8.0 (2021-03-18)
8
+
9
+ * Regenerated from discovery document revision 20210313
10
+
11
+ ### v0.7.0 (2021-03-10)
12
+
13
+ * Regenerated from discovery document revision 20210303
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.6.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.5.0 (2021-02-26)
21
+
22
+ * Regenerated from discovery document revision 20210219
23
+
3
24
  ### v0.4.0 (2021-02-20)
4
25
 
5
26
  * Regenerated from discovery document revision 20210215
@@ -38,7 +38,7 @@ module Google
38
38
  # View your data in Google BigQuery
39
39
  AUTH_BIGQUERY_READONLY = 'https://www.googleapis.com/auth/bigquery.readonly'
40
40
 
41
- # View and manage your data across Google Cloud Platform services
41
+ # See, edit, configure, and delete your Google Cloud Platform data
42
42
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
43
43
 
44
44
  # View your data across Google Cloud Platform services
@@ -276,7 +276,9 @@ module Google
276
276
  # @return [Array<String>]
277
277
  attr_accessor :seasonal_periods
278
278
 
279
- # The id to indicate different time series.
279
+ # The time_series_id value for this time series. It will be one of the unique
280
+ # values from the time_series_id_column specified during ARIMA model training.
281
+ # Only present when time_series_id_column training option was used.
280
282
  # Corresponds to the JSON property `timeSeriesId`
281
283
  # @return [String]
282
284
  attr_accessor :time_series_id
@@ -381,7 +383,9 @@ module Google
381
383
  # @return [Array<String>]
382
384
  attr_accessor :seasonal_periods
383
385
 
384
- # The id to indicate different time series.
386
+ # The time_series_id value for this time series. It will be one of the unique
387
+ # values from the time_series_id_column specified during ARIMA model training.
388
+ # Only present when time_series_id_column training option was used.
385
389
  # Corresponds to the JSON property `timeSeriesId`
386
390
  # @return [String]
387
391
  attr_accessor :time_series_id
@@ -2306,6 +2310,11 @@ module Google
2306
2310
  # @return [Fixnum]
2307
2311
  attr_accessor :max_bad_records
2308
2312
 
2313
+ # Additional properties to set if sourceFormat is set to Parquet.
2314
+ # Corresponds to the JSON property `parquetOptions`
2315
+ # @return [Google::Apis::BigqueryV2::ParquetOptions]
2316
+ attr_accessor :parquet_options
2317
+
2309
2318
  # [Optional] The schema for the data. Schema is required for CSV and JSON
2310
2319
  # formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore
2311
2320
  # backups, and Avro formats.
@@ -2348,6 +2357,7 @@ module Google
2348
2357
  @hive_partitioning_options = args[:hive_partitioning_options] if args.key?(:hive_partitioning_options)
2349
2358
  @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values)
2350
2359
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
2360
+ @parquet_options = args[:parquet_options] if args.key?(:parquet_options)
2351
2361
  @schema = args[:schema] if args.key?(:schema)
2352
2362
  @source_format = args[:source_format] if args.key?(:source_format)
2353
2363
  @source_uris = args[:source_uris] if args.key?(:source_uris)
@@ -3124,6 +3134,11 @@ module Google
3124
3134
  # @return [String]
3125
3135
  attr_accessor :null_marker
3126
3136
 
3137
+ # [Optional] Options to configure parquet support.
3138
+ # Corresponds to the JSON property `parquetOptions`
3139
+ # @return [Google::Apis::BigqueryV2::ParquetOptions]
3140
+ attr_accessor :parquet_options
3141
+
3127
3142
  # If sourceFormat is set to "DATASTORE_BACKUP", indicates which entity
3128
3143
  # properties to load into BigQuery from a Cloud Datastore backup. Property names
3129
3144
  # are case sensitive and must be top-level properties. If no properties are
@@ -3255,6 +3270,7 @@ module Google
3255
3270
  @json_extension = args[:json_extension] if args.key?(:json_extension)
3256
3271
  @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records)
3257
3272
  @null_marker = args[:null_marker] if args.key?(:null_marker)
3273
+ @parquet_options = args[:parquet_options] if args.key?(:parquet_options)
3258
3274
  @projection_fields = args[:projection_fields] if args.key?(:projection_fields)
3259
3275
  @quote = args[:quote] if args.key?(:quote)
3260
3276
  @range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
@@ -3307,6 +3323,14 @@ module Google
3307
3323
  # @return [String]
3308
3324
  attr_accessor :create_disposition
3309
3325
 
3326
+ # If true, creates a new session, where session id will be a server generated
3327
+ # random id. If false, runs query with an existing session_id passed in
3328
+ # ConnectionProperty, otherwise runs query in non-session mode.
3329
+ # Corresponds to the JSON property `createSession`
3330
+ # @return [Boolean]
3331
+ attr_accessor :create_session
3332
+ alias_method :create_session?, :create_session
3333
+
3310
3334
  # [Optional] Specifies the default dataset to use for unqualified table names in
3311
3335
  # the query. Note that this does not alter behavior of unqualified dataset names.
3312
3336
  # Corresponds to the JSON property `defaultDataset`
@@ -3456,6 +3480,7 @@ module Google
3456
3480
  @clustering = args[:clustering] if args.key?(:clustering)
3457
3481
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
3458
3482
  @create_disposition = args[:create_disposition] if args.key?(:create_disposition)
3483
+ @create_session = args[:create_session] if args.key?(:create_session)
3459
3484
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
3460
3485
  @destination_encryption_configuration = args[:destination_encryption_configuration] if args.key?(:destination_encryption_configuration)
3461
3486
  @destination_table = args[:destination_table] if args.key?(:destination_table)
@@ -3767,6 +3792,11 @@ module Google
3767
3792
  # @return [Google::Apis::BigqueryV2::ScriptStatistics]
3768
3793
  attr_accessor :script_statistics
3769
3794
 
3795
+ # [Output-only] [Preview] Information of the session if this job is part of one.
3796
+ # Corresponds to the JSON property `sessionInfoTemplate`
3797
+ # @return [Google::Apis::BigqueryV2::SessionInfo]
3798
+ attr_accessor :session_info_template
3799
+
3770
3800
  # [Output-only] Start time of this job, in milliseconds since the epoch. This
3771
3801
  # field will be present when the job transitions from the PENDING state to
3772
3802
  # either RUNNING or DONE.
@@ -3810,6 +3840,7 @@ module Google
3810
3840
  @reservation_id = args[:reservation_id] if args.key?(:reservation_id)
3811
3841
  @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
3812
3842
  @script_statistics = args[:script_statistics] if args.key?(:script_statistics)
3843
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
3813
3844
  @start_time = args[:start_time] if args.key?(:start_time)
3814
3845
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
3815
3846
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
@@ -4328,6 +4359,11 @@ module Google
4328
4359
  class Model
4329
4360
  include Google::Apis::Core::Hashable
4330
4361
 
4362
+ # The best trial_id across all training runs.
4363
+ # Corresponds to the JSON property `bestTrialId`
4364
+ # @return [Fixnum]
4365
+ attr_accessor :best_trial_id
4366
+
4331
4367
  # Output only. The time when this model was created, in millisecs since the
4332
4368
  # epoch.
4333
4369
  # Corresponds to the JSON property `creationTime`
@@ -4420,6 +4456,7 @@ module Google
4420
4456
 
4421
4457
  # Update properties of this object
4422
4458
  def update!(**args)
4459
+ @best_trial_id = args[:best_trial_id] if args.key?(:best_trial_id)
4423
4460
  @creation_time = args[:creation_time] if args.key?(:creation_time)
4424
4461
  @description = args[:description] if args.key?(:description)
4425
4462
  @encryption_configuration = args[:encryption_configuration] if args.key?(:encryption_configuration)
@@ -4561,6 +4598,35 @@ module Google
4561
4598
  end
4562
4599
  end
4563
4600
 
4601
+ #
4602
+ class ParquetOptions
4603
+ include Google::Apis::Core::Hashable
4604
+
4605
+ # [Optional] Indicates whether to use schema inference specifically for Parquet
4606
+ # LIST logical type.
4607
+ # Corresponds to the JSON property `enableListInference`
4608
+ # @return [Boolean]
4609
+ attr_accessor :enable_list_inference
4610
+ alias_method :enable_list_inference?, :enable_list_inference
4611
+
4612
+ # [Optional] Indicates whether to infer Parquet ENUM logical type as STRING
4613
+ # instead of BYTES by default.
4614
+ # Corresponds to the JSON property `enumAsString`
4615
+ # @return [Boolean]
4616
+ attr_accessor :enum_as_string
4617
+ alias_method :enum_as_string?, :enum_as_string
4618
+
4619
+ def initialize(**args)
4620
+ update!(**args)
4621
+ end
4622
+
4623
+ # Update properties of this object
4624
+ def update!(**args)
4625
+ @enable_list_inference = args[:enable_list_inference] if args.key?(:enable_list_inference)
4626
+ @enum_as_string = args[:enum_as_string] if args.key?(:enum_as_string)
4627
+ end
4628
+ end
4629
+
4564
4630
  # An Identity and Access Management (IAM) policy, which specifies access
4565
4631
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
4566
4632
  # A `binding` binds one or more `members` to a single `role`. Members can be
@@ -4931,6 +4997,14 @@ module Google
4931
4997
  # @return [Array<Google::Apis::BigqueryV2::ConnectionProperty>]
4932
4998
  attr_accessor :connection_properties
4933
4999
 
5000
+ # If true, creates a new session, where session id will be a server generated
5001
+ # random id. If false, runs query with an existing session_id passed in
5002
+ # ConnectionProperty, otherwise runs query in non-session mode.
5003
+ # Corresponds to the JSON property `createSession`
5004
+ # @return [Boolean]
5005
+ attr_accessor :create_session
5006
+ alias_method :create_session?, :create_session
5007
+
4934
5008
  # [Optional] Specifies the default datasetId and projectId to assume for any
4935
5009
  # unqualified table names in the query. If not set, all table names in the query
4936
5010
  # string must be qualified in the format 'datasetId.tableId'.
@@ -5065,6 +5139,7 @@ module Google
5065
5139
  # Update properties of this object
5066
5140
  def update!(**args)
5067
5141
  @connection_properties = args[:connection_properties] if args.key?(:connection_properties)
5142
+ @create_session = args[:create_session] if args.key?(:create_session)
5068
5143
  @default_dataset = args[:default_dataset] if args.key?(:default_dataset)
5069
5144
  @dry_run = args[:dry_run] if args.key?(:dry_run)
5070
5145
  @kind = args[:kind] if args.key?(:kind)
@@ -5145,6 +5220,11 @@ module Google
5145
5220
  # @return [Google::Apis::BigqueryV2::TableSchema]
5146
5221
  attr_accessor :schema
5147
5222
 
5223
+ # [Output-only] [Preview] Information of the session if this job is part of one.
5224
+ # Corresponds to the JSON property `sessionInfoTemplate`
5225
+ # @return [Google::Apis::BigqueryV2::SessionInfo]
5226
+ attr_accessor :session_info_template
5227
+
5148
5228
  # The total number of bytes processed for this query. If this query was a dry
5149
5229
  # run, this is the number of bytes that would be processed if the query were run.
5150
5230
  # Corresponds to the JSON property `totalBytesProcessed`
@@ -5172,6 +5252,7 @@ module Google
5172
5252
  @page_token = args[:page_token] if args.key?(:page_token)
5173
5253
  @rows = args[:rows] if args.key?(:rows)
5174
5254
  @schema = args[:schema] if args.key?(:schema)
5255
+ @session_info_template = args[:session_info_template] if args.key?(:session_info_template)
5175
5256
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
5176
5257
  @total_rows = args[:total_rows] if args.key?(:total_rows)
5177
5258
  end
@@ -5430,6 +5511,11 @@ module Google
5430
5511
  # @return [Fixnum]
5431
5512
  attr_accessor :last_modified_time
5432
5513
 
5514
+ # A table type
5515
+ # Corresponds to the JSON property `returnTableType`
5516
+ # @return [Google::Apis::BigqueryV2::StandardSqlTableType]
5517
+ attr_accessor :return_table_type
5518
+
5433
5519
  # The type of a variable, e.g., a function argument. Examples: INT64: `type_kind=
5434
5520
  # "INT64"` ARRAY: `type_kind="ARRAY", array_element_type="STRING"` STRUCT>: `
5435
5521
  # type_kind="STRUCT", struct_type=`fields=[ `name="x", type=`type_kind="STRING"``
@@ -5463,6 +5549,7 @@ module Google
5463
5549
  @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
5464
5550
  @language = args[:language] if args.key?(:language)
5465
5551
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
5552
+ @return_table_type = args[:return_table_type] if args.key?(:return_table_type)
5466
5553
  @return_type = args[:return_type] if args.key?(:return_type)
5467
5554
  @routine_reference = args[:routine_reference] if args.key?(:routine_reference)
5468
5555
  @routine_type = args[:routine_type] if args.key?(:routine_type)
@@ -5712,6 +5799,25 @@ module Google
5712
5799
  end
5713
5800
  end
5714
5801
 
5802
+ #
5803
+ class SessionInfo
5804
+ include Google::Apis::Core::Hashable
5805
+
5806
+ # [Output-only] // [Preview] Id of the session.
5807
+ # Corresponds to the JSON property `sessionId`
5808
+ # @return [String]
5809
+ attr_accessor :session_id
5810
+
5811
+ def initialize(**args)
5812
+ update!(**args)
5813
+ end
5814
+
5815
+ # Update properties of this object
5816
+ def update!(**args)
5817
+ @session_id = args[:session_id] if args.key?(:session_id)
5818
+ end
5819
+ end
5820
+
5715
5821
  # Request message for `SetIamPolicy` method.
5716
5822
  class SetIamPolicyRequest
5717
5823
  include Google::Apis::Core::Hashable
@@ -5875,6 +5981,25 @@ module Google
5875
5981
  end
5876
5982
  end
5877
5983
 
5984
+ # A table type
5985
+ class StandardSqlTableType
5986
+ include Google::Apis::Core::Hashable
5987
+
5988
+ # The columns in this table type
5989
+ # Corresponds to the JSON property `columns`
5990
+ # @return [Array<Google::Apis::BigqueryV2::StandardSqlField>]
5991
+ attr_accessor :columns
5992
+
5993
+ def initialize(**args)
5994
+ update!(**args)
5995
+ end
5996
+
5997
+ # Update properties of this object
5998
+ def update!(**args)
5999
+ @columns = args[:columns] if args.key?(:columns)
6000
+ end
6001
+ end
6002
+
5878
6003
  #
5879
6004
  class Streamingbuffer
5880
6005
  include Google::Apis::Core::Hashable
@@ -6346,6 +6471,16 @@ module Google
6346
6471
  # @return [Array<Google::Apis::BigqueryV2::TableFieldSchema>]
6347
6472
  attr_accessor :fields
6348
6473
 
6474
+ # [Optional] Maximum length of values of this field for STRINGS or BYTES. If
6475
+ # max_length is not specified, no maximum length constraint is imposed on this
6476
+ # field. If type = "STRING", then max_length represents the maximum UTF-8 length
6477
+ # of strings in this field. If type = "BYTES", then max_length represents the
6478
+ # maximum number of bytes in this field. It is invalid to set this field if type
6479
+ # ≠ "STRING" and ≠ "BYTES".
6480
+ # Corresponds to the JSON property `maxLength`
6481
+ # @return [Fixnum]
6482
+ attr_accessor :max_length
6483
+
6349
6484
  # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and
6350
6485
  # REPEATED. The default value is NULLABLE.
6351
6486
  # Corresponds to the JSON property `mode`
@@ -6364,11 +6499,36 @@ module Google
6364
6499
  # @return [Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags]
6365
6500
  attr_accessor :policy_tags
6366
6501
 
6502
+ # [Optional] Precision (maximum number of total digits in base 10) and scale (
6503
+ # maximum number of digits in the fractional part in base 10) constraints for
6504
+ # values of this field for NUMERIC or BIGNUMERIC. It is invalid to set precision
6505
+ # or scale if type ≠ "NUMERIC" and ≠ "BIGNUMERIC". If precision and scale are
6506
+ # not specified, no value range constraint is imposed on this field insofar as
6507
+ # values are permitted by the type. Values of this NUMERIC or BIGNUMERIC field
6508
+ # must be in this range when: - Precision (P) and scale (S) are specified: [-10P-
6509
+ # S + 10-S, 10P-S - 10-S] - Precision (P) is specified but not scale (and thus
6510
+ # scale is interpreted to be equal to zero): [-10P + 1, 10P - 1]. Acceptable
6511
+ # values for precision and scale if both are specified: - If type = "NUMERIC": 1
6512
+ # ≤ precision - scale ≤ 29 and 0 ≤ scale ≤ 9. - If type = "BIGNUMERIC": 1 ≤
6513
+ # precision - scale ≤ 38 and 0 ≤ scale ≤ 38. Acceptable values for precision if
6514
+ # only precision is specified but not scale (and thus scale is interpreted to be
6515
+ # equal to zero): - If type = "NUMERIC": 1 ≤ precision ≤ 29. - If type = "
6516
+ # BIGNUMERIC": 1 ≤ precision ≤ 38. If scale is specified but not precision, then
6517
+ # it is invalid.
6518
+ # Corresponds to the JSON property `precision`
6519
+ # @return [Fixnum]
6520
+ attr_accessor :precision
6521
+
6522
+ # [Optional] See documentation for precision.
6523
+ # Corresponds to the JSON property `scale`
6524
+ # @return [Fixnum]
6525
+ attr_accessor :scale
6526
+
6367
6527
  # [Required] The field data type. Possible values include STRING, BYTES, INTEGER,
6368
6528
  # INT64 (same as INTEGER), FLOAT, FLOAT64 (same as FLOAT), NUMERIC, BIGNUMERIC,
6369
- # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, RECORD (
6370
- # where RECORD indicates that the field contains a nested schema) or STRUCT (
6371
- # same as RECORD).
6529
+ # BOOLEAN, BOOL (same as BOOLEAN), TIMESTAMP, DATE, TIME, DATETIME, INTERVAL,
6530
+ # RECORD (where RECORD indicates that the field contains a nested schema) or
6531
+ # STRUCT (same as RECORD).
6372
6532
  # Corresponds to the JSON property `type`
6373
6533
  # @return [String]
6374
6534
  attr_accessor :type
@@ -6382,9 +6542,12 @@ module Google
6382
6542
  @categories = args[:categories] if args.key?(:categories)
6383
6543
  @description = args[:description] if args.key?(:description)
6384
6544
  @fields = args[:fields] if args.key?(:fields)
6545
+ @max_length = args[:max_length] if args.key?(:max_length)
6385
6546
  @mode = args[:mode] if args.key?(:mode)
6386
6547
  @name = args[:name] if args.key?(:name)
6387
6548
  @policy_tags = args[:policy_tags] if args.key?(:policy_tags)
6549
+ @precision = args[:precision] if args.key?(:precision)
6550
+ @scale = args[:scale] if args.key?(:scale)
6388
6551
  @type = args[:type] if args.key?(:type)
6389
6552
  end
6390
6553
 
@@ -6956,8 +7119,7 @@ module Google
6956
7119
  # @return [String]
6957
7120
  attr_accessor :time_series_data_column
6958
7121
 
6959
- # The id column that will be used to indicate different time series to forecast
6960
- # in parallel.
7122
+ # The time series id column that was used during ARIMA model training.
6961
7123
  # Corresponds to the JSON property `timeSeriesIdColumn`
6962
7124
  # @return [String]
6963
7125
  attr_accessor :time_series_id_column
@@ -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.4.0"
19
+ GEM_VERSION = "0.9.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210215"
25
+ REVISION = "20210327"
26
26
  end
27
27
  end
28
28
  end
@@ -532,6 +532,12 @@ module Google
532
532
  include Google::Apis::Core::JsonObjectSupport
533
533
  end
534
534
 
535
+ class ParquetOptions
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
535
541
  class Policy
536
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
543
 
@@ -676,6 +682,12 @@ module Google
676
682
  include Google::Apis::Core::JsonObjectSupport
677
683
  end
678
684
 
685
+ class SessionInfo
686
+ class Representation < Google::Apis::Core::JsonRepresentation; end
687
+
688
+ include Google::Apis::Core::JsonObjectSupport
689
+ end
690
+
679
691
  class SetIamPolicyRequest
680
692
  class Representation < Google::Apis::Core::JsonRepresentation; end
681
693
 
@@ -706,6 +718,12 @@ module Google
706
718
  include Google::Apis::Core::JsonObjectSupport
707
719
  end
708
720
 
721
+ class StandardSqlTableType
722
+ class Representation < Google::Apis::Core::JsonRepresentation; end
723
+
724
+ include Google::Apis::Core::JsonObjectSupport
725
+ end
726
+
709
727
  class Streamingbuffer
710
728
  class Representation < Google::Apis::Core::JsonRepresentation; end
711
729
 
@@ -1417,6 +1435,8 @@ module Google
1417
1435
 
1418
1436
  property :ignore_unknown_values, as: 'ignoreUnknownValues'
1419
1437
  property :max_bad_records, as: 'maxBadRecords'
1438
+ property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
1439
+
1420
1440
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
1421
1441
 
1422
1442
  property :source_format, as: 'sourceFormat'
@@ -1609,6 +1629,8 @@ module Google
1609
1629
  property :json_extension, as: 'jsonExtension'
1610
1630
  property :max_bad_records, as: 'maxBadRecords'
1611
1631
  property :null_marker, as: 'nullMarker'
1632
+ property :parquet_options, as: 'parquetOptions', class: Google::Apis::BigqueryV2::ParquetOptions, decorator: Google::Apis::BigqueryV2::ParquetOptions::Representation
1633
+
1612
1634
  collection :projection_fields, as: 'projectionFields'
1613
1635
  property :quote, as: 'quote'
1614
1636
  property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
@@ -1637,6 +1659,7 @@ module Google
1637
1659
  collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
1638
1660
 
1639
1661
  property :create_disposition, as: 'createDisposition'
1662
+ property :create_session, as: 'createSession'
1640
1663
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1641
1664
 
1642
1665
  property :destination_encryption_configuration, as: 'destinationEncryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
@@ -1747,6 +1770,8 @@ module Google
1747
1770
 
1748
1771
  property :script_statistics, as: 'scriptStatistics', class: Google::Apis::BigqueryV2::ScriptStatistics, decorator: Google::Apis::BigqueryV2::ScriptStatistics::Representation
1749
1772
 
1773
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
1774
+
1750
1775
  property :start_time, :numeric_string => true, as: 'startTime'
1751
1776
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
1752
1777
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
@@ -1892,6 +1917,7 @@ module Google
1892
1917
  class Model
1893
1918
  # @private
1894
1919
  class Representation < Google::Apis::Core::JsonRepresentation
1920
+ property :best_trial_id, :numeric_string => true, as: 'bestTrialId'
1895
1921
  property :creation_time, :numeric_string => true, as: 'creationTime'
1896
1922
  property :description, as: 'description'
1897
1923
  property :encryption_configuration, as: 'encryptionConfiguration', class: Google::Apis::BigqueryV2::EncryptionConfiguration, decorator: Google::Apis::BigqueryV2::EncryptionConfiguration::Representation
@@ -1952,6 +1978,14 @@ module Google
1952
1978
  end
1953
1979
  end
1954
1980
 
1981
+ class ParquetOptions
1982
+ # @private
1983
+ class Representation < Google::Apis::Core::JsonRepresentation
1984
+ property :enable_list_inference, as: 'enableListInference'
1985
+ property :enum_as_string, as: 'enumAsString'
1986
+ end
1987
+ end
1988
+
1955
1989
  class Policy
1956
1990
  # @private
1957
1991
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2053,6 +2087,7 @@ module Google
2053
2087
  class Representation < Google::Apis::Core::JsonRepresentation
2054
2088
  collection :connection_properties, as: 'connectionProperties', class: Google::Apis::BigqueryV2::ConnectionProperty, decorator: Google::Apis::BigqueryV2::ConnectionProperty::Representation
2055
2089
 
2090
+ property :create_session, as: 'createSession'
2056
2091
  property :default_dataset, as: 'defaultDataset', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
2057
2092
 
2058
2093
  property :dry_run, as: 'dryRun'
@@ -2089,6 +2124,8 @@ module Google
2089
2124
 
2090
2125
  property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
2091
2126
 
2127
+ property :session_info_template, as: 'sessionInfoTemplate', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
2128
+
2092
2129
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
2093
2130
  property :total_rows, :numeric_string => true, as: 'totalRows'
2094
2131
  end
@@ -2157,6 +2194,8 @@ module Google
2157
2194
  collection :imported_libraries, as: 'importedLibraries'
2158
2195
  property :language, as: 'language'
2159
2196
  property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
2197
+ property :return_table_type, as: 'returnTableType', class: Google::Apis::BigqueryV2::StandardSqlTableType, decorator: Google::Apis::BigqueryV2::StandardSqlTableType::Representation
2198
+
2160
2199
  property :return_type, as: 'returnType', class: Google::Apis::BigqueryV2::StandardSqlDataType, decorator: Google::Apis::BigqueryV2::StandardSqlDataType::Representation
2161
2200
 
2162
2201
  property :routine_reference, as: 'routineReference', class: Google::Apis::BigqueryV2::RoutineReference, decorator: Google::Apis::BigqueryV2::RoutineReference::Representation
@@ -2233,6 +2272,13 @@ module Google
2233
2272
  end
2234
2273
  end
2235
2274
 
2275
+ class SessionInfo
2276
+ # @private
2277
+ class Representation < Google::Apis::Core::JsonRepresentation
2278
+ property :session_id, as: 'sessionId'
2279
+ end
2280
+ end
2281
+
2236
2282
  class SetIamPolicyRequest
2237
2283
  # @private
2238
2284
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2280,6 +2326,14 @@ module Google
2280
2326
  end
2281
2327
  end
2282
2328
 
2329
+ class StandardSqlTableType
2330
+ # @private
2331
+ class Representation < Google::Apis::Core::JsonRepresentation
2332
+ collection :columns, as: 'columns', class: Google::Apis::BigqueryV2::StandardSqlField, decorator: Google::Apis::BigqueryV2::StandardSqlField::Representation
2333
+
2334
+ end
2335
+ end
2336
+
2283
2337
  class Streamingbuffer
2284
2338
  # @private
2285
2339
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2401,10 +2455,13 @@ module Google
2401
2455
  property :description, as: 'description'
2402
2456
  collection :fields, as: 'fields', class: Google::Apis::BigqueryV2::TableFieldSchema, decorator: Google::Apis::BigqueryV2::TableFieldSchema::Representation
2403
2457
 
2458
+ property :max_length, :numeric_string => true, as: 'maxLength'
2404
2459
  property :mode, as: 'mode'
2405
2460
  property :name, as: 'name'
2406
2461
  property :policy_tags, as: 'policyTags', class: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags, decorator: Google::Apis::BigqueryV2::TableFieldSchema::PolicyTags::Representation
2407
2462
 
2463
+ property :precision, :numeric_string => true, as: 'precision'
2464
+ property :scale, :numeric_string => true, as: 'scale'
2408
2465
  property :type, as: 'type'
2409
2466
  end
2410
2467
 
@@ -340,6 +340,47 @@ module Google
340
340
  execute_or_queue_command(command, &block)
341
341
  end
342
342
 
343
+ # Requests that a job is deleted. This call will return when the job is deleted.
344
+ # This method is available in limited preview.
345
+ # @param [String] project_id
346
+ # Required. Project ID of the job to be deleted.
347
+ # @param [String] job_id
348
+ # Required. Job ID of the job to be deleted. If this is a parent job which has
349
+ # child jobs, all child jobs will be deleted as well. Deletion of child jobs
350
+ # directly is not allowed.
351
+ # @param [String] location
352
+ # The geographic location of the job. Required. See details at: https://cloud.
353
+ # google.com/bigquery/docs/locations#specifying_your_location.
354
+ # @param [String] fields
355
+ # Selector specifying which fields to include in a partial response.
356
+ # @param [String] quota_user
357
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
358
+ # characters.
359
+ # @param [String] user_ip
360
+ # Deprecated. Please use quotaUser instead.
361
+ # @param [Google::Apis::RequestOptions] options
362
+ # Request-specific options
363
+ #
364
+ # @yield [result, err] Result & error if block supplied
365
+ # @yieldparam result [NilClass] No result returned for this method
366
+ # @yieldparam err [StandardError] error object if request failed
367
+ #
368
+ # @return [void]
369
+ #
370
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
373
+ def delete_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
374
+ command = make_simple_command(:delete, 'projects/{+projectId}/jobs/{+jobId}/delete', options)
375
+ command.params['projectId'] = project_id unless project_id.nil?
376
+ command.params['jobId'] = job_id unless job_id.nil?
377
+ command.query['location'] = location unless location.nil?
378
+ command.query['fields'] = fields unless fields.nil?
379
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
380
+ command.query['userIp'] = user_ip unless user_ip.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
343
384
  # Returns information about a specific job. Job information is available for a
344
385
  # six month period after creation. Requires that you're the person who ran the
345
386
  # job, or have the Is Owner project role.
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.4.0
4
+ version: 0.9.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: 2021-02-22 00:00:00.000000000 Z
11
+ date: 2021-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.4.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.9.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-bigquery_v2
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.4'
65
+ version: '2.5'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.2.6
72
+ rubygems_version: 3.2.13
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for BigQuery API V2