google-cloud-bigquery 1.21.2 → 1.22.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.
@@ -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. Label
1035
- # keys and values can be no longer than 63 characters, can only
1036
- # contain lowercase letters, numeric characters, underscores and
1037
- # dashes. International characters are allowed. Label values are
1038
- # optional. Label keys must start with a letter and each label in
1039
- # the list must have a different key.
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
- # The get operation is considered idempotent
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 ID.
254
- # This method does not return the data in the model,
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 @project, dataset_id, model_id, options: { skip_deserialization: true }
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
- # * Label keys and values can be no longer than 63 characters.
824
- # * Label keys and values can contain only lowercase letters, numbers,
825
- # underscores, hyphens, and international characters.
826
- # * Label keys and values cannot exceed 128 bytes in size.
827
- # * Label keys must begin with a letter.
828
- # * Label keys must be unique within a table.
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. Label
1374
- # keys and values can be no longer than 63 characters, can only
1375
- # contain lowercase letters, numeric characters, underscores and
1376
- # dashes. International characters are allowed. Label values are
1377
- # optional. Label keys must start with a letter and each label in the
1378
- # list must have a different key. See [Requirements for
1379
- # labels](https://cloud.google.com/bigquery/docs/creating-managing-labels#requirements).
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 automatically set to the location of
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-from-bigquery
1518
- # Exporting Data From BigQuery
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. Label
1555
- # keys and values can be no longer than 63 characters, can only
1556
- # contain lowercase letters, numeric characters, underscores and
1557
- # dashes. International characters are allowed. Label values are
1558
- # optional. Label keys must start with a letter and each label in the
1559
- # list must have a different key. See [Requirements for
1560
- # labels](https://cloud.google.com/bigquery/docs/creating-managing-labels#requirements).
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-from-bigquery
1613
- # Exporting Data From BigQuery
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. Label
1795
- # keys and values can be no longer than 63 characters, can only
1796
- # contain lowercase letters, numeric characters, underscores and
1797
- # dashes. International characters are allowed. Label values are
1798
- # optional. Label keys must start with a letter and each label in the
1799
- # list must have a different key. See [Requirements for
1800
- # labels](https://cloud.google.com/bigquery/docs/creating-managing-labels#requirements).
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.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Bigquery
19
- VERSION = "1.21.2".freeze
19
+ VERSION = "1.22.0".freeze
20
20
  end
21
21
  end
22
22
  end
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.21.2
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-07-21 00:00:00.000000000 Z
12
+ date: 2020-09-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: concurrent-ruby