google-cloud-data_catalog-v1 0.12.1 → 0.14.0
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 +2 -2
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +30 -24
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +3011 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +2022 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +7 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +22 -12
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +1270 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/service_stub.rb +846 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest.rb +57 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +7 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +14 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +536 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/service_stub.rb +227 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest.rb +55 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +7 -1
- data/lib/google/cloud/data_catalog/v1/rest.rb +39 -0
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/data_catalog/v1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- metadata +33 -16
- data/proto_docs/google/iam/v1/iam_policy.rb +0 -87
- data/proto_docs/google/iam/v1/options.rb +0 -50
- data/proto_docs/google/iam/v1/policy.rb +0 -418
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/data_catalog/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/data_catalog/v1/data_catalog/credentials"
|
26
|
+
require "google/cloud/data_catalog/v1/data_catalog/paths"
|
27
|
+
require "google/cloud/data_catalog/v1/data_catalog/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module DataCatalog
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Data Catalog API service allows you to discover, understand, and manage
|
35
|
+
# your data.
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/data_catalog/v1/data_catalog/rest"
|
40
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
41
|
+
#
|
42
|
+
module DataCatalog
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/data_catalog/v1/data_catalog/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/data_catalog/v1/version"
|
|
25
25
|
require "google/cloud/data_catalog/v1/data_catalog/credentials"
|
26
26
|
require "google/cloud/data_catalog/v1/data_catalog/paths"
|
27
27
|
require "google/cloud/data_catalog/v1/data_catalog/client"
|
28
|
+
require "google/cloud/data_catalog/v1/data_catalog/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -34,11 +35,16 @@ module Google
|
|
34
35
|
# Data Catalog API service allows you to discover, understand, and manage
|
35
36
|
# your data.
|
36
37
|
#
|
37
|
-
#
|
38
|
+
# @example Load this service and instantiate a gRPC client
|
38
39
|
#
|
39
40
|
# require "google/cloud/data_catalog/v1/data_catalog"
|
40
41
|
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/data_catalog/v1/data_catalog/rest"
|
46
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
47
|
+
#
|
42
48
|
module DataCatalog
|
43
49
|
end
|
44
50
|
end
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/cloud/datacatalog/v1/policytagmanager_pb"
|
21
|
+
require "google/iam/v1"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -140,6 +141,12 @@ module Google
|
|
140
141
|
@quota_project_id = @config.quota_project
|
141
142
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
142
143
|
|
144
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
145
|
+
config.credentials = credentials
|
146
|
+
config.quota_project = @quota_project_id
|
147
|
+
config.endpoint = @config.endpoint
|
148
|
+
end
|
149
|
+
|
143
150
|
@policy_tag_manager_stub = ::Gapic::ServiceStub.new(
|
144
151
|
::Google::Cloud::DataCatalog::V1::PolicyTagManager::Stub,
|
145
152
|
credentials: credentials,
|
@@ -149,6 +156,13 @@ module Google
|
|
149
156
|
)
|
150
157
|
end
|
151
158
|
|
159
|
+
##
|
160
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
161
|
+
#
|
162
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
163
|
+
#
|
164
|
+
attr_reader :iam_policy_client
|
165
|
+
|
152
166
|
# Service calls
|
153
167
|
|
154
168
|
##
|
@@ -472,13 +486,11 @@ module Google
|
|
472
486
|
# # Call the list_taxonomies method.
|
473
487
|
# result = client.list_taxonomies request
|
474
488
|
#
|
475
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
476
|
-
# #
|
477
|
-
#
|
478
|
-
# # methods are also available for managing paging directly.
|
479
|
-
# result.each do |response|
|
489
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
490
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
491
|
+
# result.each do |item|
|
480
492
|
# # Each element is of type ::Google::Cloud::DataCatalog::V1::Taxonomy.
|
481
|
-
# p
|
493
|
+
# p item
|
482
494
|
# end
|
483
495
|
#
|
484
496
|
def list_taxonomies request, options = nil
|
@@ -931,13 +943,11 @@ module Google
|
|
931
943
|
# # Call the list_policy_tags method.
|
932
944
|
# result = client.list_policy_tags request
|
933
945
|
#
|
934
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
935
|
-
# #
|
936
|
-
#
|
937
|
-
# # methods are also available for managing paging directly.
|
938
|
-
# result.each do |response|
|
946
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
947
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
948
|
+
# result.each do |item|
|
939
949
|
# # Each element is of type ::Google::Cloud::DataCatalog::V1::PolicyTag.
|
940
|
-
# p
|
950
|
+
# p item
|
941
951
|
# end
|
942
952
|
#
|
943
953
|
def list_policy_tags request, options = nil
|