google-cloud-bigquery-storage-v1 0.9.1 → 0.10.1

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: a28a465df9bb4bfca7c1b116bd9f5bd0b722c3dd2c7aa7cea30093f185a4ab6f
4
- data.tar.gz: e86896e574158ae89908fdb573b8b6dd03b5e0c74d1a11edf3685312794814f8
3
+ metadata.gz: dff85b10ef593a6d705ab82f98458dbf22c2bce8b84bb1612d17da8f867ea767
4
+ data.tar.gz: 0e19138911fed5e2c44118090a1fecbab1b9586bed1569ec35a636e8c51f395c
5
5
  SHA512:
6
- metadata.gz: 3d89f01e0feb45cccb4c949db695400a84fc63832312128b6d25088a4292380c9afe65048e4ea7bd48aed819ace234365b1e7d4e437ae8f44dc5560f649c5251
7
- data.tar.gz: 3362bc84cee06136ba7bfa7e94f4331262230e359dfeac4b2e86711bdc7569901dda7f2b46eafa5f0464927ef46836ac72c87e4e8346a46e960f5fc22f8faf8e
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://googleapis.dev/ruby/google-cloud-bigquery-storage-v1/latest)
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"
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Storage
24
24
  module V1
25
- VERSION = "0.9.1"
25
+ VERSION = "0.10.1"
26
26
  end
27
27
  end
28
28
  end
@@ -27,6 +27,8 @@ module Google
27
27
  ##
28
28
  # To load this package, including all its services, and instantiate a client:
29
29
  #
30
+ # @example
31
+ #
30
32
  # require "google/cloud/bigquery/storage/v1"
31
33
  # client = ::Google::Cloud::Bigquery::Storage::V1::BigQueryRead::Client.new
32
34
  #
@@ -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
- # `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}`
192
+ #
193
+ # * `projects/{project}/datasets/{dataset}/tables/{table}/streams/{id}`
193
194
  #
194
195
  # For the special default stream, the format is:
195
- # `projects/{project}/datasets/{dataset}/tables/{table}/_default`.
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.9.1
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 00:00:00.000000000 Z
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.4
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