google-cloud-spanner-v1 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/spanner/v1/spanner/client.rb +312 -45
- data/lib/google/cloud/spanner/v1/version.rb +1 -1
- data/lib/google/spanner/v1/commit_response_pb.rb +2 -2
- data/lib/google/spanner/v1/keys_pb.rb +2 -2
- data/lib/google/spanner/v1/mutation_pb.rb +2 -2
- data/lib/google/spanner/v1/query_plan_pb.rb +2 -2
- data/lib/google/spanner/v1/result_set_pb.rb +2 -2
- data/lib/google/spanner/v1/spanner_pb.rb +2 -2
- data/lib/google/spanner/v1/spanner_services_pb.rb +1 -1
- data/lib/google/spanner/v1/transaction_pb.rb +2 -2
- data/lib/google/spanner/v1/type_pb.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d2eae57af534d2c1d9c239bdbb609bba7279dbfcc92a4661f799201f04083a1
|
4
|
+
data.tar.gz: e650e6ec37e392219e34fe2ae140cb4e36a93deffaa91c6ca2b15dc561b776c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aefacc2ac8a43f6466c1ffa1e6595784890977acfba2cbce7b8658be4b57c014052d73c10d3e21dae54ae01f261d607406ae26a7a0475d928aeeaeb60742304a
|
7
|
+
data.tar.gz: ca8d386f050cfd8b41a5907b637150b10dd29459f4ede218cb6f6dd907fe81bfd3aca7a43a550941871d578f503e8325ab592a989049d5140259671f93463e12
|
@@ -265,6 +265,21 @@ module Google
|
|
265
265
|
#
|
266
266
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
267
267
|
#
|
268
|
+
# @example Basic example
|
269
|
+
# require "google/cloud/spanner/v1"
|
270
|
+
#
|
271
|
+
# # Create a client object. The client can be reused for multiple calls.
|
272
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
273
|
+
#
|
274
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
275
|
+
# request = Google::Cloud::Spanner::V1::CreateSessionRequest.new
|
276
|
+
#
|
277
|
+
# # Call the create_session method.
|
278
|
+
# result = client.create_session request
|
279
|
+
#
|
280
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::Session.
|
281
|
+
# p result
|
282
|
+
#
|
268
283
|
def create_session request, options = nil
|
269
284
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
270
285
|
|
@@ -282,9 +297,11 @@ module Google
|
|
282
297
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
283
298
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
284
299
|
|
285
|
-
header_params = {
|
286
|
-
|
287
|
-
|
300
|
+
header_params = {}
|
301
|
+
if request.database
|
302
|
+
header_params["database"] = request.database
|
303
|
+
end
|
304
|
+
|
288
305
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
289
306
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
290
307
|
|
@@ -344,6 +361,21 @@ module Google
|
|
344
361
|
#
|
345
362
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
346
363
|
#
|
364
|
+
# @example Basic example
|
365
|
+
# require "google/cloud/spanner/v1"
|
366
|
+
#
|
367
|
+
# # Create a client object. The client can be reused for multiple calls.
|
368
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
369
|
+
#
|
370
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
371
|
+
# request = Google::Cloud::Spanner::V1::BatchCreateSessionsRequest.new
|
372
|
+
#
|
373
|
+
# # Call the batch_create_sessions method.
|
374
|
+
# result = client.batch_create_sessions request
|
375
|
+
#
|
376
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::BatchCreateSessionsResponse.
|
377
|
+
# p result
|
378
|
+
#
|
347
379
|
def batch_create_sessions request, options = nil
|
348
380
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
381
|
|
@@ -361,9 +393,11 @@ module Google
|
|
361
393
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
362
394
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
363
395
|
|
364
|
-
header_params = {
|
365
|
-
|
366
|
-
|
396
|
+
header_params = {}
|
397
|
+
if request.database
|
398
|
+
header_params["database"] = request.database
|
399
|
+
end
|
400
|
+
|
367
401
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
368
402
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
369
403
|
|
@@ -414,6 +448,21 @@ module Google
|
|
414
448
|
#
|
415
449
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
416
450
|
#
|
451
|
+
# @example Basic example
|
452
|
+
# require "google/cloud/spanner/v1"
|
453
|
+
#
|
454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
455
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
456
|
+
#
|
457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
458
|
+
# request = Google::Cloud::Spanner::V1::GetSessionRequest.new
|
459
|
+
#
|
460
|
+
# # Call the get_session method.
|
461
|
+
# result = client.get_session request
|
462
|
+
#
|
463
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::Session.
|
464
|
+
# p result
|
465
|
+
#
|
417
466
|
def get_session request, options = nil
|
418
467
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
468
|
|
@@ -431,9 +480,11 @@ module Google
|
|
431
480
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
432
481
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
433
482
|
|
434
|
-
header_params = {
|
435
|
-
|
436
|
-
|
483
|
+
header_params = {}
|
484
|
+
if request.name
|
485
|
+
header_params["name"] = request.name
|
486
|
+
end
|
487
|
+
|
437
488
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
438
489
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
439
490
|
|
@@ -500,6 +551,27 @@ module Google
|
|
500
551
|
#
|
501
552
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
502
553
|
#
|
554
|
+
# @example Basic example
|
555
|
+
# require "google/cloud/spanner/v1"
|
556
|
+
#
|
557
|
+
# # Create a client object. The client can be reused for multiple calls.
|
558
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
559
|
+
#
|
560
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
561
|
+
# request = Google::Cloud::Spanner::V1::ListSessionsRequest.new
|
562
|
+
#
|
563
|
+
# # Call the list_sessions method.
|
564
|
+
# result = client.list_sessions request
|
565
|
+
#
|
566
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
567
|
+
# # iterate over all elements by calling #each, and the enumerable
|
568
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
569
|
+
# # methods are also available for managing paging directly.
|
570
|
+
# result.each do |response|
|
571
|
+
# # Each element is of type ::Google::Cloud::Spanner::V1::Session.
|
572
|
+
# p response
|
573
|
+
# end
|
574
|
+
#
|
503
575
|
def list_sessions request, options = nil
|
504
576
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
505
577
|
|
@@ -517,9 +589,11 @@ module Google
|
|
517
589
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
518
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
519
591
|
|
520
|
-
header_params = {
|
521
|
-
|
522
|
-
|
592
|
+
header_params = {}
|
593
|
+
if request.database
|
594
|
+
header_params["database"] = request.database
|
595
|
+
end
|
596
|
+
|
523
597
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
524
598
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
525
599
|
|
@@ -571,6 +645,21 @@ module Google
|
|
571
645
|
#
|
572
646
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
573
647
|
#
|
648
|
+
# @example Basic example
|
649
|
+
# require "google/cloud/spanner/v1"
|
650
|
+
#
|
651
|
+
# # Create a client object. The client can be reused for multiple calls.
|
652
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
653
|
+
#
|
654
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
655
|
+
# request = Google::Cloud::Spanner::V1::DeleteSessionRequest.new
|
656
|
+
#
|
657
|
+
# # Call the delete_session method.
|
658
|
+
# result = client.delete_session request
|
659
|
+
#
|
660
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
661
|
+
# p result
|
662
|
+
#
|
574
663
|
def delete_session request, options = nil
|
575
664
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
576
665
|
|
@@ -588,9 +677,11 @@ module Google
|
|
588
677
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
589
678
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
590
679
|
|
591
|
-
header_params = {
|
592
|
-
|
593
|
-
|
680
|
+
header_params = {}
|
681
|
+
if request.name
|
682
|
+
header_params["name"] = request.name
|
683
|
+
end
|
684
|
+
|
594
685
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
595
686
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
596
687
|
|
@@ -716,6 +807,21 @@ module Google
|
|
716
807
|
#
|
717
808
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
718
809
|
#
|
810
|
+
# @example Basic example
|
811
|
+
# require "google/cloud/spanner/v1"
|
812
|
+
#
|
813
|
+
# # Create a client object. The client can be reused for multiple calls.
|
814
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
815
|
+
#
|
816
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
817
|
+
# request = Google::Cloud::Spanner::V1::ExecuteSqlRequest.new
|
818
|
+
#
|
819
|
+
# # Call the execute_sql method.
|
820
|
+
# result = client.execute_sql request
|
821
|
+
#
|
822
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::ResultSet.
|
823
|
+
# p result
|
824
|
+
#
|
719
825
|
def execute_sql request, options = nil
|
720
826
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
721
827
|
|
@@ -733,9 +839,11 @@ module Google
|
|
733
839
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
734
840
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
735
841
|
|
736
|
-
header_params = {
|
737
|
-
|
738
|
-
|
842
|
+
header_params = {}
|
843
|
+
if request.session
|
844
|
+
header_params["session"] = request.session
|
845
|
+
end
|
846
|
+
|
739
847
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
740
848
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
741
849
|
|
@@ -855,6 +963,24 @@ module Google
|
|
855
963
|
#
|
856
964
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
857
965
|
#
|
966
|
+
# @example Basic example
|
967
|
+
# require "google/cloud/spanner/v1"
|
968
|
+
#
|
969
|
+
# # Create a client object. The client can be reused for multiple calls.
|
970
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
971
|
+
#
|
972
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
973
|
+
# request = Google::Cloud::Spanner::V1::ExecuteSqlRequest.new
|
974
|
+
#
|
975
|
+
# # Call the execute_streaming_sql method.
|
976
|
+
# result = client.execute_streaming_sql request
|
977
|
+
#
|
978
|
+
# # The returned object is a streamed enumerable yielding elements of
|
979
|
+
# # type ::Google::Cloud::Spanner::V1::PartialResultSet.
|
980
|
+
# result.each do |response|
|
981
|
+
# p response
|
982
|
+
# end
|
983
|
+
#
|
858
984
|
def execute_streaming_sql request, options = nil
|
859
985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
860
986
|
|
@@ -872,9 +998,11 @@ module Google
|
|
872
998
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
873
999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
874
1000
|
|
875
|
-
header_params = {
|
876
|
-
|
877
|
-
|
1001
|
+
header_params = {}
|
1002
|
+
if request.session
|
1003
|
+
header_params["session"] = request.session
|
1004
|
+
end
|
1005
|
+
|
878
1006
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
879
1007
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
880
1008
|
|
@@ -957,6 +1085,21 @@ module Google
|
|
957
1085
|
#
|
958
1086
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
959
1087
|
#
|
1088
|
+
# @example Basic example
|
1089
|
+
# require "google/cloud/spanner/v1"
|
1090
|
+
#
|
1091
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1092
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1093
|
+
#
|
1094
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1095
|
+
# request = Google::Cloud::Spanner::V1::ExecuteBatchDmlRequest.new
|
1096
|
+
#
|
1097
|
+
# # Call the execute_batch_dml method.
|
1098
|
+
# result = client.execute_batch_dml request
|
1099
|
+
#
|
1100
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::ExecuteBatchDmlResponse.
|
1101
|
+
# p result
|
1102
|
+
#
|
960
1103
|
def execute_batch_dml request, options = nil
|
961
1104
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
962
1105
|
|
@@ -974,9 +1117,11 @@ module Google
|
|
974
1117
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
975
1118
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
976
1119
|
|
977
|
-
header_params = {
|
978
|
-
|
979
|
-
|
1120
|
+
header_params = {}
|
1121
|
+
if request.session
|
1122
|
+
header_params["session"] = request.session
|
1123
|
+
end
|
1124
|
+
|
980
1125
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
981
1126
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
982
1127
|
|
@@ -1080,6 +1225,21 @@ module Google
|
|
1080
1225
|
#
|
1081
1226
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1082
1227
|
#
|
1228
|
+
# @example Basic example
|
1229
|
+
# require "google/cloud/spanner/v1"
|
1230
|
+
#
|
1231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1232
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1233
|
+
#
|
1234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1235
|
+
# request = Google::Cloud::Spanner::V1::ReadRequest.new
|
1236
|
+
#
|
1237
|
+
# # Call the read method.
|
1238
|
+
# result = client.read request
|
1239
|
+
#
|
1240
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::ResultSet.
|
1241
|
+
# p result
|
1242
|
+
#
|
1083
1243
|
def read request, options = nil
|
1084
1244
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1085
1245
|
|
@@ -1097,9 +1257,11 @@ module Google
|
|
1097
1257
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1098
1258
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1099
1259
|
|
1100
|
-
header_params = {
|
1101
|
-
|
1102
|
-
|
1260
|
+
header_params = {}
|
1261
|
+
if request.session
|
1262
|
+
header_params["session"] = request.session
|
1263
|
+
end
|
1264
|
+
|
1103
1265
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1104
1266
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1105
1267
|
|
@@ -1195,6 +1357,24 @@ module Google
|
|
1195
1357
|
#
|
1196
1358
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1197
1359
|
#
|
1360
|
+
# @example Basic example
|
1361
|
+
# require "google/cloud/spanner/v1"
|
1362
|
+
#
|
1363
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1364
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1365
|
+
#
|
1366
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1367
|
+
# request = Google::Cloud::Spanner::V1::ReadRequest.new
|
1368
|
+
#
|
1369
|
+
# # Call the streaming_read method.
|
1370
|
+
# result = client.streaming_read request
|
1371
|
+
#
|
1372
|
+
# # The returned object is a streamed enumerable yielding elements of
|
1373
|
+
# # type ::Google::Cloud::Spanner::V1::PartialResultSet.
|
1374
|
+
# result.each do |response|
|
1375
|
+
# p response
|
1376
|
+
# end
|
1377
|
+
#
|
1198
1378
|
def streaming_read request, options = nil
|
1199
1379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1200
1380
|
|
@@ -1212,9 +1392,11 @@ module Google
|
|
1212
1392
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1213
1393
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1214
1394
|
|
1215
|
-
header_params = {
|
1216
|
-
|
1217
|
-
|
1395
|
+
header_params = {}
|
1396
|
+
if request.session
|
1397
|
+
header_params["session"] = request.session
|
1398
|
+
end
|
1399
|
+
|
1218
1400
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1219
1401
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1220
1402
|
|
@@ -1274,6 +1456,21 @@ module Google
|
|
1274
1456
|
#
|
1275
1457
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1276
1458
|
#
|
1459
|
+
# @example Basic example
|
1460
|
+
# require "google/cloud/spanner/v1"
|
1461
|
+
#
|
1462
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1463
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1464
|
+
#
|
1465
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1466
|
+
# request = Google::Cloud::Spanner::V1::BeginTransactionRequest.new
|
1467
|
+
#
|
1468
|
+
# # Call the begin_transaction method.
|
1469
|
+
# result = client.begin_transaction request
|
1470
|
+
#
|
1471
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::Transaction.
|
1472
|
+
# p result
|
1473
|
+
#
|
1277
1474
|
def begin_transaction request, options = nil
|
1278
1475
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1279
1476
|
|
@@ -1291,9 +1488,11 @@ module Google
|
|
1291
1488
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1292
1489
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1293
1490
|
|
1294
|
-
header_params = {
|
1295
|
-
|
1296
|
-
|
1491
|
+
header_params = {}
|
1492
|
+
if request.session
|
1493
|
+
header_params["session"] = request.session
|
1494
|
+
end
|
1495
|
+
|
1297
1496
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1298
1497
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1299
1498
|
|
@@ -1377,6 +1576,21 @@ module Google
|
|
1377
1576
|
#
|
1378
1577
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1379
1578
|
#
|
1579
|
+
# @example Basic example
|
1580
|
+
# require "google/cloud/spanner/v1"
|
1581
|
+
#
|
1582
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1583
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1584
|
+
#
|
1585
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1586
|
+
# request = Google::Cloud::Spanner::V1::CommitRequest.new
|
1587
|
+
#
|
1588
|
+
# # Call the commit method.
|
1589
|
+
# result = client.commit request
|
1590
|
+
#
|
1591
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::CommitResponse.
|
1592
|
+
# p result
|
1593
|
+
#
|
1380
1594
|
def commit request, options = nil
|
1381
1595
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1382
1596
|
|
@@ -1394,9 +1608,11 @@ module Google
|
|
1394
1608
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1395
1609
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1396
1610
|
|
1397
|
-
header_params = {
|
1398
|
-
|
1399
|
-
|
1611
|
+
header_params = {}
|
1612
|
+
if request.session
|
1613
|
+
header_params["session"] = request.session
|
1614
|
+
end
|
1615
|
+
|
1400
1616
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1401
1617
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1402
1618
|
|
@@ -1454,6 +1670,21 @@ module Google
|
|
1454
1670
|
#
|
1455
1671
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1456
1672
|
#
|
1673
|
+
# @example Basic example
|
1674
|
+
# require "google/cloud/spanner/v1"
|
1675
|
+
#
|
1676
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1677
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1678
|
+
#
|
1679
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1680
|
+
# request = Google::Cloud::Spanner::V1::RollbackRequest.new
|
1681
|
+
#
|
1682
|
+
# # Call the rollback method.
|
1683
|
+
# result = client.rollback request
|
1684
|
+
#
|
1685
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1686
|
+
# p result
|
1687
|
+
#
|
1457
1688
|
def rollback request, options = nil
|
1458
1689
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1459
1690
|
|
@@ -1471,9 +1702,11 @@ module Google
|
|
1471
1702
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1472
1703
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1473
1704
|
|
1474
|
-
header_params = {
|
1475
|
-
|
1476
|
-
|
1705
|
+
header_params = {}
|
1706
|
+
if request.session
|
1707
|
+
header_params["session"] = request.session
|
1708
|
+
end
|
1709
|
+
|
1477
1710
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1478
1711
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1479
1712
|
|
@@ -1570,6 +1803,21 @@ module Google
|
|
1570
1803
|
#
|
1571
1804
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1572
1805
|
#
|
1806
|
+
# @example Basic example
|
1807
|
+
# require "google/cloud/spanner/v1"
|
1808
|
+
#
|
1809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1810
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1811
|
+
#
|
1812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1813
|
+
# request = Google::Cloud::Spanner::V1::PartitionQueryRequest.new
|
1814
|
+
#
|
1815
|
+
# # Call the partition_query method.
|
1816
|
+
# result = client.partition_query request
|
1817
|
+
#
|
1818
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::PartitionResponse.
|
1819
|
+
# p result
|
1820
|
+
#
|
1573
1821
|
def partition_query request, options = nil
|
1574
1822
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1575
1823
|
|
@@ -1587,9 +1835,11 @@ module Google
|
|
1587
1835
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1588
1836
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1589
1837
|
|
1590
|
-
header_params = {
|
1591
|
-
|
1592
|
-
|
1838
|
+
header_params = {}
|
1839
|
+
if request.session
|
1840
|
+
header_params["session"] = request.session
|
1841
|
+
end
|
1842
|
+
|
1593
1843
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1594
1844
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1595
1845
|
|
@@ -1672,6 +1922,21 @@ module Google
|
|
1672
1922
|
#
|
1673
1923
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1674
1924
|
#
|
1925
|
+
# @example Basic example
|
1926
|
+
# require "google/cloud/spanner/v1"
|
1927
|
+
#
|
1928
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1929
|
+
# client = Google::Cloud::Spanner::V1::Spanner::Client.new
|
1930
|
+
#
|
1931
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1932
|
+
# request = Google::Cloud::Spanner::V1::PartitionReadRequest.new
|
1933
|
+
#
|
1934
|
+
# # Call the partition_read method.
|
1935
|
+
# result = client.partition_read request
|
1936
|
+
#
|
1937
|
+
# # The returned object is of type Google::Cloud::Spanner::V1::PartitionResponse.
|
1938
|
+
# p result
|
1939
|
+
#
|
1675
1940
|
def partition_read request, options = nil
|
1676
1941
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1677
1942
|
|
@@ -1689,9 +1954,11 @@ module Google
|
|
1689
1954
|
gapic_version: ::Google::Cloud::Spanner::V1::VERSION
|
1690
1955
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1691
1956
|
|
1692
|
-
header_params = {
|
1693
|
-
|
1694
|
-
|
1957
|
+
header_params = {}
|
1958
|
+
if request.session
|
1959
|
+
header_params["session"] = request.session
|
1960
|
+
end
|
1961
|
+
|
1695
1962
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1696
1963
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1697
1964
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/commit_response.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/duration_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/spanner/v1/commit_response.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.spanner.v1.CommitResponse" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/keys.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/struct_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/spanner/v1/keys.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.spanner.v1.KeyRange" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/mutation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/struct_pb'
|
7
5
|
require 'google/spanner/v1/keys_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/spanner/v1/mutation.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.spanner.v1.Mutation" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/query_plan.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/struct_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/spanner/v1/query_plan.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.spanner.v1.PlanNode" do
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/result_set.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/struct_pb'
|
7
5
|
require 'google/spanner/v1/query_plan_pb'
|
8
6
|
require 'google/spanner/v1/transaction_pb'
|
9
7
|
require 'google/spanner/v1/type_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/spanner/v1/result_set.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.spanner.v1.ResultSet" do
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/spanner.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/spanner/v1/commit_response_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
8
6
|
require 'google/api/client_pb'
|
@@ -17,6 +15,8 @@ require 'google/spanner/v1/mutation_pb'
|
|
17
15
|
require 'google/spanner/v1/result_set_pb'
|
18
16
|
require 'google/spanner/v1/transaction_pb'
|
19
17
|
require 'google/spanner/v1/type_pb'
|
18
|
+
require 'google/protobuf'
|
19
|
+
|
20
20
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
21
21
|
add_file("google/spanner/v1/spanner.proto", :syntax => :proto3) do
|
22
22
|
add_message "google.spanner.v1.CreateSessionRequest" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/transaction.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/duration_pb'
|
7
5
|
require 'google/protobuf/timestamp_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/spanner/v1/transaction.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.spanner.v1.TransactionOptions" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/spanner/v1/type.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/spanner/v1/type.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.spanner.v1.Type" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-spanner-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
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
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|