google-cloud-bigtable-v2 0.3.3 → 0.3.4

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: f66e84a98fcff77a8b368b4eb5524994918369f3f6bcc78ee07f88a07f197c21
4
- data.tar.gz: e67c964d70ac03707dabcfcc5c46dac24d589268e86432c9e602aee7fc35d303
3
+ metadata.gz: 5d02a55f4a8c7dc19a84811f41a05e2a66bbeb490b62dd9b711003d3813d134c
4
+ data.tar.gz: 62165b5d0ee69e9f71d7234500eba881b7cd88f5bbfa491fdaab423fa9372110
5
5
  SHA512:
6
- metadata.gz: 0eb86298e9f0fb478d08c7ae0d49872cf7a783bc355ba98e7fd9ef686b4f6204aa2cf375e67562e1b2c7d766300febeda5dc96f6c8c606ba2f7ea2494335f3d9
7
- data.tar.gz: ac712942bbb948d58977875346a6e731a47860bbe534f42bc83d30c11023485a4469bfd3cb4c5f068a7e9fe5ec19ffe517aead84335298b701dc012cb1fd55de
6
+ metadata.gz: 296322f7b4ee38842ca54883e40912df7afdc53df74ef2a9b758a2850cc8dcf16641fd09210fc8a55df7a937b3ff149476bf160f1458269ab1243a068b388063
7
+ data.tar.gz: d27e93ce14e0e39ec5c5fe99f8259737a91cadbcccb796665ac5c36b8debdf828763f172a9b6c6de4584e82f026ebdf74d649844811faa2ee2c527fe44f2376c
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/bigtable/v2/bigtable.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/bigtable/v2/data_pb'
11
9
  require 'google/protobuf/wrappers_pb'
12
10
  require 'google/rpc/status_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/bigtable/v2/bigtable.proto", :syntax => :proto3) do
15
15
  add_message "google.bigtable.v2.ReadRowsRequest" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Service for reading from and writing to existing Bigtable tables.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -220,6 +220,24 @@ module Google
220
220
  #
221
221
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
222
222
  #
223
+ # @example Basic example
224
+ # require "google/cloud/bigtable/v2"
225
+ #
226
+ # # Create a client object. The client can be reused for multiple calls.
227
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
228
+ #
229
+ # # Create a request. To set request fields, pass in keyword arguments.
230
+ # request = Google::Cloud::Bigtable::V2::ReadRowsRequest.new
231
+ #
232
+ # # Call the read_rows method.
233
+ # result = client.read_rows request
234
+ #
235
+ # # The returned object is a streamed enumerable yielding elements of
236
+ # # type ::Google::Cloud::Bigtable::V2::ReadRowsResponse.
237
+ # result.each do |response|
238
+ # p response
239
+ # end
240
+ #
223
241
  def read_rows request, options = nil
224
242
  raise ::ArgumentError, "request must be provided" if request.nil?
225
243
 
@@ -237,9 +255,11 @@ module Google
237
255
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
238
256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
239
257
 
240
- header_params = {
241
- "table_name" => request.table_name
242
- }
258
+ header_params = {}
259
+ if request.table_name
260
+ header_params["table_name"] = request.table_name
261
+ end
262
+
243
263
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
244
264
  metadata[:"x-goog-request-params"] ||= request_params_header
245
265
 
@@ -296,6 +316,24 @@ module Google
296
316
  #
297
317
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
298
318
  #
319
+ # @example Basic example
320
+ # require "google/cloud/bigtable/v2"
321
+ #
322
+ # # Create a client object. The client can be reused for multiple calls.
323
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
324
+ #
325
+ # # Create a request. To set request fields, pass in keyword arguments.
326
+ # request = Google::Cloud::Bigtable::V2::SampleRowKeysRequest.new
327
+ #
328
+ # # Call the sample_row_keys method.
329
+ # result = client.sample_row_keys request
330
+ #
331
+ # # The returned object is a streamed enumerable yielding elements of
332
+ # # type ::Google::Cloud::Bigtable::V2::SampleRowKeysResponse.
333
+ # result.each do |response|
334
+ # p response
335
+ # end
336
+ #
299
337
  def sample_row_keys request, options = nil
300
338
  raise ::ArgumentError, "request must be provided" if request.nil?
301
339
 
@@ -313,9 +351,11 @@ module Google
313
351
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
314
352
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
315
353
 
316
- header_params = {
317
- "table_name" => request.table_name
318
- }
354
+ header_params = {}
355
+ if request.table_name
356
+ header_params["table_name"] = request.table_name
357
+ end
358
+
319
359
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
320
360
  metadata[:"x-goog-request-params"] ||= request_params_header
321
361
 
@@ -376,6 +416,21 @@ module Google
376
416
  #
377
417
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
378
418
  #
419
+ # @example Basic example
420
+ # require "google/cloud/bigtable/v2"
421
+ #
422
+ # # Create a client object. The client can be reused for multiple calls.
423
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
424
+ #
425
+ # # Create a request. To set request fields, pass in keyword arguments.
426
+ # request = Google::Cloud::Bigtable::V2::MutateRowRequest.new
427
+ #
428
+ # # Call the mutate_row method.
429
+ # result = client.mutate_row request
430
+ #
431
+ # # The returned object is of type Google::Cloud::Bigtable::V2::MutateRowResponse.
432
+ # p result
433
+ #
379
434
  def mutate_row request, options = nil
380
435
  raise ::ArgumentError, "request must be provided" if request.nil?
381
436
 
@@ -393,9 +448,11 @@ module Google
393
448
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
394
449
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
395
450
 
396
- header_params = {
397
- "table_name" => request.table_name
398
- }
451
+ header_params = {}
452
+ if request.table_name
453
+ header_params["table_name"] = request.table_name
454
+ end
455
+
399
456
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
400
457
  metadata[:"x-goog-request-params"] ||= request_params_header
401
458
 
@@ -455,6 +512,24 @@ module Google
455
512
  #
456
513
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
514
  #
515
+ # @example Basic example
516
+ # require "google/cloud/bigtable/v2"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::Bigtable::V2::MutateRowsRequest.new
523
+ #
524
+ # # Call the mutate_rows method.
525
+ # result = client.mutate_rows request
526
+ #
527
+ # # The returned object is a streamed enumerable yielding elements of
528
+ # # type ::Google::Cloud::Bigtable::V2::MutateRowsResponse.
529
+ # result.each do |response|
530
+ # p response
531
+ # end
532
+ #
458
533
  def mutate_rows request, options = nil
459
534
  raise ::ArgumentError, "request must be provided" if request.nil?
460
535
 
@@ -472,9 +547,11 @@ module Google
472
547
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
473
548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
549
 
475
- header_params = {
476
- "table_name" => request.table_name
477
- }
550
+ header_params = {}
551
+ if request.table_name
552
+ header_params["table_name"] = request.table_name
553
+ end
554
+
478
555
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
556
  metadata[:"x-goog-request-params"] ||= request_params_header
480
557
 
@@ -548,6 +625,21 @@ module Google
548
625
  #
549
626
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
550
627
  #
628
+ # @example Basic example
629
+ # require "google/cloud/bigtable/v2"
630
+ #
631
+ # # Create a client object. The client can be reused for multiple calls.
632
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
633
+ #
634
+ # # Create a request. To set request fields, pass in keyword arguments.
635
+ # request = Google::Cloud::Bigtable::V2::CheckAndMutateRowRequest.new
636
+ #
637
+ # # Call the check_and_mutate_row method.
638
+ # result = client.check_and_mutate_row request
639
+ #
640
+ # # The returned object is of type Google::Cloud::Bigtable::V2::CheckAndMutateRowResponse.
641
+ # p result
642
+ #
551
643
  def check_and_mutate_row request, options = nil
552
644
  raise ::ArgumentError, "request must be provided" if request.nil?
553
645
 
@@ -565,9 +657,11 @@ module Google
565
657
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
566
658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
659
 
568
- header_params = {
569
- "table_name" => request.table_name
570
- }
660
+ header_params = {}
661
+ if request.table_name
662
+ header_params["table_name"] = request.table_name
663
+ end
664
+
571
665
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
572
666
  metadata[:"x-goog-request-params"] ||= request_params_header
573
667
 
@@ -632,6 +726,21 @@ module Google
632
726
  #
633
727
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
634
728
  #
729
+ # @example Basic example
730
+ # require "google/cloud/bigtable/v2"
731
+ #
732
+ # # Create a client object. The client can be reused for multiple calls.
733
+ # client = Google::Cloud::Bigtable::V2::Bigtable::Client.new
734
+ #
735
+ # # Create a request. To set request fields, pass in keyword arguments.
736
+ # request = Google::Cloud::Bigtable::V2::ReadModifyWriteRowRequest.new
737
+ #
738
+ # # Call the read_modify_write_row method.
739
+ # result = client.read_modify_write_row request
740
+ #
741
+ # # The returned object is of type Google::Cloud::Bigtable::V2::ReadModifyWriteRowResponse.
742
+ # p result
743
+ #
635
744
  def read_modify_write_row request, options = nil
636
745
  raise ::ArgumentError, "request must be provided" if request.nil?
637
746
 
@@ -649,9 +758,11 @@ module Google
649
758
  gapic_version: ::Google::Cloud::Bigtable::V2::VERSION
650
759
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
760
 
652
- header_params = {
653
- "table_name" => request.table_name
654
- }
761
+ header_params = {}
762
+ if request.table_name
763
+ header_params["table_name"] = request.table_name
764
+ end
765
+
655
766
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
656
767
  metadata[:"x-goog-request-params"] ||= request_params_header
657
768
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Bigtable
23
23
  module V2
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-bigtable-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common