google-cloud-dataplex-v1 0.17.0 → 0.18.1
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/AUTHENTICATION.md +72 -99
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +42 -17
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +38 -10
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +23 -2
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +43 -17
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +28 -6
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +39 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +33 -8
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +23 -2
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +43 -17
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +28 -6
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +39 -10
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +33 -8
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub.rb +23 -2
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +43 -17
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +28 -6
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +39 -10
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +33 -8
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +23 -2
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +42 -17
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +38 -10
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +23 -2
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +1 -0
- data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +6 -1
- data/proto_docs/google/cloud/dataplex/v1/metadata.rb +2 -0
- metadata +8 -8
|
@@ -33,6 +33,9 @@ module Google
|
|
|
33
33
|
# partitions.
|
|
34
34
|
#
|
|
35
35
|
class Client
|
|
36
|
+
# @private
|
|
37
|
+
DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
|
|
38
|
+
|
|
36
39
|
include Paths
|
|
37
40
|
|
|
38
41
|
# @private
|
|
@@ -123,6 +126,15 @@ module Google
|
|
|
123
126
|
@config
|
|
124
127
|
end
|
|
125
128
|
|
|
129
|
+
##
|
|
130
|
+
# The effective universe domain
|
|
131
|
+
#
|
|
132
|
+
# @return [String]
|
|
133
|
+
#
|
|
134
|
+
def universe_domain
|
|
135
|
+
@metadata_service_stub.universe_domain
|
|
136
|
+
end
|
|
137
|
+
|
|
126
138
|
##
|
|
127
139
|
# Create a new MetadataService client object.
|
|
128
140
|
#
|
|
@@ -156,8 +168,9 @@ module Google
|
|
|
156
168
|
credentials = @config.credentials
|
|
157
169
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
158
170
|
# but only if the default endpoint does not have a region prefix.
|
|
159
|
-
enable_self_signed_jwt = @config.endpoint
|
|
160
|
-
|
|
171
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
172
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
173
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
161
174
|
credentials ||= Credentials.default scope: @config.scope,
|
|
162
175
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
163
176
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -166,26 +179,30 @@ module Google
|
|
|
166
179
|
@quota_project_id = @config.quota_project
|
|
167
180
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
168
181
|
|
|
182
|
+
@metadata_service_stub = ::Gapic::ServiceStub.new(
|
|
183
|
+
::Google::Cloud::Dataplex::V1::MetadataService::Stub,
|
|
184
|
+
credentials: credentials,
|
|
185
|
+
endpoint: @config.endpoint,
|
|
186
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
187
|
+
universe_domain: @config.universe_domain,
|
|
188
|
+
channel_args: @config.channel_args,
|
|
189
|
+
interceptors: @config.interceptors,
|
|
190
|
+
channel_pool_config: @config.channel_pool
|
|
191
|
+
)
|
|
192
|
+
|
|
169
193
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
|
170
194
|
config.credentials = credentials
|
|
171
195
|
config.quota_project = @quota_project_id
|
|
172
|
-
config.endpoint = @
|
|
196
|
+
config.endpoint = @metadata_service_stub.endpoint
|
|
197
|
+
config.universe_domain = @metadata_service_stub.universe_domain
|
|
173
198
|
end
|
|
174
199
|
|
|
175
200
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
|
176
201
|
config.credentials = credentials
|
|
177
202
|
config.quota_project = @quota_project_id
|
|
178
|
-
config.endpoint = @
|
|
203
|
+
config.endpoint = @metadata_service_stub.endpoint
|
|
204
|
+
config.universe_domain = @metadata_service_stub.universe_domain
|
|
179
205
|
end
|
|
180
|
-
|
|
181
|
-
@metadata_service_stub = ::Gapic::ServiceStub.new(
|
|
182
|
-
::Google::Cloud::Dataplex::V1::MetadataService::Stub,
|
|
183
|
-
credentials: credentials,
|
|
184
|
-
endpoint: @config.endpoint,
|
|
185
|
-
channel_args: @config.channel_args,
|
|
186
|
-
interceptors: @config.interceptors,
|
|
187
|
-
channel_pool_config: @config.channel_pool
|
|
188
|
-
)
|
|
189
206
|
end
|
|
190
207
|
|
|
191
208
|
##
|
|
@@ -1094,9 +1111,9 @@ module Google
|
|
|
1094
1111
|
# end
|
|
1095
1112
|
#
|
|
1096
1113
|
# @!attribute [rw] endpoint
|
|
1097
|
-
#
|
|
1098
|
-
#
|
|
1099
|
-
# @return [::String]
|
|
1114
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1115
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1116
|
+
# @return [::String,nil]
|
|
1100
1117
|
# @!attribute [rw] credentials
|
|
1101
1118
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1102
1119
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -1142,13 +1159,20 @@ module Google
|
|
|
1142
1159
|
# @!attribute [rw] quota_project
|
|
1143
1160
|
# A separate project against which to charge quota.
|
|
1144
1161
|
# @return [::String]
|
|
1162
|
+
# @!attribute [rw] universe_domain
|
|
1163
|
+
# The universe domain within which to make requests. This determines the
|
|
1164
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1165
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1166
|
+
# @return [::String,nil]
|
|
1145
1167
|
#
|
|
1146
1168
|
class Configuration
|
|
1147
1169
|
extend ::Gapic::Config
|
|
1148
1170
|
|
|
1171
|
+
# @private
|
|
1172
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1149
1173
|
DEFAULT_ENDPOINT = "dataplex.googleapis.com"
|
|
1150
1174
|
|
|
1151
|
-
config_attr :endpoint,
|
|
1175
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1152
1176
|
config_attr :credentials, nil do |value|
|
|
1153
1177
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1154
1178
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -1163,6 +1187,7 @@ module Google
|
|
|
1163
1187
|
config_attr :metadata, nil, ::Hash, nil
|
|
1164
1188
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1165
1189
|
config_attr :quota_project, nil, ::String, nil
|
|
1190
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1166
1191
|
|
|
1167
1192
|
# @private
|
|
1168
1193
|
def initialize parent_config = nil
|
|
@@ -35,6 +35,9 @@ module Google
|
|
|
35
35
|
# partitions.
|
|
36
36
|
#
|
|
37
37
|
class Client
|
|
38
|
+
# @private
|
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
|
|
40
|
+
|
|
38
41
|
include Paths
|
|
39
42
|
|
|
40
43
|
# @private
|
|
@@ -125,6 +128,15 @@ module Google
|
|
|
125
128
|
@config
|
|
126
129
|
end
|
|
127
130
|
|
|
131
|
+
##
|
|
132
|
+
# The effective universe domain
|
|
133
|
+
#
|
|
134
|
+
# @return [String]
|
|
135
|
+
#
|
|
136
|
+
def universe_domain
|
|
137
|
+
@metadata_service_stub.universe_domain
|
|
138
|
+
end
|
|
139
|
+
|
|
128
140
|
##
|
|
129
141
|
# Create a new MetadataService REST client object.
|
|
130
142
|
#
|
|
@@ -152,8 +164,9 @@ module Google
|
|
|
152
164
|
credentials = @config.credentials
|
|
153
165
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
154
166
|
# but only if the default endpoint does not have a region prefix.
|
|
155
|
-
enable_self_signed_jwt = @config.endpoint
|
|
156
|
-
|
|
167
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
168
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
169
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
157
170
|
credentials ||= Credentials.default scope: @config.scope,
|
|
158
171
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
159
172
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -163,21 +176,28 @@ module Google
|
|
|
163
176
|
@quota_project_id = @config.quota_project
|
|
164
177
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
165
178
|
|
|
179
|
+
@metadata_service_stub = ::Google::Cloud::Dataplex::V1::MetadataService::Rest::ServiceStub.new(
|
|
180
|
+
endpoint: @config.endpoint,
|
|
181
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
182
|
+
universe_domain: @config.universe_domain,
|
|
183
|
+
credentials: credentials
|
|
184
|
+
)
|
|
185
|
+
|
|
166
186
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
|
167
187
|
config.credentials = credentials
|
|
168
188
|
config.quota_project = @quota_project_id
|
|
169
|
-
config.endpoint = @
|
|
189
|
+
config.endpoint = @metadata_service_stub.endpoint
|
|
190
|
+
config.universe_domain = @metadata_service_stub.universe_domain
|
|
170
191
|
config.bindings_override = @config.bindings_override
|
|
171
192
|
end
|
|
172
193
|
|
|
173
194
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
|
174
195
|
config.credentials = credentials
|
|
175
196
|
config.quota_project = @quota_project_id
|
|
176
|
-
config.endpoint = @
|
|
197
|
+
config.endpoint = @metadata_service_stub.endpoint
|
|
198
|
+
config.universe_domain = @metadata_service_stub.universe_domain
|
|
177
199
|
config.bindings_override = @config.bindings_override
|
|
178
200
|
end
|
|
179
|
-
|
|
180
|
-
@metadata_service_stub = ::Google::Cloud::Dataplex::V1::MetadataService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
|
181
201
|
end
|
|
182
202
|
|
|
183
203
|
##
|
|
@@ -1023,9 +1043,9 @@ module Google
|
|
|
1023
1043
|
# end
|
|
1024
1044
|
#
|
|
1025
1045
|
# @!attribute [rw] endpoint
|
|
1026
|
-
#
|
|
1027
|
-
#
|
|
1028
|
-
# @return [::String]
|
|
1046
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1047
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1048
|
+
# @return [::String,nil]
|
|
1029
1049
|
# @!attribute [rw] credentials
|
|
1030
1050
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1031
1051
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -1062,13 +1082,20 @@ module Google
|
|
|
1062
1082
|
# @!attribute [rw] quota_project
|
|
1063
1083
|
# A separate project against which to charge quota.
|
|
1064
1084
|
# @return [::String]
|
|
1085
|
+
# @!attribute [rw] universe_domain
|
|
1086
|
+
# The universe domain within which to make requests. This determines the
|
|
1087
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1088
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1089
|
+
# @return [::String,nil]
|
|
1065
1090
|
#
|
|
1066
1091
|
class Configuration
|
|
1067
1092
|
extend ::Gapic::Config
|
|
1068
1093
|
|
|
1094
|
+
# @private
|
|
1095
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1069
1096
|
DEFAULT_ENDPOINT = "dataplex.googleapis.com"
|
|
1070
1097
|
|
|
1071
|
-
config_attr :endpoint,
|
|
1098
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1072
1099
|
config_attr :credentials, nil do |value|
|
|
1073
1100
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1074
1101
|
allowed.any? { |klass| klass === value }
|
|
@@ -1080,6 +1107,7 @@ module Google
|
|
|
1080
1107
|
config_attr :metadata, nil, ::Hash, nil
|
|
1081
1108
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1082
1109
|
config_attr :quota_project, nil, ::String, nil
|
|
1110
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1083
1111
|
|
|
1084
1112
|
# @private
|
|
1085
1113
|
# Overrides for http bindings for the RPCs of this service
|
|
@@ -30,16 +30,37 @@ module Google
|
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
|
31
31
|
#
|
|
32
32
|
class ServiceStub
|
|
33
|
-
def initialize endpoint:, credentials:
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
|
34
34
|
# These require statements are intentionally placed here to initialize
|
|
35
35
|
# the REST modules only when it's required.
|
|
36
36
|
require "gapic/rest"
|
|
37
37
|
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
39
42
|
numeric_enums: true,
|
|
40
43
|
raise_faraday_errors: false
|
|
41
44
|
end
|
|
42
45
|
|
|
46
|
+
##
|
|
47
|
+
# The effective universe domain
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
def universe_domain
|
|
52
|
+
@client_stub.universe_domain
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
##
|
|
56
|
+
# The effective endpoint
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
#
|
|
60
|
+
def endpoint
|
|
61
|
+
@client_stub.endpoint
|
|
62
|
+
end
|
|
63
|
+
|
|
43
64
|
##
|
|
44
65
|
# Baseline implementation for the create_entity REST call
|
|
45
66
|
#
|
|
@@ -21,6 +21,7 @@ module Google
|
|
|
21
21
|
module Api
|
|
22
22
|
# Required information for every language.
|
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
24
25
|
# @return [::String]
|
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
@@ -259,7 +259,12 @@ module Google
|
|
|
259
259
|
# `ignore_null` is `true`. In that case, such `null` rows are trivially
|
|
260
260
|
# considered passing.
|
|
261
261
|
#
|
|
262
|
-
# This field is only valid for
|
|
262
|
+
# This field is only valid for the following type of rules:
|
|
263
|
+
#
|
|
264
|
+
# * RangeExpectation
|
|
265
|
+
# * RegexExpectation
|
|
266
|
+
# * SetExpectation
|
|
267
|
+
# * UniquenessExpectation
|
|
263
268
|
# @!attribute [rw] dimension
|
|
264
269
|
# @return [::String]
|
|
265
270
|
# Required. The dimension a rule belongs to. Results are also aggregated at
|
|
@@ -227,6 +227,7 @@ module Google
|
|
|
227
227
|
# The \\{partition_value_path} segment consists of an ordered sequence of
|
|
228
228
|
# partition values separated by "/". All values must be provided.
|
|
229
229
|
# @!attribute [rw] etag
|
|
230
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
230
231
|
# @return [::String]
|
|
231
232
|
# Optional. The etag associated with the partition.
|
|
232
233
|
class DeletePartitionRequest
|
|
@@ -395,6 +396,7 @@ module Google
|
|
|
395
396
|
# for example, `gs://bucket/path/to/entity/key1=value1/key2=value2`. Or
|
|
396
397
|
# `projects/<project_id>/datasets/<dataset_id>/tables/<table_id>`
|
|
397
398
|
# @!attribute [rw] etag
|
|
399
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
398
400
|
# @return [::String]
|
|
399
401
|
# Optional. The etag for this partition.
|
|
400
402
|
class Partition
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dataplex-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-01-
|
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ">="
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.21.1
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 2.a
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ">="
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.21.1
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -50,7 +50,7 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0.
|
|
53
|
+
version: '0.7'
|
|
54
54
|
- - "<"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
56
|
version: 2.a
|
|
@@ -60,7 +60,7 @@ dependencies:
|
|
|
60
60
|
requirements:
|
|
61
61
|
- - ">="
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: '0.
|
|
63
|
+
version: '0.7'
|
|
64
64
|
- - "<"
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: 2.a
|
|
@@ -70,7 +70,7 @@ dependencies:
|
|
|
70
70
|
requirements:
|
|
71
71
|
- - ">="
|
|
72
72
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '0.
|
|
73
|
+
version: '0.7'
|
|
74
74
|
- - "<"
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
76
|
version: 2.a
|
|
@@ -80,7 +80,7 @@ dependencies:
|
|
|
80
80
|
requirements:
|
|
81
81
|
- - ">="
|
|
82
82
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '0.
|
|
83
|
+
version: '0.7'
|
|
84
84
|
- - "<"
|
|
85
85
|
- !ruby/object:Gem::Version
|
|
86
86
|
version: 2.a
|