google-cloud-bigquery-storage-v1 0.9.1 → 0.10.1
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/README.md +1 -1
- data/lib/google/cloud/bigquery/storage/v1/big_query_read/credentials.rb +0 -1
- data/lib/google/cloud/bigquery/storage/v1/big_query_write/client.rb +7 -0
- data/lib/google/cloud/bigquery/storage/v1/storage_pb.rb +2 -0
- data/lib/google/cloud/bigquery/storage/v1/storage_services_pb.rb +7 -0
- data/lib/google/cloud/bigquery/storage/v1/stream_pb.rb +1 -0
- data/lib/google/cloud/bigquery/storage/v1/version.rb +1 -1
- data/lib/google/cloud/bigquery/storage/v1.rb +2 -0
- data/proto_docs/google/cloud/bigquery/storage/v1/arrow.rb +2 -1
- data/proto_docs/google/cloud/bigquery/storage/v1/avro.rb +2 -1
- data/proto_docs/google/cloud/bigquery/storage/v1/storage.rb +10 -2
- data/proto_docs/google/cloud/bigquery/storage/v1/stream.rb +8 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dff85b10ef593a6d705ab82f98458dbf22c2bce8b84bb1612d17da8f867ea767
|
4
|
+
data.tar.gz: 0e19138911fed5e2c44118090a1fecbab1b9586bed1569ec35a636e8c51f395c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f754922de4957aebbb9f24d63743f525de91878889535f79e6821188924d3139400d4f5038ef215efe53e18602eacf0474faf922f93f58efdc2f45ef351b3b9
|
7
|
+
data.tar.gz: a31410349d6e7457a2fb7ad7666400faa09027d2c5d4a9728060754b921bb7512536fe7e020e7cebb7052e9af04105ad894d93ace5930f63a5a11f715147f6f5
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Bigquery::Storage::V1::CreateReadSessionRequest.new #
|
|
37
37
|
response = client.create_read_session request
|
38
38
|
```
|
39
39
|
|
40
|
-
View the [Client Library Documentation](https://
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-storage-v1/latest)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/storage)
|
@@ -28,7 +28,6 @@ module Google
|
|
28
28
|
class Credentials < ::Google::Auth::Credentials
|
29
29
|
self.scope = [
|
30
30
|
"https://www.googleapis.com/auth/bigquery",
|
31
|
-
"https://www.googleapis.com/auth/bigquery.readonly",
|
32
31
|
"https://www.googleapis.com/auth/cloud-platform"
|
33
32
|
]
|
34
33
|
self.env_vars = [
|
@@ -306,6 +306,13 @@ module Google
|
|
306
306
|
# finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
|
307
307
|
# committed via the `BatchCommitWriteStreams` rpc.
|
308
308
|
#
|
309
|
+
# Note: For users coding against the gRPC api directly, it may be
|
310
|
+
# necessary to supply the x-goog-request-params system parameter
|
311
|
+
# with `write_stream=<full_write_stream_name>`.
|
312
|
+
#
|
313
|
+
# More information about system parameters:
|
314
|
+
# https://cloud.google.com/apis/docs/system-parameters
|
315
|
+
#
|
309
316
|
# @param request [::Gapic::StreamInput, ::Enumerable<::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest, ::Hash>]
|
310
317
|
# An enumerable of {::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest} instances.
|
311
318
|
# @param options [::Gapic::CallOptions, ::Hash]
|
@@ -121,6 +121,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
121
121
|
value :INVALID_STREAM_STATE, 5
|
122
122
|
value :STREAM_FINALIZED, 6
|
123
123
|
value :SCHEMA_MISMATCH_EXTRA_FIELDS, 7
|
124
|
+
value :OFFSET_ALREADY_EXISTS, 8
|
125
|
+
value :OFFSET_OUT_OF_RANGE, 9
|
124
126
|
end
|
125
127
|
end
|
126
128
|
end
|
@@ -134,6 +134,13 @@ module Google
|
|
134
134
|
# * For PENDING streams, data is not made visible until the stream itself is
|
135
135
|
# finalized (via the `FinalizeWriteStream` rpc), and the stream is explicitly
|
136
136
|
# committed via the `BatchCommitWriteStreams` rpc.
|
137
|
+
#
|
138
|
+
# Note: For users coding against the gRPC api directly, it may be
|
139
|
+
# necessary to supply the x-goog-request-params system parameter
|
140
|
+
# with `write_stream=<full_write_stream_name>`.
|
141
|
+
#
|
142
|
+
# More information about system parameters:
|
143
|
+
# https://cloud.google.com/apis/docs/system-parameters
|
137
144
|
rpc :AppendRows, stream(::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest), stream(::Google::Cloud::Bigquery::Storage::V1::AppendRowsResponse)
|
138
145
|
# Gets information about a write stream.
|
139
146
|
rpc :GetWriteStream, ::Google::Cloud::Bigquery::Storage::V1::GetWriteStreamRequest, ::Google::Cloud::Bigquery::Storage::V1::WriteStream
|
@@ -20,6 +20,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
optional :read_options, :message, 8, "google.cloud.bigquery.storage.v1.ReadSession.TableReadOptions"
|
21
21
|
repeated :streams, :message, 10, "google.cloud.bigquery.storage.v1.ReadStream"
|
22
22
|
optional :estimated_total_bytes_scanned, :int64, 12
|
23
|
+
optional :trace_id, :string, 13
|
23
24
|
oneof :schema do
|
24
25
|
optional :avro_schema, :message, 4, "google.cloud.bigquery.storage.v1.AvroSchema"
|
25
26
|
optional :arrow_schema, :message, 5, "google.cloud.bigquery.storage.v1.ArrowSchema"
|
@@ -42,7 +42,8 @@ module Google
|
|
42
42
|
# IPC-serialized Arrow RecordBatch.
|
43
43
|
# @!attribute [rw] row_count
|
44
44
|
# @return [::Integer]
|
45
|
-
# The count of rows in `serialized_record_batch`.
|
45
|
+
# [Deprecated] The count of rows in `serialized_record_batch`.
|
46
|
+
# Please use the format-independent ReadRowsResponse.row_count instead.
|
46
47
|
class ArrowRecordBatch
|
47
48
|
include ::Google::Protobuf::MessageExts
|
48
49
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -38,7 +38,8 @@ module Google
|
|
38
38
|
# Binary serialized rows in a block.
|
39
39
|
# @!attribute [rw] row_count
|
40
40
|
# @return [::Integer]
|
41
|
-
# The count of rows in the returning block.
|
41
|
+
# [Deprecated] The count of rows in the returning block.
|
42
|
+
# Please use the format-independent ReadRowsResponse.row_count instead.
|
42
43
|
class AvroRows
|
43
44
|
include ::Google::Protobuf::MessageExts
|
44
45
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -189,10 +189,12 @@ module Google
|
|
189
189
|
# request.
|
190
190
|
#
|
191
191
|
# For explicitly created write streams, the format is:
|
192
|
-
#
|
192
|
+
#
|
193
|
+
# * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}`
|
193
194
|
#
|
194
195
|
# For the special default stream, the format is:
|
195
|
-
#
|
196
|
+
#
|
197
|
+
# * `projects/{project}/datasets/{dataset}/tables/{table}/streams/_default`.
|
196
198
|
# @!attribute [rw] offset
|
197
199
|
# @return [::Google::Protobuf::Int64Value]
|
198
200
|
# If present, the write is only performed if the next append offset is same
|
@@ -403,6 +405,12 @@ module Google
|
|
403
405
|
# There is a schema mismatch and it is caused by user schema has extra
|
404
406
|
# field than bigquery schema.
|
405
407
|
SCHEMA_MISMATCH_EXTRA_FIELDS = 7
|
408
|
+
|
409
|
+
# Offset already exists.
|
410
|
+
OFFSET_ALREADY_EXISTS = 8
|
411
|
+
|
412
|
+
# Offset out of range.
|
413
|
+
OFFSET_OUT_OF_RANGE = 9
|
406
414
|
end
|
407
415
|
end
|
408
416
|
end
|
@@ -64,6 +64,14 @@ module Google
|
|
64
64
|
# Output only. An estimate on the number of bytes this session will scan when
|
65
65
|
# all streams are completely consumed. This estimate is based on
|
66
66
|
# metadata from the table which might be incomplete or stale.
|
67
|
+
# @!attribute [rw] trace_id
|
68
|
+
# @return [::String]
|
69
|
+
# Optional. ID set by client to annotate a session identity. This does not need
|
70
|
+
# to be strictly unique, but instead the same ID should be used to group
|
71
|
+
# logically connected sessions (e.g. All using the same ID for all sessions
|
72
|
+
# needed to complete a Spark SQL query is reasonable).
|
73
|
+
#
|
74
|
+
# Maximum length is 256 bytes.
|
67
75
|
class ReadSession
|
68
76
|
include ::Google::Protobuf::MessageExts
|
69
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-bigquery-storage-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01
|
11
|
+
date: 2022-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -219,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
219
|
- !ruby/object:Gem::Version
|
220
220
|
version: '0'
|
221
221
|
requirements: []
|
222
|
-
rubygems_version: 3.3.
|
222
|
+
rubygems_version: 3.3.5
|
223
223
|
signing_key:
|
224
224
|
specification_version: 4
|
225
225
|
summary: API Client library for the BigQuery Storage V1 API
|