google-cloud-bigquery 1.21.2 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/google/cloud/bigquery/convert.rb +3 -1
- data/lib/google/cloud/bigquery/copy_job.rb +15 -6
- data/lib/google/cloud/bigquery/dataset.rb +43 -20
- data/lib/google/cloud/bigquery/extract_job.rb +153 -45
- data/lib/google/cloud/bigquery/load_job.rb +15 -6
- data/lib/google/cloud/bigquery/model.rb +164 -8
- data/lib/google/cloud/bigquery/project.rb +137 -68
- data/lib/google/cloud/bigquery/query_job.rb +15 -6
- data/lib/google/cloud/bigquery/service.rb +12 -10
- data/lib/google/cloud/bigquery/table.rb +63 -32
- data/lib/google/cloud/bigquery/version.rb +1 -1
- metadata +2 -2
@@ -1031,12 +1031,21 @@ module Google
|
|
1031
1031
|
# Sets the labels to use for the job.
|
1032
1032
|
#
|
1033
1033
|
# @param [Hash] value A hash of user-provided labels associated with
|
1034
|
-
# the job. You can use these to organize and group your jobs.
|
1035
|
-
#
|
1036
|
-
#
|
1037
|
-
#
|
1038
|
-
#
|
1039
|
-
#
|
1034
|
+
# the job. You can use these to organize and group your jobs.
|
1035
|
+
#
|
1036
|
+
# The labels applied to a resource must meet the following requirements:
|
1037
|
+
#
|
1038
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
1039
|
+
# * Each label must be a key-value pair.
|
1040
|
+
# * Keys have a minimum length of 1 character and a maximum length of
|
1041
|
+
# 63 characters, and cannot be empty. Values can be empty, and have
|
1042
|
+
# a maximum length of 63 characters.
|
1043
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
1044
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
1045
|
+
# international characters are allowed.
|
1046
|
+
# * The key portion of a label must be unique. However, you can use the
|
1047
|
+
# same key with multiple resources.
|
1048
|
+
# * Keys must start with a lowercase letter or international character.
|
1040
1049
|
#
|
1041
1050
|
# @!group Attributes
|
1042
1051
|
#
|
@@ -138,6 +138,8 @@ module Google
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
+
##
|
142
|
+
# Gets the specified table resource by full table reference.
|
141
143
|
def get_project_table project_id, dataset_id, table_id
|
142
144
|
# The get operation is considered idempotent
|
143
145
|
execute backoff: true do
|
@@ -151,10 +153,7 @@ module Google
|
|
151
153
|
# it only returns the table resource,
|
152
154
|
# which describes the structure of this table.
|
153
155
|
def get_table dataset_id, table_id
|
154
|
-
|
155
|
-
execute backoff: true do
|
156
|
-
get_project_table @project, dataset_id, table_id
|
157
|
-
end
|
156
|
+
get_project_table @project, dataset_id, table_id
|
158
157
|
end
|
159
158
|
|
160
159
|
##
|
@@ -250,18 +249,21 @@ module Google
|
|
250
249
|
end
|
251
250
|
end
|
252
251
|
|
253
|
-
# Gets the specified model resource by model
|
254
|
-
|
255
|
-
# it only returns the model resource,
|
256
|
-
# which describes the structure of this model.
|
257
|
-
def get_model dataset_id, model_id
|
252
|
+
# Gets the specified model resource by full model reference.
|
253
|
+
def get_project_model project_id, dataset_id, model_id
|
258
254
|
# The get operation is considered idempotent
|
259
255
|
execute backoff: true do
|
260
|
-
json_txt = service.get_model
|
256
|
+
json_txt = service.get_model project_id, dataset_id, model_id, options: { skip_deserialization: true }
|
261
257
|
JSON.parse json_txt, symbolize_names: true
|
262
258
|
end
|
263
259
|
end
|
264
260
|
|
261
|
+
# Gets the specified model resource by model ID. This method does not return the data in the model, it only
|
262
|
+
# returns the model resource, which describes the structure of this model.
|
263
|
+
def get_model dataset_id, model_id
|
264
|
+
get_project_model @project, dataset_id, model_id
|
265
|
+
end
|
266
|
+
|
265
267
|
##
|
266
268
|
# Updates information in an existing model, replacing fields that
|
267
269
|
# are provided in the submitted model resource.
|
@@ -820,12 +820,19 @@ module Google
|
|
820
820
|
# @param [Hash<String, String>] labels A hash containing key/value
|
821
821
|
# pairs.
|
822
822
|
#
|
823
|
-
#
|
824
|
-
#
|
825
|
-
#
|
826
|
-
# *
|
827
|
-
# *
|
828
|
-
#
|
823
|
+
# The labels applied to a resource must meet the following requirements:
|
824
|
+
#
|
825
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
826
|
+
# * Each label must be a key-value pair.
|
827
|
+
# * Keys have a minimum length of 1 character and a maximum length of
|
828
|
+
# 63 characters, and cannot be empty. Values can be empty, and have
|
829
|
+
# a maximum length of 63 characters.
|
830
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
831
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
832
|
+
# international characters are allowed.
|
833
|
+
# * The key portion of a label must be unique. However, you can use the
|
834
|
+
# same key with multiple resources.
|
835
|
+
# * Keys must start with a lowercase letter or international character.
|
829
836
|
#
|
830
837
|
# @example
|
831
838
|
# require "google/cloud/bigquery"
|
@@ -1370,13 +1377,21 @@ module Google
|
|
1370
1377
|
# is 1,024 characters. If `job_id` is provided, then `prefix` will not
|
1371
1378
|
# be used.
|
1372
1379
|
# @param [Hash] labels A hash of user-provided labels associated with
|
1373
|
-
# the job. You can use these to organize and group your jobs.
|
1374
|
-
#
|
1375
|
-
#
|
1376
|
-
#
|
1377
|
-
#
|
1378
|
-
#
|
1379
|
-
#
|
1380
|
+
# the job. You can use these to organize and group your jobs.
|
1381
|
+
#
|
1382
|
+
# The labels applied to a resource must meet the following requirements:
|
1383
|
+
#
|
1384
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
1385
|
+
# * Each label must be a key-value pair.
|
1386
|
+
# * Keys have a minimum length of 1 character and a maximum length of
|
1387
|
+
# 63 characters, and cannot be empty. Values can be empty, and have
|
1388
|
+
# a maximum length of 63 characters.
|
1389
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
1390
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
1391
|
+
# international characters are allowed.
|
1392
|
+
# * The key portion of a label must be unique. However, you can use the
|
1393
|
+
# same key with multiple resources.
|
1394
|
+
# * Keys must start with a lowercase letter or international character.
|
1380
1395
|
# @param [Boolean] dryrun If set, don't actually run this job. Behavior
|
1381
1396
|
# is undefined however for non-query jobs and may result in an error.
|
1382
1397
|
# Deprecated.
|
@@ -1511,11 +1526,11 @@ module Google
|
|
1511
1526
|
# The geographic location for the job ("US", "EU", etc.) can be set via
|
1512
1527
|
# {ExtractJob::Updater#location=} in a block passed to this method. If
|
1513
1528
|
# the table is a full resource representation (see {#resource_full?}),
|
1514
|
-
# the location of the job will be
|
1529
|
+
# the location of the job will automatically be set to the location of
|
1515
1530
|
# the table.
|
1516
1531
|
#
|
1517
|
-
# @see https://cloud.google.com/bigquery/exporting-data
|
1518
|
-
# Exporting
|
1532
|
+
# @see https://cloud.google.com/bigquery/docs/exporting-data
|
1533
|
+
# Exporting table data
|
1519
1534
|
#
|
1520
1535
|
# @param [Google::Cloud::Storage::File, String, Array<String>]
|
1521
1536
|
# extract_url The Google Storage file or file URI pattern(s) to which
|
@@ -1551,13 +1566,21 @@ module Google
|
|
1551
1566
|
# is 1,024 characters. If `job_id` is provided, then `prefix` will not
|
1552
1567
|
# be used.
|
1553
1568
|
# @param [Hash] labels A hash of user-provided labels associated with
|
1554
|
-
# the job. You can use these to organize and group your jobs.
|
1555
|
-
#
|
1556
|
-
#
|
1557
|
-
#
|
1558
|
-
#
|
1559
|
-
#
|
1560
|
-
#
|
1569
|
+
# the job. You can use these to organize and group your jobs.
|
1570
|
+
#
|
1571
|
+
# The labels applied to a resource must meet the following requirements:
|
1572
|
+
#
|
1573
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
1574
|
+
# * Each label must be a key-value pair.
|
1575
|
+
# * Keys have a minimum length of 1 character and a maximum length of
|
1576
|
+
# 63 characters, and cannot be empty. Values can be empty, and have
|
1577
|
+
# a maximum length of 63 characters.
|
1578
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
1579
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
1580
|
+
# international characters are allowed.
|
1581
|
+
# * The key portion of a label must be unique. However, you can use the
|
1582
|
+
# same key with multiple resources.
|
1583
|
+
# * Keys must start with a lowercase letter or international character.
|
1561
1584
|
# @param [Boolean] dryrun If set, don't actually run this job. Behavior
|
1562
1585
|
# is undefined however for non-query jobs and may result in an error.
|
1563
1586
|
# Deprecated.
|
@@ -1609,8 +1632,8 @@ module Google
|
|
1609
1632
|
# the location of the job will be automatically set to the location of
|
1610
1633
|
# the table.
|
1611
1634
|
#
|
1612
|
-
# @see https://cloud.google.com/bigquery/exporting-data
|
1613
|
-
# Exporting
|
1635
|
+
# @see https://cloud.google.com/bigquery/docs/exporting-data
|
1636
|
+
# Exporting table data
|
1614
1637
|
#
|
1615
1638
|
# @param [Google::Cloud::Storage::File, String, Array<String>]
|
1616
1639
|
# extract_url The Google Storage file or file URI pattern(s) to which
|
@@ -1791,13 +1814,21 @@ module Google
|
|
1791
1814
|
# is 1,024 characters. If `job_id` is provided, then `prefix` will not
|
1792
1815
|
# be used.
|
1793
1816
|
# @param [Hash] labels A hash of user-provided labels associated with
|
1794
|
-
# the job. You can use these to organize and group your jobs.
|
1795
|
-
#
|
1796
|
-
#
|
1797
|
-
#
|
1798
|
-
#
|
1799
|
-
#
|
1800
|
-
#
|
1817
|
+
# the job. You can use these to organize and group your jobs.
|
1818
|
+
#
|
1819
|
+
# The labels applied to a resource must meet the following requirements:
|
1820
|
+
#
|
1821
|
+
# * Each resource can have multiple labels, up to a maximum of 64.
|
1822
|
+
# * Each label must be a key-value pair.
|
1823
|
+
# * Keys have a minimum length of 1 character and a maximum length of
|
1824
|
+
# 63 characters, and cannot be empty. Values can be empty, and have
|
1825
|
+
# a maximum length of 63 characters.
|
1826
|
+
# * Keys and values can contain only lowercase letters, numeric characters,
|
1827
|
+
# underscores, and dashes. All characters must use UTF-8 encoding, and
|
1828
|
+
# international characters are allowed.
|
1829
|
+
# * The key portion of a label must be unique. However, you can use the
|
1830
|
+
# same key with multiple resources.
|
1831
|
+
# * Keys must start with a lowercase letter or international character.
|
1801
1832
|
# @param [Boolean] dryrun If set, don't actually run this job. Behavior
|
1802
1833
|
# is undefined however for non-query jobs and may result in an error.
|
1803
1834
|
# Deprecated.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|