google-cloud-data_catalog-v1 0.7.3 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +989 -432
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +2 -2
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +394 -133
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager.rb +1 -1
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +198 -61
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization.rb +4 -3
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +48 -0
- data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +46 -2
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +180 -143
- data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/policytagmanager_services_pb.rb +16 -15
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +7 -2
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_services_pb.rb +29 -15
- data/lib/google/cloud/datacatalog/v1/schema_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +5 -2
- data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +2 -2
- data/lib/google/cloud/datacatalog/v1/usage_pb.rb +31 -0
- data/proto_docs/google/cloud/datacatalog/v1/bigquery.rb +87 -0
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +1 -2
- data/proto_docs/google/cloud/datacatalog/v1/data_source.rb +6 -5
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +370 -246
- data/proto_docs/google/cloud/datacatalog/v1/gcs_fileset_spec.rb +16 -15
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +87 -71
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanagerserialization.rb +34 -19
- data/proto_docs/google/cloud/datacatalog/v1/schema.rb +3 -3
- data/proto_docs/google/cloud/datacatalog/v1/search.rb +43 -29
- data/proto_docs/google/cloud/datacatalog/v1/table_spec.rb +23 -16
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +96 -51
- data/proto_docs/google/cloud/datacatalog/v1/timestamps.rb +12 -5
- data/proto_docs/google/cloud/datacatalog/v1/usage.rb +79 -0
- metadata +8 -4
@@ -31,7 +31,7 @@ module Google
|
|
31
31
|
module DataCatalog
|
32
32
|
module V1
|
33
33
|
##
|
34
|
-
# Policy Tag Manager API service allows
|
34
|
+
# Policy Tag Manager API service allows you to manage your policy tags and
|
35
35
|
# taxonomies.
|
36
36
|
#
|
37
37
|
# Policy tags are used to tag BigQuery columns and apply additional access
|
@@ -27,9 +27,10 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Client for the PolicyTagManagerSerialization service.
|
29
29
|
#
|
30
|
-
# Policy Tag Manager
|
31
|
-
#
|
32
|
-
#
|
30
|
+
# Policy Tag Manager Serialization API service allows you to manipulate
|
31
|
+
# your policy tags and taxonomies in a serialized format.
|
32
|
+
#
|
33
|
+
# Taxonomy is a hierarchical group of policy tags.
|
33
34
|
#
|
34
35
|
class Client
|
35
36
|
include Paths
|
@@ -43,13 +44,12 @@ module Google
|
|
43
44
|
# See {::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client::Configuration}
|
44
45
|
# for a description of the configuration fields.
|
45
46
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# To modify the configuration for all PolicyTagManagerSerialization clients:
|
47
|
+
# @example
|
49
48
|
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
49
|
+
# # Modify the configuration for all PolicyTagManagerSerialization clients
|
50
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
53
53
|
#
|
54
54
|
# @yield [config] Configure the Client client.
|
55
55
|
# @yieldparam config [Client::Configuration]
|
@@ -98,19 +98,15 @@ module Google
|
|
98
98
|
##
|
99
99
|
# Create a new PolicyTagManagerSerialization client object.
|
100
100
|
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
# To create a new PolicyTagManagerSerialization client with the default
|
104
|
-
# configuration:
|
101
|
+
# @example
|
105
102
|
#
|
106
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
107
105
|
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
# config.timeout = 10.0
|
113
|
-
# end
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
114
110
|
#
|
115
111
|
# @yield [config] Configure the PolicyTagManagerSerialization client.
|
116
112
|
# @yieldparam config [Client::Configuration]
|
@@ -130,10 +126,9 @@ module Google
|
|
130
126
|
|
131
127
|
# Create credentials
|
132
128
|
credentials = @config.credentials
|
133
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
134
130
|
# but only if the default endpoint does not have a region prefix.
|
135
|
-
enable_self_signed_jwt = @config.
|
136
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
137
132
|
!@config.endpoint.split(".").first.include?("-")
|
138
133
|
credentials ||= Credentials.default scope: @config.scope,
|
139
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -155,15 +150,113 @@ module Google
|
|
155
150
|
# Service calls
|
156
151
|
|
157
152
|
##
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
153
|
+
# Replaces (updates) a taxonomy and all its policy tags.
|
154
|
+
#
|
155
|
+
# The taxonomy and its entire hierarchy of policy tags must be
|
156
|
+
# represented literally by `SerializedTaxonomy` and the nested
|
157
|
+
# `SerializedPolicyTag` messages.
|
158
|
+
#
|
159
|
+
# This operation automatically does the following:
|
160
|
+
#
|
161
|
+
# - Deletes the existing policy tags that are missing from the
|
162
|
+
# `SerializedPolicyTag`.
|
163
|
+
# - Creates policy tags that don't have resource names. They are considered
|
164
|
+
# new.
|
165
|
+
# - Updates policy tags with valid resources names accordingly.
|
166
|
+
#
|
167
|
+
# @overload replace_taxonomy(request, options = nil)
|
168
|
+
# Pass arguments to `replace_taxonomy` via a request object, either of type
|
169
|
+
# {::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest} or an equivalent Hash.
|
170
|
+
#
|
171
|
+
# @param request [::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest, ::Hash]
|
172
|
+
# A request object representing the call parameters. Required. To specify no
|
173
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
174
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
175
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
176
|
+
#
|
177
|
+
# @overload replace_taxonomy(name: nil, serialized_taxonomy: nil)
|
178
|
+
# Pass arguments to `replace_taxonomy` via keyword arguments. Note that at
|
179
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
180
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
181
|
+
#
|
182
|
+
# @param name [::String]
|
183
|
+
# Required. Resource name of the taxonomy to update.
|
184
|
+
# @param serialized_taxonomy [::Google::Cloud::DataCatalog::V1::SerializedTaxonomy, ::Hash]
|
185
|
+
# Required. Taxonomy to update along with its child policy tags.
|
186
|
+
#
|
187
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
188
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
189
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
190
|
+
#
|
191
|
+
# @return [::Google::Cloud::DataCatalog::V1::Taxonomy]
|
161
192
|
#
|
162
|
-
#
|
193
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
194
|
+
#
|
195
|
+
# @example Basic example
|
196
|
+
# require "google/cloud/data_catalog/v1"
|
197
|
+
#
|
198
|
+
# # Create a client object. The client can be reused for multiple calls.
|
199
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
200
|
+
#
|
201
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
202
|
+
# request = Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest.new
|
203
|
+
#
|
204
|
+
# # Call the replace_taxonomy method.
|
205
|
+
# result = client.replace_taxonomy request
|
206
|
+
#
|
207
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::Taxonomy.
|
208
|
+
# p result
|
209
|
+
#
|
210
|
+
def replace_taxonomy request, options = nil
|
211
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
|
+
|
213
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ReplaceTaxonomyRequest
|
214
|
+
|
215
|
+
# Converts hash and nil to an options object
|
216
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
217
|
+
|
218
|
+
# Customize the options with defaults
|
219
|
+
metadata = @config.rpcs.replace_taxonomy.metadata.to_h
|
220
|
+
|
221
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
222
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
223
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
224
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
225
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
226
|
+
|
227
|
+
header_params = {}
|
228
|
+
if request.name
|
229
|
+
header_params["name"] = request.name
|
230
|
+
end
|
231
|
+
|
232
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
233
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
234
|
+
|
235
|
+
options.apply_defaults timeout: @config.rpcs.replace_taxonomy.timeout,
|
236
|
+
metadata: metadata,
|
237
|
+
retry_policy: @config.rpcs.replace_taxonomy.retry_policy
|
238
|
+
|
239
|
+
options.apply_defaults timeout: @config.timeout,
|
240
|
+
metadata: @config.metadata,
|
241
|
+
retry_policy: @config.retry_policy
|
242
|
+
|
243
|
+
@policy_tag_manager_serialization_stub.call_rpc :replace_taxonomy, request, options: options do |response, operation|
|
244
|
+
yield response, operation if block_given?
|
245
|
+
return response
|
246
|
+
end
|
247
|
+
rescue ::GRPC::BadStatus => e
|
248
|
+
raise ::Google::Cloud::Error.from_error(e)
|
249
|
+
end
|
250
|
+
|
251
|
+
##
|
252
|
+
# Creates new taxonomies (including their policy tags) in a given project
|
253
|
+
# by importing from inlined or cross-regional sources.
|
254
|
+
#
|
255
|
+
# For a cross-regional source, new taxonomies are created by copying
|
163
256
|
# from a source in another region.
|
164
257
|
#
|
165
|
-
#
|
166
|
-
#
|
258
|
+
# For an inlined source, taxonomies and policy tags are created in bulk using
|
259
|
+
# nested protocol buffer structures.
|
167
260
|
#
|
168
261
|
# @overload import_taxonomies(request, options = nil)
|
169
262
|
# Pass arguments to `import_taxonomies` via a request object, either of type
|
@@ -183,9 +276,9 @@ module Google
|
|
183
276
|
# @param parent [::String]
|
184
277
|
# Required. Resource name of project that the imported taxonomies will belong to.
|
185
278
|
# @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
|
186
|
-
# Inline source
|
279
|
+
# Inline source taxonomy to import.
|
187
280
|
# @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
|
188
|
-
# Cross-regional source taxonomy to
|
281
|
+
# Cross-regional source taxonomy to import.
|
189
282
|
#
|
190
283
|
# @yield [response, operation] Access the result along with the RPC operation
|
191
284
|
# @yieldparam response [::Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse]
|
@@ -195,6 +288,21 @@ module Google
|
|
195
288
|
#
|
196
289
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
197
290
|
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/data_catalog/v1"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::DataCatalog::V1::ImportTaxonomiesRequest.new
|
299
|
+
#
|
300
|
+
# # Call the import_taxonomies method.
|
301
|
+
# result = client.import_taxonomies request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::ImportTaxonomiesResponse.
|
304
|
+
# p result
|
305
|
+
#
|
198
306
|
def import_taxonomies request, options = nil
|
199
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
200
308
|
|
@@ -212,16 +320,20 @@ module Google
|
|
212
320
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
213
321
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
214
322
|
|
215
|
-
header_params = {
|
216
|
-
|
217
|
-
|
323
|
+
header_params = {}
|
324
|
+
if request.parent
|
325
|
+
header_params["parent"] = request.parent
|
326
|
+
end
|
327
|
+
|
218
328
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
219
329
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
220
330
|
|
221
331
|
options.apply_defaults timeout: @config.rpcs.import_taxonomies.timeout,
|
222
332
|
metadata: metadata,
|
223
333
|
retry_policy: @config.rpcs.import_taxonomies.retry_policy
|
224
|
-
|
334
|
+
|
335
|
+
options.apply_defaults timeout: @config.timeout,
|
336
|
+
metadata: @config.metadata,
|
225
337
|
retry_policy: @config.retry_policy
|
226
338
|
|
227
339
|
@policy_tag_manager_serialization_stub.call_rpc :import_taxonomies, request, options: options do |response, operation|
|
@@ -233,12 +345,12 @@ module Google
|
|
233
345
|
end
|
234
346
|
|
235
347
|
##
|
236
|
-
# Exports taxonomies
|
237
|
-
# including their policy tags. The requested taxonomies must belong to
|
238
|
-
# project.
|
348
|
+
# Exports taxonomies in the requested type and returns them,
|
349
|
+
# including their policy tags. The requested taxonomies must belong to the
|
350
|
+
# same project.
|
239
351
|
#
|
240
|
-
#
|
241
|
-
#
|
352
|
+
# This method generates `SerializedTaxonomy` protocol buffers with nested
|
353
|
+
# policy tags that can be used as input for `ImportTaxonomies` calls.
|
242
354
|
#
|
243
355
|
# @overload export_taxonomies(request, options = nil)
|
244
356
|
# Pass arguments to `export_taxonomies` via a request object, either of type
|
@@ -258,10 +370,10 @@ module Google
|
|
258
370
|
# @param parent [::String]
|
259
371
|
# Required. Resource name of the project that the exported taxonomies belong to.
|
260
372
|
# @param taxonomies [::Array<::String>]
|
261
|
-
# Required. Resource names of the taxonomies to
|
373
|
+
# Required. Resource names of the taxonomies to export.
|
262
374
|
# @param serialized_taxonomies [::Boolean]
|
263
|
-
#
|
264
|
-
# tags as nested
|
375
|
+
# Serialized export taxonomies that contain all the policy
|
376
|
+
# tags as nested protocol buffers.
|
265
377
|
#
|
266
378
|
# @yield [response, operation] Access the result along with the RPC operation
|
267
379
|
# @yieldparam response [::Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse]
|
@@ -271,6 +383,21 @@ module Google
|
|
271
383
|
#
|
272
384
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
273
385
|
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/data_catalog/v1"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::DataCatalog::V1::ExportTaxonomiesRequest.new
|
394
|
+
#
|
395
|
+
# # Call the export_taxonomies method.
|
396
|
+
# result = client.export_taxonomies request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::ExportTaxonomiesResponse.
|
399
|
+
# p result
|
400
|
+
#
|
274
401
|
def export_taxonomies request, options = nil
|
275
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
403
|
|
@@ -288,16 +415,20 @@ module Google
|
|
288
415
|
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
289
416
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
290
417
|
|
291
|
-
header_params = {
|
292
|
-
|
293
|
-
|
418
|
+
header_params = {}
|
419
|
+
if request.parent
|
420
|
+
header_params["parent"] = request.parent
|
421
|
+
end
|
422
|
+
|
294
423
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
295
424
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
296
425
|
|
297
426
|
options.apply_defaults timeout: @config.rpcs.export_taxonomies.timeout,
|
298
427
|
metadata: metadata,
|
299
428
|
retry_policy: @config.rpcs.export_taxonomies.retry_policy
|
300
|
-
|
429
|
+
|
430
|
+
options.apply_defaults timeout: @config.timeout,
|
431
|
+
metadata: @config.metadata,
|
301
432
|
retry_policy: @config.retry_policy
|
302
433
|
|
303
434
|
@policy_tag_manager_serialization_stub.call_rpc :export_taxonomies, request, options: options do |response, operation|
|
@@ -321,22 +452,21 @@ module Google
|
|
321
452
|
# Configuration can be applied globally to all clients, or to a single client
|
322
453
|
# on construction.
|
323
454
|
#
|
324
|
-
#
|
455
|
+
# @example
|
325
456
|
#
|
326
|
-
#
|
327
|
-
# to 20 seconds,
|
457
|
+
# # Modify the global config, setting the timeout for
|
458
|
+
# # replace_taxonomy to 20 seconds,
|
459
|
+
# # and all remaining timeouts to 10 seconds.
|
460
|
+
# ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.configure do |config|
|
461
|
+
# config.timeout = 10.0
|
462
|
+
# config.rpcs.replace_taxonomy.timeout = 20.0
|
463
|
+
# end
|
328
464
|
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
333
|
-
#
|
334
|
-
# To apply the above configuration only to a new client:
|
335
|
-
#
|
336
|
-
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
|
337
|
-
# config.timeout = 10.0
|
338
|
-
# config.rpcs.import_taxonomies.timeout = 20.0
|
339
|
-
# end
|
465
|
+
# # Apply the above configuration only to a new client.
|
466
|
+
# client = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Client.new do |config|
|
467
|
+
# config.timeout = 10.0
|
468
|
+
# config.rpcs.replace_taxonomy.timeout = 20.0
|
469
|
+
# end
|
340
470
|
#
|
341
471
|
# @!attribute [rw] endpoint
|
342
472
|
# The hostname or hostname:port of the service endpoint.
|
@@ -444,6 +574,11 @@ module Google
|
|
444
574
|
# trigger a retry.
|
445
575
|
#
|
446
576
|
class Rpcs
|
577
|
+
##
|
578
|
+
# RPC-specific configuration for `replace_taxonomy`
|
579
|
+
# @return [::Gapic::Config::Method]
|
580
|
+
#
|
581
|
+
attr_reader :replace_taxonomy
|
447
582
|
##
|
448
583
|
# RPC-specific configuration for `import_taxonomies`
|
449
584
|
# @return [::Gapic::Config::Method]
|
@@ -457,6 +592,8 @@ module Google
|
|
457
592
|
|
458
593
|
# @private
|
459
594
|
def initialize parent_rpcs = nil
|
595
|
+
replace_taxonomy_config = parent_rpcs.replace_taxonomy if parent_rpcs.respond_to? :replace_taxonomy
|
596
|
+
@replace_taxonomy = ::Gapic::Config::Method.new replace_taxonomy_config
|
460
597
|
import_taxonomies_config = parent_rpcs.import_taxonomies if parent_rpcs.respond_to? :import_taxonomies
|
461
598
|
@import_taxonomies = ::Gapic::Config::Method.new import_taxonomies_config
|
462
599
|
export_taxonomies_config = parent_rpcs.export_taxonomies if parent_rpcs.respond_to? :export_taxonomies
|
@@ -31,9 +31,10 @@ module Google
|
|
31
31
|
module DataCatalog
|
32
32
|
module V1
|
33
33
|
##
|
34
|
-
# Policy Tag Manager
|
35
|
-
#
|
36
|
-
#
|
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.
|
37
38
|
#
|
38
39
|
# To load this service and instantiate a client:
|
39
40
|
#
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/datacatalog/v1/bigquery.proto
|
3
|
+
|
4
|
+
require 'google/api/field_behavior_pb'
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
|
+
add_file("google/cloud/datacatalog/v1/bigquery.proto", :syntax => :proto3) do
|
9
|
+
add_message "google.cloud.datacatalog.v1.BigQueryConnectionSpec" do
|
10
|
+
optional :connection_type, :enum, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType"
|
11
|
+
optional :has_credential, :bool, 3
|
12
|
+
oneof :connection_spec do
|
13
|
+
optional :cloud_sql, :message, 2, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
add_enum "google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType" do
|
17
|
+
value :CONNECTION_TYPE_UNSPECIFIED, 0
|
18
|
+
value :CLOUD_SQL, 1
|
19
|
+
end
|
20
|
+
add_message "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec" do
|
21
|
+
optional :instance_id, :string, 1
|
22
|
+
optional :database, :string, 2
|
23
|
+
optional :type, :enum, 3, "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType"
|
24
|
+
end
|
25
|
+
add_enum "google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType" do
|
26
|
+
value :DATABASE_TYPE_UNSPECIFIED, 0
|
27
|
+
value :POSTGRES, 1
|
28
|
+
value :MYSQL, 2
|
29
|
+
end
|
30
|
+
add_message "google.cloud.datacatalog.v1.BigQueryRoutineSpec" do
|
31
|
+
repeated :imported_libraries, :string, 1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module DataCatalog
|
39
|
+
module V1
|
40
|
+
BigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec").msgclass
|
41
|
+
BigQueryConnectionSpec::ConnectionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType").enummodule
|
42
|
+
CloudSqlBigQueryConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec").msgclass
|
43
|
+
CloudSqlBigQueryConnectionSpec::DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType").enummodule
|
44
|
+
BigQueryRoutineSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.BigQueryRoutineSpec").msgclass
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datacatalog/v1/data_source.proto
|
3
3
|
|
4
|
+
require 'google/api/field_behavior_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/field_behavior_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/datacatalog/v1/data_source.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.datacatalog.v1.DataSource" do
|
@@ -1,12 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/datacatalog/v1/datacatalog.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'
|
9
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/datacatalog/v1/bigquery_pb'
|
10
9
|
require 'google/cloud/datacatalog/v1/common_pb'
|
11
10
|
require 'google/cloud/datacatalog/v1/data_source_pb'
|
12
11
|
require 'google/cloud/datacatalog/v1/gcs_fileset_spec_pb'
|
@@ -15,11 +14,14 @@ require 'google/cloud/datacatalog/v1/search_pb'
|
|
15
14
|
require 'google/cloud/datacatalog/v1/table_spec_pb'
|
16
15
|
require 'google/cloud/datacatalog/v1/tags_pb'
|
17
16
|
require 'google/cloud/datacatalog/v1/timestamps_pb'
|
17
|
+
require 'google/cloud/datacatalog/v1/usage_pb'
|
18
18
|
require 'google/iam/v1/iam_policy_pb'
|
19
19
|
require 'google/iam/v1/policy_pb'
|
20
20
|
require 'google/protobuf/empty_pb'
|
21
21
|
require 'google/protobuf/field_mask_pb'
|
22
22
|
require 'google/protobuf/timestamp_pb'
|
23
|
+
require 'google/protobuf'
|
24
|
+
|
23
25
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
24
26
|
add_file("google/cloud/datacatalog/v1/datacatalog.proto", :syntax => :proto3) do
|
25
27
|
add_message "google.cloud.datacatalog.v1.SearchCatalogRequest" do
|
@@ -34,6 +36,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
34
36
|
repeated :include_project_ids, :string, 3
|
35
37
|
optional :include_gcp_public_datasets, :bool, 7
|
36
38
|
repeated :restricted_locations, :string, 16
|
39
|
+
optional :include_public_tag_templates, :bool, 19
|
37
40
|
end
|
38
41
|
add_message "google.cloud.datacatalog.v1.SearchCatalogResponse" do
|
39
42
|
repeated :results, :message, 1, "google.cloud.datacatalog.v1.SearchCatalogResult"
|
@@ -96,6 +99,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
96
99
|
optional :description, :string, 4
|
97
100
|
optional :schema, :message, 5, "google.cloud.datacatalog.v1.Schema"
|
98
101
|
optional :source_system_timestamps, :message, 7, "google.cloud.datacatalog.v1.SystemTimestamps"
|
102
|
+
optional :usage_signal, :message, 13, "google.cloud.datacatalog.v1.UsageSignal"
|
103
|
+
map :labels, :string, :string, 14
|
99
104
|
optional :data_source, :message, 20, "google.cloud.datacatalog.v1.DataSource"
|
100
105
|
oneof :entry_type do
|
101
106
|
optional :type, :enum, 2, "google.cloud.datacatalog.v1.EntryType"
|
@@ -112,6 +117,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
112
117
|
end
|
113
118
|
oneof :spec do
|
114
119
|
optional :database_table_spec, :message, 24, "google.cloud.datacatalog.v1.DatabaseTableSpec"
|
120
|
+
optional :data_source_connection_spec, :message, 27, "google.cloud.datacatalog.v1.DataSourceConnectionSpec"
|
121
|
+
optional :routine_spec, :message, 28, "google.cloud.datacatalog.v1.RoutineSpec"
|
115
122
|
end
|
116
123
|
end
|
117
124
|
add_message "google.cloud.datacatalog.v1.DatabaseTableSpec" do
|
@@ -122,6 +129,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
122
129
|
value :NATIVE, 1
|
123
130
|
value :EXTERNAL, 2
|
124
131
|
end
|
132
|
+
add_message "google.cloud.datacatalog.v1.DataSourceConnectionSpec" do
|
133
|
+
optional :bigquery_connection_spec, :message, 1, "google.cloud.datacatalog.v1.BigQueryConnectionSpec"
|
134
|
+
end
|
135
|
+
add_message "google.cloud.datacatalog.v1.RoutineSpec" do
|
136
|
+
optional :routine_type, :enum, 1, "google.cloud.datacatalog.v1.RoutineSpec.RoutineType"
|
137
|
+
optional :language, :string, 2
|
138
|
+
repeated :routine_arguments, :message, 3, "google.cloud.datacatalog.v1.RoutineSpec.Argument"
|
139
|
+
optional :return_type, :string, 4
|
140
|
+
optional :definition_body, :string, 5
|
141
|
+
oneof :system_spec do
|
142
|
+
optional :bigquery_routine_spec, :message, 6, "google.cloud.datacatalog.v1.BigQueryRoutineSpec"
|
143
|
+
end
|
144
|
+
end
|
145
|
+
add_message "google.cloud.datacatalog.v1.RoutineSpec.Argument" do
|
146
|
+
optional :name, :string, 1
|
147
|
+
optional :mode, :enum, 2, "google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode"
|
148
|
+
optional :type, :string, 3
|
149
|
+
end
|
150
|
+
add_enum "google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode" do
|
151
|
+
value :MODE_UNSPECIFIED, 0
|
152
|
+
value :IN, 1
|
153
|
+
value :OUT, 2
|
154
|
+
value :INOUT, 3
|
155
|
+
end
|
156
|
+
add_enum "google.cloud.datacatalog.v1.RoutineSpec.RoutineType" do
|
157
|
+
value :ROUTINE_TYPE_UNSPECIFIED, 0
|
158
|
+
value :SCALAR_FUNCTION, 1
|
159
|
+
value :PROCEDURE, 2
|
160
|
+
end
|
125
161
|
add_message "google.cloud.datacatalog.v1.EntryGroup" do
|
126
162
|
optional :name, :string, 1
|
127
163
|
optional :display_name, :string, 2
|
@@ -202,7 +238,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
202
238
|
value :MODEL, 5
|
203
239
|
value :DATA_STREAM, 3
|
204
240
|
value :FILESET, 4
|
241
|
+
value :CLUSTER, 6
|
205
242
|
value :DATABASE, 7
|
243
|
+
value :DATA_SOURCE_CONNECTION, 8
|
244
|
+
value :ROUTINE, 9
|
206
245
|
value :SERVICE, 14
|
207
246
|
end
|
208
247
|
end
|
@@ -229,6 +268,11 @@ module Google
|
|
229
268
|
Entry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Entry").msgclass
|
230
269
|
DatabaseTableSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec").msgclass
|
231
270
|
DatabaseTableSpec::TableType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DatabaseTableSpec.TableType").enummodule
|
271
|
+
DataSourceConnectionSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.DataSourceConnectionSpec").msgclass
|
272
|
+
RoutineSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec").msgclass
|
273
|
+
RoutineSpec::Argument = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument").msgclass
|
274
|
+
RoutineSpec::Argument::Mode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode").enummodule
|
275
|
+
RoutineSpec::RoutineType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.RoutineSpec.RoutineType").enummodule
|
232
276
|
EntryGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.EntryGroup").msgclass
|
233
277
|
CreateTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTagTemplateRequest").msgclass
|
234
278
|
GetTagTemplateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.GetTagTemplateRequest").msgclass
|