google-cloud-bigquery-storage 1.1.2 → 1.2.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: 19b2d28e67b26b155bf059be5847533cb19049c7342bf1cf08cb128c4acf3688
4
- data.tar.gz: 4d86163f0fc832c009b7372ec314aff93a48e5fb954d52bd3679aca62f584adf
3
+ metadata.gz: 83aeff9c682eee26d08b8d04eac5ab4363a1ce06ce0cb6f3d27edd0a8a83867a
4
+ data.tar.gz: cd8d2fbc4b525dee7020a89f6d83dfbc8ea3170af3e2b15ad818660bca0a0d70
5
5
  SHA512:
6
- metadata.gz: 49d59fb43d100632ec277a343ee5a320431f4b825b6fa1695f213aa4db6a6f2f31829066119799f6927d55fb2c7fac0f328686f771a030d86fd9904eb66b02cd
7
- data.tar.gz: db128764af83a03af7aedebb4fe05dea9bd409abe9a36c9829dc0c3ba06ddede82b01dd051c5491d7ec170b50e7dc64de4b71369c077941c2f143980e6009d2d
6
+ metadata.gz: e569aec0eed33a81c2a622b048e96b5328f98909160318a6249e708d4191ea9e8759d4ce7a0f4c3dd165e39a85417785c1a722a5378c9f53958f872ddce6532a
7
+ data.tar.gz: b05bb5b33c6c1d81da05c0bd3619ab64a0c914ab92f9506e7535048565572ebae0d304c4fc0a5de870df1e494a64b646d547421ab3cd9dd47b442f583f662fcd
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigquery
23
23
  module Storage
24
- VERSION = "1.1.2"
24
+ VERSION = "1.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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.1.2
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-07-12 00:00:00.000000000 Z
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.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.0'
29
+ version: '0.8'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a