google-cloud-data_catalog-v1 0.14.0 → 0.16.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 +288 -54
- 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 +228 -54
- 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/bigquery_pb.rb +24 -25
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +26 -12
- data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +24 -18
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +55 -263
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +33 -0
- data/lib/google/cloud/datacatalog/v1/dataplex_spec_pb.rb +25 -21
- data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +49 -0
- data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +25 -10
- data/lib/google/cloud/datacatalog/v1/physical_schema_pb.rb +24 -26
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +28 -66
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +25 -43
- data/lib/google/cloud/datacatalog/v1/schema_pb.rb +27 -11
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +25 -21
- data/lib/google/cloud/datacatalog/v1/table_spec_pb.rb +24 -26
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +25 -59
- data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +25 -6
- data/lib/google/cloud/datacatalog/v1/usage_pb.rb +26 -11
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/datacatalog/v1/common.rb +25 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +367 -41
- 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 +144 -0
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +11 -4
@@ -69,45 +69,8 @@ module Google
|
|
69
69
|
default_config = Client::Configuration.new parent_config
|
70
70
|
|
71
71
|
default_config.timeout = 60.0
|
72
|
-
|
73
|
-
|
74
|
-
default_config.rpcs.search_catalog.retry_policy = {
|
75
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
76
|
-
}
|
77
|
-
|
78
|
-
default_config.rpcs.get_entry_group.timeout = 60.0
|
79
|
-
default_config.rpcs.get_entry_group.retry_policy = {
|
80
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
81
|
-
}
|
82
|
-
|
83
|
-
default_config.rpcs.list_entry_groups.timeout = 60.0
|
84
|
-
default_config.rpcs.list_entry_groups.retry_policy = {
|
85
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
86
|
-
}
|
87
|
-
|
88
|
-
default_config.rpcs.get_entry.timeout = 60.0
|
89
|
-
default_config.rpcs.get_entry.retry_policy = {
|
90
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
91
|
-
}
|
92
|
-
|
93
|
-
default_config.rpcs.lookup_entry.timeout = 60.0
|
94
|
-
default_config.rpcs.lookup_entry.retry_policy = {
|
95
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
96
|
-
}
|
97
|
-
|
98
|
-
default_config.rpcs.list_entries.timeout = 60.0
|
99
|
-
default_config.rpcs.list_entries.retry_policy = {
|
100
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
101
|
-
}
|
102
|
-
|
103
|
-
default_config.rpcs.list_tags.timeout = 60.0
|
104
|
-
default_config.rpcs.list_tags.retry_policy = {
|
105
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
106
|
-
}
|
107
|
-
|
108
|
-
default_config.rpcs.get_iam_policy.timeout = 60.0
|
109
|
-
default_config.rpcs.get_iam_policy.retry_policy = {
|
110
|
-
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
72
|
+
default_config.retry_policy = {
|
73
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14, 8, 13]
|
111
74
|
}
|
112
75
|
|
113
76
|
default_config
|
@@ -174,6 +137,12 @@ module Google
|
|
174
137
|
@quota_project_id = @config.quota_project
|
175
138
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
176
139
|
|
140
|
+
@operations_client = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Operations.new do |config|
|
141
|
+
config.credentials = credentials
|
142
|
+
config.quota_project = @quota_project_id
|
143
|
+
config.endpoint = @config.endpoint
|
144
|
+
end
|
145
|
+
|
177
146
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
178
147
|
config.credentials = credentials
|
179
148
|
config.quota_project = @quota_project_id
|
@@ -183,6 +152,13 @@ module Google
|
|
183
152
|
@data_catalog_stub = ::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
184
153
|
end
|
185
154
|
|
155
|
+
##
|
156
|
+
# Get the associated client for long-running operations.
|
157
|
+
#
|
158
|
+
# @return [::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Operations]
|
159
|
+
#
|
160
|
+
attr_reader :operations_client
|
161
|
+
|
186
162
|
##
|
187
163
|
# Get the associated client for mix-in of the IAMPolicy.
|
188
164
|
#
|
@@ -231,9 +207,8 @@ module Google
|
|
231
207
|
# empty AND `include_gcp_public_datasets` is set to `false`. In this case,
|
232
208
|
# the request returns an error.
|
233
209
|
# @param query [::String]
|
234
|
-
# Optional. The query string with a minimum of 3 characters and specific
|
235
|
-
# For more information, see
|
236
|
-
# [Data Catalog search
|
210
|
+
# Optional. The query string with a minimum of 3 characters and specific
|
211
|
+
# syntax. For more information, see [Data Catalog search
|
237
212
|
# syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
|
238
213
|
#
|
239
214
|
# An empty query string returns all data assets (in the specified scope)
|
@@ -251,10 +226,11 @@ module Google
|
|
251
226
|
# The maximum number is 1000. If exceeded, throws an "invalid argument"
|
252
227
|
# exception.
|
253
228
|
# @param page_token [::String]
|
254
|
-
# Optional. Pagination token that, if specified, returns the next page of
|
255
|
-
# results. If empty, returns the first page.
|
229
|
+
# Optional. Pagination token that, if specified, returns the next page of
|
230
|
+
# search results. If empty, returns the first page.
|
256
231
|
#
|
257
|
-
# This token is returned in the
|
232
|
+
# This token is returned in the
|
233
|
+
# {::Google::Cloud::DataCatalog::V1::SearchCatalogResponse#next_page_token SearchCatalogResponse.next_page_token}
|
258
234
|
# field of the response to a previous
|
259
235
|
# {::Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client#search_catalog SearchCatalogRequest}
|
260
236
|
# call.
|
@@ -355,7 +331,8 @@ module Google
|
|
355
331
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
356
332
|
#
|
357
333
|
# @param parent [::String]
|
358
|
-
# Required. The names of the project and location that the new entry group
|
334
|
+
# Required. The names of the project and location that the new entry group
|
335
|
+
# belongs to.
|
359
336
|
#
|
360
337
|
# Note: The entry group itself and its child resources might not be
|
361
338
|
# stored in the location specified in its name.
|
@@ -1016,7 +993,7 @@ module Google
|
|
1016
993
|
# @param options [::Gapic::CallOptions, ::Hash]
|
1017
994
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1018
995
|
#
|
1019
|
-
# @overload lookup_entry(linked_resource: nil, sql_resource: nil, fully_qualified_name: nil)
|
996
|
+
# @overload lookup_entry(linked_resource: nil, sql_resource: nil, fully_qualified_name: nil, project: nil, location: nil)
|
1020
997
|
# Pass arguments to `lookup_entry` via keyword arguments. Note that at
|
1021
998
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1022
999
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1045,7 +1022,9 @@ module Google
|
|
1045
1022
|
# [Lexical structure in Standard SQL]
|
1046
1023
|
# (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
|
1047
1024
|
# @param fully_qualified_name [::String]
|
1048
|
-
# Fully
|
1025
|
+
# [Fully Qualified Name
|
1026
|
+
# (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
|
1027
|
+
# of the resource.
|
1049
1028
|
#
|
1050
1029
|
# FQNs take two forms:
|
1051
1030
|
#
|
@@ -1060,6 +1039,14 @@ module Google
|
|
1060
1039
|
# Example for a DPMS table:
|
1061
1040
|
#
|
1062
1041
|
# `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
|
1042
|
+
# @param project [::String]
|
1043
|
+
# Project where the lookup should be performed. Required to lookup
|
1044
|
+
# entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
|
1045
|
+
# using its `fully_qualified_name`. Ignored in other cases.
|
1046
|
+
# @param location [::String]
|
1047
|
+
# Location where the lookup should be performed. Required to lookup
|
1048
|
+
# entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
|
1049
|
+
# using its `fully_qualified_name`. Ignored in other cases.
|
1063
1050
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1064
1051
|
# @yieldparam result [::Google::Cloud::DataCatalog::V1::Entry]
|
1065
1052
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1715,8 +1702,8 @@ module Google
|
|
1715
1702
|
# @param tag_template_field [::Google::Cloud::DataCatalog::V1::TagTemplateField, ::Hash]
|
1716
1703
|
# Required. The template to update.
|
1717
1704
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1718
|
-
# Optional. Names of fields whose values to overwrite on an individual field
|
1719
|
-
# template. The following fields are modifiable:
|
1705
|
+
# Optional. Names of fields whose values to overwrite on an individual field
|
1706
|
+
# of a tag template. The following fields are modifiable:
|
1720
1707
|
#
|
1721
1708
|
# * `display_name`
|
1722
1709
|
# * `type.enum_type`
|
@@ -1798,7 +1785,8 @@ module Google
|
|
1798
1785
|
# @param name [::String]
|
1799
1786
|
# Required. The name of the tag template field.
|
1800
1787
|
# @param new_tag_template_field_id [::String]
|
1801
|
-
# Required. The new ID of this tag template field. For example,
|
1788
|
+
# Required. The new ID of this tag template field. For example,
|
1789
|
+
# `my_new_field`.
|
1802
1790
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1803
1791
|
# @yieldparam result [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1804
1792
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -1864,7 +1852,8 @@ module Google
|
|
1864
1852
|
# @param name [::String]
|
1865
1853
|
# Required. The name of the enum field value.
|
1866
1854
|
# @param new_enum_value_display_name [::String]
|
1867
|
-
# Required. The new display name of the enum value. For example,
|
1855
|
+
# Required. The new display name of the enum value. For example,
|
1856
|
+
# `my_new_enum_value`.
|
1868
1857
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
1869
1858
|
# @yieldparam result [::Google::Cloud::DataCatalog::V1::TagTemplateField]
|
1870
1859
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2264,6 +2253,92 @@ module Google
|
|
2264
2253
|
raise ::Google::Cloud::Error.from_error(e)
|
2265
2254
|
end
|
2266
2255
|
|
2256
|
+
##
|
2257
|
+
# `ReconcileTags` creates or updates a list of tags on the entry.
|
2258
|
+
# If the
|
2259
|
+
# {::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest#force_delete_missing ReconcileTagsRequest.force_delete_missing}
|
2260
|
+
# parameter is set, the operation deletes tags not included in the input tag
|
2261
|
+
# list.
|
2262
|
+
#
|
2263
|
+
# `ReconcileTags` returns a [long-running operation]
|
2264
|
+
# [google.longrunning.Operation] resource that can be queried with
|
2265
|
+
# Operations.GetOperation
|
2266
|
+
# to return [ReconcileTagsMetadata]
|
2267
|
+
# [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
|
2268
|
+
# a [ReconcileTagsResponse]
|
2269
|
+
# [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
|
2270
|
+
#
|
2271
|
+
# @overload reconcile_tags(request, options = nil)
|
2272
|
+
# Pass arguments to `reconcile_tags` via a request object, either of type
|
2273
|
+
# {::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest} or an equivalent Hash.
|
2274
|
+
#
|
2275
|
+
# @param request [::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest, ::Hash]
|
2276
|
+
# A request object representing the call parameters. Required. To specify no
|
2277
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2278
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2279
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2280
|
+
#
|
2281
|
+
# @overload reconcile_tags(parent: nil, tag_template: nil, force_delete_missing: nil, tags: nil)
|
2282
|
+
# Pass arguments to `reconcile_tags` via keyword arguments. Note that at
|
2283
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2284
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2285
|
+
#
|
2286
|
+
# @param parent [::String]
|
2287
|
+
# Required. Name of {::Google::Cloud::DataCatalog::V1::Entry Entry} to be tagged.
|
2288
|
+
# @param tag_template [::String]
|
2289
|
+
# Required. The name of the tag template, which is used for reconciliation.
|
2290
|
+
# @param force_delete_missing [::Boolean]
|
2291
|
+
# If set to `true`, deletes entry tags related to a tag template
|
2292
|
+
# not listed in the tags source from an entry. If set to `false`,
|
2293
|
+
# unlisted tags are retained.
|
2294
|
+
# @param tags [::Array<::Google::Cloud::DataCatalog::V1::Tag, ::Hash>]
|
2295
|
+
# A list of tags to apply to an entry. A tag can specify a
|
2296
|
+
# tag template, which must be the template specified in the
|
2297
|
+
# `ReconcileTagsRequest`.
|
2298
|
+
# The sole entry and each of its columns must be mentioned at most once.
|
2299
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2300
|
+
# @yieldparam result [::Gapic::Operation]
|
2301
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2302
|
+
#
|
2303
|
+
# @return [::Gapic::Operation]
|
2304
|
+
#
|
2305
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2306
|
+
def reconcile_tags request, options = nil
|
2307
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2308
|
+
|
2309
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ReconcileTagsRequest
|
2310
|
+
|
2311
|
+
# Converts hash and nil to an options object
|
2312
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2313
|
+
|
2314
|
+
# Customize the options with defaults
|
2315
|
+
call_metadata = @config.rpcs.reconcile_tags.metadata.to_h
|
2316
|
+
|
2317
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2318
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2319
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2320
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
|
2321
|
+
transports_version_send: [:rest]
|
2322
|
+
|
2323
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2324
|
+
|
2325
|
+
options.apply_defaults timeout: @config.rpcs.reconcile_tags.timeout,
|
2326
|
+
metadata: call_metadata,
|
2327
|
+
retry_policy: @config.rpcs.reconcile_tags.retry_policy
|
2328
|
+
|
2329
|
+
options.apply_defaults timeout: @config.timeout,
|
2330
|
+
metadata: @config.metadata,
|
2331
|
+
retry_policy: @config.retry_policy
|
2332
|
+
|
2333
|
+
@data_catalog_stub.reconcile_tags request, options do |result, operation|
|
2334
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2335
|
+
yield result, operation if block_given?
|
2336
|
+
return result
|
2337
|
+
end
|
2338
|
+
rescue ::Gapic::Rest::Error => e
|
2339
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2340
|
+
end
|
2341
|
+
|
2267
2342
|
##
|
2268
2343
|
# Marks an {::Google::Cloud::DataCatalog::V1::Entry Entry} as starred by
|
2269
2344
|
# the current user. Starring information is private to each user.
|
@@ -2647,6 +2722,91 @@ module Google
|
|
2647
2722
|
raise ::Google::Cloud::Error.from_error(e)
|
2648
2723
|
end
|
2649
2724
|
|
2725
|
+
##
|
2726
|
+
# Imports entries from a source, such as data previously dumped into a
|
2727
|
+
# Cloud Storage bucket, into Data Catalog. Import of entries
|
2728
|
+
# is a sync operation that reconciles the state of the third-party system
|
2729
|
+
# with the Data Catalog.
|
2730
|
+
#
|
2731
|
+
# `ImportEntries` accepts source data snapshots of a third-party system.
|
2732
|
+
# Snapshot should be delivered as a .wire or base65-encoded .txt file
|
2733
|
+
# containing a sequence of Protocol Buffer messages of
|
2734
|
+
# {::Google::Cloud::DataCatalog::V1::DumpItem DumpItem} type.
|
2735
|
+
#
|
2736
|
+
# `ImportEntries` returns a [long-running operation]
|
2737
|
+
# [google.longrunning.Operation] resource that can be queried with
|
2738
|
+
# Operations.GetOperation
|
2739
|
+
# to return
|
2740
|
+
# {::Google::Cloud::DataCatalog::V1::ImportEntriesMetadata ImportEntriesMetadata}
|
2741
|
+
# and an
|
2742
|
+
# {::Google::Cloud::DataCatalog::V1::ImportEntriesResponse ImportEntriesResponse}
|
2743
|
+
# message.
|
2744
|
+
#
|
2745
|
+
# @overload import_entries(request, options = nil)
|
2746
|
+
# Pass arguments to `import_entries` via a request object, either of type
|
2747
|
+
# {::Google::Cloud::DataCatalog::V1::ImportEntriesRequest} or an equivalent Hash.
|
2748
|
+
#
|
2749
|
+
# @param request [::Google::Cloud::DataCatalog::V1::ImportEntriesRequest, ::Hash]
|
2750
|
+
# A request object representing the call parameters. Required. To specify no
|
2751
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2752
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2753
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2754
|
+
#
|
2755
|
+
# @overload import_entries(parent: nil, gcs_bucket_path: nil, job_id: nil)
|
2756
|
+
# Pass arguments to `import_entries` via keyword arguments. Note that at
|
2757
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2758
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2759
|
+
#
|
2760
|
+
# @param parent [::String]
|
2761
|
+
# Required. Target entry group for ingested entries.
|
2762
|
+
# @param gcs_bucket_path [::String]
|
2763
|
+
# Path to a Cloud Storage bucket that contains a dump ready for ingestion.
|
2764
|
+
# @param job_id [::String]
|
2765
|
+
# Optional. (Optional) Dataplex task job id, if specified will be used as
|
2766
|
+
# part of ImportEntries LRO ID
|
2767
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2768
|
+
# @yieldparam result [::Gapic::Operation]
|
2769
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2770
|
+
#
|
2771
|
+
# @return [::Gapic::Operation]
|
2772
|
+
#
|
2773
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2774
|
+
def import_entries request, options = nil
|
2775
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2776
|
+
|
2777
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::ImportEntriesRequest
|
2778
|
+
|
2779
|
+
# Converts hash and nil to an options object
|
2780
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2781
|
+
|
2782
|
+
# Customize the options with defaults
|
2783
|
+
call_metadata = @config.rpcs.import_entries.metadata.to_h
|
2784
|
+
|
2785
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2786
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2787
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2788
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
|
2789
|
+
transports_version_send: [:rest]
|
2790
|
+
|
2791
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2792
|
+
|
2793
|
+
options.apply_defaults timeout: @config.rpcs.import_entries.timeout,
|
2794
|
+
metadata: call_metadata,
|
2795
|
+
retry_policy: @config.rpcs.import_entries.retry_policy
|
2796
|
+
|
2797
|
+
options.apply_defaults timeout: @config.timeout,
|
2798
|
+
metadata: @config.metadata,
|
2799
|
+
retry_policy: @config.retry_policy
|
2800
|
+
|
2801
|
+
@data_catalog_stub.import_entries request, options do |result, operation|
|
2802
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
2803
|
+
yield result, operation if block_given?
|
2804
|
+
return result
|
2805
|
+
end
|
2806
|
+
rescue ::Gapic::Rest::Error => e
|
2807
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2808
|
+
end
|
2809
|
+
|
2650
2810
|
##
|
2651
2811
|
# Configuration class for the DataCatalog REST API.
|
2652
2812
|
#
|
@@ -2685,9 +2845,9 @@ module Google
|
|
2685
2845
|
# * (`String`) The path to a service account key file in JSON format
|
2686
2846
|
# * (`Hash`) A service account key as a Hash
|
2687
2847
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
2688
|
-
# (see the [googleauth docs](https://
|
2848
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
2689
2849
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
2690
|
-
# (see the [signet docs](https://
|
2850
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
2691
2851
|
# * (`nil`) indicating no credentials
|
2692
2852
|
# @return [::Object]
|
2693
2853
|
# @!attribute [rw] scope
|
@@ -2906,6 +3066,11 @@ module Google
|
|
2906
3066
|
#
|
2907
3067
|
attr_reader :list_tags
|
2908
3068
|
##
|
3069
|
+
# RPC-specific configuration for `reconcile_tags`
|
3070
|
+
# @return [::Gapic::Config::Method]
|
3071
|
+
#
|
3072
|
+
attr_reader :reconcile_tags
|
3073
|
+
##
|
2909
3074
|
# RPC-specific configuration for `star_entry`
|
2910
3075
|
# @return [::Gapic::Config::Method]
|
2911
3076
|
#
|
@@ -2930,6 +3095,11 @@ module Google
|
|
2930
3095
|
# @return [::Gapic::Config::Method]
|
2931
3096
|
#
|
2932
3097
|
attr_reader :test_iam_permissions
|
3098
|
+
##
|
3099
|
+
# RPC-specific configuration for `import_entries`
|
3100
|
+
# @return [::Gapic::Config::Method]
|
3101
|
+
#
|
3102
|
+
attr_reader :import_entries
|
2933
3103
|
|
2934
3104
|
# @private
|
2935
3105
|
def initialize parent_rpcs = nil
|
@@ -2987,6 +3157,8 @@ module Google
|
|
2987
3157
|
@delete_tag = ::Gapic::Config::Method.new delete_tag_config
|
2988
3158
|
list_tags_config = parent_rpcs.list_tags if parent_rpcs.respond_to? :list_tags
|
2989
3159
|
@list_tags = ::Gapic::Config::Method.new list_tags_config
|
3160
|
+
reconcile_tags_config = parent_rpcs.reconcile_tags if parent_rpcs.respond_to? :reconcile_tags
|
3161
|
+
@reconcile_tags = ::Gapic::Config::Method.new reconcile_tags_config
|
2990
3162
|
star_entry_config = parent_rpcs.star_entry if parent_rpcs.respond_to? :star_entry
|
2991
3163
|
@star_entry = ::Gapic::Config::Method.new star_entry_config
|
2992
3164
|
unstar_entry_config = parent_rpcs.unstar_entry if parent_rpcs.respond_to? :unstar_entry
|
@@ -2997,6 +3169,8 @@ module Google
|
|
2997
3169
|
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
2998
3170
|
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
2999
3171
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
3172
|
+
import_entries_config = parent_rpcs.import_entries if parent_rpcs.respond_to? :import_entries
|
3173
|
+
@import_entries = ::Gapic::Config::Method.new import_entries_config
|
3000
3174
|
|
3001
3175
|
yield self if block_given?
|
3002
3176
|
end
|