google-cloud-bigtable-admin-v2 0.5.4 → 0.7.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 +3 -3
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_pb.rb +2 -2
- data/lib/google/bigtable/admin/v2/bigtable_instance_admin_services_pb.rb +1 -1
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_pb.rb +2 -2
- data/lib/google/bigtable/admin/v2/bigtable_table_admin_services_pb.rb +1 -1
- data/lib/google/bigtable/admin/v2/common_pb.rb +1 -1
- data/lib/google/bigtable/admin/v2/instance_pb.rb +6 -2
- data/lib/google/bigtable/admin/v2/table_pb.rb +2 -2
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/client.rb +421 -57
- data/lib/google/cloud/bigtable/admin/v2/bigtable_instance_admin/operations.rb +115 -12
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/client.rb +486 -66
- data/lib/google/cloud/bigtable/admin/v2/bigtable_table_admin/operations.rb +115 -12
- data/lib/google/cloud/bigtable/admin/v2/version.rb +1 -1
- data/proto_docs/google/bigtable/admin/v2/instance.rb +9 -0
- metadata +3 -4
@@ -276,6 +276,28 @@ module Google
|
|
276
276
|
#
|
277
277
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
278
278
|
#
|
279
|
+
# @example Basic example
|
280
|
+
# require "google/cloud/bigtable/admin/v2"
|
281
|
+
#
|
282
|
+
# # Create a client object. The client can be reused for multiple calls.
|
283
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
284
|
+
#
|
285
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
286
|
+
# request = Google::Cloud::Bigtable::Admin::V2::CreateInstanceRequest.new
|
287
|
+
#
|
288
|
+
# # Call the create_instance method.
|
289
|
+
# result = client.create_instance request
|
290
|
+
#
|
291
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
292
|
+
# # object to check the status of an operation, cancel it, or wait
|
293
|
+
# # for results. Here is how to block until completion:
|
294
|
+
# result.wait_until_done! timeout: 60
|
295
|
+
# if result.response?
|
296
|
+
# p result.response
|
297
|
+
# else
|
298
|
+
# puts "Error!"
|
299
|
+
# end
|
300
|
+
#
|
279
301
|
def create_instance request, options = nil
|
280
302
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
303
|
|
@@ -293,9 +315,11 @@ module Google
|
|
293
315
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
294
316
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
317
|
|
296
|
-
header_params = {
|
297
|
-
|
298
|
-
|
318
|
+
header_params = {}
|
319
|
+
if request.parent
|
320
|
+
header_params["parent"] = request.parent
|
321
|
+
end
|
322
|
+
|
299
323
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
300
324
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
301
325
|
|
@@ -346,6 +370,21 @@ module Google
|
|
346
370
|
#
|
347
371
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
348
372
|
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/bigtable/admin/v2"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::Bigtable::Admin::V2::GetInstanceRequest.new
|
381
|
+
#
|
382
|
+
# # Call the get_instance method.
|
383
|
+
# result = client.get_instance request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance.
|
386
|
+
# p result
|
387
|
+
#
|
349
388
|
def get_instance request, options = nil
|
350
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
351
390
|
|
@@ -363,9 +402,11 @@ module Google
|
|
363
402
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
364
403
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
365
404
|
|
366
|
-
header_params = {
|
367
|
-
|
368
|
-
|
405
|
+
header_params = {}
|
406
|
+
if request.name
|
407
|
+
header_params["name"] = request.name
|
408
|
+
end
|
409
|
+
|
369
410
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
370
411
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
371
412
|
|
@@ -417,6 +458,21 @@ module Google
|
|
417
458
|
#
|
418
459
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
419
460
|
#
|
461
|
+
# @example Basic example
|
462
|
+
# require "google/cloud/bigtable/admin/v2"
|
463
|
+
#
|
464
|
+
# # Create a client object. The client can be reused for multiple calls.
|
465
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
466
|
+
#
|
467
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
468
|
+
# request = Google::Cloud::Bigtable::Admin::V2::ListInstancesRequest.new
|
469
|
+
#
|
470
|
+
# # Call the list_instances method.
|
471
|
+
# result = client.list_instances request
|
472
|
+
#
|
473
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListInstancesResponse.
|
474
|
+
# p result
|
475
|
+
#
|
420
476
|
def list_instances request, options = nil
|
421
477
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
478
|
|
@@ -434,9 +490,11 @@ module Google
|
|
434
490
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
435
491
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
436
492
|
|
437
|
-
header_params = {
|
438
|
-
|
439
|
-
|
493
|
+
header_params = {}
|
494
|
+
if request.parent
|
495
|
+
header_params["parent"] = request.parent
|
496
|
+
end
|
497
|
+
|
440
498
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
441
499
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
442
500
|
|
@@ -506,6 +564,21 @@ module Google
|
|
506
564
|
#
|
507
565
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
508
566
|
#
|
567
|
+
# @example Basic example
|
568
|
+
# require "google/cloud/bigtable/admin/v2"
|
569
|
+
#
|
570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
571
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
572
|
+
#
|
573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
574
|
+
# request = Google::Cloud::Bigtable::Admin::V2::Instance.new
|
575
|
+
#
|
576
|
+
# # Call the update_instance method.
|
577
|
+
# result = client.update_instance request
|
578
|
+
#
|
579
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Instance.
|
580
|
+
# p result
|
581
|
+
#
|
509
582
|
def update_instance request, options = nil
|
510
583
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
584
|
|
@@ -523,9 +596,11 @@ module Google
|
|
523
596
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
524
597
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
525
598
|
|
526
|
-
header_params = {
|
527
|
-
|
528
|
-
|
599
|
+
header_params = {}
|
600
|
+
if request.name
|
601
|
+
header_params["name"] = request.name
|
602
|
+
end
|
603
|
+
|
529
604
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
530
605
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
531
606
|
|
@@ -578,6 +653,28 @@ module Google
|
|
578
653
|
#
|
579
654
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
580
655
|
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/bigtable/admin/v2"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::Bigtable::Admin::V2::PartialUpdateInstanceRequest.new
|
664
|
+
#
|
665
|
+
# # Call the partial_update_instance method.
|
666
|
+
# result = client.partial_update_instance request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
669
|
+
# # object to check the status of an operation, cancel it, or wait
|
670
|
+
# # for results. Here is how to block until completion:
|
671
|
+
# result.wait_until_done! timeout: 60
|
672
|
+
# if result.response?
|
673
|
+
# p result.response
|
674
|
+
# else
|
675
|
+
# puts "Error!"
|
676
|
+
# end
|
677
|
+
#
|
581
678
|
def partial_update_instance request, options = nil
|
582
679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
583
680
|
|
@@ -595,9 +692,11 @@ module Google
|
|
595
692
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
596
693
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
597
694
|
|
598
|
-
header_params = {
|
599
|
-
|
600
|
-
|
695
|
+
header_params = {}
|
696
|
+
if request.instance&.name
|
697
|
+
header_params["instance.name"] = request.instance.name
|
698
|
+
end
|
699
|
+
|
601
700
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
602
701
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
603
702
|
|
@@ -648,6 +747,21 @@ module Google
|
|
648
747
|
#
|
649
748
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
650
749
|
#
|
750
|
+
# @example Basic example
|
751
|
+
# require "google/cloud/bigtable/admin/v2"
|
752
|
+
#
|
753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
754
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
755
|
+
#
|
756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
757
|
+
# request = Google::Cloud::Bigtable::Admin::V2::DeleteInstanceRequest.new
|
758
|
+
#
|
759
|
+
# # Call the delete_instance method.
|
760
|
+
# result = client.delete_instance request
|
761
|
+
#
|
762
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
763
|
+
# p result
|
764
|
+
#
|
651
765
|
def delete_instance request, options = nil
|
652
766
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
653
767
|
|
@@ -665,9 +779,11 @@ module Google
|
|
665
779
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
666
780
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
667
781
|
|
668
|
-
header_params = {
|
669
|
-
|
670
|
-
|
782
|
+
header_params = {}
|
783
|
+
if request.name
|
784
|
+
header_params["name"] = request.name
|
785
|
+
end
|
786
|
+
|
671
787
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
672
788
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
673
789
|
|
@@ -725,6 +841,28 @@ module Google
|
|
725
841
|
#
|
726
842
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
727
843
|
#
|
844
|
+
# @example Basic example
|
845
|
+
# require "google/cloud/bigtable/admin/v2"
|
846
|
+
#
|
847
|
+
# # Create a client object. The client can be reused for multiple calls.
|
848
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
849
|
+
#
|
850
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
851
|
+
# request = Google::Cloud::Bigtable::Admin::V2::CreateClusterRequest.new
|
852
|
+
#
|
853
|
+
# # Call the create_cluster method.
|
854
|
+
# result = client.create_cluster request
|
855
|
+
#
|
856
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
857
|
+
# # object to check the status of an operation, cancel it, or wait
|
858
|
+
# # for results. Here is how to block until completion:
|
859
|
+
# result.wait_until_done! timeout: 60
|
860
|
+
# if result.response?
|
861
|
+
# p result.response
|
862
|
+
# else
|
863
|
+
# puts "Error!"
|
864
|
+
# end
|
865
|
+
#
|
728
866
|
def create_cluster request, options = nil
|
729
867
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
730
868
|
|
@@ -742,9 +880,11 @@ module Google
|
|
742
880
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
743
881
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
882
|
|
745
|
-
header_params = {
|
746
|
-
|
747
|
-
|
883
|
+
header_params = {}
|
884
|
+
if request.parent
|
885
|
+
header_params["parent"] = request.parent
|
886
|
+
end
|
887
|
+
|
748
888
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
749
889
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
750
890
|
|
@@ -795,6 +935,21 @@ module Google
|
|
795
935
|
#
|
796
936
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
797
937
|
#
|
938
|
+
# @example Basic example
|
939
|
+
# require "google/cloud/bigtable/admin/v2"
|
940
|
+
#
|
941
|
+
# # Create a client object. The client can be reused for multiple calls.
|
942
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
943
|
+
#
|
944
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
945
|
+
# request = Google::Cloud::Bigtable::Admin::V2::GetClusterRequest.new
|
946
|
+
#
|
947
|
+
# # Call the get_cluster method.
|
948
|
+
# result = client.get_cluster request
|
949
|
+
#
|
950
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::Cluster.
|
951
|
+
# p result
|
952
|
+
#
|
798
953
|
def get_cluster request, options = nil
|
799
954
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
800
955
|
|
@@ -812,9 +967,11 @@ module Google
|
|
812
967
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
813
968
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
814
969
|
|
815
|
-
header_params = {
|
816
|
-
|
817
|
-
|
970
|
+
header_params = {}
|
971
|
+
if request.name
|
972
|
+
header_params["name"] = request.name
|
973
|
+
end
|
974
|
+
|
818
975
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
819
976
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
820
977
|
|
@@ -868,6 +1025,21 @@ module Google
|
|
868
1025
|
#
|
869
1026
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
870
1027
|
#
|
1028
|
+
# @example Basic example
|
1029
|
+
# require "google/cloud/bigtable/admin/v2"
|
1030
|
+
#
|
1031
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1032
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1033
|
+
#
|
1034
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1035
|
+
# request = Google::Cloud::Bigtable::Admin::V2::ListClustersRequest.new
|
1036
|
+
#
|
1037
|
+
# # Call the list_clusters method.
|
1038
|
+
# result = client.list_clusters request
|
1039
|
+
#
|
1040
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::ListClustersResponse.
|
1041
|
+
# p result
|
1042
|
+
#
|
871
1043
|
def list_clusters request, options = nil
|
872
1044
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
873
1045
|
|
@@ -885,9 +1057,11 @@ module Google
|
|
885
1057
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
886
1058
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
887
1059
|
|
888
|
-
header_params = {
|
889
|
-
|
890
|
-
|
1060
|
+
header_params = {}
|
1061
|
+
if request.parent
|
1062
|
+
header_params["parent"] = request.parent
|
1063
|
+
end
|
1064
|
+
|
891
1065
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
892
1066
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
893
1067
|
|
@@ -949,6 +1123,28 @@ module Google
|
|
949
1123
|
#
|
950
1124
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
951
1125
|
#
|
1126
|
+
# @example Basic example
|
1127
|
+
# require "google/cloud/bigtable/admin/v2"
|
1128
|
+
#
|
1129
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1130
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1131
|
+
#
|
1132
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1133
|
+
# request = Google::Cloud::Bigtable::Admin::V2::Cluster.new
|
1134
|
+
#
|
1135
|
+
# # Call the update_cluster method.
|
1136
|
+
# result = client.update_cluster request
|
1137
|
+
#
|
1138
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1139
|
+
# # object to check the status of an operation, cancel it, or wait
|
1140
|
+
# # for results. Here is how to block until completion:
|
1141
|
+
# result.wait_until_done! timeout: 60
|
1142
|
+
# if result.response?
|
1143
|
+
# p result.response
|
1144
|
+
# else
|
1145
|
+
# puts "Error!"
|
1146
|
+
# end
|
1147
|
+
#
|
952
1148
|
def update_cluster request, options = nil
|
953
1149
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
954
1150
|
|
@@ -966,9 +1162,11 @@ module Google
|
|
966
1162
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
967
1163
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
968
1164
|
|
969
|
-
header_params = {
|
970
|
-
|
971
|
-
|
1165
|
+
header_params = {}
|
1166
|
+
if request.name
|
1167
|
+
header_params["name"] = request.name
|
1168
|
+
end
|
1169
|
+
|
972
1170
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
973
1171
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
974
1172
|
|
@@ -1019,6 +1217,21 @@ module Google
|
|
1019
1217
|
#
|
1020
1218
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1021
1219
|
#
|
1220
|
+
# @example Basic example
|
1221
|
+
# require "google/cloud/bigtable/admin/v2"
|
1222
|
+
#
|
1223
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1224
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1225
|
+
#
|
1226
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1227
|
+
# request = Google::Cloud::Bigtable::Admin::V2::DeleteClusterRequest.new
|
1228
|
+
#
|
1229
|
+
# # Call the delete_cluster method.
|
1230
|
+
# result = client.delete_cluster request
|
1231
|
+
#
|
1232
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1233
|
+
# p result
|
1234
|
+
#
|
1022
1235
|
def delete_cluster request, options = nil
|
1023
1236
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1024
1237
|
|
@@ -1036,9 +1249,11 @@ module Google
|
|
1036
1249
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1037
1250
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1038
1251
|
|
1039
|
-
header_params = {
|
1040
|
-
|
1041
|
-
|
1252
|
+
header_params = {}
|
1253
|
+
if request.name
|
1254
|
+
header_params["name"] = request.name
|
1255
|
+
end
|
1256
|
+
|
1042
1257
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1043
1258
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1044
1259
|
|
@@ -1098,6 +1313,21 @@ module Google
|
|
1098
1313
|
#
|
1099
1314
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1100
1315
|
#
|
1316
|
+
# @example Basic example
|
1317
|
+
# require "google/cloud/bigtable/admin/v2"
|
1318
|
+
#
|
1319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1320
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1321
|
+
#
|
1322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1323
|
+
# request = Google::Cloud::Bigtable::Admin::V2::CreateAppProfileRequest.new
|
1324
|
+
#
|
1325
|
+
# # Call the create_app_profile method.
|
1326
|
+
# result = client.create_app_profile request
|
1327
|
+
#
|
1328
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile.
|
1329
|
+
# p result
|
1330
|
+
#
|
1101
1331
|
def create_app_profile request, options = nil
|
1102
1332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1103
1333
|
|
@@ -1115,9 +1345,11 @@ module Google
|
|
1115
1345
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1116
1346
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1117
1347
|
|
1118
|
-
header_params = {
|
1119
|
-
|
1120
|
-
|
1348
|
+
header_params = {}
|
1349
|
+
if request.parent
|
1350
|
+
header_params["parent"] = request.parent
|
1351
|
+
end
|
1352
|
+
|
1121
1353
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1122
1354
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1123
1355
|
|
@@ -1167,6 +1399,21 @@ module Google
|
|
1167
1399
|
#
|
1168
1400
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1169
1401
|
#
|
1402
|
+
# @example Basic example
|
1403
|
+
# require "google/cloud/bigtable/admin/v2"
|
1404
|
+
#
|
1405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1406
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1407
|
+
#
|
1408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1409
|
+
# request = Google::Cloud::Bigtable::Admin::V2::GetAppProfileRequest.new
|
1410
|
+
#
|
1411
|
+
# # Call the get_app_profile method.
|
1412
|
+
# result = client.get_app_profile request
|
1413
|
+
#
|
1414
|
+
# # The returned object is of type Google::Cloud::Bigtable::Admin::V2::AppProfile.
|
1415
|
+
# p result
|
1416
|
+
#
|
1170
1417
|
def get_app_profile request, options = nil
|
1171
1418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1172
1419
|
|
@@ -1184,9 +1431,11 @@ module Google
|
|
1184
1431
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1185
1432
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1186
1433
|
|
1187
|
-
header_params = {
|
1188
|
-
|
1189
|
-
|
1434
|
+
header_params = {}
|
1435
|
+
if request.name
|
1436
|
+
header_params["name"] = request.name
|
1437
|
+
end
|
1438
|
+
|
1190
1439
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1191
1440
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1192
1441
|
|
@@ -1251,6 +1500,27 @@ module Google
|
|
1251
1500
|
#
|
1252
1501
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1253
1502
|
#
|
1503
|
+
# @example Basic example
|
1504
|
+
# require "google/cloud/bigtable/admin/v2"
|
1505
|
+
#
|
1506
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1507
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1508
|
+
#
|
1509
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1510
|
+
# request = Google::Cloud::Bigtable::Admin::V2::ListAppProfilesRequest.new
|
1511
|
+
#
|
1512
|
+
# # Call the list_app_profiles method.
|
1513
|
+
# result = client.list_app_profiles request
|
1514
|
+
#
|
1515
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1516
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1517
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1518
|
+
# # methods are also available for managing paging directly.
|
1519
|
+
# result.each do |response|
|
1520
|
+
# # Each element is of type ::Google::Cloud::Bigtable::Admin::V2::AppProfile.
|
1521
|
+
# p response
|
1522
|
+
# end
|
1523
|
+
#
|
1254
1524
|
def list_app_profiles request, options = nil
|
1255
1525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1256
1526
|
|
@@ -1268,9 +1538,11 @@ module Google
|
|
1268
1538
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1269
1539
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1270
1540
|
|
1271
|
-
header_params = {
|
1272
|
-
|
1273
|
-
|
1541
|
+
header_params = {}
|
1542
|
+
if request.parent
|
1543
|
+
header_params["parent"] = request.parent
|
1544
|
+
end
|
1545
|
+
|
1274
1546
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1275
1547
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1276
1548
|
|
@@ -1325,6 +1597,28 @@ module Google
|
|
1325
1597
|
#
|
1326
1598
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1327
1599
|
#
|
1600
|
+
# @example Basic example
|
1601
|
+
# require "google/cloud/bigtable/admin/v2"
|
1602
|
+
#
|
1603
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1604
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1605
|
+
#
|
1606
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1607
|
+
# request = Google::Cloud::Bigtable::Admin::V2::UpdateAppProfileRequest.new
|
1608
|
+
#
|
1609
|
+
# # Call the update_app_profile method.
|
1610
|
+
# result = client.update_app_profile request
|
1611
|
+
#
|
1612
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1613
|
+
# # object to check the status of an operation, cancel it, or wait
|
1614
|
+
# # for results. Here is how to block until completion:
|
1615
|
+
# result.wait_until_done! timeout: 60
|
1616
|
+
# if result.response?
|
1617
|
+
# p result.response
|
1618
|
+
# else
|
1619
|
+
# puts "Error!"
|
1620
|
+
# end
|
1621
|
+
#
|
1328
1622
|
def update_app_profile request, options = nil
|
1329
1623
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1330
1624
|
|
@@ -1342,9 +1636,11 @@ module Google
|
|
1342
1636
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1343
1637
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1344
1638
|
|
1345
|
-
header_params = {
|
1346
|
-
|
1347
|
-
|
1639
|
+
header_params = {}
|
1640
|
+
if request.app_profile&.name
|
1641
|
+
header_params["app_profile.name"] = request.app_profile.name
|
1642
|
+
end
|
1643
|
+
|
1348
1644
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1349
1645
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1350
1646
|
|
@@ -1397,6 +1693,21 @@ module Google
|
|
1397
1693
|
#
|
1398
1694
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1399
1695
|
#
|
1696
|
+
# @example Basic example
|
1697
|
+
# require "google/cloud/bigtable/admin/v2"
|
1698
|
+
#
|
1699
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1700
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1701
|
+
#
|
1702
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1703
|
+
# request = Google::Cloud::Bigtable::Admin::V2::DeleteAppProfileRequest.new
|
1704
|
+
#
|
1705
|
+
# # Call the delete_app_profile method.
|
1706
|
+
# result = client.delete_app_profile request
|
1707
|
+
#
|
1708
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1709
|
+
# p result
|
1710
|
+
#
|
1400
1711
|
def delete_app_profile request, options = nil
|
1401
1712
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1402
1713
|
|
@@ -1414,9 +1725,11 @@ module Google
|
|
1414
1725
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1415
1726
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1416
1727
|
|
1417
|
-
header_params = {
|
1418
|
-
|
1419
|
-
|
1728
|
+
header_params = {}
|
1729
|
+
if request.name
|
1730
|
+
header_params["name"] = request.name
|
1731
|
+
end
|
1732
|
+
|
1420
1733
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1421
1734
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1422
1735
|
|
@@ -1470,6 +1783,21 @@ module Google
|
|
1470
1783
|
#
|
1471
1784
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1472
1785
|
#
|
1786
|
+
# @example Basic example
|
1787
|
+
# require "google/cloud/bigtable/admin/v2"
|
1788
|
+
#
|
1789
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1790
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1791
|
+
#
|
1792
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1793
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
1794
|
+
#
|
1795
|
+
# # Call the get_iam_policy method.
|
1796
|
+
# result = client.get_iam_policy request
|
1797
|
+
#
|
1798
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1799
|
+
# p result
|
1800
|
+
#
|
1473
1801
|
def get_iam_policy request, options = nil
|
1474
1802
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1475
1803
|
|
@@ -1487,9 +1815,11 @@ module Google
|
|
1487
1815
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1488
1816
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1489
1817
|
|
1490
|
-
header_params = {
|
1491
|
-
|
1492
|
-
|
1818
|
+
header_params = {}
|
1819
|
+
if request.resource
|
1820
|
+
header_params["resource"] = request.resource
|
1821
|
+
end
|
1822
|
+
|
1493
1823
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1494
1824
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1495
1825
|
|
@@ -1545,6 +1875,21 @@ module Google
|
|
1545
1875
|
#
|
1546
1876
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1547
1877
|
#
|
1878
|
+
# @example Basic example
|
1879
|
+
# require "google/cloud/bigtable/admin/v2"
|
1880
|
+
#
|
1881
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1882
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1883
|
+
#
|
1884
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1885
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
1886
|
+
#
|
1887
|
+
# # Call the set_iam_policy method.
|
1888
|
+
# result = client.set_iam_policy request
|
1889
|
+
#
|
1890
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
1891
|
+
# p result
|
1892
|
+
#
|
1548
1893
|
def set_iam_policy request, options = nil
|
1549
1894
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1550
1895
|
|
@@ -1562,9 +1907,11 @@ module Google
|
|
1562
1907
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1563
1908
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1564
1909
|
|
1565
|
-
header_params = {
|
1566
|
-
|
1567
|
-
|
1910
|
+
header_params = {}
|
1911
|
+
if request.resource
|
1912
|
+
header_params["resource"] = request.resource
|
1913
|
+
end
|
1914
|
+
|
1568
1915
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1569
1916
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1570
1917
|
|
@@ -1619,6 +1966,21 @@ module Google
|
|
1619
1966
|
#
|
1620
1967
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1621
1968
|
#
|
1969
|
+
# @example Basic example
|
1970
|
+
# require "google/cloud/bigtable/admin/v2"
|
1971
|
+
#
|
1972
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1973
|
+
# client = Google::Cloud::Bigtable::Admin::V2::BigtableInstanceAdmin::Client.new
|
1974
|
+
#
|
1975
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1976
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
1977
|
+
#
|
1978
|
+
# # Call the test_iam_permissions method.
|
1979
|
+
# result = client.test_iam_permissions request
|
1980
|
+
#
|
1981
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
1982
|
+
# p result
|
1983
|
+
#
|
1622
1984
|
def test_iam_permissions request, options = nil
|
1623
1985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1624
1986
|
|
@@ -1636,9 +1998,11 @@ module Google
|
|
1636
1998
|
gapic_version: ::Google::Cloud::Bigtable::Admin::V2::VERSION
|
1637
1999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1638
2000
|
|
1639
|
-
header_params = {
|
1640
|
-
|
1641
|
-
|
2001
|
+
header_params = {}
|
2002
|
+
if request.resource
|
2003
|
+
header_params["resource"] = request.resource
|
2004
|
+
end
|
2005
|
+
|
1642
2006
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1643
2007
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1644
2008
|
|