google-cloud-dataplex-v1 2.4.1 → 2.6.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/dataplex/v1/bindings_override.rb +34 -29
- data/lib/google/cloud/dataplex/v1/business_glossary_pb.rb +75 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/client.rb +1985 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/credentials.rb +47 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/operations.rb +813 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/paths.rb +111 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/client.rb +1863 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/operations.rb +943 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/service_stub.rb +1002 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service/rest.rb +59 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_service.rb +61 -0
- data/lib/google/cloud/dataplex/v1/business_glossary_services_pb.rb +81 -0
- data/lib/google/cloud/dataplex/v1/catalog_pb.rb +7 -1
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +302 -11
- data/lib/google/cloud/dataplex/v1/catalog_service/paths.rb +40 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +281 -11
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +2 -2
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +184 -0
- data/lib/google/cloud/dataplex/v1/catalog_service/rest.rb +4 -4
- data/lib/google/cloud/dataplex/v1/catalog_service.rb +4 -4
- data/lib/google/cloud/dataplex/v1/catalog_services_pb.rb +14 -6
- data/lib/google/cloud/dataplex/v1/cmek_service/client.rb +1 -1
- data/lib/google/cloud/dataplex/v1/cmek_service/rest/client.rb +1 -1
- data/lib/google/cloud/dataplex/v1/cmek_service/rest/operations.rb +2 -2
- data/lib/google/cloud/dataplex/v1/cmek_service/rest.rb +1 -1
- data/lib/google/cloud/dataplex/v1/cmek_service.rb +1 -1
- data/lib/google/cloud/dataplex/v1/cmek_services_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +2 -1
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +2 -1
- data/lib/google/cloud/dataplex/v1/content_service/rest.rb +2 -1
- data/lib/google/cloud/dataplex/v1/content_service.rb +2 -1
- data/lib/google/cloud/dataplex/v1/content_services_pb.rb +2 -1
- data/lib/google/cloud/dataplex/v1/data_discovery_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +3 -1
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +7 -7
- data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +14 -0
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +7 -7
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +2 -2
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +1 -1
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +2 -2
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +2 -2
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2 -2
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +2 -2
- data/lib/google/cloud/dataplex/v1/datascans_common_pb.rb +45 -0
- data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -1
- data/lib/google/cloud/dataplex/v1/processing_pb.rb +1 -1
- data/lib/google/cloud/dataplex/v1/rest.rb +1 -0
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/lib/google/cloud/dataplex/v1.rb +1 -0
- data/proto_docs/google/cloud/dataplex/v1/analyze.rb +1 -1
- data/proto_docs/google/cloud/dataplex/v1/business_glossary.rb +531 -0
- data/proto_docs/google/cloud/dataplex/v1/catalog.rb +196 -33
- data/proto_docs/google/cloud/dataplex/v1/data_discovery.rb +6 -0
- data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +99 -98
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +18 -5
- data/proto_docs/google/cloud/dataplex/v1/data_taxonomy.rb +1 -1
- data/proto_docs/google/cloud/dataplex/v1/datascans.rb +11 -11
- data/proto_docs/google/cloud/dataplex/v1/datascans_common.rb +48 -0
- data/proto_docs/google/cloud/dataplex/v1/logs.rb +7 -3
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +10 -8
- data/proto_docs/google/cloud/dataplex/v1/processing.rb +15 -11
- data/proto_docs/google/cloud/dataplex/v1/service.rb +2 -2
- data/proto_docs/google/cloud/dataplex/v1/tasks.rb +3 -3
- metadata +19 -5
@@ -32,10 +32,10 @@ module Google
|
|
32
32
|
# REST client for the CatalogService service.
|
33
33
|
#
|
34
34
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
35
|
-
# AspectTypes, and
|
36
|
-
# manage, secure, and catalog data located across
|
37
|
-
# organization in a variety of storage systems,
|
38
|
-
# BigQuery.
|
35
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
36
|
+
# administrators organize, manage, secure, and catalog data located across
|
37
|
+
# cloud projects in their organization in a variety of storage systems,
|
38
|
+
# including Cloud Storage and BigQuery.
|
39
39
|
#
|
40
40
|
class Client
|
41
41
|
# @private
|
@@ -1259,7 +1259,7 @@ module Google
|
|
1259
1259
|
# @param parent [::String]
|
1260
1260
|
# Required. The resource name of the entryGroup, of the form:
|
1261
1261
|
# projects/\\{project_number}/locations/\\{location_id}
|
1262
|
-
# where `location_id` refers to a
|
1262
|
+
# where `location_id` refers to a Google Cloud region.
|
1263
1263
|
# @param entry_group_id [::String]
|
1264
1264
|
# Required. EntryGroup identifier.
|
1265
1265
|
# @param entry_group [::Google::Cloud::Dataplex::V1::EntryGroup, ::Hash]
|
@@ -2295,17 +2295,17 @@ module Google
|
|
2295
2295
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2296
2296
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2297
2297
|
#
|
2298
|
-
# @overload search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil)
|
2298
|
+
# @overload search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil, semantic_search: nil)
|
2299
2299
|
# Pass arguments to `search_entries` via keyword arguments. Note that at
|
2300
2300
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2301
2301
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2302
2302
|
#
|
2303
2303
|
# @param name [::String]
|
2304
2304
|
# Required. The project to which the request should be attributed in the
|
2305
|
-
# following form: `projects/{project}/locations/
|
2305
|
+
# following form: `projects/{project}/locations/global`.
|
2306
2306
|
# @param query [::String]
|
2307
2307
|
# Required. The query against which entries in scope should be matched.
|
2308
|
-
# The query syntax is defined in [Search syntax for Dataplex
|
2308
|
+
# The query syntax is defined in [Search syntax for Dataplex Universal
|
2309
2309
|
# Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
|
2310
2310
|
# @param page_size [::Integer]
|
2311
2311
|
# Optional. Number of results in the search page. If <=0, then defaults
|
@@ -2318,7 +2318,7 @@ module Google
|
|
2318
2318
|
# Optional. Specifies the ordering of results.
|
2319
2319
|
# Supported values are:
|
2320
2320
|
#
|
2321
|
-
# * `relevance`
|
2321
|
+
# * `relevance`
|
2322
2322
|
# * `last_modified_timestamp`
|
2323
2323
|
# * `last_modified_timestamp asc`
|
2324
2324
|
# @param scope [::String]
|
@@ -2326,6 +2326,9 @@ module Google
|
|
2326
2326
|
# either be `organizations/<org_id>` or `projects/<project_ref>`. If it is
|
2327
2327
|
# unspecified, it defaults to the organization where the project provided in
|
2328
2328
|
# `name` is located.
|
2329
|
+
# @param semantic_search [::Boolean]
|
2330
|
+
# Optional. Specifies whether the search should understand the meaning and
|
2331
|
+
# intent behind the query, rather than just matching keywords.
|
2329
2332
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2330
2333
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::SearchEntriesResult>]
|
2331
2334
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -2391,8 +2394,8 @@ module Google
|
|
2391
2394
|
end
|
2392
2395
|
|
2393
2396
|
##
|
2394
|
-
# Creates a metadata job. For example, use a metadata job to import
|
2395
|
-
#
|
2397
|
+
# Creates a metadata job. For example, use a metadata job to import metadata
|
2398
|
+
# from a third-party system into Dataplex Universal Catalog.
|
2396
2399
|
#
|
2397
2400
|
# @overload create_metadata_job(request, options = nil)
|
2398
2401
|
# Pass arguments to `create_metadata_job` via a request object, either of type
|
@@ -2757,6 +2760,252 @@ module Google
|
|
2757
2760
|
raise ::Google::Cloud::Error.from_error(e)
|
2758
2761
|
end
|
2759
2762
|
|
2763
|
+
##
|
2764
|
+
# Creates an Entry Link.
|
2765
|
+
#
|
2766
|
+
# @overload create_entry_link(request, options = nil)
|
2767
|
+
# Pass arguments to `create_entry_link` via a request object, either of type
|
2768
|
+
# {::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest} or an equivalent Hash.
|
2769
|
+
#
|
2770
|
+
# @param request [::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest, ::Hash]
|
2771
|
+
# A request object representing the call parameters. Required. To specify no
|
2772
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2773
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2774
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2775
|
+
#
|
2776
|
+
# @overload create_entry_link(parent: nil, entry_link_id: nil, entry_link: nil)
|
2777
|
+
# Pass arguments to `create_entry_link` via keyword arguments. Note that at
|
2778
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2779
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2780
|
+
#
|
2781
|
+
# @param parent [::String]
|
2782
|
+
# Required. The resource name of the parent Entry Group:
|
2783
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
|
2784
|
+
# @param entry_link_id [::String]
|
2785
|
+
# Required. Entry Link identifier
|
2786
|
+
# * Must contain only lowercase letters, numbers and hyphens.
|
2787
|
+
# * Must start with a letter.
|
2788
|
+
# * Must be between 1-63 characters.
|
2789
|
+
# * Must end with a number or a letter.
|
2790
|
+
# * Must be unique within the EntryGroup.
|
2791
|
+
# @param entry_link [::Google::Cloud::Dataplex::V1::EntryLink, ::Hash]
|
2792
|
+
# Required. Entry Link resource.
|
2793
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2794
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
2795
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2796
|
+
#
|
2797
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
2798
|
+
#
|
2799
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2800
|
+
#
|
2801
|
+
# @example Basic example
|
2802
|
+
# require "google/cloud/dataplex/v1"
|
2803
|
+
#
|
2804
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2805
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new
|
2806
|
+
#
|
2807
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2808
|
+
# request = Google::Cloud::Dataplex::V1::CreateEntryLinkRequest.new
|
2809
|
+
#
|
2810
|
+
# # Call the create_entry_link method.
|
2811
|
+
# result = client.create_entry_link request
|
2812
|
+
#
|
2813
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
2814
|
+
# p result
|
2815
|
+
#
|
2816
|
+
def create_entry_link request, options = nil
|
2817
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2818
|
+
|
2819
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest
|
2820
|
+
|
2821
|
+
# Converts hash and nil to an options object
|
2822
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2823
|
+
|
2824
|
+
# Customize the options with defaults
|
2825
|
+
call_metadata = @config.rpcs.create_entry_link.metadata.to_h
|
2826
|
+
|
2827
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2828
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2829
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2830
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
2831
|
+
transports_version_send: [:rest]
|
2832
|
+
|
2833
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2834
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2835
|
+
|
2836
|
+
options.apply_defaults timeout: @config.rpcs.create_entry_link.timeout,
|
2837
|
+
metadata: call_metadata,
|
2838
|
+
retry_policy: @config.rpcs.create_entry_link.retry_policy
|
2839
|
+
|
2840
|
+
options.apply_defaults timeout: @config.timeout,
|
2841
|
+
metadata: @config.metadata,
|
2842
|
+
retry_policy: @config.retry_policy
|
2843
|
+
|
2844
|
+
@catalog_service_stub.create_entry_link request, options do |result, operation|
|
2845
|
+
yield result, operation if block_given?
|
2846
|
+
end
|
2847
|
+
rescue ::Gapic::Rest::Error => e
|
2848
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2849
|
+
end
|
2850
|
+
|
2851
|
+
##
|
2852
|
+
# Deletes an Entry Link.
|
2853
|
+
#
|
2854
|
+
# @overload delete_entry_link(request, options = nil)
|
2855
|
+
# Pass arguments to `delete_entry_link` via a request object, either of type
|
2856
|
+
# {::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest} or an equivalent Hash.
|
2857
|
+
#
|
2858
|
+
# @param request [::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest, ::Hash]
|
2859
|
+
# A request object representing the call parameters. Required. To specify no
|
2860
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2861
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2862
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2863
|
+
#
|
2864
|
+
# @overload delete_entry_link(name: nil)
|
2865
|
+
# Pass arguments to `delete_entry_link` via keyword arguments. Note that at
|
2866
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2867
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2868
|
+
#
|
2869
|
+
# @param name [::String]
|
2870
|
+
# Required. The resource name of the Entry Link:
|
2871
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`.
|
2872
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2873
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
2874
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2875
|
+
#
|
2876
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
2877
|
+
#
|
2878
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2879
|
+
#
|
2880
|
+
# @example Basic example
|
2881
|
+
# require "google/cloud/dataplex/v1"
|
2882
|
+
#
|
2883
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2884
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new
|
2885
|
+
#
|
2886
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2887
|
+
# request = Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest.new
|
2888
|
+
#
|
2889
|
+
# # Call the delete_entry_link method.
|
2890
|
+
# result = client.delete_entry_link request
|
2891
|
+
#
|
2892
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
2893
|
+
# p result
|
2894
|
+
#
|
2895
|
+
def delete_entry_link request, options = nil
|
2896
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2897
|
+
|
2898
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest
|
2899
|
+
|
2900
|
+
# Converts hash and nil to an options object
|
2901
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2902
|
+
|
2903
|
+
# Customize the options with defaults
|
2904
|
+
call_metadata = @config.rpcs.delete_entry_link.metadata.to_h
|
2905
|
+
|
2906
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2907
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2908
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2909
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
2910
|
+
transports_version_send: [:rest]
|
2911
|
+
|
2912
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2913
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2914
|
+
|
2915
|
+
options.apply_defaults timeout: @config.rpcs.delete_entry_link.timeout,
|
2916
|
+
metadata: call_metadata,
|
2917
|
+
retry_policy: @config.rpcs.delete_entry_link.retry_policy
|
2918
|
+
|
2919
|
+
options.apply_defaults timeout: @config.timeout,
|
2920
|
+
metadata: @config.metadata,
|
2921
|
+
retry_policy: @config.retry_policy
|
2922
|
+
|
2923
|
+
@catalog_service_stub.delete_entry_link request, options do |result, operation|
|
2924
|
+
yield result, operation if block_given?
|
2925
|
+
end
|
2926
|
+
rescue ::Gapic::Rest::Error => e
|
2927
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2928
|
+
end
|
2929
|
+
|
2930
|
+
##
|
2931
|
+
# Gets an Entry Link.
|
2932
|
+
#
|
2933
|
+
# @overload get_entry_link(request, options = nil)
|
2934
|
+
# Pass arguments to `get_entry_link` via a request object, either of type
|
2935
|
+
# {::Google::Cloud::Dataplex::V1::GetEntryLinkRequest} or an equivalent Hash.
|
2936
|
+
#
|
2937
|
+
# @param request [::Google::Cloud::Dataplex::V1::GetEntryLinkRequest, ::Hash]
|
2938
|
+
# A request object representing the call parameters. Required. To specify no
|
2939
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2940
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2941
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
2942
|
+
#
|
2943
|
+
# @overload get_entry_link(name: nil)
|
2944
|
+
# Pass arguments to `get_entry_link` via keyword arguments. Note that at
|
2945
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2946
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2947
|
+
#
|
2948
|
+
# @param name [::String]
|
2949
|
+
# Required. The resource name of the Entry Link:
|
2950
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`.
|
2951
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
2952
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
2953
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
2954
|
+
#
|
2955
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
2956
|
+
#
|
2957
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2958
|
+
#
|
2959
|
+
# @example Basic example
|
2960
|
+
# require "google/cloud/dataplex/v1"
|
2961
|
+
#
|
2962
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2963
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Rest::Client.new
|
2964
|
+
#
|
2965
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2966
|
+
# request = Google::Cloud::Dataplex::V1::GetEntryLinkRequest.new
|
2967
|
+
#
|
2968
|
+
# # Call the get_entry_link method.
|
2969
|
+
# result = client.get_entry_link request
|
2970
|
+
#
|
2971
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
2972
|
+
# p result
|
2973
|
+
#
|
2974
|
+
def get_entry_link request, options = nil
|
2975
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2976
|
+
|
2977
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetEntryLinkRequest
|
2978
|
+
|
2979
|
+
# Converts hash and nil to an options object
|
2980
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2981
|
+
|
2982
|
+
# Customize the options with defaults
|
2983
|
+
call_metadata = @config.rpcs.get_entry_link.metadata.to_h
|
2984
|
+
|
2985
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2986
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2987
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2988
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
|
2989
|
+
transports_version_send: [:rest]
|
2990
|
+
|
2991
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2992
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2993
|
+
|
2994
|
+
options.apply_defaults timeout: @config.rpcs.get_entry_link.timeout,
|
2995
|
+
metadata: call_metadata,
|
2996
|
+
retry_policy: @config.rpcs.get_entry_link.retry_policy
|
2997
|
+
|
2998
|
+
options.apply_defaults timeout: @config.timeout,
|
2999
|
+
metadata: @config.metadata,
|
3000
|
+
retry_policy: @config.retry_policy
|
3001
|
+
|
3002
|
+
@catalog_service_stub.get_entry_link request, options do |result, operation|
|
3003
|
+
yield result, operation if block_given?
|
3004
|
+
end
|
3005
|
+
rescue ::Gapic::Rest::Error => e
|
3006
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3007
|
+
end
|
3008
|
+
|
2760
3009
|
##
|
2761
3010
|
# Configuration class for the CatalogService REST API.
|
2762
3011
|
#
|
@@ -3040,6 +3289,21 @@ module Google
|
|
3040
3289
|
# @return [::Gapic::Config::Method]
|
3041
3290
|
#
|
3042
3291
|
attr_reader :cancel_metadata_job
|
3292
|
+
##
|
3293
|
+
# RPC-specific configuration for `create_entry_link`
|
3294
|
+
# @return [::Gapic::Config::Method]
|
3295
|
+
#
|
3296
|
+
attr_reader :create_entry_link
|
3297
|
+
##
|
3298
|
+
# RPC-specific configuration for `delete_entry_link`
|
3299
|
+
# @return [::Gapic::Config::Method]
|
3300
|
+
#
|
3301
|
+
attr_reader :delete_entry_link
|
3302
|
+
##
|
3303
|
+
# RPC-specific configuration for `get_entry_link`
|
3304
|
+
# @return [::Gapic::Config::Method]
|
3305
|
+
#
|
3306
|
+
attr_reader :get_entry_link
|
3043
3307
|
|
3044
3308
|
# @private
|
3045
3309
|
def initialize parent_rpcs = nil
|
@@ -3095,6 +3359,12 @@ module Google
|
|
3095
3359
|
@list_metadata_jobs = ::Gapic::Config::Method.new list_metadata_jobs_config
|
3096
3360
|
cancel_metadata_job_config = parent_rpcs.cancel_metadata_job if parent_rpcs.respond_to? :cancel_metadata_job
|
3097
3361
|
@cancel_metadata_job = ::Gapic::Config::Method.new cancel_metadata_job_config
|
3362
|
+
create_entry_link_config = parent_rpcs.create_entry_link if parent_rpcs.respond_to? :create_entry_link
|
3363
|
+
@create_entry_link = ::Gapic::Config::Method.new create_entry_link_config
|
3364
|
+
delete_entry_link_config = parent_rpcs.delete_entry_link if parent_rpcs.respond_to? :delete_entry_link
|
3365
|
+
@delete_entry_link = ::Gapic::Config::Method.new delete_entry_link_config
|
3366
|
+
get_entry_link_config = parent_rpcs.get_entry_link if parent_rpcs.respond_to? :get_entry_link
|
3367
|
+
@get_entry_link = ::Gapic::Config::Method.new get_entry_link_config
|
3098
3368
|
|
3099
3369
|
yield self if block_given?
|
3100
3370
|
end
|
@@ -841,9 +841,9 @@ module Google
|
|
841
841
|
)
|
842
842
|
.with_bindings(
|
843
843
|
uri_method: :get,
|
844
|
-
uri_template: "/v1/{name}",
|
844
|
+
uri_template: "/v1/{name}/operations",
|
845
845
|
matches: [
|
846
|
-
["name", %r{^organizations/[^/]+/locations/[^/]
|
846
|
+
["name", %r{^organizations/[^/]+/locations/[^/]+/?$}, false]
|
847
847
|
]
|
848
848
|
)
|
849
849
|
transcoder.transcode request_pb
|
@@ -1113,6 +1113,126 @@ module Google
|
|
1113
1113
|
end
|
1114
1114
|
end
|
1115
1115
|
|
1116
|
+
##
|
1117
|
+
# Baseline implementation for the create_entry_link REST call
|
1118
|
+
#
|
1119
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest]
|
1120
|
+
# A request object representing the call parameters. Required.
|
1121
|
+
# @param options [::Gapic::CallOptions]
|
1122
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1123
|
+
#
|
1124
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1125
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
1126
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1127
|
+
#
|
1128
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
1129
|
+
# A result object deserialized from the server's reply
|
1130
|
+
def create_entry_link request_pb, options = nil
|
1131
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1132
|
+
|
1133
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_create_entry_link_request request_pb
|
1134
|
+
query_string_params = if query_string_params.any?
|
1135
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1136
|
+
else
|
1137
|
+
{}
|
1138
|
+
end
|
1139
|
+
|
1140
|
+
response = @client_stub.make_http_request(
|
1141
|
+
verb,
|
1142
|
+
uri: uri,
|
1143
|
+
body: body || "",
|
1144
|
+
params: query_string_params,
|
1145
|
+
method_name: "create_entry_link",
|
1146
|
+
options: options
|
1147
|
+
)
|
1148
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1149
|
+
result = ::Google::Cloud::Dataplex::V1::EntryLink.decode_json response.body, ignore_unknown_fields: true
|
1150
|
+
catch :response do
|
1151
|
+
yield result, operation if block_given?
|
1152
|
+
result
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
##
|
1157
|
+
# Baseline implementation for the delete_entry_link REST call
|
1158
|
+
#
|
1159
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest]
|
1160
|
+
# A request object representing the call parameters. Required.
|
1161
|
+
# @param options [::Gapic::CallOptions]
|
1162
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1163
|
+
#
|
1164
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1165
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
1166
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1167
|
+
#
|
1168
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
1169
|
+
# A result object deserialized from the server's reply
|
1170
|
+
def delete_entry_link request_pb, options = nil
|
1171
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1172
|
+
|
1173
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_delete_entry_link_request request_pb
|
1174
|
+
query_string_params = if query_string_params.any?
|
1175
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1176
|
+
else
|
1177
|
+
{}
|
1178
|
+
end
|
1179
|
+
|
1180
|
+
response = @client_stub.make_http_request(
|
1181
|
+
verb,
|
1182
|
+
uri: uri,
|
1183
|
+
body: body || "",
|
1184
|
+
params: query_string_params,
|
1185
|
+
method_name: "delete_entry_link",
|
1186
|
+
options: options
|
1187
|
+
)
|
1188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1189
|
+
result = ::Google::Cloud::Dataplex::V1::EntryLink.decode_json response.body, ignore_unknown_fields: true
|
1190
|
+
catch :response do
|
1191
|
+
yield result, operation if block_given?
|
1192
|
+
result
|
1193
|
+
end
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
##
|
1197
|
+
# Baseline implementation for the get_entry_link REST call
|
1198
|
+
#
|
1199
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::GetEntryLinkRequest]
|
1200
|
+
# A request object representing the call parameters. Required.
|
1201
|
+
# @param options [::Gapic::CallOptions]
|
1202
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1203
|
+
#
|
1204
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1205
|
+
# @yieldparam result [::Google::Cloud::Dataplex::V1::EntryLink]
|
1206
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1207
|
+
#
|
1208
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
1209
|
+
# A result object deserialized from the server's reply
|
1210
|
+
def get_entry_link request_pb, options = nil
|
1211
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
1212
|
+
|
1213
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_entry_link_request request_pb
|
1214
|
+
query_string_params = if query_string_params.any?
|
1215
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1216
|
+
else
|
1217
|
+
{}
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
response = @client_stub.make_http_request(
|
1221
|
+
verb,
|
1222
|
+
uri: uri,
|
1223
|
+
body: body || "",
|
1224
|
+
params: query_string_params,
|
1225
|
+
method_name: "get_entry_link",
|
1226
|
+
options: options
|
1227
|
+
)
|
1228
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
1229
|
+
result = ::Google::Cloud::Dataplex::V1::EntryLink.decode_json response.body, ignore_unknown_fields: true
|
1230
|
+
catch :response do
|
1231
|
+
yield result, operation if block_given?
|
1232
|
+
result
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1116
1236
|
##
|
1117
1237
|
# @private
|
1118
1238
|
#
|
@@ -1668,6 +1788,70 @@ module Google
|
|
1668
1788
|
)
|
1669
1789
|
transcoder.transcode request_pb
|
1670
1790
|
end
|
1791
|
+
|
1792
|
+
##
|
1793
|
+
# @private
|
1794
|
+
#
|
1795
|
+
# GRPC transcoding helper method for the create_entry_link REST call
|
1796
|
+
#
|
1797
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest]
|
1798
|
+
# A request object representing the call parameters. Required.
|
1799
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1800
|
+
# Uri, Body, Query string parameters
|
1801
|
+
def self.transcode_create_entry_link_request request_pb
|
1802
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1803
|
+
.with_bindings(
|
1804
|
+
uri_method: :post,
|
1805
|
+
uri_template: "/v1/{parent}/entryLinks",
|
1806
|
+
body: "entry_link",
|
1807
|
+
matches: [
|
1808
|
+
["parent", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/?$}, false]
|
1809
|
+
]
|
1810
|
+
)
|
1811
|
+
transcoder.transcode request_pb
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
##
|
1815
|
+
# @private
|
1816
|
+
#
|
1817
|
+
# GRPC transcoding helper method for the delete_entry_link REST call
|
1818
|
+
#
|
1819
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest]
|
1820
|
+
# A request object representing the call parameters. Required.
|
1821
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1822
|
+
# Uri, Body, Query string parameters
|
1823
|
+
def self.transcode_delete_entry_link_request request_pb
|
1824
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1825
|
+
.with_bindings(
|
1826
|
+
uri_method: :delete,
|
1827
|
+
uri_template: "/v1/{name}",
|
1828
|
+
matches: [
|
1829
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entryLinks/[^/]+/?$}, false]
|
1830
|
+
]
|
1831
|
+
)
|
1832
|
+
transcoder.transcode request_pb
|
1833
|
+
end
|
1834
|
+
|
1835
|
+
##
|
1836
|
+
# @private
|
1837
|
+
#
|
1838
|
+
# GRPC transcoding helper method for the get_entry_link REST call
|
1839
|
+
#
|
1840
|
+
# @param request_pb [::Google::Cloud::Dataplex::V1::GetEntryLinkRequest]
|
1841
|
+
# A request object representing the call parameters. Required.
|
1842
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1843
|
+
# Uri, Body, Query string parameters
|
1844
|
+
def self.transcode_get_entry_link_request request_pb
|
1845
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1846
|
+
.with_bindings(
|
1847
|
+
uri_method: :get,
|
1848
|
+
uri_template: "/v1/{name}",
|
1849
|
+
matches: [
|
1850
|
+
["name", %r{^projects/[^/]+/locations/[^/]+/entryGroups/[^/]+/entryLinks/[^/]+/?$}, false]
|
1851
|
+
]
|
1852
|
+
)
|
1853
|
+
transcoder.transcode request_pb
|
1854
|
+
end
|
1671
1855
|
end
|
1672
1856
|
end
|
1673
1857
|
end
|
@@ -34,10 +34,10 @@ module Google
|
|
34
34
|
module V1
|
35
35
|
##
|
36
36
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
37
|
-
# AspectTypes, and
|
38
|
-
# manage, secure, and catalog data located across
|
39
|
-
# organization in a variety of storage systems,
|
40
|
-
# BigQuery.
|
37
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
38
|
+
# administrators organize, manage, secure, and catalog data located across
|
39
|
+
# cloud projects in their organization in a variety of storage systems,
|
40
|
+
# including Cloud Storage and BigQuery.
|
41
41
|
#
|
42
42
|
# To load this service and instantiate a REST client:
|
43
43
|
#
|
@@ -34,10 +34,10 @@ module Google
|
|
34
34
|
module V1
|
35
35
|
##
|
36
36
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
37
|
-
# AspectTypes, and
|
38
|
-
# manage, secure, and catalog data located across
|
39
|
-
# organization in a variety of storage systems,
|
40
|
-
# BigQuery.
|
37
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
38
|
+
# administrators organize, manage, secure, and catalog data located across
|
39
|
+
# cloud projects in their organization in a variety of storage systems,
|
40
|
+
# including Cloud Storage and BigQuery.
|
41
41
|
#
|
42
42
|
# @example Load this service and instantiate a gRPC client
|
43
43
|
#
|
@@ -24,11 +24,13 @@ module Google
|
|
24
24
|
module Dataplex
|
25
25
|
module V1
|
26
26
|
module CatalogService
|
27
|
+
# LINT: LEGACY_NAMES
|
28
|
+
#
|
27
29
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
28
|
-
# AspectTypes, and
|
29
|
-
# manage, secure, and catalog data located across
|
30
|
-
# organization in a variety of storage systems,
|
31
|
-
# BigQuery.
|
30
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
31
|
+
# administrators organize, manage, secure, and catalog data located across
|
32
|
+
# cloud projects in their organization in a variety of storage systems,
|
33
|
+
# including Cloud Storage and BigQuery.
|
32
34
|
class Service
|
33
35
|
|
34
36
|
include ::GRPC::GenericService
|
@@ -81,8 +83,8 @@ module Google
|
|
81
83
|
rpc :LookupEntry, ::Google::Cloud::Dataplex::V1::LookupEntryRequest, ::Google::Cloud::Dataplex::V1::Entry
|
82
84
|
# Searches for Entries matching the given query and scope.
|
83
85
|
rpc :SearchEntries, ::Google::Cloud::Dataplex::V1::SearchEntriesRequest, ::Google::Cloud::Dataplex::V1::SearchEntriesResponse
|
84
|
-
# Creates a metadata job. For example, use a metadata job to import
|
85
|
-
#
|
86
|
+
# Creates a metadata job. For example, use a metadata job to import metadata
|
87
|
+
# from a third-party system into Dataplex Universal Catalog.
|
86
88
|
rpc :CreateMetadataJob, ::Google::Cloud::Dataplex::V1::CreateMetadataJobRequest, ::Google::Longrunning::Operation
|
87
89
|
# Gets a metadata job.
|
88
90
|
rpc :GetMetadataJob, ::Google::Cloud::Dataplex::V1::GetMetadataJobRequest, ::Google::Cloud::Dataplex::V1::MetadataJob
|
@@ -95,6 +97,12 @@ module Google
|
|
95
97
|
# the entry groups in your project by running another metadata job that
|
96
98
|
# reverts the changes from the canceled job.
|
97
99
|
rpc :CancelMetadataJob, ::Google::Cloud::Dataplex::V1::CancelMetadataJobRequest, ::Google::Protobuf::Empty
|
100
|
+
# Creates an Entry Link.
|
101
|
+
rpc :CreateEntryLink, ::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest, ::Google::Cloud::Dataplex::V1::EntryLink
|
102
|
+
# Deletes an Entry Link.
|
103
|
+
rpc :DeleteEntryLink, ::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest, ::Google::Cloud::Dataplex::V1::EntryLink
|
104
|
+
# Gets an Entry Link.
|
105
|
+
rpc :GetEntryLink, ::Google::Cloud::Dataplex::V1::GetEntryLinkRequest, ::Google::Cloud::Dataplex::V1::EntryLink
|
98
106
|
end
|
99
107
|
|
100
108
|
Stub = Service.rpc_stub_class
|