google-cloud-bigquery-storage 1.8.1 → 1.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c58e461e3e942e97ff2847e68fedde5ddb4e401b21a369a93d77119ee58a86b
4
- data.tar.gz: cb9e8f658df745037115a9ab61c04b444feb81ed745b431869ef0497e422d271
3
+ metadata.gz: 7dd885471edaacb7b32523e9e91a5dc2fb62a9218933a4db78adf1be200a5e84
4
+ data.tar.gz: 7993b1c5f7ba9baf8d7b8b6733b442dbc346c75be90fb59a0a6a294568d65d7d
5
5
  SHA512:
6
- metadata.gz: c53b85c7ea1fecfc179e0e5552480373ec45062e88036fed3ad411cba9f6ab01bd05f8394c8746646526abade9496ce66037ec81749404cf997302f2fbc6972d
7
- data.tar.gz: ef2ae99848b2b918f3494f89b7e94c4ce9b927eeae66410cc9ee46368245803b0d4a537ed5721ed03cca827a9dcbbce1512d131a32bf20f9c4be5b24784c7455
6
+ metadata.gz: cb3a3ee4631dc69d3373c7e92a966d711a3cc64df44296a23bed1c9776cd04afc2a190c03b55da2d842321cbaca7f23286d37852c694913759cdab7cf8429c73
7
+ data.tar.gz: 80c8e0be51682c868b2b1fe9490241a7637189fe2ca6b1250df3389bedbbad55c9104291a61bccf5f0a92a9f75dd618decfe65400a340858f7bb303098b3defa
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  API Client library for the BigQuery Storage API
4
4
 
5
- The BigQuery Storage API provides fast access to BigQuery managed storage.
5
+ google-cloud-bigquery-storage is the official client library for the BigQuery Storage API.
6
6
 
7
7
  Actual client classes for the various versions of this API are defined in
8
8
  _versioned_ client gems, with names of the form `google-cloud-bigquery-storage-v*`.
@@ -18,7 +18,7 @@ themselves can be found in the client library documentation for the versioned
18
18
  client gems:
19
19
  [google-cloud-bigquery-storage-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-storage-v1/latest).
20
20
 
21
- See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/storage)
21
+ See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/storage/)
22
22
  for more usage information.
23
23
 
24
24
  ## Quick Start
@@ -76,12 +76,10 @@ working, try updating the versioned clients in your bundle or installed gems:
76
76
 
77
77
  This library is supported on Ruby 3.2+.
78
78
 
79
- Google provides official support for Ruby versions that are actively supported
80
- by Ruby Core—that is, Ruby versions that are either in normal maintenance or
81
- in security maintenance, and not end of life. Older versions of Ruby _may_
82
- still work, but are unsupported and not recommended. See
83
- https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
84
- support schedule.
79
+ Google provides official support for Ruby versions as described in the
80
+ [Supported Ruby versions](https://docs.cloud.google.com/ruby/getting-started/supported-ruby-versions)
81
+ policy. Older versions of Ruby _may_ still work, but are unsupported and not
82
+ recommended.
85
83
 
86
84
  ## Which client should I use?
87
85
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigquery
23
23
  module Storage
24
- VERSION = "1.8.1"
24
+ VERSION = "1.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -56,9 +56,11 @@ module Google
56
56
  # `version` parameter. If the BigQueryRead service is
57
57
  # supported by that API version, and the corresponding gem is available, the
58
58
  # appropriate versioned client will be returned.
59
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
60
+ # the `transport` parameter.
59
61
  #
60
62
  # Raises an exception if the currently installed versioned client gem for the
61
- # given API version does not support the BigQueryRead service.
63
+ # given API version does not support the given transport of the BigQueryRead service.
62
64
  # You can determine whether the method will succeed by calling
63
65
  # {Google::Cloud::Bigquery::Storage.big_query_read_available?}.
64
66
  #
@@ -70,9 +72,10 @@ module Google
70
72
  #
71
73
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
72
74
  # Defaults to `:v1`.
75
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
73
76
  # @return [::Object] A client object for the specified version.
74
77
  #
75
- def self.big_query_read version: :v1, &block
78
+ def self.big_query_read version: :v1, transport: :grpc, &block
76
79
  require "google/cloud/bigquery/storage/#{version.to_s.downcase}"
77
80
 
78
81
  package_name = Google::Cloud::Bigquery::Storage
@@ -80,6 +83,7 @@ module Google
80
83
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
81
84
  .first
82
85
  service_module = Google::Cloud::Bigquery::Storage.const_get(package_name).const_get(:BigQueryRead)
86
+ service_module = service_module.const_get(:Rest) if transport == :rest
83
87
  service_module.const_get(:Client).new(&block)
84
88
  end
85
89
 
@@ -92,9 +96,10 @@ module Google
92
96
  #
93
97
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
94
98
  # Defaults to `:v1`.
99
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
95
100
  # @return [boolean] Whether the service is available.
96
101
  #
97
- def self.big_query_read_available? version: :v1
102
+ def self.big_query_read_available? version: :v1, transport: :grpc
98
103
  require "google/cloud/bigquery/storage/#{version.to_s.downcase}"
99
104
  package_name = Google::Cloud::Bigquery::Storage
100
105
  .constants
@@ -104,6 +109,10 @@ module Google
104
109
  service_module = Google::Cloud::Bigquery::Storage.const_get package_name
105
110
  return false unless service_module.const_defined? :BigQueryRead
106
111
  service_module = service_module.const_get :BigQueryRead
112
+ if transport == :rest
113
+ return false unless service_module.const_defined? :Rest
114
+ service_module = service_module.const_get :Rest
115
+ end
107
116
  service_module.const_defined? :Client
108
117
  rescue ::LoadError
109
118
  false
@@ -119,9 +128,11 @@ module Google
119
128
  # `version` parameter. If the BigQueryWrite service is
120
129
  # supported by that API version, and the corresponding gem is available, the
121
130
  # appropriate versioned client will be returned.
131
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
132
+ # the `transport` parameter.
122
133
  #
123
134
  # Raises an exception if the currently installed versioned client gem for the
124
- # given API version does not support the BigQueryWrite service.
135
+ # given API version does not support the given transport of the BigQueryWrite service.
125
136
  # You can determine whether the method will succeed by calling
126
137
  # {Google::Cloud::Bigquery::Storage.big_query_write_available?}.
127
138
  #
@@ -136,9 +147,10 @@ module Google
136
147
  #
137
148
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
138
149
  # Defaults to `:v1`.
150
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
139
151
  # @return [::Object] A client object for the specified version.
140
152
  #
141
- def self.big_query_write version: :v1, &block
153
+ def self.big_query_write version: :v1, transport: :grpc, &block
142
154
  require "google/cloud/bigquery/storage/#{version.to_s.downcase}"
143
155
 
144
156
  package_name = Google::Cloud::Bigquery::Storage
@@ -146,6 +158,7 @@ module Google
146
158
  .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
147
159
  .first
148
160
  service_module = Google::Cloud::Bigquery::Storage.const_get(package_name).const_get(:BigQueryWrite)
161
+ service_module = service_module.const_get(:Rest) if transport == :rest
149
162
  service_module.const_get(:Client).new(&block)
150
163
  end
151
164
 
@@ -158,9 +171,10 @@ module Google
158
171
  #
159
172
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
160
173
  # Defaults to `:v1`.
174
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
161
175
  # @return [boolean] Whether the service is available.
162
176
  #
163
- def self.big_query_write_available? version: :v1
177
+ def self.big_query_write_available? version: :v1, transport: :grpc
164
178
  require "google/cloud/bigquery/storage/#{version.to_s.downcase}"
165
179
  package_name = Google::Cloud::Bigquery::Storage
166
180
  .constants
@@ -170,6 +184,10 @@ module Google
170
184
  service_module = Google::Cloud::Bigquery::Storage.const_get package_name
171
185
  return false unless service_module.const_defined? :BigQueryWrite
172
186
  service_module = service_module.const_get :BigQueryWrite
187
+ if transport == :rest
188
+ return false unless service_module.const_defined? :Rest
189
+ service_module = service_module.const_get :Rest
190
+ end
173
191
  service_module.const_defined? :Client
174
192
  rescue ::LoadError
175
193
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigquery-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -43,7 +43,8 @@ dependencies:
43
43
  - - "~>"
44
44
  - !ruby/object:Gem::Version
45
45
  version: '1.6'
46
- description: The BigQuery Storage API provides fast access to BigQuery managed storage.
46
+ description: google-cloud-bigquery-storage is the official client library for the
47
+ BigQuery Storage API.
47
48
  email: googleapis-packages@google.com
48
49
  executables: []
49
50
  extensions: []