google-cloud-dataplex-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/README.md +30 -20
- data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +45 -27
- data/lib/google/cloud/dataplex/v1/catalog_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +40 -27
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +222 -158
- data/lib/google/cloud/dataplex/v1/content_service/client.rb +30 -9
- data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +30 -9
- data/lib/google/cloud/dataplex/v1/content_service/rest/service_stub.rb +78 -50
- data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +34 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +33 -10
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/data_scan_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +41 -16
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +38 -16
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub.rb +134 -92
- data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +54 -34
- data/lib/google/cloud/dataplex/v1/dataplex_service/operations.rb +9 -5
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +52 -34
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +40 -28
- data/lib/google/cloud/dataplex/v1/dataplex_service/rest/service_stub.rb +278 -200
- data/lib/google/cloud/dataplex/v1/metadata_service/client.rb +31 -10
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/client.rb +31 -10
- data/lib/google/cloud/dataplex/v1/metadata_service/rest/service_stub.rb +86 -56
- data/lib/google/cloud/dataplex/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +19 -0
- metadata +5 -5
@@ -190,14 +190,26 @@ module Google
|
|
190
190
|
universe_domain: @config.universe_domain,
|
191
191
|
channel_args: @config.channel_args,
|
192
192
|
interceptors: @config.interceptors,
|
193
|
-
channel_pool_config: @config.channel_pool
|
193
|
+
channel_pool_config: @config.channel_pool,
|
194
|
+
logger: @config.logger
|
194
195
|
)
|
195
196
|
|
197
|
+
@metadata_service_stub.stub_logger&.info do |entry|
|
198
|
+
entry.set_system_name
|
199
|
+
entry.set_service
|
200
|
+
entry.message = "Created client for #{entry.service}"
|
201
|
+
entry.set_credentials_fields credentials
|
202
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
203
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
204
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
205
|
+
end
|
206
|
+
|
196
207
|
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
197
208
|
config.credentials = credentials
|
198
209
|
config.quota_project = @quota_project_id
|
199
210
|
config.endpoint = @metadata_service_stub.endpoint
|
200
211
|
config.universe_domain = @metadata_service_stub.universe_domain
|
212
|
+
config.logger = @metadata_service_stub.logger if config.respond_to? :logger=
|
201
213
|
end
|
202
214
|
|
203
215
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
@@ -205,6 +217,7 @@ module Google
|
|
205
217
|
config.quota_project = @quota_project_id
|
206
218
|
config.endpoint = @metadata_service_stub.endpoint
|
207
219
|
config.universe_domain = @metadata_service_stub.universe_domain
|
220
|
+
config.logger = @metadata_service_stub.logger if config.respond_to? :logger=
|
208
221
|
end
|
209
222
|
end
|
210
223
|
|
@@ -222,6 +235,15 @@ module Google
|
|
222
235
|
#
|
223
236
|
attr_reader :iam_policy_client
|
224
237
|
|
238
|
+
##
|
239
|
+
# The logger used for request/response debug logging.
|
240
|
+
#
|
241
|
+
# @return [Logger]
|
242
|
+
#
|
243
|
+
def logger
|
244
|
+
@metadata_service_stub.logger
|
245
|
+
end
|
246
|
+
|
225
247
|
# Service calls
|
226
248
|
|
227
249
|
##
|
@@ -310,7 +332,6 @@ module Google
|
|
310
332
|
|
311
333
|
@metadata_service_stub.call_rpc :create_entity, request, options: options do |response, operation|
|
312
334
|
yield response, operation if block_given?
|
313
|
-
return response
|
314
335
|
end
|
315
336
|
rescue ::GRPC::BadStatus => e
|
316
337
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -399,7 +420,6 @@ module Google
|
|
399
420
|
|
400
421
|
@metadata_service_stub.call_rpc :update_entity, request, options: options do |response, operation|
|
401
422
|
yield response, operation if block_given?
|
402
|
-
return response
|
403
423
|
end
|
404
424
|
rescue ::GRPC::BadStatus => e
|
405
425
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -489,7 +509,6 @@ module Google
|
|
489
509
|
|
490
510
|
@metadata_service_stub.call_rpc :delete_entity, request, options: options do |response, operation|
|
491
511
|
yield response, operation if block_given?
|
492
|
-
return response
|
493
512
|
end
|
494
513
|
rescue ::GRPC::BadStatus => e
|
495
514
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -579,7 +598,6 @@ module Google
|
|
579
598
|
|
580
599
|
@metadata_service_stub.call_rpc :get_entity, request, options: options do |response, operation|
|
581
600
|
yield response, operation if block_given?
|
582
|
-
return response
|
583
601
|
end
|
584
602
|
rescue ::GRPC::BadStatus => e
|
585
603
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -692,7 +710,7 @@ module Google
|
|
692
710
|
@metadata_service_stub.call_rpc :list_entities, request, options: options do |response, operation|
|
693
711
|
response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_entities, request, response, operation, options
|
694
712
|
yield response, operation if block_given?
|
695
|
-
|
713
|
+
throw :response, response
|
696
714
|
end
|
697
715
|
rescue ::GRPC::BadStatus => e
|
698
716
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -784,7 +802,6 @@ module Google
|
|
784
802
|
|
785
803
|
@metadata_service_stub.call_rpc :create_partition, request, options: options do |response, operation|
|
786
804
|
yield response, operation if block_given?
|
787
|
-
return response
|
788
805
|
end
|
789
806
|
rescue ::GRPC::BadStatus => e
|
790
807
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -876,7 +893,6 @@ module Google
|
|
876
893
|
|
877
894
|
@metadata_service_stub.call_rpc :delete_partition, request, options: options do |response, operation|
|
878
895
|
yield response, operation if block_given?
|
879
|
-
return response
|
880
896
|
end
|
881
897
|
rescue ::GRPC::BadStatus => e
|
882
898
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -965,7 +981,6 @@ module Google
|
|
965
981
|
|
966
982
|
@metadata_service_stub.call_rpc :get_partition, request, options: options do |response, operation|
|
967
983
|
yield response, operation if block_given?
|
968
|
-
return response
|
969
984
|
end
|
970
985
|
rescue ::GRPC::BadStatus => e
|
971
986
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1087,7 +1102,7 @@ module Google
|
|
1087
1102
|
@metadata_service_stub.call_rpc :list_partitions, request, options: options do |response, operation|
|
1088
1103
|
response = ::Gapic::PagedEnumerable.new @metadata_service_stub, :list_partitions, request, response, operation, options
|
1089
1104
|
yield response, operation if block_given?
|
1090
|
-
|
1105
|
+
throw :response, response
|
1091
1106
|
end
|
1092
1107
|
rescue ::GRPC::BadStatus => e
|
1093
1108
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1176,6 +1191,11 @@ module Google
|
|
1176
1191
|
# default endpoint URL. The default value of nil uses the environment
|
1177
1192
|
# universe (usually the default "googleapis.com" universe).
|
1178
1193
|
# @return [::String,nil]
|
1194
|
+
# @!attribute [rw] logger
|
1195
|
+
# A custom logger to use for request/response debug logging, or the value
|
1196
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1197
|
+
# explicitly disable logging.
|
1198
|
+
# @return [::Logger,:default,nil]
|
1179
1199
|
#
|
1180
1200
|
class Configuration
|
1181
1201
|
extend ::Gapic::Config
|
@@ -1200,6 +1220,7 @@ module Google
|
|
1200
1220
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1201
1221
|
config_attr :quota_project, nil, ::String, nil
|
1202
1222
|
config_attr :universe_domain, nil, ::String, nil
|
1223
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1203
1224
|
|
1204
1225
|
# @private
|
1205
1226
|
def initialize parent_config = nil
|
@@ -183,15 +183,27 @@ module Google
|
|
183
183
|
endpoint: @config.endpoint,
|
184
184
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
185
185
|
universe_domain: @config.universe_domain,
|
186
|
-
credentials: credentials
|
186
|
+
credentials: credentials,
|
187
|
+
logger: @config.logger
|
187
188
|
)
|
188
189
|
|
190
|
+
@metadata_service_stub.logger(stub: true)&.info do |entry|
|
191
|
+
entry.set_system_name
|
192
|
+
entry.set_service
|
193
|
+
entry.message = "Created client for #{entry.service}"
|
194
|
+
entry.set_credentials_fields credentials
|
195
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
196
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
197
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
198
|
+
end
|
199
|
+
|
189
200
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
190
201
|
config.credentials = credentials
|
191
202
|
config.quota_project = @quota_project_id
|
192
203
|
config.endpoint = @metadata_service_stub.endpoint
|
193
204
|
config.universe_domain = @metadata_service_stub.universe_domain
|
194
205
|
config.bindings_override = @config.bindings_override
|
206
|
+
config.logger = @metadata_service_stub.logger if config.respond_to? :logger=
|
195
207
|
end
|
196
208
|
|
197
209
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -200,6 +212,7 @@ module Google
|
|
200
212
|
config.endpoint = @metadata_service_stub.endpoint
|
201
213
|
config.universe_domain = @metadata_service_stub.universe_domain
|
202
214
|
config.bindings_override = @config.bindings_override
|
215
|
+
config.logger = @metadata_service_stub.logger if config.respond_to? :logger=
|
203
216
|
end
|
204
217
|
end
|
205
218
|
|
@@ -217,6 +230,15 @@ module Google
|
|
217
230
|
#
|
218
231
|
attr_reader :iam_policy_client
|
219
232
|
|
233
|
+
##
|
234
|
+
# The logger used for request/response debug logging.
|
235
|
+
#
|
236
|
+
# @return [Logger]
|
237
|
+
#
|
238
|
+
def logger
|
239
|
+
@metadata_service_stub.logger
|
240
|
+
end
|
241
|
+
|
220
242
|
# Service calls
|
221
243
|
|
222
244
|
##
|
@@ -298,7 +320,6 @@ module Google
|
|
298
320
|
|
299
321
|
@metadata_service_stub.create_entity request, options do |result, operation|
|
300
322
|
yield result, operation if block_given?
|
301
|
-
return result
|
302
323
|
end
|
303
324
|
rescue ::Gapic::Rest::Error => e
|
304
325
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -380,7 +401,6 @@ module Google
|
|
380
401
|
|
381
402
|
@metadata_service_stub.update_entity request, options do |result, operation|
|
382
403
|
yield result, operation if block_given?
|
383
|
-
return result
|
384
404
|
end
|
385
405
|
rescue ::Gapic::Rest::Error => e
|
386
406
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -463,7 +483,6 @@ module Google
|
|
463
483
|
|
464
484
|
@metadata_service_stub.delete_entity request, options do |result, operation|
|
465
485
|
yield result, operation if block_given?
|
466
|
-
return result
|
467
486
|
end
|
468
487
|
rescue ::Gapic::Rest::Error => e
|
469
488
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -546,7 +565,6 @@ module Google
|
|
546
565
|
|
547
566
|
@metadata_service_stub.get_entity request, options do |result, operation|
|
548
567
|
yield result, operation if block_given?
|
549
|
-
return result
|
550
568
|
end
|
551
569
|
rescue ::Gapic::Rest::Error => e
|
552
570
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -652,7 +670,7 @@ module Google
|
|
652
670
|
@metadata_service_stub.list_entities request, options do |result, operation|
|
653
671
|
result = ::Gapic::Rest::PagedEnumerable.new @metadata_service_stub, :list_entities, "entities", request, result, options
|
654
672
|
yield result, operation if block_given?
|
655
|
-
|
673
|
+
throw :response, result
|
656
674
|
end
|
657
675
|
rescue ::Gapic::Rest::Error => e
|
658
676
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -737,7 +755,6 @@ module Google
|
|
737
755
|
|
738
756
|
@metadata_service_stub.create_partition request, options do |result, operation|
|
739
757
|
yield result, operation if block_given?
|
740
|
-
return result
|
741
758
|
end
|
742
759
|
rescue ::Gapic::Rest::Error => e
|
743
760
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -822,7 +839,6 @@ module Google
|
|
822
839
|
|
823
840
|
@metadata_service_stub.delete_partition request, options do |result, operation|
|
824
841
|
yield result, operation if block_given?
|
825
|
-
return result
|
826
842
|
end
|
827
843
|
rescue ::Gapic::Rest::Error => e
|
828
844
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -904,7 +920,6 @@ module Google
|
|
904
920
|
|
905
921
|
@metadata_service_stub.get_partition request, options do |result, operation|
|
906
922
|
yield result, operation if block_given?
|
907
|
-
return result
|
908
923
|
end
|
909
924
|
rescue ::Gapic::Rest::Error => e
|
910
925
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1019,7 +1034,7 @@ module Google
|
|
1019
1034
|
@metadata_service_stub.list_partitions request, options do |result, operation|
|
1020
1035
|
result = ::Gapic::Rest::PagedEnumerable.new @metadata_service_stub, :list_partitions, "partitions", request, result, options
|
1021
1036
|
yield result, operation if block_given?
|
1022
|
-
|
1037
|
+
throw :response, result
|
1023
1038
|
end
|
1024
1039
|
rescue ::Gapic::Rest::Error => e
|
1025
1040
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1099,6 +1114,11 @@ module Google
|
|
1099
1114
|
# default endpoint URL. The default value of nil uses the environment
|
1100
1115
|
# universe (usually the default "googleapis.com" universe).
|
1101
1116
|
# @return [::String,nil]
|
1117
|
+
# @!attribute [rw] logger
|
1118
|
+
# A custom logger to use for request/response debug logging, or the value
|
1119
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
1120
|
+
# explicitly disable logging.
|
1121
|
+
# @return [::Logger,:default,nil]
|
1102
1122
|
#
|
1103
1123
|
class Configuration
|
1104
1124
|
extend ::Gapic::Config
|
@@ -1127,6 +1147,7 @@ module Google
|
|
1127
1147
|
# by the host service.
|
1128
1148
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1129
1149
|
config_attr :bindings_override, {}, ::Hash, nil
|
1150
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
1130
1151
|
|
1131
1152
|
# @private
|
1132
1153
|
def initialize parent_config = nil
|
@@ -30,7 +30,8 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
|
33
|
+
# @private
|
34
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
|
34
35
|
# These require statements are intentionally placed here to initialize
|
35
36
|
# the REST modules only when it's required.
|
36
37
|
require "gapic/rest"
|
@@ -40,7 +41,9 @@ module Google
|
|
40
41
|
universe_domain: universe_domain,
|
41
42
|
credentials: credentials,
|
42
43
|
numeric_enums: true,
|
43
|
-
|
44
|
+
service_name: self.class,
|
45
|
+
raise_faraday_errors: false,
|
46
|
+
logger: logger
|
44
47
|
end
|
45
48
|
|
46
49
|
##
|
@@ -61,6 +64,15 @@ module Google
|
|
61
64
|
@client_stub.endpoint
|
62
65
|
end
|
63
66
|
|
67
|
+
##
|
68
|
+
# The logger used for request/response debug logging.
|
69
|
+
#
|
70
|
+
# @return [Logger]
|
71
|
+
#
|
72
|
+
def logger stub: false
|
73
|
+
stub ? @client_stub.stub_logger : @client_stub.logger
|
74
|
+
end
|
75
|
+
|
64
76
|
##
|
65
77
|
# Baseline implementation for the create_entity REST call
|
66
78
|
#
|
@@ -87,16 +99,18 @@ module Google
|
|
87
99
|
|
88
100
|
response = @client_stub.make_http_request(
|
89
101
|
verb,
|
90
|
-
uri:
|
91
|
-
body:
|
92
|
-
params:
|
102
|
+
uri: uri,
|
103
|
+
body: body || "",
|
104
|
+
params: query_string_params,
|
105
|
+
method_name: "create_entity",
|
93
106
|
options: options
|
94
107
|
)
|
95
108
|
operation = ::Gapic::Rest::TransportOperation.new response
|
96
109
|
result = ::Google::Cloud::Dataplex::V1::Entity.decode_json response.body, ignore_unknown_fields: true
|
97
|
-
|
98
|
-
|
99
|
-
|
110
|
+
catch :response do
|
111
|
+
yield result, operation if block_given?
|
112
|
+
result
|
113
|
+
end
|
100
114
|
end
|
101
115
|
|
102
116
|
##
|
@@ -125,16 +139,18 @@ module Google
|
|
125
139
|
|
126
140
|
response = @client_stub.make_http_request(
|
127
141
|
verb,
|
128
|
-
uri:
|
129
|
-
body:
|
130
|
-
params:
|
142
|
+
uri: uri,
|
143
|
+
body: body || "",
|
144
|
+
params: query_string_params,
|
145
|
+
method_name: "update_entity",
|
131
146
|
options: options
|
132
147
|
)
|
133
148
|
operation = ::Gapic::Rest::TransportOperation.new response
|
134
149
|
result = ::Google::Cloud::Dataplex::V1::Entity.decode_json response.body, ignore_unknown_fields: true
|
135
|
-
|
136
|
-
|
137
|
-
|
150
|
+
catch :response do
|
151
|
+
yield result, operation if block_given?
|
152
|
+
result
|
153
|
+
end
|
138
154
|
end
|
139
155
|
|
140
156
|
##
|
@@ -163,16 +179,18 @@ module Google
|
|
163
179
|
|
164
180
|
response = @client_stub.make_http_request(
|
165
181
|
verb,
|
166
|
-
uri:
|
167
|
-
body:
|
168
|
-
params:
|
182
|
+
uri: uri,
|
183
|
+
body: body || "",
|
184
|
+
params: query_string_params,
|
185
|
+
method_name: "delete_entity",
|
169
186
|
options: options
|
170
187
|
)
|
171
188
|
operation = ::Gapic::Rest::TransportOperation.new response
|
172
189
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
173
|
-
|
174
|
-
|
175
|
-
|
190
|
+
catch :response do
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
176
194
|
end
|
177
195
|
|
178
196
|
##
|
@@ -201,16 +219,18 @@ module Google
|
|
201
219
|
|
202
220
|
response = @client_stub.make_http_request(
|
203
221
|
verb,
|
204
|
-
uri:
|
205
|
-
body:
|
206
|
-
params:
|
222
|
+
uri: uri,
|
223
|
+
body: body || "",
|
224
|
+
params: query_string_params,
|
225
|
+
method_name: "get_entity",
|
207
226
|
options: options
|
208
227
|
)
|
209
228
|
operation = ::Gapic::Rest::TransportOperation.new response
|
210
229
|
result = ::Google::Cloud::Dataplex::V1::Entity.decode_json response.body, ignore_unknown_fields: true
|
211
|
-
|
212
|
-
|
213
|
-
|
230
|
+
catch :response do
|
231
|
+
yield result, operation if block_given?
|
232
|
+
result
|
233
|
+
end
|
214
234
|
end
|
215
235
|
|
216
236
|
##
|
@@ -239,16 +259,18 @@ module Google
|
|
239
259
|
|
240
260
|
response = @client_stub.make_http_request(
|
241
261
|
verb,
|
242
|
-
uri:
|
243
|
-
body:
|
244
|
-
params:
|
262
|
+
uri: uri,
|
263
|
+
body: body || "",
|
264
|
+
params: query_string_params,
|
265
|
+
method_name: "list_entities",
|
245
266
|
options: options
|
246
267
|
)
|
247
268
|
operation = ::Gapic::Rest::TransportOperation.new response
|
248
269
|
result = ::Google::Cloud::Dataplex::V1::ListEntitiesResponse.decode_json response.body, ignore_unknown_fields: true
|
249
|
-
|
250
|
-
|
251
|
-
|
270
|
+
catch :response do
|
271
|
+
yield result, operation if block_given?
|
272
|
+
result
|
273
|
+
end
|
252
274
|
end
|
253
275
|
|
254
276
|
##
|
@@ -277,16 +299,18 @@ module Google
|
|
277
299
|
|
278
300
|
response = @client_stub.make_http_request(
|
279
301
|
verb,
|
280
|
-
uri:
|
281
|
-
body:
|
282
|
-
params:
|
302
|
+
uri: uri,
|
303
|
+
body: body || "",
|
304
|
+
params: query_string_params,
|
305
|
+
method_name: "create_partition",
|
283
306
|
options: options
|
284
307
|
)
|
285
308
|
operation = ::Gapic::Rest::TransportOperation.new response
|
286
309
|
result = ::Google::Cloud::Dataplex::V1::Partition.decode_json response.body, ignore_unknown_fields: true
|
287
|
-
|
288
|
-
|
289
|
-
|
310
|
+
catch :response do
|
311
|
+
yield result, operation if block_given?
|
312
|
+
result
|
313
|
+
end
|
290
314
|
end
|
291
315
|
|
292
316
|
##
|
@@ -315,16 +339,18 @@ module Google
|
|
315
339
|
|
316
340
|
response = @client_stub.make_http_request(
|
317
341
|
verb,
|
318
|
-
uri:
|
319
|
-
body:
|
320
|
-
params:
|
342
|
+
uri: uri,
|
343
|
+
body: body || "",
|
344
|
+
params: query_string_params,
|
345
|
+
method_name: "delete_partition",
|
321
346
|
options: options
|
322
347
|
)
|
323
348
|
operation = ::Gapic::Rest::TransportOperation.new response
|
324
349
|
result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
|
325
|
-
|
326
|
-
|
327
|
-
|
350
|
+
catch :response do
|
351
|
+
yield result, operation if block_given?
|
352
|
+
result
|
353
|
+
end
|
328
354
|
end
|
329
355
|
|
330
356
|
##
|
@@ -353,16 +379,18 @@ module Google
|
|
353
379
|
|
354
380
|
response = @client_stub.make_http_request(
|
355
381
|
verb,
|
356
|
-
uri:
|
357
|
-
body:
|
358
|
-
params:
|
382
|
+
uri: uri,
|
383
|
+
body: body || "",
|
384
|
+
params: query_string_params,
|
385
|
+
method_name: "get_partition",
|
359
386
|
options: options
|
360
387
|
)
|
361
388
|
operation = ::Gapic::Rest::TransportOperation.new response
|
362
389
|
result = ::Google::Cloud::Dataplex::V1::Partition.decode_json response.body, ignore_unknown_fields: true
|
363
|
-
|
364
|
-
|
365
|
-
|
390
|
+
catch :response do
|
391
|
+
yield result, operation if block_given?
|
392
|
+
result
|
393
|
+
end
|
366
394
|
end
|
367
395
|
|
368
396
|
##
|
@@ -391,16 +419,18 @@ module Google
|
|
391
419
|
|
392
420
|
response = @client_stub.make_http_request(
|
393
421
|
verb,
|
394
|
-
uri:
|
395
|
-
body:
|
396
|
-
params:
|
422
|
+
uri: uri,
|
423
|
+
body: body || "",
|
424
|
+
params: query_string_params,
|
425
|
+
method_name: "list_partitions",
|
397
426
|
options: options
|
398
427
|
)
|
399
428
|
operation = ::Gapic::Rest::TransportOperation.new response
|
400
429
|
result = ::Google::Cloud::Dataplex::V1::ListPartitionsResponse.decode_json response.body, ignore_unknown_fields: true
|
401
|
-
|
402
|
-
|
403
|
-
|
430
|
+
catch :response do
|
431
|
+
yield result, operation if block_given?
|
432
|
+
result
|
433
|
+
end
|
404
434
|
end
|
405
435
|
|
406
436
|
##
|
@@ -306,9 +306,28 @@ module Google
|
|
306
306
|
# @!attribute [rw] common
|
307
307
|
# @return [::Google::Api::CommonLanguageSettings]
|
308
308
|
# Some settings.
|
309
|
+
# @!attribute [rw] renamed_services
|
310
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
311
|
+
# Map of service names to renamed services. Keys are the package relative
|
312
|
+
# service names and values are the name to be used for the service client
|
313
|
+
# and call options.
|
314
|
+
#
|
315
|
+
# publishing:
|
316
|
+
# go_settings:
|
317
|
+
# renamed_services:
|
318
|
+
# Publisher: TopicAdmin
|
309
319
|
class GoSettings
|
310
320
|
include ::Google::Protobuf::MessageExts
|
311
321
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
322
|
+
|
323
|
+
# @!attribute [rw] key
|
324
|
+
# @return [::String]
|
325
|
+
# @!attribute [rw] value
|
326
|
+
# @return [::String]
|
327
|
+
class RenamedServicesEntry
|
328
|
+
include ::Google::Protobuf::MessageExts
|
329
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
330
|
+
end
|
312
331
|
end
|
313
332
|
|
314
333
|
# Describes the generator configuration for a method.
|
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: 1.
|
4
|
+
version: 1.2.0
|
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-12-
|
11
|
+
date: 2024-12-10 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.24.0
|
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.24.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
|
-
rubygems_version: 3.5.
|
227
|
+
rubygems_version: 3.5.23
|
228
228
|
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: Dataplex API is used to manage the lifecycle of data lakes.
|