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
@@ -30,10 +30,10 @@ module Google
|
|
30
30
|
# Client for the CatalogService service.
|
31
31
|
#
|
32
32
|
# The primary resources offered by this service are EntryGroups, EntryTypes,
|
33
|
-
# AspectTypes, and
|
34
|
-
# manage, secure, and catalog data located across
|
35
|
-
# organization in a variety of storage systems,
|
36
|
-
# BigQuery.
|
33
|
+
# AspectTypes, Entries and EntryLinks. They collectively let data
|
34
|
+
# administrators organize, manage, secure, and catalog data located across
|
35
|
+
# cloud projects in their organization in a variety of storage systems,
|
36
|
+
# including Cloud Storage and BigQuery.
|
37
37
|
#
|
38
38
|
class Client
|
39
39
|
# @private
|
@@ -1334,7 +1334,7 @@ module Google
|
|
1334
1334
|
# @param parent [::String]
|
1335
1335
|
# Required. The resource name of the entryGroup, of the form:
|
1336
1336
|
# projects/\\{project_number}/locations/\\{location_id}
|
1337
|
-
# where `location_id` refers to a
|
1337
|
+
# where `location_id` refers to a Google Cloud region.
|
1338
1338
|
# @param entry_group_id [::String]
|
1339
1339
|
# Required. EntryGroup identifier.
|
1340
1340
|
# @param entry_group [::Google::Cloud::Dataplex::V1::EntryGroup, ::Hash]
|
@@ -2447,17 +2447,17 @@ module Google
|
|
2447
2447
|
# @param options [::Gapic::CallOptions, ::Hash]
|
2448
2448
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2449
2449
|
#
|
2450
|
-
# @overload search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil)
|
2450
|
+
# @overload search_entries(name: nil, query: nil, page_size: nil, page_token: nil, order_by: nil, scope: nil, semantic_search: nil)
|
2451
2451
|
# Pass arguments to `search_entries` via keyword arguments. Note that at
|
2452
2452
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
2453
2453
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
2454
2454
|
#
|
2455
2455
|
# @param name [::String]
|
2456
2456
|
# Required. The project to which the request should be attributed in the
|
2457
|
-
# following form: `projects/{project}/locations/
|
2457
|
+
# following form: `projects/{project}/locations/global`.
|
2458
2458
|
# @param query [::String]
|
2459
2459
|
# Required. The query against which entries in scope should be matched.
|
2460
|
-
# The query syntax is defined in [Search syntax for Dataplex
|
2460
|
+
# The query syntax is defined in [Search syntax for Dataplex Universal
|
2461
2461
|
# Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
|
2462
2462
|
# @param page_size [::Integer]
|
2463
2463
|
# Optional. Number of results in the search page. If <=0, then defaults
|
@@ -2470,7 +2470,7 @@ module Google
|
|
2470
2470
|
# Optional. Specifies the ordering of results.
|
2471
2471
|
# Supported values are:
|
2472
2472
|
#
|
2473
|
-
# * `relevance`
|
2473
|
+
# * `relevance`
|
2474
2474
|
# * `last_modified_timestamp`
|
2475
2475
|
# * `last_modified_timestamp asc`
|
2476
2476
|
# @param scope [::String]
|
@@ -2478,6 +2478,9 @@ module Google
|
|
2478
2478
|
# either be `organizations/<org_id>` or `projects/<project_ref>`. If it is
|
2479
2479
|
# unspecified, it defaults to the organization where the project provided in
|
2480
2480
|
# `name` is located.
|
2481
|
+
# @param semantic_search [::Boolean]
|
2482
|
+
# Optional. Specifies whether the search should understand the meaning and
|
2483
|
+
# intent behind the query, rather than just matching keywords.
|
2481
2484
|
#
|
2482
2485
|
# @yield [response, operation] Access the result along with the RPC operation
|
2483
2486
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::Dataplex::V1::SearchEntriesResult>]
|
@@ -2550,8 +2553,8 @@ module Google
|
|
2550
2553
|
end
|
2551
2554
|
|
2552
2555
|
##
|
2553
|
-
# Creates a metadata job. For example, use a metadata job to import
|
2554
|
-
#
|
2556
|
+
# Creates a metadata job. For example, use a metadata job to import metadata
|
2557
|
+
# from a third-party system into Dataplex Universal Catalog.
|
2555
2558
|
#
|
2556
2559
|
# @overload create_metadata_job(request, options = nil)
|
2557
2560
|
# Pass arguments to `create_metadata_job` via a request object, either of type
|
@@ -2944,6 +2947,273 @@ module Google
|
|
2944
2947
|
raise ::Google::Cloud::Error.from_error(e)
|
2945
2948
|
end
|
2946
2949
|
|
2950
|
+
##
|
2951
|
+
# Creates an Entry Link.
|
2952
|
+
#
|
2953
|
+
# @overload create_entry_link(request, options = nil)
|
2954
|
+
# Pass arguments to `create_entry_link` via a request object, either of type
|
2955
|
+
# {::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest} or an equivalent Hash.
|
2956
|
+
#
|
2957
|
+
# @param request [::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest, ::Hash]
|
2958
|
+
# A request object representing the call parameters. Required. To specify no
|
2959
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2960
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2961
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2962
|
+
#
|
2963
|
+
# @overload create_entry_link(parent: nil, entry_link_id: nil, entry_link: nil)
|
2964
|
+
# Pass arguments to `create_entry_link` via keyword arguments. Note that at
|
2965
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2966
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2967
|
+
#
|
2968
|
+
# @param parent [::String]
|
2969
|
+
# Required. The resource name of the parent Entry Group:
|
2970
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}`.
|
2971
|
+
# @param entry_link_id [::String]
|
2972
|
+
# Required. Entry Link identifier
|
2973
|
+
# * Must contain only lowercase letters, numbers and hyphens.
|
2974
|
+
# * Must start with a letter.
|
2975
|
+
# * Must be between 1-63 characters.
|
2976
|
+
# * Must end with a number or a letter.
|
2977
|
+
# * Must be unique within the EntryGroup.
|
2978
|
+
# @param entry_link [::Google::Cloud::Dataplex::V1::EntryLink, ::Hash]
|
2979
|
+
# Required. Entry Link resource.
|
2980
|
+
#
|
2981
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2982
|
+
# @yieldparam response [::Google::Cloud::Dataplex::V1::EntryLink]
|
2983
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2984
|
+
#
|
2985
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
2986
|
+
#
|
2987
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2988
|
+
#
|
2989
|
+
# @example Basic example
|
2990
|
+
# require "google/cloud/dataplex/v1"
|
2991
|
+
#
|
2992
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2993
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Client.new
|
2994
|
+
#
|
2995
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2996
|
+
# request = Google::Cloud::Dataplex::V1::CreateEntryLinkRequest.new
|
2997
|
+
#
|
2998
|
+
# # Call the create_entry_link method.
|
2999
|
+
# result = client.create_entry_link request
|
3000
|
+
#
|
3001
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
3002
|
+
# p result
|
3003
|
+
#
|
3004
|
+
def create_entry_link request, options = nil
|
3005
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3006
|
+
|
3007
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateEntryLinkRequest
|
3008
|
+
|
3009
|
+
# Converts hash and nil to an options object
|
3010
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3011
|
+
|
3012
|
+
# Customize the options with defaults
|
3013
|
+
metadata = @config.rpcs.create_entry_link.metadata.to_h
|
3014
|
+
|
3015
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3016
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3017
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3018
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
3019
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3020
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3021
|
+
|
3022
|
+
header_params = {}
|
3023
|
+
if request.parent
|
3024
|
+
header_params["parent"] = request.parent
|
3025
|
+
end
|
3026
|
+
|
3027
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3028
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3029
|
+
|
3030
|
+
options.apply_defaults timeout: @config.rpcs.create_entry_link.timeout,
|
3031
|
+
metadata: metadata,
|
3032
|
+
retry_policy: @config.rpcs.create_entry_link.retry_policy
|
3033
|
+
|
3034
|
+
options.apply_defaults timeout: @config.timeout,
|
3035
|
+
metadata: @config.metadata,
|
3036
|
+
retry_policy: @config.retry_policy
|
3037
|
+
|
3038
|
+
@catalog_service_stub.call_rpc :create_entry_link, request, options: options do |response, operation|
|
3039
|
+
yield response, operation if block_given?
|
3040
|
+
end
|
3041
|
+
rescue ::GRPC::BadStatus => e
|
3042
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3043
|
+
end
|
3044
|
+
|
3045
|
+
##
|
3046
|
+
# Deletes an Entry Link.
|
3047
|
+
#
|
3048
|
+
# @overload delete_entry_link(request, options = nil)
|
3049
|
+
# Pass arguments to `delete_entry_link` via a request object, either of type
|
3050
|
+
# {::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest} or an equivalent Hash.
|
3051
|
+
#
|
3052
|
+
# @param request [::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest, ::Hash]
|
3053
|
+
# A request object representing the call parameters. Required. To specify no
|
3054
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3055
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3056
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3057
|
+
#
|
3058
|
+
# @overload delete_entry_link(name: nil)
|
3059
|
+
# Pass arguments to `delete_entry_link` via keyword arguments. Note that at
|
3060
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3061
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3062
|
+
#
|
3063
|
+
# @param name [::String]
|
3064
|
+
# Required. The resource name of the Entry Link:
|
3065
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`.
|
3066
|
+
#
|
3067
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3068
|
+
# @yieldparam response [::Google::Cloud::Dataplex::V1::EntryLink]
|
3069
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3070
|
+
#
|
3071
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
3072
|
+
#
|
3073
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3074
|
+
#
|
3075
|
+
# @example Basic example
|
3076
|
+
# require "google/cloud/dataplex/v1"
|
3077
|
+
#
|
3078
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3079
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Client.new
|
3080
|
+
#
|
3081
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3082
|
+
# request = Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest.new
|
3083
|
+
#
|
3084
|
+
# # Call the delete_entry_link method.
|
3085
|
+
# result = client.delete_entry_link request
|
3086
|
+
#
|
3087
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
3088
|
+
# p result
|
3089
|
+
#
|
3090
|
+
def delete_entry_link request, options = nil
|
3091
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3092
|
+
|
3093
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteEntryLinkRequest
|
3094
|
+
|
3095
|
+
# Converts hash and nil to an options object
|
3096
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3097
|
+
|
3098
|
+
# Customize the options with defaults
|
3099
|
+
metadata = @config.rpcs.delete_entry_link.metadata.to_h
|
3100
|
+
|
3101
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3102
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3103
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3104
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
3105
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3106
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3107
|
+
|
3108
|
+
header_params = {}
|
3109
|
+
if request.name
|
3110
|
+
header_params["name"] = request.name
|
3111
|
+
end
|
3112
|
+
|
3113
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3114
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3115
|
+
|
3116
|
+
options.apply_defaults timeout: @config.rpcs.delete_entry_link.timeout,
|
3117
|
+
metadata: metadata,
|
3118
|
+
retry_policy: @config.rpcs.delete_entry_link.retry_policy
|
3119
|
+
|
3120
|
+
options.apply_defaults timeout: @config.timeout,
|
3121
|
+
metadata: @config.metadata,
|
3122
|
+
retry_policy: @config.retry_policy
|
3123
|
+
|
3124
|
+
@catalog_service_stub.call_rpc :delete_entry_link, request, options: options do |response, operation|
|
3125
|
+
yield response, operation if block_given?
|
3126
|
+
end
|
3127
|
+
rescue ::GRPC::BadStatus => e
|
3128
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3129
|
+
end
|
3130
|
+
|
3131
|
+
##
|
3132
|
+
# Gets an Entry Link.
|
3133
|
+
#
|
3134
|
+
# @overload get_entry_link(request, options = nil)
|
3135
|
+
# Pass arguments to `get_entry_link` via a request object, either of type
|
3136
|
+
# {::Google::Cloud::Dataplex::V1::GetEntryLinkRequest} or an equivalent Hash.
|
3137
|
+
#
|
3138
|
+
# @param request [::Google::Cloud::Dataplex::V1::GetEntryLinkRequest, ::Hash]
|
3139
|
+
# A request object representing the call parameters. Required. To specify no
|
3140
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3141
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3142
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3143
|
+
#
|
3144
|
+
# @overload get_entry_link(name: nil)
|
3145
|
+
# Pass arguments to `get_entry_link` via keyword arguments. Note that at
|
3146
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3147
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3148
|
+
#
|
3149
|
+
# @param name [::String]
|
3150
|
+
# Required. The resource name of the Entry Link:
|
3151
|
+
# `projects/{project_id_or_number}/locations/{location_id}/entryGroups/{entry_group_id}/entryLinks/{entry_link_id}`.
|
3152
|
+
#
|
3153
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3154
|
+
# @yieldparam response [::Google::Cloud::Dataplex::V1::EntryLink]
|
3155
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3156
|
+
#
|
3157
|
+
# @return [::Google::Cloud::Dataplex::V1::EntryLink]
|
3158
|
+
#
|
3159
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3160
|
+
#
|
3161
|
+
# @example Basic example
|
3162
|
+
# require "google/cloud/dataplex/v1"
|
3163
|
+
#
|
3164
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3165
|
+
# client = Google::Cloud::Dataplex::V1::CatalogService::Client.new
|
3166
|
+
#
|
3167
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3168
|
+
# request = Google::Cloud::Dataplex::V1::GetEntryLinkRequest.new
|
3169
|
+
#
|
3170
|
+
# # Call the get_entry_link method.
|
3171
|
+
# result = client.get_entry_link request
|
3172
|
+
#
|
3173
|
+
# # The returned object is of type Google::Cloud::Dataplex::V1::EntryLink.
|
3174
|
+
# p result
|
3175
|
+
#
|
3176
|
+
def get_entry_link request, options = nil
|
3177
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3178
|
+
|
3179
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetEntryLinkRequest
|
3180
|
+
|
3181
|
+
# Converts hash and nil to an options object
|
3182
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3183
|
+
|
3184
|
+
# Customize the options with defaults
|
3185
|
+
metadata = @config.rpcs.get_entry_link.metadata.to_h
|
3186
|
+
|
3187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3188
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3189
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3190
|
+
gapic_version: ::Google::Cloud::Dataplex::V1::VERSION
|
3191
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3192
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3193
|
+
|
3194
|
+
header_params = {}
|
3195
|
+
if request.name
|
3196
|
+
header_params["name"] = request.name
|
3197
|
+
end
|
3198
|
+
|
3199
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3200
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3201
|
+
|
3202
|
+
options.apply_defaults timeout: @config.rpcs.get_entry_link.timeout,
|
3203
|
+
metadata: metadata,
|
3204
|
+
retry_policy: @config.rpcs.get_entry_link.retry_policy
|
3205
|
+
|
3206
|
+
options.apply_defaults timeout: @config.timeout,
|
3207
|
+
metadata: @config.metadata,
|
3208
|
+
retry_policy: @config.retry_policy
|
3209
|
+
|
3210
|
+
@catalog_service_stub.call_rpc :get_entry_link, request, options: options do |response, operation|
|
3211
|
+
yield response, operation if block_given?
|
3212
|
+
end
|
3213
|
+
rescue ::GRPC::BadStatus => e
|
3214
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3215
|
+
end
|
3216
|
+
|
2947
3217
|
##
|
2948
3218
|
# Configuration class for the CatalogService API.
|
2949
3219
|
#
|
@@ -3240,6 +3510,21 @@ module Google
|
|
3240
3510
|
# @return [::Gapic::Config::Method]
|
3241
3511
|
#
|
3242
3512
|
attr_reader :cancel_metadata_job
|
3513
|
+
##
|
3514
|
+
# RPC-specific configuration for `create_entry_link`
|
3515
|
+
# @return [::Gapic::Config::Method]
|
3516
|
+
#
|
3517
|
+
attr_reader :create_entry_link
|
3518
|
+
##
|
3519
|
+
# RPC-specific configuration for `delete_entry_link`
|
3520
|
+
# @return [::Gapic::Config::Method]
|
3521
|
+
#
|
3522
|
+
attr_reader :delete_entry_link
|
3523
|
+
##
|
3524
|
+
# RPC-specific configuration for `get_entry_link`
|
3525
|
+
# @return [::Gapic::Config::Method]
|
3526
|
+
#
|
3527
|
+
attr_reader :get_entry_link
|
3243
3528
|
|
3244
3529
|
# @private
|
3245
3530
|
def initialize parent_rpcs = nil
|
@@ -3295,6 +3580,12 @@ module Google
|
|
3295
3580
|
@list_metadata_jobs = ::Gapic::Config::Method.new list_metadata_jobs_config
|
3296
3581
|
cancel_metadata_job_config = parent_rpcs.cancel_metadata_job if parent_rpcs.respond_to? :cancel_metadata_job
|
3297
3582
|
@cancel_metadata_job = ::Gapic::Config::Method.new cancel_metadata_job_config
|
3583
|
+
create_entry_link_config = parent_rpcs.create_entry_link if parent_rpcs.respond_to? :create_entry_link
|
3584
|
+
@create_entry_link = ::Gapic::Config::Method.new create_entry_link_config
|
3585
|
+
delete_entry_link_config = parent_rpcs.delete_entry_link if parent_rpcs.respond_to? :delete_entry_link
|
3586
|
+
@delete_entry_link = ::Gapic::Config::Method.new delete_entry_link_config
|
3587
|
+
get_entry_link_config = parent_rpcs.get_entry_link if parent_rpcs.respond_to? :get_entry_link
|
3588
|
+
@get_entry_link = ::Gapic::Config::Method.new get_entry_link_config
|
3298
3589
|
|
3299
3590
|
yield self if block_given?
|
3300
3591
|
end
|
@@ -83,6 +83,27 @@ module Google
|
|
83
83
|
"projects/#{project}/locations/#{location}/entryGroups/#{entry_group}"
|
84
84
|
end
|
85
85
|
|
86
|
+
##
|
87
|
+
# Create a fully-qualified EntryLink resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param entry_group [String]
|
96
|
+
# @param entry_link [String]
|
97
|
+
#
|
98
|
+
# @return [::String]
|
99
|
+
def entry_link_path project:, location:, entry_group:, entry_link:
|
100
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entryLinks/#{entry_link}"
|
105
|
+
end
|
106
|
+
|
86
107
|
##
|
87
108
|
# Create a fully-qualified EntryType resource string.
|
88
109
|
#
|
@@ -102,6 +123,25 @@ module Google
|
|
102
123
|
"projects/#{project}/locations/#{location}/entryTypes/#{entry_type}"
|
103
124
|
end
|
104
125
|
|
126
|
+
##
|
127
|
+
# Create a fully-qualified Glossary resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}/glossaries/{glossary}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
# @param glossary [String]
|
136
|
+
#
|
137
|
+
# @return [::String]
|
138
|
+
def glossary_path project:, location:, glossary:
|
139
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
140
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
141
|
+
|
142
|
+
"projects/#{project}/locations/#{location}/glossaries/#{glossary}"
|
143
|
+
end
|
144
|
+
|
105
145
|
##
|
106
146
|
# Create a fully-qualified Location resource string.
|
107
147
|
#
|