google-cloud-bigquery-storage 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/bigquery/storage/version.rb +1 -1
- data/lib/google/cloud/bigquery/storage.rb +35 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83aeff9c682eee26d08b8d04eac5ab4363a1ce06ce0cb6f3d27edd0a8a83867a
|
4
|
+
data.tar.gz: cd8d2fbc4b525dee7020a89f6d83dfbc8ea3170af3e2b15ad818660bca0a0d70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e569aec0eed33a81c2a622b048e96b5328f98909160318a6249e708d4191ea9e8759d4ce7a0f4c3dd165e39a85417785c1a722a5378c9f53958f872ddce6532a
|
7
|
+
data.tar.gz: b05bb5b33c6c1d81da05c0bd3619ab64a0c914ab92f9506e7535048565572ebae0d304c4fc0a5de870df1e494a64b646d547421ab3cd9dd47b442f583f662fcd
|
@@ -77,6 +77,41 @@ module Google
|
|
77
77
|
package_module.const_get(:BigQueryRead).const_get(:Client).new(&block)
|
78
78
|
end
|
79
79
|
|
80
|
+
##
|
81
|
+
# Create a new client object for BigQueryWrite.
|
82
|
+
#
|
83
|
+
# By default, this returns an instance of
|
84
|
+
# [Google::Cloud::Bigquery::Storage::V1::BigQueryWrite::Client](https://googleapis.dev/ruby/google-cloud-bigquery-storage-v1/latest/Google/Cloud/Bigquery/Storage/V1/BigQueryWrite/Client.html)
|
85
|
+
# for version V1 of the API.
|
86
|
+
# However, you can specify specify a different API version by passing it in the
|
87
|
+
# `version` parameter. If the BigQueryWrite service is
|
88
|
+
# supported by that API version, and the corresponding gem is available, the
|
89
|
+
# appropriate versioned client will be returned.
|
90
|
+
#
|
91
|
+
# ## About BigQueryWrite
|
92
|
+
#
|
93
|
+
# BigQuery Write API.
|
94
|
+
#
|
95
|
+
# The Write API can be used to write data to BigQuery.
|
96
|
+
#
|
97
|
+
# For supplementary information about the Write API, see:
|
98
|
+
# https://cloud.google.com/bigquery/docs/write-api
|
99
|
+
#
|
100
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
101
|
+
# Defaults to `:v1`.
|
102
|
+
# @return [BigQueryWrite::Client] A client object for the specified version.
|
103
|
+
#
|
104
|
+
def self.big_query_write version: :v1, &block
|
105
|
+
require "google/cloud/bigquery/storage/#{version.to_s.downcase}"
|
106
|
+
|
107
|
+
package_name = Google::Cloud::Bigquery::Storage
|
108
|
+
.constants
|
109
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
110
|
+
.first
|
111
|
+
package_module = Google::Cloud::Bigquery::Storage.const_get package_name
|
112
|
+
package_module.const_get(:BigQueryWrite).const_get(:Client).new(&block)
|
113
|
+
end
|
114
|
+
|
80
115
|
##
|
81
116
|
# Configure the google-cloud-bigquery-storage library.
|
82
117
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-storage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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-
|
11
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-bigquery-storage-v1
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.8'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.8'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|