google-cloud-data_catalog-v1 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +290 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +3 -10
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +269 -0
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +3 -10
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +193 -0
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/common_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +8 -1
- data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +13 -0
- data/lib/google/cloud/datacatalog/v1/dataplex_spec_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/physical_schema_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/search_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/tags_pb.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +1 -1
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +110 -2
- data/proto_docs/google/cloud/datacatalog/v1/tags.rb +7 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990f9830aae1710a4d8c96c06665881c16a853281770e82e0a497ee403c2da93
|
4
|
+
data.tar.gz: 397def9fde3c20b1978bce38d97e4d1ce607bf4860fda2fd9a1db862643c130b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c7dff149b1d6fae5acb40b9070e73c4bcd2cd86821bf04106b7c184b2305724e146c3bf86fd3e68c0921fe483f22171c332e58f6cd523a79ec51b5f4dfe5ef1
|
7
|
+
data.tar.gz: d0f33019b41d8fc8fa79e13d73eb09d208cdae5013ee92d7d5b3b919ddea46c6150450aa6af0f0675fd75c33e0ec80f64e4c1c5513adb7d7417df96dfe921477
|
@@ -3681,6 +3681,275 @@ module Google
|
|
3681
3681
|
raise ::Google::Cloud::Error.from_error(e)
|
3682
3682
|
end
|
3683
3683
|
|
3684
|
+
##
|
3685
|
+
# Sets the configuration related to the migration to Dataplex for an
|
3686
|
+
# organization or project.
|
3687
|
+
#
|
3688
|
+
# @overload set_config(request, options = nil)
|
3689
|
+
# Pass arguments to `set_config` via a request object, either of type
|
3690
|
+
# {::Google::Cloud::DataCatalog::V1::SetConfigRequest} or an equivalent Hash.
|
3691
|
+
#
|
3692
|
+
# @param request [::Google::Cloud::DataCatalog::V1::SetConfigRequest, ::Hash]
|
3693
|
+
# A request object representing the call parameters. Required. To specify no
|
3694
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3695
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3696
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3697
|
+
#
|
3698
|
+
# @overload set_config(name: nil, tag_template_migration: nil, catalog_ui_experience: nil)
|
3699
|
+
# Pass arguments to `set_config` via keyword arguments. Note that at
|
3700
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3701
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3702
|
+
#
|
3703
|
+
# @param name [::String]
|
3704
|
+
# Required. The organization or project whose config is being specified.
|
3705
|
+
# @param tag_template_migration [::Google::Cloud::DataCatalog::V1::TagTemplateMigration]
|
3706
|
+
# Opt-in status for the migration of Tag Templates to Dataplex.
|
3707
|
+
# @param catalog_ui_experience [::Google::Cloud::DataCatalog::V1::CatalogUIExperience]
|
3708
|
+
# Opt-in status for the UI switch to Dataplex.
|
3709
|
+
#
|
3710
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3711
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3712
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3713
|
+
#
|
3714
|
+
# @return [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3715
|
+
#
|
3716
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3717
|
+
#
|
3718
|
+
# @example Basic example
|
3719
|
+
# require "google/cloud/data_catalog/v1"
|
3720
|
+
#
|
3721
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3722
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
3723
|
+
#
|
3724
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3725
|
+
# request = Google::Cloud::DataCatalog::V1::SetConfigRequest.new
|
3726
|
+
#
|
3727
|
+
# # Call the set_config method.
|
3728
|
+
# result = client.set_config request
|
3729
|
+
#
|
3730
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::MigrationConfig.
|
3731
|
+
# p result
|
3732
|
+
#
|
3733
|
+
def set_config request, options = nil
|
3734
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3735
|
+
|
3736
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::SetConfigRequest
|
3737
|
+
|
3738
|
+
# Converts hash and nil to an options object
|
3739
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3740
|
+
|
3741
|
+
# Customize the options with defaults
|
3742
|
+
metadata = @config.rpcs.set_config.metadata.to_h
|
3743
|
+
|
3744
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3745
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3746
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3747
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
3748
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3749
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3750
|
+
|
3751
|
+
header_params = {}
|
3752
|
+
if request.name
|
3753
|
+
header_params["name"] = request.name
|
3754
|
+
end
|
3755
|
+
|
3756
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3757
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3758
|
+
|
3759
|
+
options.apply_defaults timeout: @config.rpcs.set_config.timeout,
|
3760
|
+
metadata: metadata,
|
3761
|
+
retry_policy: @config.rpcs.set_config.retry_policy
|
3762
|
+
|
3763
|
+
options.apply_defaults timeout: @config.timeout,
|
3764
|
+
metadata: @config.metadata,
|
3765
|
+
retry_policy: @config.retry_policy
|
3766
|
+
|
3767
|
+
@data_catalog_stub.call_rpc :set_config, request, options: options do |response, operation|
|
3768
|
+
yield response, operation if block_given?
|
3769
|
+
return response
|
3770
|
+
end
|
3771
|
+
rescue ::GRPC::BadStatus => e
|
3772
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3773
|
+
end
|
3774
|
+
|
3775
|
+
##
|
3776
|
+
# Retrieves the configuration related to the migration from Data Catalog to
|
3777
|
+
# Dataplex for a specific organization, including all the projects under it
|
3778
|
+
# which have a separate configuration set.
|
3779
|
+
#
|
3780
|
+
# @overload retrieve_config(request, options = nil)
|
3781
|
+
# Pass arguments to `retrieve_config` via a request object, either of type
|
3782
|
+
# {::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest} or an equivalent Hash.
|
3783
|
+
#
|
3784
|
+
# @param request [::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest, ::Hash]
|
3785
|
+
# A request object representing the call parameters. Required. To specify no
|
3786
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3787
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3788
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3789
|
+
#
|
3790
|
+
# @overload retrieve_config(name: nil)
|
3791
|
+
# Pass arguments to `retrieve_config` via keyword arguments. Note that at
|
3792
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3793
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3794
|
+
#
|
3795
|
+
# @param name [::String]
|
3796
|
+
# Required. The organization whose config is being retrieved.
|
3797
|
+
#
|
3798
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3799
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::OrganizationConfig]
|
3800
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3801
|
+
#
|
3802
|
+
# @return [::Google::Cloud::DataCatalog::V1::OrganizationConfig]
|
3803
|
+
#
|
3804
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3805
|
+
#
|
3806
|
+
# @example Basic example
|
3807
|
+
# require "google/cloud/data_catalog/v1"
|
3808
|
+
#
|
3809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3810
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
3811
|
+
#
|
3812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3813
|
+
# request = Google::Cloud::DataCatalog::V1::RetrieveConfigRequest.new
|
3814
|
+
#
|
3815
|
+
# # Call the retrieve_config method.
|
3816
|
+
# result = client.retrieve_config request
|
3817
|
+
#
|
3818
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::OrganizationConfig.
|
3819
|
+
# p result
|
3820
|
+
#
|
3821
|
+
def retrieve_config request, options = nil
|
3822
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3823
|
+
|
3824
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest
|
3825
|
+
|
3826
|
+
# Converts hash and nil to an options object
|
3827
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3828
|
+
|
3829
|
+
# Customize the options with defaults
|
3830
|
+
metadata = @config.rpcs.retrieve_config.metadata.to_h
|
3831
|
+
|
3832
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3833
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3834
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3835
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
3836
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3837
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3838
|
+
|
3839
|
+
header_params = {}
|
3840
|
+
if request.name
|
3841
|
+
header_params["name"] = request.name
|
3842
|
+
end
|
3843
|
+
|
3844
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3845
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3846
|
+
|
3847
|
+
options.apply_defaults timeout: @config.rpcs.retrieve_config.timeout,
|
3848
|
+
metadata: metadata,
|
3849
|
+
retry_policy: @config.rpcs.retrieve_config.retry_policy
|
3850
|
+
|
3851
|
+
options.apply_defaults timeout: @config.timeout,
|
3852
|
+
metadata: @config.metadata,
|
3853
|
+
retry_policy: @config.retry_policy
|
3854
|
+
|
3855
|
+
@data_catalog_stub.call_rpc :retrieve_config, request, options: options do |response, operation|
|
3856
|
+
yield response, operation if block_given?
|
3857
|
+
return response
|
3858
|
+
end
|
3859
|
+
rescue ::GRPC::BadStatus => e
|
3860
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3861
|
+
end
|
3862
|
+
|
3863
|
+
##
|
3864
|
+
# Retrieves the effective configuration related to the migration from Data
|
3865
|
+
# Catalog to Dataplex for a specific organization or project. If there is no
|
3866
|
+
# specific configuration set for the resource, the setting is checked
|
3867
|
+
# hierarchicahlly through the ancestors of the resource, starting from the
|
3868
|
+
# resource itself.
|
3869
|
+
#
|
3870
|
+
# @overload retrieve_effective_config(request, options = nil)
|
3871
|
+
# Pass arguments to `retrieve_effective_config` via a request object, either of type
|
3872
|
+
# {::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest} or an equivalent Hash.
|
3873
|
+
#
|
3874
|
+
# @param request [::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest, ::Hash]
|
3875
|
+
# A request object representing the call parameters. Required. To specify no
|
3876
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3877
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3878
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
3879
|
+
#
|
3880
|
+
# @overload retrieve_effective_config(name: nil)
|
3881
|
+
# Pass arguments to `retrieve_effective_config` via keyword arguments. Note that at
|
3882
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3883
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3884
|
+
#
|
3885
|
+
# @param name [::String]
|
3886
|
+
# Required. The resource whose effective config is being retrieved.
|
3887
|
+
#
|
3888
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
3889
|
+
# @yieldparam response [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3890
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
3891
|
+
#
|
3892
|
+
# @return [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3893
|
+
#
|
3894
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
3895
|
+
#
|
3896
|
+
# @example Basic example
|
3897
|
+
# require "google/cloud/data_catalog/v1"
|
3898
|
+
#
|
3899
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3900
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Client.new
|
3901
|
+
#
|
3902
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3903
|
+
# request = Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest.new
|
3904
|
+
#
|
3905
|
+
# # Call the retrieve_effective_config method.
|
3906
|
+
# result = client.retrieve_effective_config request
|
3907
|
+
#
|
3908
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::MigrationConfig.
|
3909
|
+
# p result
|
3910
|
+
#
|
3911
|
+
def retrieve_effective_config request, options = nil
|
3912
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3913
|
+
|
3914
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest
|
3915
|
+
|
3916
|
+
# Converts hash and nil to an options object
|
3917
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3918
|
+
|
3919
|
+
# Customize the options with defaults
|
3920
|
+
metadata = @config.rpcs.retrieve_effective_config.metadata.to_h
|
3921
|
+
|
3922
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3923
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3924
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3925
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION
|
3926
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3927
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3928
|
+
|
3929
|
+
header_params = {}
|
3930
|
+
if request.name
|
3931
|
+
header_params["name"] = request.name
|
3932
|
+
end
|
3933
|
+
|
3934
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
3935
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
3936
|
+
|
3937
|
+
options.apply_defaults timeout: @config.rpcs.retrieve_effective_config.timeout,
|
3938
|
+
metadata: metadata,
|
3939
|
+
retry_policy: @config.rpcs.retrieve_effective_config.retry_policy
|
3940
|
+
|
3941
|
+
options.apply_defaults timeout: @config.timeout,
|
3942
|
+
metadata: @config.metadata,
|
3943
|
+
retry_policy: @config.retry_policy
|
3944
|
+
|
3945
|
+
@data_catalog_stub.call_rpc :retrieve_effective_config, request, options: options do |response, operation|
|
3946
|
+
yield response, operation if block_given?
|
3947
|
+
return response
|
3948
|
+
end
|
3949
|
+
rescue ::GRPC::BadStatus => e
|
3950
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3951
|
+
end
|
3952
|
+
|
3684
3953
|
##
|
3685
3954
|
# Configuration class for the DataCatalog API.
|
3686
3955
|
#
|
@@ -4004,6 +4273,21 @@ module Google
|
|
4004
4273
|
# @return [::Gapic::Config::Method]
|
4005
4274
|
#
|
4006
4275
|
attr_reader :import_entries
|
4276
|
+
##
|
4277
|
+
# RPC-specific configuration for `set_config`
|
4278
|
+
# @return [::Gapic::Config::Method]
|
4279
|
+
#
|
4280
|
+
attr_reader :set_config
|
4281
|
+
##
|
4282
|
+
# RPC-specific configuration for `retrieve_config`
|
4283
|
+
# @return [::Gapic::Config::Method]
|
4284
|
+
#
|
4285
|
+
attr_reader :retrieve_config
|
4286
|
+
##
|
4287
|
+
# RPC-specific configuration for `retrieve_effective_config`
|
4288
|
+
# @return [::Gapic::Config::Method]
|
4289
|
+
#
|
4290
|
+
attr_reader :retrieve_effective_config
|
4007
4291
|
|
4008
4292
|
# @private
|
4009
4293
|
def initialize parent_rpcs = nil
|
@@ -4075,6 +4359,12 @@ module Google
|
|
4075
4359
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
4076
4360
|
import_entries_config = parent_rpcs.import_entries if parent_rpcs.respond_to? :import_entries
|
4077
4361
|
@import_entries = ::Gapic::Config::Method.new import_entries_config
|
4362
|
+
set_config_config = parent_rpcs.set_config if parent_rpcs.respond_to? :set_config
|
4363
|
+
@set_config = ::Gapic::Config::Method.new set_config_config
|
4364
|
+
retrieve_config_config = parent_rpcs.retrieve_config if parent_rpcs.respond_to? :retrieve_config
|
4365
|
+
@retrieve_config = ::Gapic::Config::Method.new retrieve_config_config
|
4366
|
+
retrieve_effective_config_config = parent_rpcs.retrieve_effective_config if parent_rpcs.respond_to? :retrieve_effective_config
|
4367
|
+
@retrieve_effective_config = ::Gapic::Config::Method.new retrieve_effective_config_config
|
4078
4368
|
|
4079
4369
|
yield self if block_given?
|
4080
4370
|
end
|
@@ -124,14 +124,6 @@ module Google
|
|
124
124
|
# Lists operations that match the specified filter in the request. If the
|
125
125
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
126
126
|
#
|
127
|
-
# NOTE: the `name` binding allows API services to override the binding
|
128
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
129
|
-
# override the binding, API services can add a binding such as
|
130
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
131
|
-
# For backwards compatibility, the default name includes the operations
|
132
|
-
# collection id, however overriding users must ensure the name binding
|
133
|
-
# is the parent resource, without the operations collection id.
|
134
|
-
#
|
135
127
|
# @overload list_operations(request, options = nil)
|
136
128
|
# Pass arguments to `list_operations` via a request object, either of type
|
137
129
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -421,8 +413,9 @@ module Google
|
|
421
413
|
# other methods to check whether the cancellation succeeded or whether the
|
422
414
|
# operation completed despite cancellation. On successful cancellation,
|
423
415
|
# the operation is not deleted; instead, it becomes an operation with
|
424
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
425
|
-
# corresponding to
|
416
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
417
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
418
|
+
# `Code.CANCELLED`.
|
426
419
|
#
|
427
420
|
# @overload cancel_operation(request, options = nil)
|
428
421
|
# Pass arguments to `cancel_operation` via a request object, either of type
|
@@ -3451,6 +3451,254 @@ module Google
|
|
3451
3451
|
raise ::Google::Cloud::Error.from_error(e)
|
3452
3452
|
end
|
3453
3453
|
|
3454
|
+
##
|
3455
|
+
# Sets the configuration related to the migration to Dataplex for an
|
3456
|
+
# organization or project.
|
3457
|
+
#
|
3458
|
+
# @overload set_config(request, options = nil)
|
3459
|
+
# Pass arguments to `set_config` via a request object, either of type
|
3460
|
+
# {::Google::Cloud::DataCatalog::V1::SetConfigRequest} or an equivalent Hash.
|
3461
|
+
#
|
3462
|
+
# @param request [::Google::Cloud::DataCatalog::V1::SetConfigRequest, ::Hash]
|
3463
|
+
# A request object representing the call parameters. Required. To specify no
|
3464
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3465
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3466
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3467
|
+
#
|
3468
|
+
# @overload set_config(name: nil, tag_template_migration: nil, catalog_ui_experience: nil)
|
3469
|
+
# Pass arguments to `set_config` via keyword arguments. Note that at
|
3470
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3471
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3472
|
+
#
|
3473
|
+
# @param name [::String]
|
3474
|
+
# Required. The organization or project whose config is being specified.
|
3475
|
+
# @param tag_template_migration [::Google::Cloud::DataCatalog::V1::TagTemplateMigration]
|
3476
|
+
# Opt-in status for the migration of Tag Templates to Dataplex.
|
3477
|
+
# @param catalog_ui_experience [::Google::Cloud::DataCatalog::V1::CatalogUIExperience]
|
3478
|
+
# Opt-in status for the UI switch to Dataplex.
|
3479
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3480
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3481
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3482
|
+
#
|
3483
|
+
# @return [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3484
|
+
#
|
3485
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3486
|
+
#
|
3487
|
+
# @example Basic example
|
3488
|
+
# require "google/cloud/data_catalog/v1"
|
3489
|
+
#
|
3490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3491
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3492
|
+
#
|
3493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3494
|
+
# request = Google::Cloud::DataCatalog::V1::SetConfigRequest.new
|
3495
|
+
#
|
3496
|
+
# # Call the set_config method.
|
3497
|
+
# result = client.set_config request
|
3498
|
+
#
|
3499
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::MigrationConfig.
|
3500
|
+
# p result
|
3501
|
+
#
|
3502
|
+
def set_config request, options = nil
|
3503
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3504
|
+
|
3505
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::SetConfigRequest
|
3506
|
+
|
3507
|
+
# Converts hash and nil to an options object
|
3508
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3509
|
+
|
3510
|
+
# Customize the options with defaults
|
3511
|
+
call_metadata = @config.rpcs.set_config.metadata.to_h
|
3512
|
+
|
3513
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3514
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3515
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3516
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
|
3517
|
+
transports_version_send: [:rest]
|
3518
|
+
|
3519
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3520
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3521
|
+
|
3522
|
+
options.apply_defaults timeout: @config.rpcs.set_config.timeout,
|
3523
|
+
metadata: call_metadata,
|
3524
|
+
retry_policy: @config.rpcs.set_config.retry_policy
|
3525
|
+
|
3526
|
+
options.apply_defaults timeout: @config.timeout,
|
3527
|
+
metadata: @config.metadata,
|
3528
|
+
retry_policy: @config.retry_policy
|
3529
|
+
|
3530
|
+
@data_catalog_stub.set_config request, options do |result, operation|
|
3531
|
+
yield result, operation if block_given?
|
3532
|
+
return result
|
3533
|
+
end
|
3534
|
+
rescue ::Gapic::Rest::Error => e
|
3535
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3536
|
+
end
|
3537
|
+
|
3538
|
+
##
|
3539
|
+
# Retrieves the configuration related to the migration from Data Catalog to
|
3540
|
+
# Dataplex for a specific organization, including all the projects under it
|
3541
|
+
# which have a separate configuration set.
|
3542
|
+
#
|
3543
|
+
# @overload retrieve_config(request, options = nil)
|
3544
|
+
# Pass arguments to `retrieve_config` via a request object, either of type
|
3545
|
+
# {::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest} or an equivalent Hash.
|
3546
|
+
#
|
3547
|
+
# @param request [::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest, ::Hash]
|
3548
|
+
# A request object representing the call parameters. Required. To specify no
|
3549
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3550
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3551
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3552
|
+
#
|
3553
|
+
# @overload retrieve_config(name: nil)
|
3554
|
+
# Pass arguments to `retrieve_config` via keyword arguments. Note that at
|
3555
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3556
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3557
|
+
#
|
3558
|
+
# @param name [::String]
|
3559
|
+
# Required. The organization whose config is being retrieved.
|
3560
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3561
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::OrganizationConfig]
|
3562
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3563
|
+
#
|
3564
|
+
# @return [::Google::Cloud::DataCatalog::V1::OrganizationConfig]
|
3565
|
+
#
|
3566
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3567
|
+
#
|
3568
|
+
# @example Basic example
|
3569
|
+
# require "google/cloud/data_catalog/v1"
|
3570
|
+
#
|
3571
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3572
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3573
|
+
#
|
3574
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3575
|
+
# request = Google::Cloud::DataCatalog::V1::RetrieveConfigRequest.new
|
3576
|
+
#
|
3577
|
+
# # Call the retrieve_config method.
|
3578
|
+
# result = client.retrieve_config request
|
3579
|
+
#
|
3580
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::OrganizationConfig.
|
3581
|
+
# p result
|
3582
|
+
#
|
3583
|
+
def retrieve_config request, options = nil
|
3584
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3585
|
+
|
3586
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::RetrieveConfigRequest
|
3587
|
+
|
3588
|
+
# Converts hash and nil to an options object
|
3589
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3590
|
+
|
3591
|
+
# Customize the options with defaults
|
3592
|
+
call_metadata = @config.rpcs.retrieve_config.metadata.to_h
|
3593
|
+
|
3594
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3595
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3596
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3597
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
|
3598
|
+
transports_version_send: [:rest]
|
3599
|
+
|
3600
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3601
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3602
|
+
|
3603
|
+
options.apply_defaults timeout: @config.rpcs.retrieve_config.timeout,
|
3604
|
+
metadata: call_metadata,
|
3605
|
+
retry_policy: @config.rpcs.retrieve_config.retry_policy
|
3606
|
+
|
3607
|
+
options.apply_defaults timeout: @config.timeout,
|
3608
|
+
metadata: @config.metadata,
|
3609
|
+
retry_policy: @config.retry_policy
|
3610
|
+
|
3611
|
+
@data_catalog_stub.retrieve_config request, options do |result, operation|
|
3612
|
+
yield result, operation if block_given?
|
3613
|
+
return result
|
3614
|
+
end
|
3615
|
+
rescue ::Gapic::Rest::Error => e
|
3616
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3617
|
+
end
|
3618
|
+
|
3619
|
+
##
|
3620
|
+
# Retrieves the effective configuration related to the migration from Data
|
3621
|
+
# Catalog to Dataplex for a specific organization or project. If there is no
|
3622
|
+
# specific configuration set for the resource, the setting is checked
|
3623
|
+
# hierarchicahlly through the ancestors of the resource, starting from the
|
3624
|
+
# resource itself.
|
3625
|
+
#
|
3626
|
+
# @overload retrieve_effective_config(request, options = nil)
|
3627
|
+
# Pass arguments to `retrieve_effective_config` via a request object, either of type
|
3628
|
+
# {::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest} or an equivalent Hash.
|
3629
|
+
#
|
3630
|
+
# @param request [::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest, ::Hash]
|
3631
|
+
# A request object representing the call parameters. Required. To specify no
|
3632
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3633
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3634
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3635
|
+
#
|
3636
|
+
# @overload retrieve_effective_config(name: nil)
|
3637
|
+
# Pass arguments to `retrieve_effective_config` via keyword arguments. Note that at
|
3638
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3639
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3640
|
+
#
|
3641
|
+
# @param name [::String]
|
3642
|
+
# Required. The resource whose effective config is being retrieved.
|
3643
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3644
|
+
# @yieldparam result [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3645
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3646
|
+
#
|
3647
|
+
# @return [::Google::Cloud::DataCatalog::V1::MigrationConfig]
|
3648
|
+
#
|
3649
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3650
|
+
#
|
3651
|
+
# @example Basic example
|
3652
|
+
# require "google/cloud/data_catalog/v1"
|
3653
|
+
#
|
3654
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3655
|
+
# client = Google::Cloud::DataCatalog::V1::DataCatalog::Rest::Client.new
|
3656
|
+
#
|
3657
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3658
|
+
# request = Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest.new
|
3659
|
+
#
|
3660
|
+
# # Call the retrieve_effective_config method.
|
3661
|
+
# result = client.retrieve_effective_config request
|
3662
|
+
#
|
3663
|
+
# # The returned object is of type Google::Cloud::DataCatalog::V1::MigrationConfig.
|
3664
|
+
# p result
|
3665
|
+
#
|
3666
|
+
def retrieve_effective_config request, options = nil
|
3667
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3668
|
+
|
3669
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::DataCatalog::V1::RetrieveEffectiveConfigRequest
|
3670
|
+
|
3671
|
+
# Converts hash and nil to an options object
|
3672
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3673
|
+
|
3674
|
+
# Customize the options with defaults
|
3675
|
+
call_metadata = @config.rpcs.retrieve_effective_config.metadata.to_h
|
3676
|
+
|
3677
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3678
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3679
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3680
|
+
gapic_version: ::Google::Cloud::DataCatalog::V1::VERSION,
|
3681
|
+
transports_version_send: [:rest]
|
3682
|
+
|
3683
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3684
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3685
|
+
|
3686
|
+
options.apply_defaults timeout: @config.rpcs.retrieve_effective_config.timeout,
|
3687
|
+
metadata: call_metadata,
|
3688
|
+
retry_policy: @config.rpcs.retrieve_effective_config.retry_policy
|
3689
|
+
|
3690
|
+
options.apply_defaults timeout: @config.timeout,
|
3691
|
+
metadata: @config.metadata,
|
3692
|
+
retry_policy: @config.retry_policy
|
3693
|
+
|
3694
|
+
@data_catalog_stub.retrieve_effective_config request, options do |result, operation|
|
3695
|
+
yield result, operation if block_given?
|
3696
|
+
return result
|
3697
|
+
end
|
3698
|
+
rescue ::Gapic::Rest::Error => e
|
3699
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3700
|
+
end
|
3701
|
+
|
3454
3702
|
##
|
3455
3703
|
# Configuration class for the DataCatalog REST API.
|
3456
3704
|
#
|
@@ -3754,6 +4002,21 @@ module Google
|
|
3754
4002
|
# @return [::Gapic::Config::Method]
|
3755
4003
|
#
|
3756
4004
|
attr_reader :import_entries
|
4005
|
+
##
|
4006
|
+
# RPC-specific configuration for `set_config`
|
4007
|
+
# @return [::Gapic::Config::Method]
|
4008
|
+
#
|
4009
|
+
attr_reader :set_config
|
4010
|
+
##
|
4011
|
+
# RPC-specific configuration for `retrieve_config`
|
4012
|
+
# @return [::Gapic::Config::Method]
|
4013
|
+
#
|
4014
|
+
attr_reader :retrieve_config
|
4015
|
+
##
|
4016
|
+
# RPC-specific configuration for `retrieve_effective_config`
|
4017
|
+
# @return [::Gapic::Config::Method]
|
4018
|
+
#
|
4019
|
+
attr_reader :retrieve_effective_config
|
3757
4020
|
|
3758
4021
|
# @private
|
3759
4022
|
def initialize parent_rpcs = nil
|
@@ -3825,6 +4088,12 @@ module Google
|
|
3825
4088
|
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
3826
4089
|
import_entries_config = parent_rpcs.import_entries if parent_rpcs.respond_to? :import_entries
|
3827
4090
|
@import_entries = ::Gapic::Config::Method.new import_entries_config
|
4091
|
+
set_config_config = parent_rpcs.set_config if parent_rpcs.respond_to? :set_config
|
4092
|
+
@set_config = ::Gapic::Config::Method.new set_config_config
|
4093
|
+
retrieve_config_config = parent_rpcs.retrieve_config if parent_rpcs.respond_to? :retrieve_config
|
4094
|
+
@retrieve_config = ::Gapic::Config::Method.new retrieve_config_config
|
4095
|
+
retrieve_effective_config_config = parent_rpcs.retrieve_effective_config if parent_rpcs.respond_to? :retrieve_effective_config
|
4096
|
+
@retrieve_effective_config = ::Gapic::Config::Method.new retrieve_effective_config_config
|
3828
4097
|
|
3829
4098
|
yield self if block_given?
|
3830
4099
|
end
|
@@ -115,14 +115,6 @@ module Google
|
|
115
115
|
# Lists operations that match the specified filter in the request. If the
|
116
116
|
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
117
117
|
#
|
118
|
-
# NOTE: the `name` binding allows API services to override the binding
|
119
|
-
# to use different resource name schemes, such as `users/*/operations`. To
|
120
|
-
# override the binding, API services can add a binding such as
|
121
|
-
# `"/v1/{name=users/*}/operations"` to their service configuration.
|
122
|
-
# For backwards compatibility, the default name includes the operations
|
123
|
-
# collection id, however overriding users must ensure the name binding
|
124
|
-
# is the parent resource, without the operations collection id.
|
125
|
-
#
|
126
118
|
# @overload list_operations(request, options = nil)
|
127
119
|
# Pass arguments to `list_operations` via a request object, either of type
|
128
120
|
# {::Google::Longrunning::ListOperationsRequest} or an equivalent Hash.
|
@@ -390,8 +382,9 @@ module Google
|
|
390
382
|
# other methods to check whether the cancellation succeeded or whether the
|
391
383
|
# operation completed despite cancellation. On successful cancellation,
|
392
384
|
# the operation is not deleted; instead, it becomes an operation with
|
393
|
-
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
394
|
-
# corresponding to
|
385
|
+
# an {::Google::Longrunning::Operation#error Operation.error} value with a
|
386
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of `1`, corresponding to
|
387
|
+
# `Code.CANCELLED`.
|
395
388
|
#
|
396
389
|
# @overload cancel_operation(request, options = nil)
|
397
390
|
# Pass arguments to `cancel_operation` via a request object, either of type
|