google-cloud-data_catalog-v1 0.12.1 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +30 -24
  4. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +3011 -0
  5. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +2022 -0
  6. data/lib/google/cloud/data_catalog/v1/data_catalog/rest.rb +53 -0
  7. data/lib/google/cloud/data_catalog/v1/data_catalog.rb +7 -1
  8. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +22 -12
  9. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +1270 -0
  10. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/service_stub.rb +846 -0
  11. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest.rb +57 -0
  12. data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +7 -1
  13. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +14 -0
  14. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +536 -0
  15. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/service_stub.rb +227 -0
  16. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest.rb +55 -0
  17. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +7 -1
  18. data/lib/google/cloud/data_catalog/v1/rest.rb +39 -0
  19. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  20. data/lib/google/cloud/data_catalog/v1.rb +7 -2
  21. data/proto_docs/google/api/client.rb +318 -0
  22. data/proto_docs/google/api/launch_stage.rb +71 -0
  23. data/proto_docs/google/protobuf/duration.rb +98 -0
  24. metadata +33 -16
  25. data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
  26. data/proto_docs/google/iam/v1/options.rb +0 -50
  27. data/proto_docs/google/iam/v1/policy.rb +0 -418
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89240cd697a7715bde7bf7d1214be5eb1fbd7e28c55107fc338230d9f651b69a
4
- data.tar.gz: bf02c3a93d1239a05cc0e5b0d4999cfc223206e13a5e8c131ede95a2e2b317e7
3
+ metadata.gz: b8ea140377daa0bb096d98b3caa4a748568a94bcef202599229803a74a5f13c1
4
+ data.tar.gz: 6b88c341a9b1c9fc6fa3100bac7aee78bdc34806b8a044b241a0c49787fe6670
5
5
  SHA512:
6
- metadata.gz: df02197c60bf8904ba6141059d8a9a40d44146e63d8cb4cdc4f99d1e14c2d068adb1b5eaae7799bbad4403a65cffd6c95e2a2d75719d45c205b2159c0a282741
7
- data.tar.gz: c68d3b14fb5a90a6a54792a87add27c8d00c9e4603c7f59c9c7ffd451ffbbd8f2e436501dad6318c1b7b439c2d829316158cb21789778ae1da3c358e90e57c37
6
+ metadata.gz: 784cac8f9f0f249613d46bc56bd0d0fdbe680eae305166a9e89891a3b32fd0b9602bc69652a46d39ceb0e65e2964650335f225a97b257934e934eaba818703cb
7
+ data.tar.gz: 41f5e31b8711d5794e7a7e71ceba78fa1f7b18026b71004cd573fbb8bfe861a6b84222a3b1fc4305cb144fe342e75edf7b175d4bae484f78287660ece350739c
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ruby Client for the Data Catalog V1 API
2
2
 
3
- API Client library for the Data Catalog V1 API
3
+ A fully managed and highly scalable data discovery and metadata management service.
4
4
 
5
5
  DataCatalog is a centralized and unified data catalog service for all your Cloud resources, where users and systems can discover data, explore and curate its semantics, understand how to act on it, and help govern its usage.
6
6
 
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/datacatalog/v1/datacatalog_pb"
21
+ require "google/iam/v1"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -176,6 +177,12 @@ module Google
176
177
  @quota_project_id = @config.quota_project
177
178
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
178
179
 
180
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
181
+ config.credentials = credentials
182
+ config.quota_project = @quota_project_id
183
+ config.endpoint = @config.endpoint
184
+ end
185
+
179
186
  @data_catalog_stub = ::Gapic::ServiceStub.new(
180
187
  ::Google::Cloud::DataCatalog::V1::DataCatalog::Stub,
181
188
  credentials: credentials,
@@ -185,6 +192,13 @@ module Google
185
192
  )
186
193
  end
187
194
 
195
+ ##
196
+ # Get the associated client for mix-in of the IAMPolicy.
197
+ #
198
+ # @return [Google::Iam::V1::IAMPolicy::Client]
199
+ #
200
+ attr_reader :iam_policy_client
201
+
188
202
  # Service calls
189
203
 
190
204
  ##
@@ -284,13 +298,11 @@ module Google
284
298
  # # Call the search_catalog method.
285
299
  # result = client.search_catalog request
286
300
  #
287
- # # The returned object is of type Gapic::PagedEnumerable. You can
288
- # # iterate over all elements by calling #each, and the enumerable
289
- # # will lazily make API calls to fetch subsequent pages. Other
290
- # # methods are also available for managing paging directly.
291
- # result.each do |response|
301
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
302
+ # # over elements, and API calls will be issued to fetch pages as needed.
303
+ # result.each do |item|
292
304
  # # Each element is of type ::Google::Cloud::DataCatalog::V1::SearchCatalogResult.
293
- # p response
305
+ # p item
294
306
  # end
295
307
  #
296
308
  def search_catalog request, options = nil
@@ -775,13 +787,11 @@ module Google
775
787
  # # Call the list_entry_groups method.
776
788
  # result = client.list_entry_groups request
777
789
  #
778
- # # The returned object is of type Gapic::PagedEnumerable. You can
779
- # # iterate over all elements by calling #each, and the enumerable
780
- # # will lazily make API calls to fetch subsequent pages. Other
781
- # # methods are also available for managing paging directly.
782
- # result.each do |response|
790
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
791
+ # # over elements, and API calls will be issued to fetch pages as needed.
792
+ # result.each do |item|
783
793
  # # Each element is of type ::Google::Cloud::DataCatalog::V1::EntryGroup.
784
- # p response
794
+ # p item
785
795
  # end
786
796
  #
787
797
  def list_entry_groups request, options = nil
@@ -1406,13 +1416,11 @@ module Google
1406
1416
  # # Call the list_entries method.
1407
1417
  # result = client.list_entries request
1408
1418
  #
1409
- # # The returned object is of type Gapic::PagedEnumerable. You can
1410
- # # iterate over all elements by calling #each, and the enumerable
1411
- # # will lazily make API calls to fetch subsequent pages. Other
1412
- # # methods are also available for managing paging directly.
1413
- # result.each do |response|
1419
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1420
+ # # over elements, and API calls will be issued to fetch pages as needed.
1421
+ # result.each do |item|
1414
1422
  # # Each element is of type ::Google::Cloud::DataCatalog::V1::Entry.
1415
- # p response
1423
+ # p item
1416
1424
  # end
1417
1425
  #
1418
1426
  def list_entries request, options = nil
@@ -2838,13 +2846,11 @@ module Google
2838
2846
  # # Call the list_tags method.
2839
2847
  # result = client.list_tags request
2840
2848
  #
2841
- # # The returned object is of type Gapic::PagedEnumerable. You can
2842
- # # iterate over all elements by calling #each, and the enumerable
2843
- # # will lazily make API calls to fetch subsequent pages. Other
2844
- # # methods are also available for managing paging directly.
2845
- # result.each do |response|
2849
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2850
+ # # over elements, and API calls will be issued to fetch pages as needed.
2851
+ # result.each do |item|
2846
2852
  # # Each element is of type ::Google::Cloud::DataCatalog::V1::Tag.
2847
- # p response
2853
+ # p item
2848
2854
  # end
2849
2855
  #
2850
2856
  def list_tags request, options = nil