google-cloud-data_catalog-v1 0.14.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 +1 -1
- 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 +216 -13
- 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 +120 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest.rb +1 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog.rb +1 -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 +6 -3
- 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 +6 -4
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- 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 +9 -2
@@ -1066,6 +1066,44 @@ module Google
|
|
1066
1066
|
result
|
1067
1067
|
end
|
1068
1068
|
|
1069
|
+
##
|
1070
|
+
# Baseline implementation for the reconcile_tags REST call
|
1071
|
+
#
|
1072
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest]
|
1073
|
+
# A request object representing the call parameters. Required.
|
1074
|
+
# @param options [::Gapic::CallOptions]
|
1075
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1076
|
+
#
|
1077
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1078
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1079
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1080
|
+
#
|
1081
|
+
# @return [::Google::Longrunning::Operation]
|
1082
|
+
# A result object deserialized from the server's reply
|
1083
|
+
def reconcile_tags request_pb, options = nil
|
1084
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1085
|
+
|
1086
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_reconcile_tags_request request_pb
|
1087
|
+
query_string_params = if query_string_params.any?
|
1088
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
1089
|
+
else
|
1090
|
+
{}
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
response = @client_stub.make_http_request(
|
1094
|
+
verb,
|
1095
|
+
uri: uri,
|
1096
|
+
body: body || "",
|
1097
|
+
params: query_string_params,
|
1098
|
+
options: options
|
1099
|
+
)
|
1100
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1101
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1102
|
+
|
1103
|
+
yield result, operation if block_given?
|
1104
|
+
result
|
1105
|
+
end
|
1106
|
+
|
1069
1107
|
##
|
1070
1108
|
# Baseline implementation for the star_entry REST call
|
1071
1109
|
#
|
@@ -1256,6 +1294,44 @@ module Google
|
|
1256
1294
|
result
|
1257
1295
|
end
|
1258
1296
|
|
1297
|
+
##
|
1298
|
+
# Baseline implementation for the import_entries REST call
|
1299
|
+
#
|
1300
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ImportEntriesRequest]
|
1301
|
+
# A request object representing the call parameters. Required.
|
1302
|
+
# @param options [::Gapic::CallOptions]
|
1303
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1304
|
+
#
|
1305
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1306
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
1307
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1308
|
+
#
|
1309
|
+
# @return [::Google::Longrunning::Operation]
|
1310
|
+
# A result object deserialized from the server's reply
|
1311
|
+
def import_entries request_pb, options = nil
|
1312
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1313
|
+
|
1314
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_import_entries_request request_pb
|
1315
|
+
query_string_params = if query_string_params.any?
|
1316
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
1317
|
+
else
|
1318
|
+
{}
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
response = @client_stub.make_http_request(
|
1322
|
+
verb,
|
1323
|
+
uri: uri,
|
1324
|
+
body: body || "",
|
1325
|
+
params: query_string_params,
|
1326
|
+
options: options
|
1327
|
+
)
|
1328
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1329
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
1330
|
+
|
1331
|
+
yield result, operation if block_given?
|
1332
|
+
result
|
1333
|
+
end
|
1334
|
+
|
1259
1335
|
##
|
1260
1336
|
# @private
|
1261
1337
|
#
|
@@ -1864,6 +1940,28 @@ module Google
|
|
1864
1940
|
transcoder.transcode request_pb
|
1865
1941
|
end
|
1866
1942
|
|
1943
|
+
##
|
1944
|
+
# @private
|
1945
|
+
#
|
1946
|
+
# GRPC transcoding helper method for the reconcile_tags REST call
|
1947
|
+
#
|
1948
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest]
|
1949
|
+
# A request object representing the call parameters. Required.
|
1950
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1951
|
+
# Uri, Body, Query string parameters
|
1952
|
+
def self.transcode_reconcile_tags_request request_pb
|
1953
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1954
|
+
.with_bindings(
|
1955
|
+
uri_method: :post,
|
1956
|
+
uri_template: "/v1/{parent}/tags:reconcile",
|
1957
|
+
body: "*",
|
1958
|
+
matches: [
|
1959
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entries/[^/]+/?$}, false]
|
1960
|
+
]
|
1961
|
+
)
|
1962
|
+
transcoder.transcode request_pb
|
1963
|
+
end
|
1964
|
+
|
1867
1965
|
##
|
1868
1966
|
# @private
|
1869
1967
|
#
|
@@ -2013,6 +2111,28 @@ module Google
|
|
2013
2111
|
)
|
2014
2112
|
transcoder.transcode request_pb
|
2015
2113
|
end
|
2114
|
+
|
2115
|
+
##
|
2116
|
+
# @private
|
2117
|
+
#
|
2118
|
+
# GRPC transcoding helper method for the import_entries REST call
|
2119
|
+
#
|
2120
|
+
# @param request_pb [::Google::Cloud::DataCatalog::V1::ImportEntriesRequest]
|
2121
|
+
# A request object representing the call parameters. Required.
|
2122
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
2123
|
+
# Uri, Body, Query string parameters
|
2124
|
+
def self.transcode_import_entries_request request_pb
|
2125
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
2126
|
+
.with_bindings(
|
2127
|
+
uri_method: :post,
|
2128
|
+
uri_template: "/v1/{parent}/entries:import",
|
2129
|
+
body: "*",
|
2130
|
+
matches: [
|
2131
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
|
2132
|
+
]
|
2133
|
+
)
|
2134
|
+
transcoder.transcode request_pb
|
2135
|
+
end
|
2016
2136
|
end
|
2017
2137
|
end
|
2018
2138
|
end
|
@@ -24,6 +24,7 @@ require "google/cloud/data_catalog/v1/version"
|
|
24
24
|
|
25
25
|
require "google/cloud/data_catalog/v1/data_catalog/credentials"
|
26
26
|
require "google/cloud/data_catalog/v1/data_catalog/paths"
|
27
|
+
require "google/cloud/data_catalog/v1/data_catalog/rest/operations"
|
27
28
|
require "google/cloud/data_catalog/v1/data_catalog/rest/client"
|
28
29
|
|
29
30
|
module Google
|
@@ -24,6 +24,7 @@ require "google/cloud/data_catalog/v1/version"
|
|
24
24
|
|
25
25
|
require "google/cloud/data_catalog/v1/data_catalog/credentials"
|
26
26
|
require "google/cloud/data_catalog/v1/data_catalog/paths"
|
27
|
+
require "google/cloud/data_catalog/v1/data_catalog/operations"
|
27
28
|
require "google/cloud/data_catalog/v1/data_catalog/client"
|
28
29
|
require "google/cloud/data_catalog/v1/data_catalog/rest"
|
29
30
|
|
@@ -450,7 +450,7 @@ module Google
|
|
450
450
|
# @param options [::Gapic::CallOptions, ::Hash]
|
451
451
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
452
452
|
#
|
453
|
-
# @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil)
|
453
|
+
# @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
454
454
|
# Pass arguments to `list_taxonomies` via keyword arguments. Note that at
|
455
455
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
456
456
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -465,6 +465,9 @@ module Google
|
|
465
465
|
# the first page is returned.
|
466
466
|
#
|
467
467
|
# The token is returned in the response to a previous list request.
|
468
|
+
# @param filter [::String]
|
469
|
+
# Supported field for filter is 'service' and value is 'dataplex'.
|
470
|
+
# Eg: service=dataplex.
|
468
471
|
#
|
469
472
|
# @yield [response, operation] Access the result along with the RPC operation
|
470
473
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Taxonomy>]
|
@@ -1393,9 +1396,9 @@ module Google
|
|
1393
1396
|
# * (`String`) The path to a service account key file in JSON format
|
1394
1397
|
# * (`Hash`) A service account key as a Hash
|
1395
1398
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1396
|
-
# (see the [googleauth docs](https://
|
1399
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1397
1400
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1398
|
-
# (see the [signet docs](https://
|
1401
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1399
1402
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1400
1403
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1401
1404
|
# * (`nil`) indicating no credentials
|
@@ -372,7 +372,7 @@ module Google
|
|
372
372
|
# @param options [::Gapic::CallOptions, ::Hash]
|
373
373
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
374
374
|
#
|
375
|
-
# @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil)
|
375
|
+
# @overload list_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
376
376
|
# Pass arguments to `list_taxonomies` via keyword arguments. Note that at
|
377
377
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
378
378
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -387,6 +387,9 @@ module Google
|
|
387
387
|
# the first page is returned.
|
388
388
|
#
|
389
389
|
# The token is returned in the response to a previous list request.
|
390
|
+
# @param filter [::String]
|
391
|
+
# Supported field for filter is 'service' and value is 'dataplex'.
|
392
|
+
# Eg: service=dataplex.
|
390
393
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
391
394
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DataCatalog::V1::Taxonomy>]
|
392
395
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1077,9 +1080,9 @@ module Google
|
|
1077
1080
|
# * (`String`) The path to a service account key file in JSON format
|
1078
1081
|
# * (`Hash`) A service account key as a Hash
|
1079
1082
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1080
|
-
# (see the [googleauth docs](https://
|
1083
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1081
1084
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1082
|
-
# (see the [signet docs](https://
|
1085
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1083
1086
|
# * (`nil`) indicating no credentials
|
1084
1087
|
# @return [::Object]
|
1085
1088
|
# @!attribute [rw] scope
|
@@ -288,7 +288,8 @@ module Google
|
|
288
288
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
289
289
|
#
|
290
290
|
# @param parent [::String]
|
291
|
-
# Required. Resource name of project that the imported taxonomies will belong
|
291
|
+
# Required. Resource name of project that the imported taxonomies will belong
|
292
|
+
# to.
|
292
293
|
# @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
|
293
294
|
# Inline source taxonomy to import.
|
294
295
|
# @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
|
@@ -382,7 +383,8 @@ module Google
|
|
382
383
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
383
384
|
#
|
384
385
|
# @param parent [::String]
|
385
|
-
# Required. Resource name of the project that the exported taxonomies belong
|
386
|
+
# Required. Resource name of the project that the exported taxonomies belong
|
387
|
+
# to.
|
386
388
|
# @param taxonomies [::Array<::String>]
|
387
389
|
# Required. Resource names of the taxonomies to export.
|
388
390
|
# @param serialized_taxonomies [::Boolean]
|
@@ -491,9 +493,9 @@ module Google
|
|
491
493
|
# * (`String`) The path to a service account key file in JSON format
|
492
494
|
# * (`Hash`) A service account key as a Hash
|
493
495
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
494
|
-
# (see the [googleauth docs](https://
|
496
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
495
497
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
496
|
-
# (see the [signet docs](https://
|
498
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
497
499
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
498
500
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
499
501
|
# * (`nil`) indicating no credentials
|
@@ -256,7 +256,8 @@ module Google
|
|
256
256
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
257
257
|
#
|
258
258
|
# @param parent [::String]
|
259
|
-
# Required. Resource name of project that the imported taxonomies will belong
|
259
|
+
# Required. Resource name of project that the imported taxonomies will belong
|
260
|
+
# to.
|
260
261
|
# @param inline_source [::Google::Cloud::DataCatalog::V1::InlineSource, ::Hash]
|
261
262
|
# Inline source taxonomy to import.
|
262
263
|
# @param cross_regional_source [::Google::Cloud::DataCatalog::V1::CrossRegionalSource, ::Hash]
|
@@ -327,7 +328,8 @@ module Google
|
|
327
328
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
328
329
|
#
|
329
330
|
# @param parent [::String]
|
330
|
-
# Required. Resource name of the project that the exported taxonomies belong
|
331
|
+
# Required. Resource name of the project that the exported taxonomies belong
|
332
|
+
# to.
|
331
333
|
# @param taxonomies [::Array<::String>]
|
332
334
|
# Required. Resource names of the taxonomies to export.
|
333
335
|
# @param serialized_taxonomies [::Boolean]
|
@@ -413,9 +415,9 @@ module Google
|
|
413
415
|
# * (`String`) The path to a service account key file in JSON format
|
414
416
|
# * (`Hash`) A service account key as a Hash
|
415
417
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
416
|
-
# (see the [googleauth docs](https://
|
418
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
417
419
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
418
|
-
# (see the [signet docs](https://
|
420
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
419
421
|
# * (`nil`) indicating no credentials
|
420
422
|
# @return [::Object]
|
421
423
|
# @!attribute [rw] scope
|
@@ -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
|
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
|
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
9
|
require 'google/api/resource_pb'
|
10
|
+
require 'google/cloud/datacatalog/v1/common_pb'
|
10
11
|
require 'google/cloud/datacatalog/v1/timestamps_pb'
|
11
12
|
require 'google/iam/v1/iam_policy_pb'
|
12
13
|
require 'google/iam/v1/policy_pb'
|
@@ -22,6 +23,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
23
|
optional :policy_tag_count, :int32, 4
|
23
24
|
optional :taxonomy_timestamps, :message, 5, "google.cloud.datacatalog.v1.SystemTimestamps"
|
24
25
|
repeated :activated_policy_types, :enum, 6, "google.cloud.datacatalog.v1.Taxonomy.PolicyType"
|
26
|
+
optional :service, :message, 7, "google.cloud.datacatalog.v1.Taxonomy.Service"
|
27
|
+
end
|
28
|
+
add_message "google.cloud.datacatalog.v1.Taxonomy.Service" do
|
29
|
+
optional :name, :enum, 1, "google.cloud.datacatalog.v1.ManagingSystem"
|
30
|
+
optional :identity, :string, 2
|
25
31
|
end
|
26
32
|
add_enum "google.cloud.datacatalog.v1.Taxonomy.PolicyType" do
|
27
33
|
value :POLICY_TYPE_UNSPECIFIED, 0
|
@@ -49,6 +55,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
49
55
|
optional :parent, :string, 1
|
50
56
|
optional :page_size, :int32, 2
|
51
57
|
optional :page_token, :string, 3
|
58
|
+
optional :filter, :string, 4
|
52
59
|
end
|
53
60
|
add_message "google.cloud.datacatalog.v1.ListTaxonomiesResponse" do
|
54
61
|
repeated :taxonomies, :message, 1, "google.cloud.datacatalog.v1.Taxonomy"
|
@@ -88,6 +95,7 @@ module Google
|
|
88
95
|
module DataCatalog
|
89
96
|
module V1
|
90
97
|
Taxonomy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Taxonomy").msgclass
|
98
|
+
Taxonomy::Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Taxonomy.Service").msgclass
|
91
99
|
Taxonomy::PolicyType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.Taxonomy.PolicyType").enummodule
|
92
100
|
PolicyTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.PolicyTag").msgclass
|
93
101
|
CreateTaxonomyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.datacatalog.v1.CreateTaxonomyRequest").msgclass
|