google-cloud-bigquery-storage-v1 0.14.0 → 0.15.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: 6eb514d8a87f950d7333d8a24f08ba2e8e5710fdbe055f890bea49f3b742b0a4
4
- data.tar.gz: cd8f0057d5ad2da143516f146c04c208e6f219f29fef22271d26be21d7e08b2e
3
+ metadata.gz: bfd51b9f7c88046fa2cb3bd99e8bd4436ad018ebfe40f491906976ff168825a1
4
+ data.tar.gz: 223e07d8da5ef45ab7e17afc5afc8f9921b745c0f9784c5c3a287f5368501957
5
5
  SHA512:
6
- metadata.gz: c521cfb6d963a905aa31e3f213220c1c5dd939ac8c42d78a630f0f3f6c41656c7e17f3c4446e6ea1c8bec8356390697288670ffd1c637fc9144607ef199df9a2
7
- data.tar.gz: adae465e4f76681dacefd2fd7057c0a972beb7053b236a3bfec484b48371477469e700b2c030b8434bc6e030716ce3962143cc6965929f67f4b2d433402c8d52
6
+ metadata.gz: 495416c3cadc9fbe4a003c4cecd69dfb6ef1944351ac7252f24b9d33dd0581eb46bae584cd7fc0409b55a5f1e8458abd706644a7bf906da7c36b8e6ea619814f
7
+ data.tar.gz: 2d4e67bbcb28171ada6bd4a7ebce10ddbdebda2380aa983a3c19577da478ad110288a000f0a4ed979e468b62828c18727052c6f5ed9fdf825e3615b06568b967
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
@@ -0,0 +1,22 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/bigquery/storage/v1/annotations.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/descriptor_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("google/cloud/bigquery/storage/v1/annotations.proto", :syntax => :proto3) do
10
+ end
11
+ end
12
+
13
+ module Google
14
+ module Cloud
15
+ module Bigquery
16
+ module Storage
17
+ module V1
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -306,13 +306,6 @@ 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
- #
316
309
  # @param request [::Gapic::StreamInput, ::Enumerable<::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest, ::Hash>]
317
310
  # An enumerable of {::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest} instances.
318
311
  # @param options [::Gapic::CallOptions, ::Hash]
@@ -401,7 +394,7 @@ module Google
401
394
  # @param options [::Gapic::CallOptions, ::Hash]
402
395
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
403
396
  #
404
- # @overload get_write_stream(name: nil)
397
+ # @overload get_write_stream(name: nil, view: nil)
405
398
  # Pass arguments to `get_write_stream` via keyword arguments. Note that at
406
399
  # least one keyword argument is required. To specify no parameters, or to keep all
407
400
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -409,6 +402,9 @@ module Google
409
402
  # @param name [::String]
410
403
  # Required. Name of the stream to get, in the form of
411
404
  # `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
405
+ # @param view [::Google::Cloud::Bigquery::Storage::V1::WriteStreamView]
406
+ # Indicates whether to get full or partial view of the WriteStream. If
407
+ # not set, view returned will be basic.
412
408
  #
413
409
  # @yield [response, operation] Access the result along with the RPC operation
414
410
  # @yieldparam response [::Google::Cloud::Bigquery::Storage::V1::WriteStream]
@@ -89,6 +89,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
89
89
  end
90
90
  add_message "google.cloud.bigquery.storage.v1.GetWriteStreamRequest" do
91
91
  optional :name, :string, 1
92
+ optional :view, :enum, 3, "google.cloud.bigquery.storage.v1.WriteStreamView"
92
93
  end
93
94
  add_message "google.cloud.bigquery.storage.v1.BatchCommitWriteStreamsRequest" do
94
95
  optional :parent, :string, 1
@@ -134,13 +134,6 @@ 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
144
137
  rpc :AppendRows, stream(::Google::Cloud::Bigquery::Storage::V1::AppendRowsRequest), stream(::Google::Cloud::Bigquery::Storage::V1::AppendRowsResponse)
145
138
  # Gets information about a write stream.
146
139
  rpc :GetWriteStream, ::Google::Cloud::Bigquery::Storage::V1::GetWriteStreamRequest, ::Google::Cloud::Bigquery::Storage::V1::WriteStream
@@ -48,6 +48,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
48
48
  optional :commit_time, :message, 4, "google.protobuf.Timestamp"
49
49
  optional :table_schema, :message, 5, "google.cloud.bigquery.storage.v1.TableSchema"
50
50
  optional :write_mode, :enum, 7, "google.cloud.bigquery.storage.v1.WriteStream.WriteMode"
51
+ optional :location, :string, 8
51
52
  end
52
53
  add_enum "google.cloud.bigquery.storage.v1.WriteStream.Type" do
53
54
  value :TYPE_UNSPECIFIED, 0
@@ -64,6 +65,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
64
65
  value :AVRO, 1
65
66
  value :ARROW, 2
66
67
  end
68
+ add_enum "google.cloud.bigquery.storage.v1.WriteStreamView" do
69
+ value :WRITE_STREAM_VIEW_UNSPECIFIED, 0
70
+ value :BASIC, 1
71
+ value :FULL, 2
72
+ end
67
73
  end
68
74
  end
69
75
 
@@ -80,6 +86,7 @@ module Google
80
86
  WriteStream::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.WriteStream.Type").enummodule
81
87
  WriteStream::WriteMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.WriteStream.WriteMode").enummodule
82
88
  DataFormat = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.DataFormat").enummodule
89
+ WriteStreamView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.storage.v1.WriteStreamView").enummodule
83
90
  end
84
91
  end
85
92
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Storage
24
24
  module V1
25
- VERSION = "0.14.0"
25
+ VERSION = "0.15.1"
26
26
  end
27
27
  end
28
28
  end
@@ -306,6 +306,10 @@ module Google
306
306
  # @return [::String]
307
307
  # Required. Name of the stream to get, in the form of
308
308
  # `projects/{project}/datasets/{dataset}/tables/{table}/streams/{stream}`.
309
+ # @!attribute [rw] view
310
+ # @return [::Google::Cloud::Bigquery::Storage::V1::WriteStreamView]
311
+ # Indicates whether to get full or partial view of the WriteStream. If
312
+ # not set, view returned will be basic.
309
313
  class GetWriteStreamRequest
310
314
  include ::Google::Protobuf::MessageExts
311
315
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -198,6 +198,11 @@ module Google
198
198
  # @!attribute [rw] write_mode
199
199
  # @return [::Google::Cloud::Bigquery::Storage::V1::WriteStream::WriteMode]
200
200
  # Immutable. Mode of the stream.
201
+ # @!attribute [rw] location
202
+ # @return [::String]
203
+ # Immutable. The geographic location where the stream's dataset resides. See
204
+ # https://cloud.google.com/bigquery/docs/locations for supported
205
+ # locations.
201
206
  class WriteStream
202
207
  include ::Google::Protobuf::MessageExts
203
208
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -242,6 +247,23 @@ module Google
242
247
  # See https://arrow.apache.org/ for more details.
243
248
  ARROW = 2
244
249
  end
250
+
251
+ # WriteStreamView is a view enum that controls what details about a write
252
+ # stream should be returned.
253
+ module WriteStreamView
254
+ # The default / unset value.
255
+ WRITE_STREAM_VIEW_UNSPECIFIED = 0
256
+
257
+ # The BASIC projection returns basic metadata about a write stream. The
258
+ # basic view does not include schema information. This is the default view
259
+ # returned by GetWriteStream.
260
+ BASIC = 1
261
+
262
+ # The FULL projection returns all available write stream metadata, including
263
+ # the schema. CreateWriteStream returns the full projection of write stream
264
+ # metadata.
265
+ FULL = 2
266
+ end
245
267
  end
246
268
  end
247
269
  end
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.14.0
4
+ version: 0.15.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-08-18 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
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.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -171,6 +171,7 @@ files:
171
171
  - README.md
172
172
  - lib/google-cloud-bigquery-storage-v1.rb
173
173
  - lib/google/cloud/bigquery/storage/v1.rb
174
+ - lib/google/cloud/bigquery/storage/v1/annotations_pb.rb
174
175
  - lib/google/cloud/bigquery/storage/v1/arrow_pb.rb
175
176
  - lib/google/cloud/bigquery/storage/v1/avro_pb.rb
176
177
  - lib/google/cloud/bigquery/storage/v1/big_query_read.rb