google-cloud-bigquery-connection-v1 0.5.1 → 0.5.2
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/lib/google/cloud/bigquery/connection/v1/connection_pb.rb +2 -2
- data/lib/google/cloud/bigquery/connection/v1/connection_service/client.rb +166 -24
- data/lib/google/cloud/bigquery/connection/v1/connection_services_pb.rb +1 -1
- data/lib/google/cloud/bigquery/connection/v1/version.rb +1 -1
- 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: 487013f3885e23811eafe2566bf728c5519b2158f0e32a2b768e0dd567bbff82
|
|
4
|
+
data.tar.gz: 94782071919c707deba4f918dce7dedc887576a93bfae9bc896d5e8f331a44ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e453fb4312a2f065aed892164220130838138873f73deb84381a50025babef96b72dcb67d44343c800cde64db87b6ff6e430bf8f52d912b3a0dfe74f4eade60f
|
|
7
|
+
data.tar.gz: 63f2d8b7f7f93e938af786bf8561e77db05492d61f23dde286db04d2d0f87346df84a7962e46ec262a1a7d26dec0a9261b6e3249e7486b17d26505f270c42506
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/bigquery/connection/v1/connection.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'
|
|
@@ -12,6 +10,8 @@ require 'google/iam/v1/policy_pb'
|
|
|
12
10
|
require 'google/protobuf/empty_pb'
|
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
|
14
12
|
require 'google/protobuf/wrappers_pb'
|
|
13
|
+
require 'google/protobuf'
|
|
14
|
+
|
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
16
16
|
add_file("google/cloud/bigquery/connection/v1/connection.proto", :syntax => :proto3) do
|
|
17
17
|
add_message "google.cloud.bigquery.connection.v1.CreateConnectionRequest" do
|
|
@@ -204,6 +204,21 @@ module Google
|
|
|
204
204
|
#
|
|
205
205
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
206
206
|
#
|
|
207
|
+
# @example Basic example
|
|
208
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
209
|
+
#
|
|
210
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
211
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
212
|
+
#
|
|
213
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
214
|
+
# request = Google::Cloud::Bigquery::Connection::V1::CreateConnectionRequest.new
|
|
215
|
+
#
|
|
216
|
+
# # Call the create_connection method.
|
|
217
|
+
# result = client.create_connection request
|
|
218
|
+
#
|
|
219
|
+
# # The returned object is of type Google::Cloud::Bigquery::Connection::V1::Connection.
|
|
220
|
+
# p result
|
|
221
|
+
#
|
|
207
222
|
def create_connection request, options = nil
|
|
208
223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
209
224
|
|
|
@@ -221,9 +236,11 @@ module Google
|
|
|
221
236
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
222
237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
223
238
|
|
|
224
|
-
header_params = {
|
|
225
|
-
|
|
226
|
-
|
|
239
|
+
header_params = {}
|
|
240
|
+
if request.parent
|
|
241
|
+
header_params["parent"] = request.parent
|
|
242
|
+
end
|
|
243
|
+
|
|
227
244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
228
245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
229
246
|
|
|
@@ -273,6 +290,21 @@ module Google
|
|
|
273
290
|
#
|
|
274
291
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
275
292
|
#
|
|
293
|
+
# @example Basic example
|
|
294
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
295
|
+
#
|
|
296
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
297
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
298
|
+
#
|
|
299
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
300
|
+
# request = Google::Cloud::Bigquery::Connection::V1::GetConnectionRequest.new
|
|
301
|
+
#
|
|
302
|
+
# # Call the get_connection method.
|
|
303
|
+
# result = client.get_connection request
|
|
304
|
+
#
|
|
305
|
+
# # The returned object is of type Google::Cloud::Bigquery::Connection::V1::Connection.
|
|
306
|
+
# p result
|
|
307
|
+
#
|
|
276
308
|
def get_connection request, options = nil
|
|
277
309
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
278
310
|
|
|
@@ -290,9 +322,11 @@ module Google
|
|
|
290
322
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
291
323
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
292
324
|
|
|
293
|
-
header_params = {
|
|
294
|
-
|
|
295
|
-
|
|
325
|
+
header_params = {}
|
|
326
|
+
if request.name
|
|
327
|
+
header_params["name"] = request.name
|
|
328
|
+
end
|
|
329
|
+
|
|
296
330
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
297
331
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
298
332
|
|
|
@@ -346,6 +380,27 @@ module Google
|
|
|
346
380
|
#
|
|
347
381
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
348
382
|
#
|
|
383
|
+
# @example Basic example
|
|
384
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
385
|
+
#
|
|
386
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
387
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
388
|
+
#
|
|
389
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
390
|
+
# request = Google::Cloud::Bigquery::Connection::V1::ListConnectionsRequest.new
|
|
391
|
+
#
|
|
392
|
+
# # Call the list_connections method.
|
|
393
|
+
# result = client.list_connections request
|
|
394
|
+
#
|
|
395
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
396
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
397
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
398
|
+
# # methods are also available for managing paging directly.
|
|
399
|
+
# result.each do |response|
|
|
400
|
+
# # Each element is of type ::Google::Cloud::Bigquery::Connection::V1::Connection.
|
|
401
|
+
# p response
|
|
402
|
+
# end
|
|
403
|
+
#
|
|
349
404
|
def list_connections request, options = nil
|
|
350
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
351
406
|
|
|
@@ -363,9 +418,11 @@ module Google
|
|
|
363
418
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
364
419
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
365
420
|
|
|
366
|
-
header_params = {
|
|
367
|
-
|
|
368
|
-
|
|
421
|
+
header_params = {}
|
|
422
|
+
if request.parent
|
|
423
|
+
header_params["parent"] = request.parent
|
|
424
|
+
end
|
|
425
|
+
|
|
369
426
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
370
427
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
371
428
|
|
|
@@ -421,6 +478,21 @@ module Google
|
|
|
421
478
|
#
|
|
422
479
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
423
480
|
#
|
|
481
|
+
# @example Basic example
|
|
482
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
483
|
+
#
|
|
484
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
485
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
486
|
+
#
|
|
487
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
488
|
+
# request = Google::Cloud::Bigquery::Connection::V1::UpdateConnectionRequest.new
|
|
489
|
+
#
|
|
490
|
+
# # Call the update_connection method.
|
|
491
|
+
# result = client.update_connection request
|
|
492
|
+
#
|
|
493
|
+
# # The returned object is of type Google::Cloud::Bigquery::Connection::V1::Connection.
|
|
494
|
+
# p result
|
|
495
|
+
#
|
|
424
496
|
def update_connection request, options = nil
|
|
425
497
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
426
498
|
|
|
@@ -438,9 +510,11 @@ module Google
|
|
|
438
510
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
439
511
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
440
512
|
|
|
441
|
-
header_params = {
|
|
442
|
-
|
|
443
|
-
|
|
513
|
+
header_params = {}
|
|
514
|
+
if request.name
|
|
515
|
+
header_params["name"] = request.name
|
|
516
|
+
end
|
|
517
|
+
|
|
444
518
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
445
519
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
446
520
|
|
|
@@ -490,6 +564,21 @@ module Google
|
|
|
490
564
|
#
|
|
491
565
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
492
566
|
#
|
|
567
|
+
# @example Basic example
|
|
568
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
569
|
+
#
|
|
570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
571
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
572
|
+
#
|
|
573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
574
|
+
# request = Google::Cloud::Bigquery::Connection::V1::DeleteConnectionRequest.new
|
|
575
|
+
#
|
|
576
|
+
# # Call the delete_connection method.
|
|
577
|
+
# result = client.delete_connection request
|
|
578
|
+
#
|
|
579
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
580
|
+
# p result
|
|
581
|
+
#
|
|
493
582
|
def delete_connection request, options = nil
|
|
494
583
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
495
584
|
|
|
@@ -507,9 +596,11 @@ module Google
|
|
|
507
596
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
508
597
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
509
598
|
|
|
510
|
-
header_params = {
|
|
511
|
-
|
|
512
|
-
|
|
599
|
+
header_params = {}
|
|
600
|
+
if request.name
|
|
601
|
+
header_params["name"] = request.name
|
|
602
|
+
end
|
|
603
|
+
|
|
513
604
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
514
605
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
515
606
|
|
|
@@ -564,6 +655,21 @@ module Google
|
|
|
564
655
|
#
|
|
565
656
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
566
657
|
#
|
|
658
|
+
# @example Basic example
|
|
659
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
660
|
+
#
|
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
662
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
663
|
+
#
|
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
665
|
+
# request = Google::Iam::V1::GetIamPolicyRequest.new
|
|
666
|
+
#
|
|
667
|
+
# # Call the get_iam_policy method.
|
|
668
|
+
# result = client.get_iam_policy request
|
|
669
|
+
#
|
|
670
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
671
|
+
# p result
|
|
672
|
+
#
|
|
567
673
|
def get_iam_policy request, options = nil
|
|
568
674
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
569
675
|
|
|
@@ -581,9 +687,11 @@ module Google
|
|
|
581
687
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
582
688
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
583
689
|
|
|
584
|
-
header_params = {
|
|
585
|
-
|
|
586
|
-
|
|
690
|
+
header_params = {}
|
|
691
|
+
if request.resource
|
|
692
|
+
header_params["resource"] = request.resource
|
|
693
|
+
end
|
|
694
|
+
|
|
587
695
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
588
696
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
589
697
|
|
|
@@ -641,6 +749,21 @@ module Google
|
|
|
641
749
|
#
|
|
642
750
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
643
751
|
#
|
|
752
|
+
# @example Basic example
|
|
753
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
754
|
+
#
|
|
755
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
756
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
757
|
+
#
|
|
758
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
759
|
+
# request = Google::Iam::V1::SetIamPolicyRequest.new
|
|
760
|
+
#
|
|
761
|
+
# # Call the set_iam_policy method.
|
|
762
|
+
# result = client.set_iam_policy request
|
|
763
|
+
#
|
|
764
|
+
# # The returned object is of type Google::Iam::V1::Policy.
|
|
765
|
+
# p result
|
|
766
|
+
#
|
|
644
767
|
def set_iam_policy request, options = nil
|
|
645
768
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
646
769
|
|
|
@@ -658,9 +781,11 @@ module Google
|
|
|
658
781
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
659
782
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
660
783
|
|
|
661
|
-
header_params = {
|
|
662
|
-
|
|
663
|
-
|
|
784
|
+
header_params = {}
|
|
785
|
+
if request.resource
|
|
786
|
+
header_params["resource"] = request.resource
|
|
787
|
+
end
|
|
788
|
+
|
|
664
789
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
665
790
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
666
791
|
|
|
@@ -721,6 +846,21 @@ module Google
|
|
|
721
846
|
#
|
|
722
847
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
723
848
|
#
|
|
849
|
+
# @example Basic example
|
|
850
|
+
# require "google/cloud/bigquery/connection/v1"
|
|
851
|
+
#
|
|
852
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
853
|
+
# client = Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
|
|
854
|
+
#
|
|
855
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
856
|
+
# request = Google::Iam::V1::TestIamPermissionsRequest.new
|
|
857
|
+
#
|
|
858
|
+
# # Call the test_iam_permissions method.
|
|
859
|
+
# result = client.test_iam_permissions request
|
|
860
|
+
#
|
|
861
|
+
# # The returned object is of type Google::Iam::V1::TestIamPermissionsResponse.
|
|
862
|
+
# p result
|
|
863
|
+
#
|
|
724
864
|
def test_iam_permissions request, options = nil
|
|
725
865
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
726
866
|
|
|
@@ -738,9 +878,11 @@ module Google
|
|
|
738
878
|
gapic_version: ::Google::Cloud::Bigquery::Connection::V1::VERSION
|
|
739
879
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
740
880
|
|
|
741
|
-
header_params = {
|
|
742
|
-
|
|
743
|
-
|
|
881
|
+
header_params = {}
|
|
882
|
+
if request.resource
|
|
883
|
+
header_params["resource"] = request.resource
|
|
884
|
+
end
|
|
885
|
+
|
|
744
886
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
745
887
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
746
888
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-bigquery-connection-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
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
|