google-cloud-data_catalog-v1 0.13.0 → 0.15.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 +276 -13
- data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +768 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +3214 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +792 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +2142 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest.rb +54 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +7 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +6 -3
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +1273 -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 +6 -0
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +6 -4
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +538 -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 +6 -0
- 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 +5 -0
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +8 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +90 -0
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +33 -0
- data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +35 -0
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +8 -0
- data/lib/google/cloud/datacatalog/v1/schema_pb.rb +28 -0
- data/lib/google/cloud/datacatalog/v1/usage_pb.rb +6 -0
- data/proto_docs/google/api/client.rb +9 -3
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +19 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +283 -21
- data/proto_docs/google/cloud/datacatalog/v1/dump_content.rb +53 -0
- data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +2 -1
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +23 -2
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +6 -3
- data/proto_docs/google/cloud/datacatalog/v1/schema.rb +68 -3
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +2 -2
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +5 -5
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +11 -8
- data/proto_docs/google/cloud/datacatalog/v1/usage.rb +30 -1
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +23 -5
@@ -0,0 +1,227 @@
|
|
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 "google/cloud/datacatalog/v1/policytagmanagerserialization_pb"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DataCatalog
|
24
|
+
module V1
|
25
|
+
module PolicyTagManagerSerialization
|
26
|
+
module Rest
|
27
|
+
##
|
28
|
+
# REST service stub for the PolicyTagManagerSerialization service.
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
|
+
#
|
32
|
+
class ServiceStub
|
33
|
+
def initialize endpoint:, credentials:
|
34
|
+
# These require statements are intentionally placed here to initialize
|
35
|
+
# the REST modules only when it's required.
|
36
|
+
require "gapic/rest"
|
37
|
+
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
|
39
|
+
numeric_enums: false,
|
40
|
+
raise_faraday_errors: false
|
41
|
+
end
|
42
|
+
|
43
|
+
##
|
44
|
+
# Baseline implementation for the replace_taxonomy REST call
|
45
|
+
#
|
46
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest]
|
47
|
+
# A request object representing the call parameters. Required.
|
48
|
+
# @param options [::Gapic::CallOptions]
|
49
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
50
|
+
#
|
51
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
52
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
53
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
54
|
+
#
|
55
|
+
# @return [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
56
|
+
# A result object deserialized from the server's reply
|
57
|
+
def replace_taxonomy request_pb, options = nil
|
58
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
59
|
+
|
60
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_replace_taxonomy_request request_pb
|
61
|
+
query_string_params = if query_string_params.any?
|
62
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
63
|
+
else
|
64
|
+
{}
|
65
|
+
end
|
66
|
+
|
67
|
+
response = @client_stub.make_http_request(
|
68
|
+
verb,
|
69
|
+
uri: uri,
|
70
|
+
body: body || "",
|
71
|
+
params: query_string_params,
|
72
|
+
options: options
|
73
|
+
)
|
74
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
75
|
+
result = ::Google::Cloud::DataCatalog::V1::Taxonomy.decode_json response.body, ignore_unknown_fields: true
|
76
|
+
|
77
|
+
yield result, operation if block_given?
|
78
|
+
result
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Baseline implementation for the import_taxonomies REST call
|
83
|
+
#
|
84
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesRequest]
|
85
|
+
# A request object representing the call parameters. Required.
|
86
|
+
# @param options [::Gapic::CallOptions]
|
87
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
88
|
+
#
|
89
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
90
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse]
|
91
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
92
|
+
#
|
93
|
+
# @return [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse]
|
94
|
+
# A result object deserialized from the server's reply
|
95
|
+
def import_taxonomies request_pb, options = nil
|
96
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
97
|
+
|
98
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_taxonomies_request request_pb
|
99
|
+
query_string_params = if query_string_params.any?
|
100
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
101
|
+
else
|
102
|
+
{}
|
103
|
+
end
|
104
|
+
|
105
|
+
response = @client_stub.make_http_request(
|
106
|
+
verb,
|
107
|
+
uri: uri,
|
108
|
+
body: body || "",
|
109
|
+
params: query_string_params,
|
110
|
+
options: options
|
111
|
+
)
|
112
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
113
|
+
result = ::Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse.decode_json response.body, ignore_unknown_fields: true
|
114
|
+
|
115
|
+
yield result, operation if block_given?
|
116
|
+
result
|
117
|
+
end
|
118
|
+
|
119
|
+
##
|
120
|
+
# Baseline implementation for the export_taxonomies REST call
|
121
|
+
#
|
122
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesRequest]
|
123
|
+
# A request object representing the call parameters. Required.
|
124
|
+
# @param options [::Gapic::CallOptions]
|
125
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
126
|
+
#
|
127
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
128
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse]
|
129
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
130
|
+
#
|
131
|
+
# @return [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse]
|
132
|
+
# A result object deserialized from the server's reply
|
133
|
+
def export_taxonomies request_pb, options = nil
|
134
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
135
|
+
|
136
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_export_taxonomies_request request_pb
|
137
|
+
query_string_params = if query_string_params.any?
|
138
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
139
|
+
else
|
140
|
+
{}
|
141
|
+
end
|
142
|
+
|
143
|
+
response = @client_stub.make_http_request(
|
144
|
+
verb,
|
145
|
+
uri: uri,
|
146
|
+
body: body || "",
|
147
|
+
params: query_string_params,
|
148
|
+
options: options
|
149
|
+
)
|
150
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
151
|
+
result = ::Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse.decode_json response.body, ignore_unknown_fields: true
|
152
|
+
|
153
|
+
yield result, operation if block_given?
|
154
|
+
result
|
155
|
+
end
|
156
|
+
|
157
|
+
##
|
158
|
+
# @private
|
159
|
+
#
|
160
|
+
# GRPC transcoding helper method for the replace_taxonomy REST call
|
161
|
+
#
|
162
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest]
|
163
|
+
# A request object representing the call parameters. Required.
|
164
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
165
|
+
# Uri, Body, Query string parameters
|
166
|
+
def self.transcode_replace_taxonomy_request request_pb
|
167
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
168
|
+
.with_bindings(
|
169
|
+
uri_method: :post,
|
170
|
+
uri_template: "/v1/{name}:replace",
|
171
|
+
body: "*",
|
172
|
+
matches: [
|
173
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/taxonomies/[^/]+/?$}, false]
|
174
|
+
]
|
175
|
+
)
|
176
|
+
transcoder.transcode request_pb
|
177
|
+
end
|
178
|
+
|
179
|
+
##
|
180
|
+
# @private
|
181
|
+
#
|
182
|
+
# GRPC transcoding helper method for the import_taxonomies REST call
|
183
|
+
#
|
184
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesRequest]
|
185
|
+
# A request object representing the call parameters. Required.
|
186
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
187
|
+
# Uri, Body, Query string parameters
|
188
|
+
def self.transcode_import_taxonomies_request request_pb
|
189
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
190
|
+
.with_bindings(
|
191
|
+
uri_method: :post,
|
192
|
+
uri_template: "/v1/{parent}/taxonomies:import",
|
193
|
+
body: "*",
|
194
|
+
matches: [
|
195
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
196
|
+
]
|
197
|
+
)
|
198
|
+
transcoder.transcode request_pb
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @private
|
203
|
+
#
|
204
|
+
# GRPC transcoding helper method for the export_taxonomies REST call
|
205
|
+
#
|
206
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesRequest]
|
207
|
+
# A request object representing the call parameters. Required.
|
208
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
209
|
+
# Uri, Body, Query string parameters
|
210
|
+
def self.transcode_export_taxonomies_request request_pb
|
211
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
212
|
+
.with_bindings(
|
213
|
+
uri_method: :get,
|
214
|
+
uri_template: "/v1/{parent}/taxonomies:export",
|
215
|
+
matches: [
|
216
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
|
217
|
+
]
|
218
|
+
)
|
219
|
+
transcoder.transcode request_pb
|
220
|
+
end
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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/policy_tag_manager_serialization/credentials"
|
26
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/paths"
|
27
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module DataCatalog
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# Policy Tag Manager Serialization API service allows you to manipulate
|
35
|
+
# your policy tags and taxonomies in a serialized format.
|
36
|
+
#
|
37
|
+
# Taxonomy is a hierarchical group of policy tags.
|
38
|
+
#
|
39
|
+
# To load this service and instantiate a REST client:
|
40
|
+
#
|
41
|
+
# require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest"
|
42
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Rest::Client.new
|
43
|
+
#
|
44
|
+
module PolicyTagManagerSerialization
|
45
|
+
# Client for the REST transport
|
46
|
+
module Rest
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
55
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/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/policy_tag_manager_serialization/credentials"
|
26
26
|
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/paths"
|
27
27
|
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/client"
|
28
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -41,6 +42,11 @@ module Google
|
|
41
42
|
# require "google/cloud/data_catalog/v1/policy_tag_manager_serialization"
|
42
43
|
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
43
44
|
#
|
45
|
+
# @example Load this service and instantiate a REST client
|
46
|
+
#
|
47
|
+
# require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest"
|
48
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Rest::Client.new
|
49
|
+
#
|
44
50
|
module PolicyTagManagerSerialization
|
45
51
|
end
|
46
52
|
end
|
@@ -0,0 +1,39 @@
|
|
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 "google/cloud/data_catalog/v1/data_catalog/rest"
|
20
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager/rest"
|
21
|
+
require "google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest"
|
22
|
+
require "google/cloud/data_catalog/v1/version"
|
23
|
+
|
24
|
+
module Google
|
25
|
+
module Cloud
|
26
|
+
module DataCatalog
|
27
|
+
##
|
28
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
29
|
+
#
|
30
|
+
# @example
|
31
|
+
#
|
32
|
+
# require "google/cloud/data_catalog/v1/rest"
|
33
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
34
|
+
#
|
35
|
+
module V1
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -32,6 +32,11 @@ module Google
|
|
32
32
|
# require "google/cloud/data_catalog/v1"
|
33
33
|
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
34
34
|
#
|
35
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
36
|
+
#
|
37
|
+
# require "google/cloud/data_catalog/v1"
|
38
|
+
# client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
39
|
+
#
|
35
40
|
module V1
|
36
41
|
end
|
37
42
|
end
|
@@ -17,6 +17,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
value :CLOUD_PUBSUB, 2
|
18
18
|
value :DATAPROC_METASTORE, 3
|
19
19
|
value :DATAPLEX, 4
|
20
|
+
value :CLOUD_SQL, 8
|
21
|
+
value :LOOKER, 9
|
22
|
+
end
|
23
|
+
add_enum "google.cloud.datacatalog.v1.ManagingSystem" do
|
24
|
+
value :MANAGING_SYSTEM_UNSPECIFIED, 0
|
25
|
+
value :MANAGING_SYSTEM_DATAPLEX, 1
|
26
|
+
value :MANAGING_SYSTEM_OTHER, 2
|
20
27
|
end
|
21
28
|
end
|
22
29
|
end
|
@@ -27,6 +34,7 @@ module Google
|
|
27
34
|
module V1
|
28
35
|
PersonalDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PersonalDetails").msgclass
|
29
36
|
IntegratedSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.IntegratedSystem").enummodule
|
37
|
+
ManagingSystem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ManagingSystem").enummodule
|
30
38
|
end
|
31
39
|
end
|
32
40
|
end
|
@@ -20,8 +20,10 @@ require 'google/cloud/datacatalog/v1/timestamps_pb'
|
|
20
20
|
require 'google/cloud/datacatalog/v1/usage_pb'
|
21
21
|
require 'google/iam/v1/iam_policy_pb'
|
22
22
|
require 'google/iam/v1/policy_pb'
|
23
|
+
require 'google/longrunning/operations_pb'
|
23
24
|
require 'google/protobuf/empty_pb'
|
24
25
|
require 'google/protobuf/field_mask_pb'
|
26
|
+
require 'google/rpc/status_pb'
|
25
27
|
|
26
28
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
27
29
|
add_file("google/cloud/datacatalog/v1/datacatalog.proto", :syntax => :proto3) do
|
@@ -114,6 +116,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
114
116
|
optional :integrated_system, :enum, 17, "google.cloud.datacatalog.v1.IntegratedSystem"
|
115
117
|
optional :user_specified_system, :string, 18
|
116
118
|
end
|
119
|
+
oneof :system_spec do
|
120
|
+
optional :sql_database_system_spec, :message, 39, "google.cloud.datacatalog.v1.SqlDatabaseSystemSpec"
|
121
|
+
optional :looker_system_spec, :message, 40, "google.cloud.datacatalog.v1.LookerSystemSpec"
|
122
|
+
end
|
117
123
|
oneof :type_spec do
|
118
124
|
optional :gcs_fileset_spec, :message, 6, "google.cloud.datacatalog.v1.GcsFilesetSpec"
|
119
125
|
optional :bigquery_table_spec, :message, 12, "google.cloud.datacatalog.v1.BigQueryTableSpec"
|
@@ -129,6 +135,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
129
135
|
add_message "google.cloud.datacatalog.v1.DatabaseTableSpec" do
|
130
136
|
optional :type, :enum, 1, "google.cloud.datacatalog.v1.DatabaseTableSpec.TableType"
|
131
137
|
optional :dataplex_table, :message, 2, "google.cloud.datacatalog.v1.DataplexTableSpec"
|
138
|
+
optional :database_view_spec, :message, 3, "google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec"
|
139
|
+
end
|
140
|
+
add_message "google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec" do
|
141
|
+
optional :view_type, :enum, 1, "google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType"
|
142
|
+
oneof :source_definition do
|
143
|
+
optional :base_table, :string, 2
|
144
|
+
optional :sql_query, :string, 3
|
145
|
+
end
|
146
|
+
end
|
147
|
+
add_enum "google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType" do
|
148
|
+
value :VIEW_TYPE_UNSPECIFIED, 0
|
149
|
+
value :STANDARD_VIEW, 1
|
150
|
+
value :MATERIALIZED_VIEW, 2
|
132
151
|
end
|
133
152
|
add_enum "google.cloud.datacatalog.v1.DatabaseTableSpec.TableType" do
|
134
153
|
value :TABLE_TYPE_UNSPECIFIED, 0
|
@@ -167,6 +186,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
167
186
|
value :SCALAR_FUNCTION, 1
|
168
187
|
value :PROCEDURE, 2
|
169
188
|
end
|
189
|
+
add_message "google.cloud.datacatalog.v1.SqlDatabaseSystemSpec" do
|
190
|
+
optional :sql_engine, :string, 1
|
191
|
+
optional :database_version, :string, 2
|
192
|
+
optional :instance_host, :string, 3
|
193
|
+
end
|
194
|
+
add_message "google.cloud.datacatalog.v1.LookerSystemSpec" do
|
195
|
+
optional :parent_instance_id, :string, 1
|
196
|
+
optional :parent_instance_display_name, :string, 2
|
197
|
+
optional :parent_model_id, :string, 3
|
198
|
+
optional :parent_model_display_name, :string, 4
|
199
|
+
optional :parent_view_id, :string, 5
|
200
|
+
optional :parent_view_display_name, :string, 6
|
201
|
+
end
|
170
202
|
add_message "google.cloud.datacatalog.v1.BusinessContext" do
|
171
203
|
optional :entry_overview, :message, 1, "google.cloud.datacatalog.v1.EntryOverview"
|
172
204
|
optional :contacts, :message, 2, "google.cloud.datacatalog.v1.Contacts"
|
@@ -245,6 +277,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
245
277
|
repeated :tags, :message, 1, "google.cloud.datacatalog.v1.Tag"
|
246
278
|
optional :next_page_token, :string, 2
|
247
279
|
end
|
280
|
+
add_message "google.cloud.datacatalog.v1.ReconcileTagsRequest" do
|
281
|
+
optional :parent, :string, 1
|
282
|
+
optional :tag_template, :string, 2
|
283
|
+
optional :force_delete_missing, :bool, 3
|
284
|
+
repeated :tags, :message, 4, "google.cloud.datacatalog.v1.Tag"
|
285
|
+
end
|
286
|
+
add_message "google.cloud.datacatalog.v1.ReconcileTagsResponse" do
|
287
|
+
optional :created_tags_count, :int64, 1
|
288
|
+
optional :updated_tags_count, :int64, 2
|
289
|
+
optional :deleted_tags_count, :int64, 3
|
290
|
+
end
|
291
|
+
add_message "google.cloud.datacatalog.v1.ReconcileTagsMetadata" do
|
292
|
+
optional :state, :enum, 1, "google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState"
|
293
|
+
map :errors, :string, :message, 2, "google.rpc.Status"
|
294
|
+
end
|
295
|
+
add_enum "google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState" do
|
296
|
+
value :RECONCILIATION_STATE_UNSPECIFIED, 0
|
297
|
+
value :RECONCILIATION_QUEUED, 1
|
298
|
+
value :RECONCILIATION_IN_PROGRESS, 2
|
299
|
+
value :RECONCILIATION_DONE, 3
|
300
|
+
end
|
248
301
|
add_message "google.cloud.datacatalog.v1.ListEntriesRequest" do
|
249
302
|
optional :parent, :string, 1
|
250
303
|
optional :page_size, :int32, 2
|
@@ -265,6 +318,27 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
265
318
|
end
|
266
319
|
add_message "google.cloud.datacatalog.v1.UnstarEntryResponse" do
|
267
320
|
end
|
321
|
+
add_message "google.cloud.datacatalog.v1.ImportEntriesRequest" do
|
322
|
+
optional :parent, :string, 1
|
323
|
+
oneof :source do
|
324
|
+
optional :gcs_bucket_path, :string, 2
|
325
|
+
end
|
326
|
+
end
|
327
|
+
add_message "google.cloud.datacatalog.v1.ImportEntriesResponse" do
|
328
|
+
proto3_optional :upserted_entries_count, :int64, 5
|
329
|
+
proto3_optional :deleted_entries_count, :int64, 6
|
330
|
+
end
|
331
|
+
add_message "google.cloud.datacatalog.v1.ImportEntriesMetadata" do
|
332
|
+
optional :state, :enum, 1, "google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState"
|
333
|
+
repeated :errors, :message, 2, "google.rpc.Status"
|
334
|
+
end
|
335
|
+
add_enum "google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState" do
|
336
|
+
value :IMPORT_STATE_UNSPECIFIED, 0
|
337
|
+
value :IMPORT_QUEUED, 1
|
338
|
+
value :IMPORT_IN_PROGRESS, 2
|
339
|
+
value :IMPORT_DONE, 3
|
340
|
+
value :IMPORT_OBSOLETE, 4
|
341
|
+
end
|
268
342
|
add_message "google.cloud.datacatalog.v1.ModifyEntryOverviewRequest" do
|
269
343
|
optional :name, :string, 1
|
270
344
|
optional :entry_overview, :message, 2, "google.cloud.datacatalog.v1.EntryOverview"
|
@@ -286,6 +360,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
286
360
|
value :LAKE, 10
|
287
361
|
value :ZONE, 11
|
288
362
|
value :SERVICE, 14
|
363
|
+
value :DATABASE_SCHEMA, 15
|
364
|
+
value :DASHBOARD, 16
|
365
|
+
value :EXPLORE, 17
|
366
|
+
value :LOOK, 18
|
289
367
|
end
|
290
368
|
end
|
291
369
|
end
|
@@ -310,6 +388,8 @@ module Google
|
|
310
388
|
LookupEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.LookupEntryRequest").msgclass
|
311
389
|
Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Entry").msgclass
|
312
390
|
DatabaseTableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec").msgclass
|
391
|
+
DatabaseTableSpec::DatabaseViewSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec").msgclass
|
392
|
+
DatabaseTableSpec::DatabaseViewSpec::ViewType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType").enummodule
|
313
393
|
DatabaseTableSpec::TableType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.TableType").enummodule
|
314
394
|
FilesetSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.FilesetSpec").msgclass
|
315
395
|
DataSourceConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DataSourceConnectionSpec").msgclass
|
@@ -317,6 +397,8 @@ module Google
|
|
317
397
|
RoutineSpec::Argument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument").msgclass
|
318
398
|
RoutineSpec::Argument::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode").enummodule
|
319
399
|
RoutineSpec::RoutineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.RoutineType").enummodule
|
400
|
+
SqlDatabaseSystemSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.SqlDatabaseSystemSpec").msgclass
|
401
|
+
LookerSystemSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.LookerSystemSpec").msgclass
|
320
402
|
BusinessContext = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BusinessContext").msgclass
|
321
403
|
EntryOverview = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryOverview").msgclass
|
322
404
|
Contacts = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Contacts").msgclass
|
@@ -336,12 +418,20 @@ module Google
|
|
336
418
|
DeleteTagTemplateFieldRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest").msgclass
|
337
419
|
ListTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTagsRequest").msgclass
|
338
420
|
ListTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListTagsResponse").msgclass
|
421
|
+
ReconcileTagsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ReconcileTagsRequest").msgclass
|
422
|
+
ReconcileTagsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ReconcileTagsResponse").msgclass
|
423
|
+
ReconcileTagsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ReconcileTagsMetadata").msgclass
|
424
|
+
ReconcileTagsMetadata::ReconciliationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState").enummodule
|
339
425
|
ListEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListEntriesRequest").msgclass
|
340
426
|
ListEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ListEntriesResponse").msgclass
|
341
427
|
StarEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.StarEntryRequest").msgclass
|
342
428
|
StarEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.StarEntryResponse").msgclass
|
343
429
|
UnstarEntryRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UnstarEntryRequest").msgclass
|
344
430
|
UnstarEntryResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.UnstarEntryResponse").msgclass
|
431
|
+
ImportEntriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ImportEntriesRequest").msgclass
|
432
|
+
ImportEntriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ImportEntriesResponse").msgclass
|
433
|
+
ImportEntriesMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ImportEntriesMetadata").msgclass
|
434
|
+
ImportEntriesMetadata::ImportState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState").enummodule
|
345
435
|
ModifyEntryOverviewRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ModifyEntryOverviewRequest").msgclass
|
346
436
|
ModifyEntryContactsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.ModifyEntryContactsRequest").msgclass
|
347
437
|
EntryType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryType").enummodule
|
@@ -228,6 +228,20 @@ module Google
|
|
228
228
|
# The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
|
229
229
|
# lowercased.
|
230
230
|
rpc :ListTags, ::Google::Cloud::DataCatalog::V1::ListTagsRequest, ::Google::Cloud::DataCatalog::V1::ListTagsResponse
|
231
|
+
# `ReconcileTags` creates or updates a list of tags on the entry.
|
232
|
+
# If the
|
233
|
+
# [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
|
234
|
+
# parameter is set, the operation deletes tags not included in the input tag
|
235
|
+
# list.
|
236
|
+
#
|
237
|
+
# `ReconcileTags` returns a [long-running operation]
|
238
|
+
# [google.longrunning.Operation] resource that can be queried with
|
239
|
+
# [Operations.GetOperation][google.longrunning.Operations.GetOperation]
|
240
|
+
# to return [ReconcileTagsMetadata]
|
241
|
+
# [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
|
242
|
+
# a [ReconcileTagsResponse]
|
243
|
+
# [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
|
244
|
+
rpc :ReconcileTags, ::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest, ::Google::Longrunning::Operation
|
231
245
|
# Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
|
232
246
|
# the current user. Starring information is private to each user.
|
233
247
|
rpc :StarEntry, ::Google::Cloud::DataCatalog::V1::StarEntryRequest, ::Google::Cloud::DataCatalog::V1::StarEntryResponse
|
@@ -289,6 +303,25 @@ module Google
|
|
289
303
|
#
|
290
304
|
# No Google IAM permissions are required to call this method.
|
291
305
|
rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
|
306
|
+
# Imports entries from a source, such as data previously dumped into a
|
307
|
+
# Cloud Storage bucket, into Data Catalog. Import of entries
|
308
|
+
# is a sync operation that reconciles the state of the third-party system
|
309
|
+
# with the Data Catalog.
|
310
|
+
#
|
311
|
+
# `ImportEntries` accepts source data snapshots of a third-party system.
|
312
|
+
# Snapshot should be delivered as a .wire or base65-encoded .txt file
|
313
|
+
# containing a sequence of Protocol Buffer messages of
|
314
|
+
# [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
|
315
|
+
#
|
316
|
+
# `ImportEntries` returns a [long-running operation]
|
317
|
+
# [google.longrunning.Operation] resource that can be queried with
|
318
|
+
# [Operations.GetOperation][google.longrunning.Operations.GetOperation]
|
319
|
+
# to return
|
320
|
+
# [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
|
321
|
+
# and an
|
322
|
+
# [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
|
323
|
+
# message.
|
324
|
+
rpc :ImportEntries, ::Google::Cloud::DataCatalog::V1::ImportEntriesRequest, ::Google::Longrunning::Operation
|
292
325
|
end
|
293
326
|
|
294
327
|
Stub = Service.rpc_stub_class
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/dump_content.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/cloud/datacatalog/v1/datacatalog_pb'
|
7
|
+
require 'google/cloud/datacatalog/v1/tags_pb'
|
8
|
+
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/datacatalog/v1/dump_content.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.datacatalog.v1.TaggedEntry" do
|
12
|
+
repeated :present_tags, :message, 2, "google.cloud.datacatalog.v1.Tag"
|
13
|
+
repeated :absent_tags, :message, 3, "google.cloud.datacatalog.v1.Tag"
|
14
|
+
oneof :entry do
|
15
|
+
optional :v1_entry, :message, 1, "google.cloud.datacatalog.v1.Entry"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
add_message "google.cloud.datacatalog.v1.DumpItem" do
|
19
|
+
oneof :item do
|
20
|
+
optional :tagged_entry, :message, 1, "google.cloud.datacatalog.v1.TaggedEntry"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
module Google
|
27
|
+
module Cloud
|
28
|
+
module DataCatalog
|
29
|
+
module V1
|
30
|
+
TaggedEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.TaggedEntry").msgclass
|
31
|
+
DumpItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DumpItem").msgclass
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|