google-cloud-bigquery-connection-v1 0.5.1 → 0.6.0

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: 66f974959ff00f1b2d16bd6069d509214eb2ae80fe9c08496ea68b0df4517900
4
- data.tar.gz: 2333219c4b472e93c639a1807a6b942e7533385d4b7bbb6d59f92ba701ab32c7
3
+ metadata.gz: 2212930b473af40f84dd119ba218805b621214114f08ebe4ef9d60800b8bbee8
4
+ data.tar.gz: 4ba0f8beba245b2a44e656b417e39ea2032e8aea165994fec5f1d019c9aebe5b
5
5
  SHA512:
6
- metadata.gz: 7eb8669f8e38c45da9149b4be2091af27c721fb698b1320b24c2d5a2fa26b1403ced670eec4b7667c1800067a134eef30955cf2ef3546943b11129f0d876b202
7
- data.tar.gz: 5f85ce3e139489908ee1dae7ee8fcf0920c47b9c36390e902724eb9538df96ad6f4118477c04c185ea168795e665be2461c513dc7ade022252afc85f3321c6b6
6
+ metadata.gz: 616481a9cacdabf0303b84c42d1d3c746c8bcd9b5eb67bd3a9d93a244abe7995c9a108831a3efa23f0d8c49a857c9cfd4273491f1da196d96879d449b3b6f900
7
+ data.tar.gz: f2355e233484b589b235bb6d0533d23892e0b6a9dd651bc2485cabe754b8465af6704d87002e4ec7c8b189b20f0227880d1d086a1181d8fafe499201c7dea675
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=BigQuery Connection V1 API
2
+ --title="BigQuery Connection V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Bigquery::Connection::V1::CreateConnectionRequest.new
37
37
  response = client.create_connection request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-bigquery-connection-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-bigquery-connection-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/bigquery/docs/reference/bigqueryconnection)
@@ -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'
@@ -11,7 +9,8 @@ require 'google/iam/v1/iam_policy_pb'
11
9
  require 'google/iam/v1/policy_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
- require 'google/protobuf/wrappers_pb'
12
+ require 'google/protobuf'
13
+
15
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
15
  add_file("google/cloud/bigquery/connection/v1/connection.proto", :syntax => :proto3) do
17
16
  add_message "google.cloud.bigquery.connection.v1.CreateConnectionRequest" do
@@ -50,6 +49,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
49
  optional :cloud_sql, :message, 4, "google.cloud.bigquery.connection.v1.CloudSqlProperties"
51
50
  optional :aws, :message, 8, "google.cloud.bigquery.connection.v1.AwsProperties"
52
51
  optional :cloud_spanner, :message, 21, "google.cloud.bigquery.connection.v1.CloudSpannerProperties"
52
+ optional :cloud_resource, :message, 22, "google.cloud.bigquery.connection.v1.CloudResourceProperties"
53
53
  end
54
54
  end
55
55
  add_message "google.cloud.bigquery.connection.v1.CloudSqlProperties" do
@@ -86,6 +86,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
86
86
  optional :iam_role_id, :string, 1
87
87
  optional :identity, :string, 2
88
88
  end
89
+ add_message "google.cloud.bigquery.connection.v1.CloudResourceProperties" do
90
+ optional :service_account_id, :string, 1
91
+ end
89
92
  end
90
93
  end
91
94
 
@@ -108,6 +111,7 @@ module Google
108
111
  AwsProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsProperties").msgclass
109
112
  AwsCrossAccountRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsCrossAccountRole").msgclass
110
113
  AwsAccessRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.AwsAccessRole").msgclass
114
+ CloudResourceProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.bigquery.connection.v1.CloudResourceProperties").msgclass
111
115
  end
112
116
  end
113
117
  end
@@ -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
- "parent" => request.parent
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
- "name" => request.name
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
- "parent" => request.parent
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
- "name" => request.name
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
- "name" => request.name
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
- "resource" => request.resource
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
- "resource" => request.resource
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
- "resource" => request.resource
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
 
@@ -28,7 +28,7 @@ module Google
28
28
  # Manages external data source connections and credentials.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -22,7 +22,7 @@ module Google
22
22
  module Bigquery
23
23
  module Connection
24
24
  module V1
25
- VERSION = "0.5.1"
25
+ VERSION = "0.6.0"
26
26
  end
27
27
  end
28
28
  end
@@ -26,6 +26,8 @@ module Google
26
26
  ##
27
27
  # To load this package, including all its services, and instantiate a client:
28
28
  #
29
+ # @example
30
+ #
29
31
  # require "google/cloud/bigquery/connection/v1"
30
32
  # client = ::Google::Cloud::Bigquery::Connection::V1::ConnectionService::Client.new
31
33
  #
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -123,6 +123,9 @@ module Google
123
123
  # @!attribute [rw] cloud_spanner
124
124
  # @return [::Google::Cloud::Bigquery::Connection::V1::CloudSpannerProperties]
125
125
  # Cloud Spanner properties.
126
+ # @!attribute [rw] cloud_resource
127
+ # @return [::Google::Cloud::Bigquery::Connection::V1::CloudResourceProperties]
128
+ # Cloud Resource properties.
126
129
  # @!attribute [r] creation_time
127
130
  # @return [::Integer]
128
131
  # Output only. The creation timestamp of the connection.
@@ -238,6 +241,25 @@ module Google
238
241
  include ::Google::Protobuf::MessageExts
239
242
  extend ::Google::Protobuf::MessageExts::ClassMethods
240
243
  end
244
+
245
+ # Container for connection properties for delegation of access to GCP
246
+ # resources.
247
+ # @!attribute [r] service_account_id
248
+ # @return [::String]
249
+ # Output only. The account ID of the service created for the purpose of this connection.
250
+ #
251
+ # The service account does not have any permissions associated with it
252
+ # when it is created. After creation, customers delegate permissions
253
+ # to the service account. When the connection is used in the context of an
254
+ # operation in BigQuery, the service account will be used to connect to the
255
+ # desired resources in GCP.
256
+ #
257
+ # The account ID is in the form of:
258
+ # <service-1234>@gcp-sa-bigquery-cloudresource.iam.gserviceaccount.com
259
+ class CloudResourceProperties
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
241
263
  end
242
264
  end
243
265
  end
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.1
4
+ version: 0.6.0
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: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -207,7 +207,6 @@ files:
207
207
  - proto_docs/google/iam/v1/policy.rb
208
208
  - proto_docs/google/protobuf/empty.rb
209
209
  - proto_docs/google/protobuf/field_mask.rb
210
- - proto_docs/google/protobuf/wrappers.rb
211
210
  - proto_docs/google/type/expr.rb
212
211
  homepage: https://github.com/googleapis/google-cloud-ruby
213
212
  licenses:
@@ -228,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
227
  - !ruby/object:Gem::Version
229
228
  version: '0'
230
229
  requirements: []
231
- rubygems_version: 3.2.17
230
+ rubygems_version: 3.3.5
232
231
  signing_key:
233
232
  specification_version: 4
234
233
  summary: API Client library for the BigQuery Connection V1 API
@@ -1,121 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Copyright 2020 Google LLC
4
- #
5
- # Licensed under the Apache License, Version 2.0 (the "License");
6
- # you may not use this file except in compliance with the License.
7
- # You may obtain a copy of the License at
8
- #
9
- # https://www.apache.org/licenses/LICENSE-2.0
10
- #
11
- # Unless required by applicable law or agreed to in writing, software
12
- # distributed under the License is distributed on an "AS IS" BASIS,
13
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- # See the License for the specific language governing permissions and
15
- # limitations under the License.
16
-
17
- # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
-
19
-
20
- module Google
21
- module Protobuf
22
- # Wrapper message for `double`.
23
- #
24
- # The JSON representation for `DoubleValue` is JSON number.
25
- # @!attribute [rw] value
26
- # @return [::Float]
27
- # The double value.
28
- class DoubleValue
29
- include ::Google::Protobuf::MessageExts
30
- extend ::Google::Protobuf::MessageExts::ClassMethods
31
- end
32
-
33
- # Wrapper message for `float`.
34
- #
35
- # The JSON representation for `FloatValue` is JSON number.
36
- # @!attribute [rw] value
37
- # @return [::Float]
38
- # The float value.
39
- class FloatValue
40
- include ::Google::Protobuf::MessageExts
41
- extend ::Google::Protobuf::MessageExts::ClassMethods
42
- end
43
-
44
- # Wrapper message for `int64`.
45
- #
46
- # The JSON representation for `Int64Value` is JSON string.
47
- # @!attribute [rw] value
48
- # @return [::Integer]
49
- # The int64 value.
50
- class Int64Value
51
- include ::Google::Protobuf::MessageExts
52
- extend ::Google::Protobuf::MessageExts::ClassMethods
53
- end
54
-
55
- # Wrapper message for `uint64`.
56
- #
57
- # The JSON representation for `UInt64Value` is JSON string.
58
- # @!attribute [rw] value
59
- # @return [::Integer]
60
- # The uint64 value.
61
- class UInt64Value
62
- include ::Google::Protobuf::MessageExts
63
- extend ::Google::Protobuf::MessageExts::ClassMethods
64
- end
65
-
66
- # Wrapper message for `int32`.
67
- #
68
- # The JSON representation for `Int32Value` is JSON number.
69
- # @!attribute [rw] value
70
- # @return [::Integer]
71
- # The int32 value.
72
- class Int32Value
73
- include ::Google::Protobuf::MessageExts
74
- extend ::Google::Protobuf::MessageExts::ClassMethods
75
- end
76
-
77
- # Wrapper message for `uint32`.
78
- #
79
- # The JSON representation for `UInt32Value` is JSON number.
80
- # @!attribute [rw] value
81
- # @return [::Integer]
82
- # The uint32 value.
83
- class UInt32Value
84
- include ::Google::Protobuf::MessageExts
85
- extend ::Google::Protobuf::MessageExts::ClassMethods
86
- end
87
-
88
- # Wrapper message for `bool`.
89
- #
90
- # The JSON representation for `BoolValue` is JSON `true` and `false`.
91
- # @!attribute [rw] value
92
- # @return [::Boolean]
93
- # The bool value.
94
- class BoolValue
95
- include ::Google::Protobuf::MessageExts
96
- extend ::Google::Protobuf::MessageExts::ClassMethods
97
- end
98
-
99
- # Wrapper message for `string`.
100
- #
101
- # The JSON representation for `StringValue` is JSON string.
102
- # @!attribute [rw] value
103
- # @return [::String]
104
- # The string value.
105
- class StringValue
106
- include ::Google::Protobuf::MessageExts
107
- extend ::Google::Protobuf::MessageExts::ClassMethods
108
- end
109
-
110
- # Wrapper message for `bytes`.
111
- #
112
- # The JSON representation for `BytesValue` is JSON string.
113
- # @!attribute [rw] value
114
- # @return [::String]
115
- # The bytes value.
116
- class BytesValue
117
- include ::Google::Protobuf::MessageExts
118
- extend ::Google::Protobuf::MessageExts::ClassMethods
119
- end
120
- end
121
- end