google-cloud-dataplex-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dataplex/v1/bindings_override.rb +72 -0
  3. data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +8 -1
  4. data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +7 -1
  5. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +19 -1
  6. data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +19 -0
  7. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +19 -1
  8. data/lib/google/cloud/dataplex/v1/data_taxonomy_pb.rb +77 -0
  9. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +1931 -0
  10. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/credentials.rb +47 -0
  11. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/operations.rb +770 -0
  12. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/paths.rb +109 -0
  13. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +1497 -0
  14. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +795 -0
  15. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub.rb +939 -0
  16. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest.rb +55 -0
  17. data/lib/google/cloud/dataplex/v1/data_taxonomy_service.rb +57 -0
  18. data/lib/google/cloud/dataplex/v1/data_taxonomy_services_pb.rb +77 -0
  19. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +17 -1
  20. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +17 -1
  21. data/lib/google/cloud/dataplex/v1/datascans_pb.rb +1 -1
  22. data/lib/google/cloud/dataplex/v1/logs_pb.rb +11 -1
  23. data/lib/google/cloud/dataplex/v1/rest.rb +1 -0
  24. data/lib/google/cloud/dataplex/v1/security_pb.rb +45 -0
  25. data/lib/google/cloud/dataplex/v1/service_pb.rb +1 -1
  26. data/lib/google/cloud/dataplex/v1/tasks_pb.rb +2 -1
  27. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  28. data/lib/google/cloud/dataplex/v1.rb +1 -0
  29. data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +118 -6
  30. data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +130 -30
  31. data/proto_docs/google/cloud/dataplex/v1/data_taxonomy.rb +565 -0
  32. data/proto_docs/google/cloud/dataplex/v1/datascans.rb +19 -0
  33. data/proto_docs/google/cloud/dataplex/v1/logs.rb +214 -4
  34. data/proto_docs/google/cloud/dataplex/v1/security.rb +61 -0
  35. data/proto_docs/google/cloud/dataplex/v1/service.rb +36 -0
  36. data/proto_docs/google/cloud/dataplex/v1/tasks.rb +31 -0
  37. metadata +16 -2
@@ -0,0 +1,1497 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/errors"
20
+ require "google/cloud/dataplex/v1/data_taxonomy_pb"
21
+ require "google/cloud/dataplex/v1/data_taxonomy_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
24
+
25
+ module Google
26
+ module Cloud
27
+ module Dataplex
28
+ module V1
29
+ module DataTaxonomyService
30
+ module Rest
31
+ ##
32
+ # REST client for the DataTaxonomyService service.
33
+ #
34
+ # DataTaxonomyService enables attribute-based governance. The resources
35
+ # currently offered include DataTaxonomy and DataAttribute.
36
+ #
37
+ class Client
38
+ include Paths
39
+
40
+ # @private
41
+ attr_reader :data_taxonomy_service_stub
42
+
43
+ ##
44
+ # Configure the DataTaxonomyService Client class.
45
+ #
46
+ # See {::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client::Configuration}
47
+ # for a description of the configuration fields.
48
+ #
49
+ # @example
50
+ #
51
+ # # Modify the configuration for all DataTaxonomyService clients
52
+ # ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.configure do |config|
53
+ # config.timeout = 10.0
54
+ # end
55
+ #
56
+ # @yield [config] Configure the Client client.
57
+ # @yieldparam config [Client::Configuration]
58
+ #
59
+ # @return [Client::Configuration]
60
+ #
61
+ def self.configure
62
+ @configure ||= begin
63
+ namespace = ["Google", "Cloud", "Dataplex", "V1"]
64
+ parent_config = while namespace.any?
65
+ parent_name = namespace.join "::"
66
+ parent_const = const_get parent_name
67
+ break parent_const.configure if parent_const.respond_to? :configure
68
+ namespace.pop
69
+ end
70
+ default_config = Client::Configuration.new parent_config
71
+
72
+ default_config
73
+ end
74
+ yield @configure if block_given?
75
+ @configure
76
+ end
77
+
78
+ ##
79
+ # Configure the DataTaxonomyService Client instance.
80
+ #
81
+ # The configuration is set to the derived mode, meaning that values can be changed,
82
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
83
+ # should be made on {Client.configure}.
84
+ #
85
+ # See {::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client::Configuration}
86
+ # for a description of the configuration fields.
87
+ #
88
+ # @yield [config] Configure the Client client.
89
+ # @yieldparam config [Client::Configuration]
90
+ #
91
+ # @return [Client::Configuration]
92
+ #
93
+ def configure
94
+ yield @config if block_given?
95
+ @config
96
+ end
97
+
98
+ ##
99
+ # Create a new DataTaxonomyService REST client object.
100
+ #
101
+ # @example
102
+ #
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.new
105
+ #
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
110
+ #
111
+ # @yield [config] Configure the DataTaxonomyService client.
112
+ # @yieldparam config [Client::Configuration]
113
+ #
114
+ def initialize
115
+ # Create the configuration object
116
+ @config = Configuration.new Client.configure
117
+
118
+ # Yield the configuration if needed
119
+ yield @config if block_given?
120
+
121
+ # Create credentials
122
+ credentials = @config.credentials
123
+ # Use self-signed JWT if the endpoint is unchanged from default,
124
+ # but only if the default endpoint does not have a region prefix.
125
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
126
+ !@config.endpoint.split(".").first.include?("-")
127
+ credentials ||= Credentials.default scope: @config.scope,
128
+ enable_self_signed_jwt: enable_self_signed_jwt
129
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
130
+ credentials = Credentials.new credentials, scope: @config.scope
131
+ end
132
+
133
+ @quota_project_id = @config.quota_project
134
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
135
+
136
+ @operations_client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Operations.new do |config|
137
+ config.credentials = credentials
138
+ config.quota_project = @quota_project_id
139
+ config.endpoint = @config.endpoint
140
+ end
141
+
142
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
143
+ config.credentials = credentials
144
+ config.quota_project = @quota_project_id
145
+ config.endpoint = @config.endpoint
146
+ config.bindings_override = @config.bindings_override
147
+ end
148
+
149
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ config.bindings_override = @config.bindings_override
154
+ end
155
+
156
+ @data_taxonomy_service_stub = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
157
+ end
158
+
159
+ ##
160
+ # Get the associated client for long-running operations.
161
+ #
162
+ # @return [::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Operations]
163
+ #
164
+ attr_reader :operations_client
165
+
166
+ ##
167
+ # Get the associated client for mix-in of the Locations.
168
+ #
169
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
170
+ #
171
+ attr_reader :location_client
172
+
173
+ ##
174
+ # Get the associated client for mix-in of the IAMPolicy.
175
+ #
176
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
177
+ #
178
+ attr_reader :iam_policy_client
179
+
180
+ # Service calls
181
+
182
+ ##
183
+ # Create a DataTaxonomy resource.
184
+ #
185
+ # @overload create_data_taxonomy(request, options = nil)
186
+ # Pass arguments to `create_data_taxonomy` via a request object, either of type
187
+ # {::Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest} or an equivalent Hash.
188
+ #
189
+ # @param request [::Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest, ::Hash]
190
+ # A request object representing the call parameters. Required. To specify no
191
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
192
+ # @param options [::Gapic::CallOptions, ::Hash]
193
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
194
+ #
195
+ # @overload create_data_taxonomy(parent: nil, data_taxonomy_id: nil, data_taxonomy: nil, validate_only: nil)
196
+ # Pass arguments to `create_data_taxonomy` via keyword arguments. Note that at
197
+ # least one keyword argument is required. To specify no parameters, or to keep all
198
+ # the default parameter values, pass an empty Hash as a request object (see above).
199
+ #
200
+ # @param parent [::String]
201
+ # Required. The resource name of the data taxonomy location, of the form:
202
+ # projects/\\{project_number}/locations/\\{location_id}
203
+ # where `location_id` refers to a GCP region.
204
+ # @param data_taxonomy_id [::String]
205
+ # Required. DataTaxonomy identifier.
206
+ # * Must contain only lowercase letters, numbers and hyphens.
207
+ # * Must start with a letter.
208
+ # * Must be between 1-63 characters.
209
+ # * Must end with a number or a letter.
210
+ # * Must be unique within the Project.
211
+ # @param data_taxonomy [::Google::Cloud::Dataplex::V1::DataTaxonomy, ::Hash]
212
+ # Required. DataTaxonomy resource.
213
+ # @param validate_only [::Boolean]
214
+ # Optional. Only validate the request, but do not perform mutations.
215
+ # The default is false.
216
+ # @yield [result, operation] Access the result along with the TransportOperation object
217
+ # @yieldparam result [::Gapic::Operation]
218
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
219
+ #
220
+ # @return [::Gapic::Operation]
221
+ #
222
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
223
+ def create_data_taxonomy request, options = nil
224
+ raise ::ArgumentError, "request must be provided" if request.nil?
225
+
226
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateDataTaxonomyRequest
227
+
228
+ # Converts hash and nil to an options object
229
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
230
+
231
+ # Customize the options with defaults
232
+ call_metadata = @config.rpcs.create_data_taxonomy.metadata.to_h
233
+
234
+ # Set x-goog-api-client and x-goog-user-project headers
235
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
236
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
237
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
238
+ transports_version_send: [:rest]
239
+
240
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
241
+
242
+ options.apply_defaults timeout: @config.rpcs.create_data_taxonomy.timeout,
243
+ metadata: call_metadata,
244
+ retry_policy: @config.rpcs.create_data_taxonomy.retry_policy
245
+
246
+ options.apply_defaults timeout: @config.timeout,
247
+ metadata: @config.metadata,
248
+ retry_policy: @config.retry_policy
249
+
250
+ @data_taxonomy_service_stub.create_data_taxonomy request, options do |result, operation|
251
+ result = ::Gapic::Operation.new result, @operations_client, options: options
252
+ yield result, operation if block_given?
253
+ return result
254
+ end
255
+ rescue ::Gapic::Rest::Error => e
256
+ raise ::Google::Cloud::Error.from_error(e)
257
+ end
258
+
259
+ ##
260
+ # Updates a DataTaxonomy resource.
261
+ #
262
+ # @overload update_data_taxonomy(request, options = nil)
263
+ # Pass arguments to `update_data_taxonomy` via a request object, either of type
264
+ # {::Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest} or an equivalent Hash.
265
+ #
266
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest, ::Hash]
267
+ # A request object representing the call parameters. Required. To specify no
268
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
269
+ # @param options [::Gapic::CallOptions, ::Hash]
270
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
271
+ #
272
+ # @overload update_data_taxonomy(update_mask: nil, data_taxonomy: nil, validate_only: nil)
273
+ # Pass arguments to `update_data_taxonomy` via keyword arguments. Note that at
274
+ # least one keyword argument is required. To specify no parameters, or to keep all
275
+ # the default parameter values, pass an empty Hash as a request object (see above).
276
+ #
277
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
278
+ # Required. Mask of fields to update.
279
+ # @param data_taxonomy [::Google::Cloud::Dataplex::V1::DataTaxonomy, ::Hash]
280
+ # Required. Only fields specified in `update_mask` are updated.
281
+ # @param validate_only [::Boolean]
282
+ # Optional. Only validate the request, but do not perform mutations.
283
+ # The default is false.
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Gapic::Operation]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Gapic::Operation]
289
+ #
290
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
291
+ def update_data_taxonomy request, options = nil
292
+ raise ::ArgumentError, "request must be provided" if request.nil?
293
+
294
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateDataTaxonomyRequest
295
+
296
+ # Converts hash and nil to an options object
297
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
298
+
299
+ # Customize the options with defaults
300
+ call_metadata = @config.rpcs.update_data_taxonomy.metadata.to_h
301
+
302
+ # Set x-goog-api-client and x-goog-user-project headers
303
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
304
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
305
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
306
+ transports_version_send: [:rest]
307
+
308
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
309
+
310
+ options.apply_defaults timeout: @config.rpcs.update_data_taxonomy.timeout,
311
+ metadata: call_metadata,
312
+ retry_policy: @config.rpcs.update_data_taxonomy.retry_policy
313
+
314
+ options.apply_defaults timeout: @config.timeout,
315
+ metadata: @config.metadata,
316
+ retry_policy: @config.retry_policy
317
+
318
+ @data_taxonomy_service_stub.update_data_taxonomy request, options do |result, operation|
319
+ result = ::Gapic::Operation.new result, @operations_client, options: options
320
+ yield result, operation if block_given?
321
+ return result
322
+ end
323
+ rescue ::Gapic::Rest::Error => e
324
+ raise ::Google::Cloud::Error.from_error(e)
325
+ end
326
+
327
+ ##
328
+ # Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy
329
+ # must be deleted before the DataTaxonomy can be deleted.
330
+ #
331
+ # @overload delete_data_taxonomy(request, options = nil)
332
+ # Pass arguments to `delete_data_taxonomy` via a request object, either of type
333
+ # {::Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest} or an equivalent Hash.
334
+ #
335
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest, ::Hash]
336
+ # A request object representing the call parameters. Required. To specify no
337
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
338
+ # @param options [::Gapic::CallOptions, ::Hash]
339
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
340
+ #
341
+ # @overload delete_data_taxonomy(name: nil, etag: nil)
342
+ # Pass arguments to `delete_data_taxonomy` via keyword arguments. Note that at
343
+ # least one keyword argument is required. To specify no parameters, or to keep all
344
+ # the default parameter values, pass an empty Hash as a request object (see above).
345
+ #
346
+ # @param name [::String]
347
+ # Required. The resource name of the DataTaxonomy:
348
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{data_taxonomy_id}
349
+ # @param etag [::String]
350
+ # Optional. If the client provided etag value does not match the current etag
351
+ # value,the DeleteDataTaxonomy method returns an ABORTED error.
352
+ # @yield [result, operation] Access the result along with the TransportOperation object
353
+ # @yieldparam result [::Gapic::Operation]
354
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
355
+ #
356
+ # @return [::Gapic::Operation]
357
+ #
358
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
359
+ def delete_data_taxonomy request, options = nil
360
+ raise ::ArgumentError, "request must be provided" if request.nil?
361
+
362
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteDataTaxonomyRequest
363
+
364
+ # Converts hash and nil to an options object
365
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
366
+
367
+ # Customize the options with defaults
368
+ call_metadata = @config.rpcs.delete_data_taxonomy.metadata.to_h
369
+
370
+ # Set x-goog-api-client and x-goog-user-project headers
371
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
372
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
373
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
374
+ transports_version_send: [:rest]
375
+
376
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
377
+
378
+ options.apply_defaults timeout: @config.rpcs.delete_data_taxonomy.timeout,
379
+ metadata: call_metadata,
380
+ retry_policy: @config.rpcs.delete_data_taxonomy.retry_policy
381
+
382
+ options.apply_defaults timeout: @config.timeout,
383
+ metadata: @config.metadata,
384
+ retry_policy: @config.retry_policy
385
+
386
+ @data_taxonomy_service_stub.delete_data_taxonomy request, options do |result, operation|
387
+ result = ::Gapic::Operation.new result, @operations_client, options: options
388
+ yield result, operation if block_given?
389
+ return result
390
+ end
391
+ rescue ::Gapic::Rest::Error => e
392
+ raise ::Google::Cloud::Error.from_error(e)
393
+ end
394
+
395
+ ##
396
+ # Lists DataTaxonomy resources in a project and location.
397
+ #
398
+ # @overload list_data_taxonomies(request, options = nil)
399
+ # Pass arguments to `list_data_taxonomies` via a request object, either of type
400
+ # {::Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest} or an equivalent Hash.
401
+ #
402
+ # @param request [::Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest, ::Hash]
403
+ # A request object representing the call parameters. Required. To specify no
404
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
405
+ # @param options [::Gapic::CallOptions, ::Hash]
406
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
407
+ #
408
+ # @overload list_data_taxonomies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
409
+ # Pass arguments to `list_data_taxonomies` via keyword arguments. Note that at
410
+ # least one keyword argument is required. To specify no parameters, or to keep all
411
+ # the default parameter values, pass an empty Hash as a request object (see above).
412
+ #
413
+ # @param parent [::String]
414
+ # Required. The resource name of the DataTaxonomy location, of the form:
415
+ # projects/\\{project_number}/locations/\\{location_id}
416
+ # where `location_id` refers to a GCP region.
417
+ # @param page_size [::Integer]
418
+ # Optional. Maximum number of DataTaxonomies to return. The service may
419
+ # return fewer than this value. If unspecified, at most 10 DataTaxonomies
420
+ # will be returned. The maximum value is 1000; values above 1000 will be
421
+ # coerced to 1000.
422
+ # @param page_token [::String]
423
+ # Optional. Page token received from a previous ` ListDataTaxonomies` call.
424
+ # Provide this to retrieve the subsequent page. When paginating, all other
425
+ # parameters provided to ` ListDataTaxonomies` must match the call that
426
+ # provided the page token.
427
+ # @param filter [::String]
428
+ # Optional. Filter request.
429
+ # @param order_by [::String]
430
+ # Optional. Order by fields for the result.
431
+ # @yield [result, operation] Access the result along with the TransportOperation object
432
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::ListDataTaxonomiesResponse]
433
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
434
+ #
435
+ # @return [::Google::Cloud::Dataplex::V1::ListDataTaxonomiesResponse]
436
+ #
437
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
438
+ def list_data_taxonomies request, options = nil
439
+ raise ::ArgumentError, "request must be provided" if request.nil?
440
+
441
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListDataTaxonomiesRequest
442
+
443
+ # Converts hash and nil to an options object
444
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
445
+
446
+ # Customize the options with defaults
447
+ call_metadata = @config.rpcs.list_data_taxonomies.metadata.to_h
448
+
449
+ # Set x-goog-api-client and x-goog-user-project headers
450
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
451
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
452
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
453
+ transports_version_send: [:rest]
454
+
455
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
456
+
457
+ options.apply_defaults timeout: @config.rpcs.list_data_taxonomies.timeout,
458
+ metadata: call_metadata,
459
+ retry_policy: @config.rpcs.list_data_taxonomies.retry_policy
460
+
461
+ options.apply_defaults timeout: @config.timeout,
462
+ metadata: @config.metadata,
463
+ retry_policy: @config.retry_policy
464
+
465
+ @data_taxonomy_service_stub.list_data_taxonomies request, options do |result, operation|
466
+ yield result, operation if block_given?
467
+ return result
468
+ end
469
+ rescue ::Gapic::Rest::Error => e
470
+ raise ::Google::Cloud::Error.from_error(e)
471
+ end
472
+
473
+ ##
474
+ # Retrieves a DataTaxonomy resource.
475
+ #
476
+ # @overload get_data_taxonomy(request, options = nil)
477
+ # Pass arguments to `get_data_taxonomy` via a request object, either of type
478
+ # {::Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest} or an equivalent Hash.
479
+ #
480
+ # @param request [::Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest, ::Hash]
481
+ # A request object representing the call parameters. Required. To specify no
482
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
483
+ # @param options [::Gapic::CallOptions, ::Hash]
484
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
485
+ #
486
+ # @overload get_data_taxonomy(name: nil)
487
+ # Pass arguments to `get_data_taxonomy` via keyword arguments. Note that at
488
+ # least one keyword argument is required. To specify no parameters, or to keep all
489
+ # the default parameter values, pass an empty Hash as a request object (see above).
490
+ #
491
+ # @param name [::String]
492
+ # Required. The resource name of the DataTaxonomy:
493
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{data_taxonomy_id}
494
+ # @yield [result, operation] Access the result along with the TransportOperation object
495
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::DataTaxonomy]
496
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
497
+ #
498
+ # @return [::Google::Cloud::Dataplex::V1::DataTaxonomy]
499
+ #
500
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
501
+ def get_data_taxonomy request, options = nil
502
+ raise ::ArgumentError, "request must be provided" if request.nil?
503
+
504
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetDataTaxonomyRequest
505
+
506
+ # Converts hash and nil to an options object
507
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
508
+
509
+ # Customize the options with defaults
510
+ call_metadata = @config.rpcs.get_data_taxonomy.metadata.to_h
511
+
512
+ # Set x-goog-api-client and x-goog-user-project headers
513
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
514
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
515
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
516
+ transports_version_send: [:rest]
517
+
518
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
519
+
520
+ options.apply_defaults timeout: @config.rpcs.get_data_taxonomy.timeout,
521
+ metadata: call_metadata,
522
+ retry_policy: @config.rpcs.get_data_taxonomy.retry_policy
523
+
524
+ options.apply_defaults timeout: @config.timeout,
525
+ metadata: @config.metadata,
526
+ retry_policy: @config.retry_policy
527
+
528
+ @data_taxonomy_service_stub.get_data_taxonomy request, options do |result, operation|
529
+ yield result, operation if block_given?
530
+ return result
531
+ end
532
+ rescue ::Gapic::Rest::Error => e
533
+ raise ::Google::Cloud::Error.from_error(e)
534
+ end
535
+
536
+ ##
537
+ # Create a DataAttributeBinding resource.
538
+ #
539
+ # @overload create_data_attribute_binding(request, options = nil)
540
+ # Pass arguments to `create_data_attribute_binding` via a request object, either of type
541
+ # {::Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest} or an equivalent Hash.
542
+ #
543
+ # @param request [::Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest, ::Hash]
544
+ # A request object representing the call parameters. Required. To specify no
545
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
546
+ # @param options [::Gapic::CallOptions, ::Hash]
547
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
548
+ #
549
+ # @overload create_data_attribute_binding(parent: nil, data_attribute_binding_id: nil, data_attribute_binding: nil, validate_only: nil)
550
+ # Pass arguments to `create_data_attribute_binding` via keyword arguments. Note that at
551
+ # least one keyword argument is required. To specify no parameters, or to keep all
552
+ # the default parameter values, pass an empty Hash as a request object (see above).
553
+ #
554
+ # @param parent [::String]
555
+ # Required. The resource name of the parent data taxonomy
556
+ # projects/\\{project_number}/locations/\\{location_id}
557
+ # @param data_attribute_binding_id [::String]
558
+ # Required. DataAttributeBinding identifier.
559
+ # * Must contain only lowercase letters, numbers and hyphens.
560
+ # * Must start with a letter.
561
+ # * Must be between 1-63 characters.
562
+ # * Must end with a number or a letter.
563
+ # * Must be unique within the Location.
564
+ # @param data_attribute_binding [::Google::Cloud::Dataplex::V1::DataAttributeBinding, ::Hash]
565
+ # Required. DataAttributeBinding resource.
566
+ # @param validate_only [::Boolean]
567
+ # Optional. Only validate the request, but do not perform mutations.
568
+ # The default is false.
569
+ # @yield [result, operation] Access the result along with the TransportOperation object
570
+ # @yieldparam result [::Gapic::Operation]
571
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
572
+ #
573
+ # @return [::Gapic::Operation]
574
+ #
575
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
576
+ def create_data_attribute_binding request, options = nil
577
+ raise ::ArgumentError, "request must be provided" if request.nil?
578
+
579
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateDataAttributeBindingRequest
580
+
581
+ # Converts hash and nil to an options object
582
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
583
+
584
+ # Customize the options with defaults
585
+ call_metadata = @config.rpcs.create_data_attribute_binding.metadata.to_h
586
+
587
+ # Set x-goog-api-client and x-goog-user-project headers
588
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
589
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
590
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
591
+ transports_version_send: [:rest]
592
+
593
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
594
+
595
+ options.apply_defaults timeout: @config.rpcs.create_data_attribute_binding.timeout,
596
+ metadata: call_metadata,
597
+ retry_policy: @config.rpcs.create_data_attribute_binding.retry_policy
598
+
599
+ options.apply_defaults timeout: @config.timeout,
600
+ metadata: @config.metadata,
601
+ retry_policy: @config.retry_policy
602
+
603
+ @data_taxonomy_service_stub.create_data_attribute_binding request, options do |result, operation|
604
+ result = ::Gapic::Operation.new result, @operations_client, options: options
605
+ yield result, operation if block_given?
606
+ return result
607
+ end
608
+ rescue ::Gapic::Rest::Error => e
609
+ raise ::Google::Cloud::Error.from_error(e)
610
+ end
611
+
612
+ ##
613
+ # Updates a DataAttributeBinding resource.
614
+ #
615
+ # @overload update_data_attribute_binding(request, options = nil)
616
+ # Pass arguments to `update_data_attribute_binding` via a request object, either of type
617
+ # {::Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest} or an equivalent Hash.
618
+ #
619
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest, ::Hash]
620
+ # A request object representing the call parameters. Required. To specify no
621
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
622
+ # @param options [::Gapic::CallOptions, ::Hash]
623
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
624
+ #
625
+ # @overload update_data_attribute_binding(update_mask: nil, data_attribute_binding: nil, validate_only: nil)
626
+ # Pass arguments to `update_data_attribute_binding` via keyword arguments. Note that at
627
+ # least one keyword argument is required. To specify no parameters, or to keep all
628
+ # the default parameter values, pass an empty Hash as a request object (see above).
629
+ #
630
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
631
+ # Required. Mask of fields to update.
632
+ # @param data_attribute_binding [::Google::Cloud::Dataplex::V1::DataAttributeBinding, ::Hash]
633
+ # Required. Only fields specified in `update_mask` are updated.
634
+ # @param validate_only [::Boolean]
635
+ # Optional. Only validate the request, but do not perform mutations.
636
+ # The default is false.
637
+ # @yield [result, operation] Access the result along with the TransportOperation object
638
+ # @yieldparam result [::Gapic::Operation]
639
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
640
+ #
641
+ # @return [::Gapic::Operation]
642
+ #
643
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
644
+ def update_data_attribute_binding request, options = nil
645
+ raise ::ArgumentError, "request must be provided" if request.nil?
646
+
647
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateDataAttributeBindingRequest
648
+
649
+ # Converts hash and nil to an options object
650
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
651
+
652
+ # Customize the options with defaults
653
+ call_metadata = @config.rpcs.update_data_attribute_binding.metadata.to_h
654
+
655
+ # Set x-goog-api-client and x-goog-user-project headers
656
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
657
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
658
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
659
+ transports_version_send: [:rest]
660
+
661
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
662
+
663
+ options.apply_defaults timeout: @config.rpcs.update_data_attribute_binding.timeout,
664
+ metadata: call_metadata,
665
+ retry_policy: @config.rpcs.update_data_attribute_binding.retry_policy
666
+
667
+ options.apply_defaults timeout: @config.timeout,
668
+ metadata: @config.metadata,
669
+ retry_policy: @config.retry_policy
670
+
671
+ @data_taxonomy_service_stub.update_data_attribute_binding request, options do |result, operation|
672
+ result = ::Gapic::Operation.new result, @operations_client, options: options
673
+ yield result, operation if block_given?
674
+ return result
675
+ end
676
+ rescue ::Gapic::Rest::Error => e
677
+ raise ::Google::Cloud::Error.from_error(e)
678
+ end
679
+
680
+ ##
681
+ # Deletes a DataAttributeBinding resource. All attributes within the
682
+ # DataAttributeBinding must be deleted before the DataAttributeBinding can be
683
+ # deleted.
684
+ #
685
+ # @overload delete_data_attribute_binding(request, options = nil)
686
+ # Pass arguments to `delete_data_attribute_binding` via a request object, either of type
687
+ # {::Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest} or an equivalent Hash.
688
+ #
689
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest, ::Hash]
690
+ # A request object representing the call parameters. Required. To specify no
691
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
692
+ # @param options [::Gapic::CallOptions, ::Hash]
693
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
694
+ #
695
+ # @overload delete_data_attribute_binding(name: nil, etag: nil)
696
+ # Pass arguments to `delete_data_attribute_binding` via keyword arguments. Note that at
697
+ # least one keyword argument is required. To specify no parameters, or to keep all
698
+ # the default parameter values, pass an empty Hash as a request object (see above).
699
+ #
700
+ # @param name [::String]
701
+ # Required. The resource name of the DataAttributeBinding:
702
+ # projects/\\{project_number}/locations/\\{location_id}/dataAttributeBindings/\\{data_attribute_binding_id}
703
+ # @param etag [::String]
704
+ # Required. If the client provided etag value does not match the current etag
705
+ # value, the DeleteDataAttributeBindingRequest method returns an ABORTED
706
+ # error response. Etags must be used when calling the
707
+ # DeleteDataAttributeBinding.
708
+ # @yield [result, operation] Access the result along with the TransportOperation object
709
+ # @yieldparam result [::Gapic::Operation]
710
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
711
+ #
712
+ # @return [::Gapic::Operation]
713
+ #
714
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
715
+ def delete_data_attribute_binding request, options = nil
716
+ raise ::ArgumentError, "request must be provided" if request.nil?
717
+
718
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteDataAttributeBindingRequest
719
+
720
+ # Converts hash and nil to an options object
721
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
722
+
723
+ # Customize the options with defaults
724
+ call_metadata = @config.rpcs.delete_data_attribute_binding.metadata.to_h
725
+
726
+ # Set x-goog-api-client and x-goog-user-project headers
727
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
729
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
730
+ transports_version_send: [:rest]
731
+
732
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
+
734
+ options.apply_defaults timeout: @config.rpcs.delete_data_attribute_binding.timeout,
735
+ metadata: call_metadata,
736
+ retry_policy: @config.rpcs.delete_data_attribute_binding.retry_policy
737
+
738
+ options.apply_defaults timeout: @config.timeout,
739
+ metadata: @config.metadata,
740
+ retry_policy: @config.retry_policy
741
+
742
+ @data_taxonomy_service_stub.delete_data_attribute_binding request, options do |result, operation|
743
+ result = ::Gapic::Operation.new result, @operations_client, options: options
744
+ yield result, operation if block_given?
745
+ return result
746
+ end
747
+ rescue ::Gapic::Rest::Error => e
748
+ raise ::Google::Cloud::Error.from_error(e)
749
+ end
750
+
751
+ ##
752
+ # Lists DataAttributeBinding resources in a project and location.
753
+ #
754
+ # @overload list_data_attribute_bindings(request, options = nil)
755
+ # Pass arguments to `list_data_attribute_bindings` via a request object, either of type
756
+ # {::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest} or an equivalent Hash.
757
+ #
758
+ # @param request [::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest, ::Hash]
759
+ # A request object representing the call parameters. Required. To specify no
760
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
761
+ # @param options [::Gapic::CallOptions, ::Hash]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @overload list_data_attribute_bindings(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
765
+ # Pass arguments to `list_data_attribute_bindings` via keyword arguments. Note that at
766
+ # least one keyword argument is required. To specify no parameters, or to keep all
767
+ # the default parameter values, pass an empty Hash as a request object (see above).
768
+ #
769
+ # @param parent [::String]
770
+ # Required. The resource name of the Location:
771
+ # projects/\\{project_number}/locations/\\{location_id}
772
+ # @param page_size [::Integer]
773
+ # Optional. Maximum number of DataAttributeBindings to return. The service
774
+ # may return fewer than this value. If unspecified, at most 10
775
+ # DataAttributeBindings will be returned. The maximum value is 1000; values
776
+ # above 1000 will be coerced to 1000.
777
+ # @param page_token [::String]
778
+ # Optional. Page token received from a previous `ListDataAttributeBindings`
779
+ # call. Provide this to retrieve the subsequent page. When paginating, all
780
+ # other parameters provided to `ListDataAttributeBindings` must match the
781
+ # call that provided the page token.
782
+ # @param filter [::String]
783
+ # Optional. Filter request.
784
+ # Filter using resource: filter=resource:"resource-name"
785
+ # Filter using attribute: filter=attributes:"attribute-name"
786
+ # Filter using attribute in paths list:
787
+ # filter=paths.attributes:"attribute-name"
788
+ # @param order_by [::String]
789
+ # Optional. Order by fields for the result.
790
+ # @yield [result, operation] Access the result along with the TransportOperation object
791
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsResponse]
792
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
793
+ #
794
+ # @return [::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsResponse]
795
+ #
796
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
797
+ def list_data_attribute_bindings request, options = nil
798
+ raise ::ArgumentError, "request must be provided" if request.nil?
799
+
800
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListDataAttributeBindingsRequest
801
+
802
+ # Converts hash and nil to an options object
803
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
804
+
805
+ # Customize the options with defaults
806
+ call_metadata = @config.rpcs.list_data_attribute_bindings.metadata.to_h
807
+
808
+ # Set x-goog-api-client and x-goog-user-project headers
809
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
810
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
811
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
812
+ transports_version_send: [:rest]
813
+
814
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
815
+
816
+ options.apply_defaults timeout: @config.rpcs.list_data_attribute_bindings.timeout,
817
+ metadata: call_metadata,
818
+ retry_policy: @config.rpcs.list_data_attribute_bindings.retry_policy
819
+
820
+ options.apply_defaults timeout: @config.timeout,
821
+ metadata: @config.metadata,
822
+ retry_policy: @config.retry_policy
823
+
824
+ @data_taxonomy_service_stub.list_data_attribute_bindings request, options do |result, operation|
825
+ yield result, operation if block_given?
826
+ return result
827
+ end
828
+ rescue ::Gapic::Rest::Error => e
829
+ raise ::Google::Cloud::Error.from_error(e)
830
+ end
831
+
832
+ ##
833
+ # Retrieves a DataAttributeBinding resource.
834
+ #
835
+ # @overload get_data_attribute_binding(request, options = nil)
836
+ # Pass arguments to `get_data_attribute_binding` via a request object, either of type
837
+ # {::Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest} or an equivalent Hash.
838
+ #
839
+ # @param request [::Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest, ::Hash]
840
+ # A request object representing the call parameters. Required. To specify no
841
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
842
+ # @param options [::Gapic::CallOptions, ::Hash]
843
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
844
+ #
845
+ # @overload get_data_attribute_binding(name: nil)
846
+ # Pass arguments to `get_data_attribute_binding` via keyword arguments. Note that at
847
+ # least one keyword argument is required. To specify no parameters, or to keep all
848
+ # the default parameter values, pass an empty Hash as a request object (see above).
849
+ #
850
+ # @param name [::String]
851
+ # Required. The resource name of the DataAttributeBinding:
852
+ # projects/\\{project_number}/locations/\\{location_id}/dataAttributeBindings/\\{data_attribute_binding_id}
853
+ # @yield [result, operation] Access the result along with the TransportOperation object
854
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::DataAttributeBinding]
855
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
856
+ #
857
+ # @return [::Google::Cloud::Dataplex::V1::DataAttributeBinding]
858
+ #
859
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
860
+ def get_data_attribute_binding request, options = nil
861
+ raise ::ArgumentError, "request must be provided" if request.nil?
862
+
863
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetDataAttributeBindingRequest
864
+
865
+ # Converts hash and nil to an options object
866
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
867
+
868
+ # Customize the options with defaults
869
+ call_metadata = @config.rpcs.get_data_attribute_binding.metadata.to_h
870
+
871
+ # Set x-goog-api-client and x-goog-user-project headers
872
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
873
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
874
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
875
+ transports_version_send: [:rest]
876
+
877
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
878
+
879
+ options.apply_defaults timeout: @config.rpcs.get_data_attribute_binding.timeout,
880
+ metadata: call_metadata,
881
+ retry_policy: @config.rpcs.get_data_attribute_binding.retry_policy
882
+
883
+ options.apply_defaults timeout: @config.timeout,
884
+ metadata: @config.metadata,
885
+ retry_policy: @config.retry_policy
886
+
887
+ @data_taxonomy_service_stub.get_data_attribute_binding request, options do |result, operation|
888
+ yield result, operation if block_given?
889
+ return result
890
+ end
891
+ rescue ::Gapic::Rest::Error => e
892
+ raise ::Google::Cloud::Error.from_error(e)
893
+ end
894
+
895
+ ##
896
+ # Create a DataAttribute resource.
897
+ #
898
+ # @overload create_data_attribute(request, options = nil)
899
+ # Pass arguments to `create_data_attribute` via a request object, either of type
900
+ # {::Google::Cloud::Dataplex::V1::CreateDataAttributeRequest} or an equivalent Hash.
901
+ #
902
+ # @param request [::Google::Cloud::Dataplex::V1::CreateDataAttributeRequest, ::Hash]
903
+ # A request object representing the call parameters. Required. To specify no
904
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
905
+ # @param options [::Gapic::CallOptions, ::Hash]
906
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
907
+ #
908
+ # @overload create_data_attribute(parent: nil, data_attribute_id: nil, data_attribute: nil, validate_only: nil)
909
+ # Pass arguments to `create_data_attribute` via keyword arguments. Note that at
910
+ # least one keyword argument is required. To specify no parameters, or to keep all
911
+ # the default parameter values, pass an empty Hash as a request object (see above).
912
+ #
913
+ # @param parent [::String]
914
+ # Required. The resource name of the parent data taxonomy
915
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{data_taxonomy_id}
916
+ # @param data_attribute_id [::String]
917
+ # Required. DataAttribute identifier.
918
+ # * Must contain only lowercase letters, numbers and hyphens.
919
+ # * Must start with a letter.
920
+ # * Must be between 1-63 characters.
921
+ # * Must end with a number or a letter.
922
+ # * Must be unique within the DataTaxonomy.
923
+ # @param data_attribute [::Google::Cloud::Dataplex::V1::DataAttribute, ::Hash]
924
+ # Required. DataAttribute resource.
925
+ # @param validate_only [::Boolean]
926
+ # Optional. Only validate the request, but do not perform mutations.
927
+ # The default is false.
928
+ # @yield [result, operation] Access the result along with the TransportOperation object
929
+ # @yieldparam result [::Gapic::Operation]
930
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
931
+ #
932
+ # @return [::Gapic::Operation]
933
+ #
934
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
935
+ def create_data_attribute request, options = nil
936
+ raise ::ArgumentError, "request must be provided" if request.nil?
937
+
938
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateDataAttributeRequest
939
+
940
+ # Converts hash and nil to an options object
941
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
942
+
943
+ # Customize the options with defaults
944
+ call_metadata = @config.rpcs.create_data_attribute.metadata.to_h
945
+
946
+ # Set x-goog-api-client and x-goog-user-project headers
947
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
948
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
949
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
950
+ transports_version_send: [:rest]
951
+
952
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
953
+
954
+ options.apply_defaults timeout: @config.rpcs.create_data_attribute.timeout,
955
+ metadata: call_metadata,
956
+ retry_policy: @config.rpcs.create_data_attribute.retry_policy
957
+
958
+ options.apply_defaults timeout: @config.timeout,
959
+ metadata: @config.metadata,
960
+ retry_policy: @config.retry_policy
961
+
962
+ @data_taxonomy_service_stub.create_data_attribute request, options do |result, operation|
963
+ result = ::Gapic::Operation.new result, @operations_client, options: options
964
+ yield result, operation if block_given?
965
+ return result
966
+ end
967
+ rescue ::Gapic::Rest::Error => e
968
+ raise ::Google::Cloud::Error.from_error(e)
969
+ end
970
+
971
+ ##
972
+ # Updates a DataAttribute resource.
973
+ #
974
+ # @overload update_data_attribute(request, options = nil)
975
+ # Pass arguments to `update_data_attribute` via a request object, either of type
976
+ # {::Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest} or an equivalent Hash.
977
+ #
978
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest, ::Hash]
979
+ # A request object representing the call parameters. Required. To specify no
980
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
981
+ # @param options [::Gapic::CallOptions, ::Hash]
982
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
983
+ #
984
+ # @overload update_data_attribute(update_mask: nil, data_attribute: nil, validate_only: nil)
985
+ # Pass arguments to `update_data_attribute` via keyword arguments. Note that at
986
+ # least one keyword argument is required. To specify no parameters, or to keep all
987
+ # the default parameter values, pass an empty Hash as a request object (see above).
988
+ #
989
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
990
+ # Required. Mask of fields to update.
991
+ # @param data_attribute [::Google::Cloud::Dataplex::V1::DataAttribute, ::Hash]
992
+ # Required. Only fields specified in `update_mask` are updated.
993
+ # @param validate_only [::Boolean]
994
+ # Optional. Only validate the request, but do not perform mutations.
995
+ # The default is false.
996
+ # @yield [result, operation] Access the result along with the TransportOperation object
997
+ # @yieldparam result [::Gapic::Operation]
998
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
999
+ #
1000
+ # @return [::Gapic::Operation]
1001
+ #
1002
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1003
+ def update_data_attribute request, options = nil
1004
+ raise ::ArgumentError, "request must be provided" if request.nil?
1005
+
1006
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateDataAttributeRequest
1007
+
1008
+ # Converts hash and nil to an options object
1009
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1010
+
1011
+ # Customize the options with defaults
1012
+ call_metadata = @config.rpcs.update_data_attribute.metadata.to_h
1013
+
1014
+ # Set x-goog-api-client and x-goog-user-project headers
1015
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1016
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1017
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1018
+ transports_version_send: [:rest]
1019
+
1020
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1021
+
1022
+ options.apply_defaults timeout: @config.rpcs.update_data_attribute.timeout,
1023
+ metadata: call_metadata,
1024
+ retry_policy: @config.rpcs.update_data_attribute.retry_policy
1025
+
1026
+ options.apply_defaults timeout: @config.timeout,
1027
+ metadata: @config.metadata,
1028
+ retry_policy: @config.retry_policy
1029
+
1030
+ @data_taxonomy_service_stub.update_data_attribute request, options do |result, operation|
1031
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1032
+ yield result, operation if block_given?
1033
+ return result
1034
+ end
1035
+ rescue ::Gapic::Rest::Error => e
1036
+ raise ::Google::Cloud::Error.from_error(e)
1037
+ end
1038
+
1039
+ ##
1040
+ # Deletes a Data Attribute resource.
1041
+ #
1042
+ # @overload delete_data_attribute(request, options = nil)
1043
+ # Pass arguments to `delete_data_attribute` via a request object, either of type
1044
+ # {::Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest} or an equivalent Hash.
1045
+ #
1046
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest, ::Hash]
1047
+ # A request object representing the call parameters. Required. To specify no
1048
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1049
+ # @param options [::Gapic::CallOptions, ::Hash]
1050
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1051
+ #
1052
+ # @overload delete_data_attribute(name: nil, etag: nil)
1053
+ # Pass arguments to `delete_data_attribute` via keyword arguments. Note that at
1054
+ # least one keyword argument is required. To specify no parameters, or to keep all
1055
+ # the default parameter values, pass an empty Hash as a request object (see above).
1056
+ #
1057
+ # @param name [::String]
1058
+ # Required. The resource name of the DataAttribute:
1059
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{dataTaxonomy}/attributes/\\{data_attribute_id}
1060
+ # @param etag [::String]
1061
+ # Optional. If the client provided etag value does not match the current etag
1062
+ # value, the DeleteDataAttribute method returns an ABORTED error response.
1063
+ # @yield [result, operation] Access the result along with the TransportOperation object
1064
+ # @yieldparam result [::Gapic::Operation]
1065
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1066
+ #
1067
+ # @return [::Gapic::Operation]
1068
+ #
1069
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1070
+ def delete_data_attribute request, options = nil
1071
+ raise ::ArgumentError, "request must be provided" if request.nil?
1072
+
1073
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteDataAttributeRequest
1074
+
1075
+ # Converts hash and nil to an options object
1076
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1077
+
1078
+ # Customize the options with defaults
1079
+ call_metadata = @config.rpcs.delete_data_attribute.metadata.to_h
1080
+
1081
+ # Set x-goog-api-client and x-goog-user-project headers
1082
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1083
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1084
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1085
+ transports_version_send: [:rest]
1086
+
1087
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1088
+
1089
+ options.apply_defaults timeout: @config.rpcs.delete_data_attribute.timeout,
1090
+ metadata: call_metadata,
1091
+ retry_policy: @config.rpcs.delete_data_attribute.retry_policy
1092
+
1093
+ options.apply_defaults timeout: @config.timeout,
1094
+ metadata: @config.metadata,
1095
+ retry_policy: @config.retry_policy
1096
+
1097
+ @data_taxonomy_service_stub.delete_data_attribute request, options do |result, operation|
1098
+ result = ::Gapic::Operation.new result, @operations_client, options: options
1099
+ yield result, operation if block_given?
1100
+ return result
1101
+ end
1102
+ rescue ::Gapic::Rest::Error => e
1103
+ raise ::Google::Cloud::Error.from_error(e)
1104
+ end
1105
+
1106
+ ##
1107
+ # Lists Data Attribute resources in a DataTaxonomy.
1108
+ #
1109
+ # @overload list_data_attributes(request, options = nil)
1110
+ # Pass arguments to `list_data_attributes` via a request object, either of type
1111
+ # {::Google::Cloud::Dataplex::V1::ListDataAttributesRequest} or an equivalent Hash.
1112
+ #
1113
+ # @param request [::Google::Cloud::Dataplex::V1::ListDataAttributesRequest, ::Hash]
1114
+ # A request object representing the call parameters. Required. To specify no
1115
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1116
+ # @param options [::Gapic::CallOptions, ::Hash]
1117
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1118
+ #
1119
+ # @overload list_data_attributes(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1120
+ # Pass arguments to `list_data_attributes` via keyword arguments. Note that at
1121
+ # least one keyword argument is required. To specify no parameters, or to keep all
1122
+ # the default parameter values, pass an empty Hash as a request object (see above).
1123
+ #
1124
+ # @param parent [::String]
1125
+ # Required. The resource name of the DataTaxonomy:
1126
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{data_taxonomy_id}
1127
+ # @param page_size [::Integer]
1128
+ # Optional. Maximum number of DataAttributes to return. The service may
1129
+ # return fewer than this value. If unspecified, at most 10 dataAttributes
1130
+ # will be returned. The maximum value is 1000; values above 1000 will be
1131
+ # coerced to 1000.
1132
+ # @param page_token [::String]
1133
+ # Optional. Page token received from a previous `ListDataAttributes` call.
1134
+ # Provide this to retrieve the subsequent page. When paginating, all other
1135
+ # parameters provided to `ListDataAttributes` must match the call that
1136
+ # provided the page token.
1137
+ # @param filter [::String]
1138
+ # Optional. Filter request.
1139
+ # @param order_by [::String]
1140
+ # Optional. Order by fields for the result.
1141
+ # @yield [result, operation] Access the result along with the TransportOperation object
1142
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::ListDataAttributesResponse]
1143
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1144
+ #
1145
+ # @return [::Google::Cloud::Dataplex::V1::ListDataAttributesResponse]
1146
+ #
1147
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1148
+ def list_data_attributes request, options = nil
1149
+ raise ::ArgumentError, "request must be provided" if request.nil?
1150
+
1151
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListDataAttributesRequest
1152
+
1153
+ # Converts hash and nil to an options object
1154
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1155
+
1156
+ # Customize the options with defaults
1157
+ call_metadata = @config.rpcs.list_data_attributes.metadata.to_h
1158
+
1159
+ # Set x-goog-api-client and x-goog-user-project headers
1160
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1161
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1162
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1163
+ transports_version_send: [:rest]
1164
+
1165
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1166
+
1167
+ options.apply_defaults timeout: @config.rpcs.list_data_attributes.timeout,
1168
+ metadata: call_metadata,
1169
+ retry_policy: @config.rpcs.list_data_attributes.retry_policy
1170
+
1171
+ options.apply_defaults timeout: @config.timeout,
1172
+ metadata: @config.metadata,
1173
+ retry_policy: @config.retry_policy
1174
+
1175
+ @data_taxonomy_service_stub.list_data_attributes request, options do |result, operation|
1176
+ yield result, operation if block_given?
1177
+ return result
1178
+ end
1179
+ rescue ::Gapic::Rest::Error => e
1180
+ raise ::Google::Cloud::Error.from_error(e)
1181
+ end
1182
+
1183
+ ##
1184
+ # Retrieves a Data Attribute resource.
1185
+ #
1186
+ # @overload get_data_attribute(request, options = nil)
1187
+ # Pass arguments to `get_data_attribute` via a request object, either of type
1188
+ # {::Google::Cloud::Dataplex::V1::GetDataAttributeRequest} or an equivalent Hash.
1189
+ #
1190
+ # @param request [::Google::Cloud::Dataplex::V1::GetDataAttributeRequest, ::Hash]
1191
+ # A request object representing the call parameters. Required. To specify no
1192
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1193
+ # @param options [::Gapic::CallOptions, ::Hash]
1194
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1195
+ #
1196
+ # @overload get_data_attribute(name: nil)
1197
+ # Pass arguments to `get_data_attribute` via keyword arguments. Note that at
1198
+ # least one keyword argument is required. To specify no parameters, or to keep all
1199
+ # the default parameter values, pass an empty Hash as a request object (see above).
1200
+ #
1201
+ # @param name [::String]
1202
+ # Required. The resource name of the dataAttribute:
1203
+ # projects/\\{project_number}/locations/\\{location_id}/dataTaxonomies/\\{dataTaxonomy}/attributes/\\{data_attribute_id}
1204
+ # @yield [result, operation] Access the result along with the TransportOperation object
1205
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::DataAttribute]
1206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1207
+ #
1208
+ # @return [::Google::Cloud::Dataplex::V1::DataAttribute]
1209
+ #
1210
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1211
+ def get_data_attribute request, options = nil
1212
+ raise ::ArgumentError, "request must be provided" if request.nil?
1213
+
1214
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetDataAttributeRequest
1215
+
1216
+ # Converts hash and nil to an options object
1217
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1218
+
1219
+ # Customize the options with defaults
1220
+ call_metadata = @config.rpcs.get_data_attribute.metadata.to_h
1221
+
1222
+ # Set x-goog-api-client and x-goog-user-project headers
1223
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1224
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1225
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1226
+ transports_version_send: [:rest]
1227
+
1228
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1229
+
1230
+ options.apply_defaults timeout: @config.rpcs.get_data_attribute.timeout,
1231
+ metadata: call_metadata,
1232
+ retry_policy: @config.rpcs.get_data_attribute.retry_policy
1233
+
1234
+ options.apply_defaults timeout: @config.timeout,
1235
+ metadata: @config.metadata,
1236
+ retry_policy: @config.retry_policy
1237
+
1238
+ @data_taxonomy_service_stub.get_data_attribute request, options do |result, operation|
1239
+ yield result, operation if block_given?
1240
+ return result
1241
+ end
1242
+ rescue ::Gapic::Rest::Error => e
1243
+ raise ::Google::Cloud::Error.from_error(e)
1244
+ end
1245
+
1246
+ ##
1247
+ # Configuration class for the DataTaxonomyService REST API.
1248
+ #
1249
+ # This class represents the configuration for DataTaxonomyService REST,
1250
+ # providing control over timeouts, retry behavior, logging, transport
1251
+ # parameters, and other low-level controls. Certain parameters can also be
1252
+ # applied individually to specific RPCs. See
1253
+ # {::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client::Configuration::Rpcs}
1254
+ # for a list of RPCs that can be configured independently.
1255
+ #
1256
+ # Configuration can be applied globally to all clients, or to a single client
1257
+ # on construction.
1258
+ #
1259
+ # @example
1260
+ #
1261
+ # # Modify the global config, setting the timeout for
1262
+ # # create_data_taxonomy to 20 seconds,
1263
+ # # and all remaining timeouts to 10 seconds.
1264
+ # ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.configure do |config|
1265
+ # config.timeout = 10.0
1266
+ # config.rpcs.create_data_taxonomy.timeout = 20.0
1267
+ # end
1268
+ #
1269
+ # # Apply the above configuration only to a new client.
1270
+ # client = ::Google::Cloud::Dataplex::V1::DataTaxonomyService::Rest::Client.new do |config|
1271
+ # config.timeout = 10.0
1272
+ # config.rpcs.create_data_taxonomy.timeout = 20.0
1273
+ # end
1274
+ #
1275
+ # @!attribute [rw] endpoint
1276
+ # The hostname or hostname:port of the service endpoint.
1277
+ # Defaults to `"dataplex.googleapis.com"`.
1278
+ # @return [::String]
1279
+ # @!attribute [rw] credentials
1280
+ # Credentials to send with calls. You may provide any of the following types:
1281
+ # * (`String`) The path to a service account key file in JSON format
1282
+ # * (`Hash`) A service account key as a Hash
1283
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1284
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1285
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1286
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1287
+ # * (`nil`) indicating no credentials
1288
+ # @return [::Object]
1289
+ # @!attribute [rw] scope
1290
+ # The OAuth scopes
1291
+ # @return [::Array<::String>]
1292
+ # @!attribute [rw] lib_name
1293
+ # The library name as recorded in instrumentation and logging
1294
+ # @return [::String]
1295
+ # @!attribute [rw] lib_version
1296
+ # The library version as recorded in instrumentation and logging
1297
+ # @return [::String]
1298
+ # @!attribute [rw] timeout
1299
+ # The call timeout in seconds.
1300
+ # @return [::Numeric]
1301
+ # @!attribute [rw] metadata
1302
+ # Additional headers to be sent with the call.
1303
+ # @return [::Hash{::Symbol=>::String}]
1304
+ # @!attribute [rw] retry_policy
1305
+ # The retry policy. The value is a hash with the following keys:
1306
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1307
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1308
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1309
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1310
+ # trigger a retry.
1311
+ # @return [::Hash]
1312
+ # @!attribute [rw] quota_project
1313
+ # A separate project against which to charge quota.
1314
+ # @return [::String]
1315
+ #
1316
+ class Configuration
1317
+ extend ::Gapic::Config
1318
+
1319
+ DEFAULT_ENDPOINT = "dataplex.googleapis.com"
1320
+
1321
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
1322
+ config_attr :credentials, nil do |value|
1323
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
1324
+ allowed.any? { |klass| klass === value }
1325
+ end
1326
+ config_attr :scope, nil, ::String, ::Array, nil
1327
+ config_attr :lib_name, nil, ::String, nil
1328
+ config_attr :lib_version, nil, ::String, nil
1329
+ config_attr :timeout, nil, ::Numeric, nil
1330
+ config_attr :metadata, nil, ::Hash, nil
1331
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1332
+ config_attr :quota_project, nil, ::String, nil
1333
+
1334
+ # @private
1335
+ # Overrides for http bindings for the RPCs of this service
1336
+ # are only used when this service is used as mixin, and only
1337
+ # by the host service.
1338
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1339
+ config_attr :bindings_override, {}, ::Hash, nil
1340
+
1341
+ # @private
1342
+ def initialize parent_config = nil
1343
+ @parent_config = parent_config unless parent_config.nil?
1344
+
1345
+ yield self if block_given?
1346
+ end
1347
+
1348
+ ##
1349
+ # Configurations for individual RPCs
1350
+ # @return [Rpcs]
1351
+ #
1352
+ def rpcs
1353
+ @rpcs ||= begin
1354
+ parent_rpcs = nil
1355
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1356
+ Rpcs.new parent_rpcs
1357
+ end
1358
+ end
1359
+
1360
+ ##
1361
+ # Configuration RPC class for the DataTaxonomyService API.
1362
+ #
1363
+ # Includes fields providing the configuration for each RPC in this service.
1364
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1365
+ # the following configuration fields:
1366
+ #
1367
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1368
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1369
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1370
+ # include the following keys:
1371
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1372
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1373
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1374
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1375
+ # trigger a retry.
1376
+ #
1377
+ class Rpcs
1378
+ ##
1379
+ # RPC-specific configuration for `create_data_taxonomy`
1380
+ # @return [::Gapic::Config::Method]
1381
+ #
1382
+ attr_reader :create_data_taxonomy
1383
+ ##
1384
+ # RPC-specific configuration for `update_data_taxonomy`
1385
+ # @return [::Gapic::Config::Method]
1386
+ #
1387
+ attr_reader :update_data_taxonomy
1388
+ ##
1389
+ # RPC-specific configuration for `delete_data_taxonomy`
1390
+ # @return [::Gapic::Config::Method]
1391
+ #
1392
+ attr_reader :delete_data_taxonomy
1393
+ ##
1394
+ # RPC-specific configuration for `list_data_taxonomies`
1395
+ # @return [::Gapic::Config::Method]
1396
+ #
1397
+ attr_reader :list_data_taxonomies
1398
+ ##
1399
+ # RPC-specific configuration for `get_data_taxonomy`
1400
+ # @return [::Gapic::Config::Method]
1401
+ #
1402
+ attr_reader :get_data_taxonomy
1403
+ ##
1404
+ # RPC-specific configuration for `create_data_attribute_binding`
1405
+ # @return [::Gapic::Config::Method]
1406
+ #
1407
+ attr_reader :create_data_attribute_binding
1408
+ ##
1409
+ # RPC-specific configuration for `update_data_attribute_binding`
1410
+ # @return [::Gapic::Config::Method]
1411
+ #
1412
+ attr_reader :update_data_attribute_binding
1413
+ ##
1414
+ # RPC-specific configuration for `delete_data_attribute_binding`
1415
+ # @return [::Gapic::Config::Method]
1416
+ #
1417
+ attr_reader :delete_data_attribute_binding
1418
+ ##
1419
+ # RPC-specific configuration for `list_data_attribute_bindings`
1420
+ # @return [::Gapic::Config::Method]
1421
+ #
1422
+ attr_reader :list_data_attribute_bindings
1423
+ ##
1424
+ # RPC-specific configuration for `get_data_attribute_binding`
1425
+ # @return [::Gapic::Config::Method]
1426
+ #
1427
+ attr_reader :get_data_attribute_binding
1428
+ ##
1429
+ # RPC-specific configuration for `create_data_attribute`
1430
+ # @return [::Gapic::Config::Method]
1431
+ #
1432
+ attr_reader :create_data_attribute
1433
+ ##
1434
+ # RPC-specific configuration for `update_data_attribute`
1435
+ # @return [::Gapic::Config::Method]
1436
+ #
1437
+ attr_reader :update_data_attribute
1438
+ ##
1439
+ # RPC-specific configuration for `delete_data_attribute`
1440
+ # @return [::Gapic::Config::Method]
1441
+ #
1442
+ attr_reader :delete_data_attribute
1443
+ ##
1444
+ # RPC-specific configuration for `list_data_attributes`
1445
+ # @return [::Gapic::Config::Method]
1446
+ #
1447
+ attr_reader :list_data_attributes
1448
+ ##
1449
+ # RPC-specific configuration for `get_data_attribute`
1450
+ # @return [::Gapic::Config::Method]
1451
+ #
1452
+ attr_reader :get_data_attribute
1453
+
1454
+ # @private
1455
+ def initialize parent_rpcs = nil
1456
+ create_data_taxonomy_config = parent_rpcs.create_data_taxonomy if parent_rpcs.respond_to? :create_data_taxonomy
1457
+ @create_data_taxonomy = ::Gapic::Config::Method.new create_data_taxonomy_config
1458
+ update_data_taxonomy_config = parent_rpcs.update_data_taxonomy if parent_rpcs.respond_to? :update_data_taxonomy
1459
+ @update_data_taxonomy = ::Gapic::Config::Method.new update_data_taxonomy_config
1460
+ delete_data_taxonomy_config = parent_rpcs.delete_data_taxonomy if parent_rpcs.respond_to? :delete_data_taxonomy
1461
+ @delete_data_taxonomy = ::Gapic::Config::Method.new delete_data_taxonomy_config
1462
+ list_data_taxonomies_config = parent_rpcs.list_data_taxonomies if parent_rpcs.respond_to? :list_data_taxonomies
1463
+ @list_data_taxonomies = ::Gapic::Config::Method.new list_data_taxonomies_config
1464
+ get_data_taxonomy_config = parent_rpcs.get_data_taxonomy if parent_rpcs.respond_to? :get_data_taxonomy
1465
+ @get_data_taxonomy = ::Gapic::Config::Method.new get_data_taxonomy_config
1466
+ create_data_attribute_binding_config = parent_rpcs.create_data_attribute_binding if parent_rpcs.respond_to? :create_data_attribute_binding
1467
+ @create_data_attribute_binding = ::Gapic::Config::Method.new create_data_attribute_binding_config
1468
+ update_data_attribute_binding_config = parent_rpcs.update_data_attribute_binding if parent_rpcs.respond_to? :update_data_attribute_binding
1469
+ @update_data_attribute_binding = ::Gapic::Config::Method.new update_data_attribute_binding_config
1470
+ delete_data_attribute_binding_config = parent_rpcs.delete_data_attribute_binding if parent_rpcs.respond_to? :delete_data_attribute_binding
1471
+ @delete_data_attribute_binding = ::Gapic::Config::Method.new delete_data_attribute_binding_config
1472
+ list_data_attribute_bindings_config = parent_rpcs.list_data_attribute_bindings if parent_rpcs.respond_to? :list_data_attribute_bindings
1473
+ @list_data_attribute_bindings = ::Gapic::Config::Method.new list_data_attribute_bindings_config
1474
+ get_data_attribute_binding_config = parent_rpcs.get_data_attribute_binding if parent_rpcs.respond_to? :get_data_attribute_binding
1475
+ @get_data_attribute_binding = ::Gapic::Config::Method.new get_data_attribute_binding_config
1476
+ create_data_attribute_config = parent_rpcs.create_data_attribute if parent_rpcs.respond_to? :create_data_attribute
1477
+ @create_data_attribute = ::Gapic::Config::Method.new create_data_attribute_config
1478
+ update_data_attribute_config = parent_rpcs.update_data_attribute if parent_rpcs.respond_to? :update_data_attribute
1479
+ @update_data_attribute = ::Gapic::Config::Method.new update_data_attribute_config
1480
+ delete_data_attribute_config = parent_rpcs.delete_data_attribute if parent_rpcs.respond_to? :delete_data_attribute
1481
+ @delete_data_attribute = ::Gapic::Config::Method.new delete_data_attribute_config
1482
+ list_data_attributes_config = parent_rpcs.list_data_attributes if parent_rpcs.respond_to? :list_data_attributes
1483
+ @list_data_attributes = ::Gapic::Config::Method.new list_data_attributes_config
1484
+ get_data_attribute_config = parent_rpcs.get_data_attribute if parent_rpcs.respond_to? :get_data_attribute
1485
+ @get_data_attribute = ::Gapic::Config::Method.new get_data_attribute_config
1486
+
1487
+ yield self if block_given?
1488
+ end
1489
+ end
1490
+ end
1491
+ end
1492
+ end
1493
+ end
1494
+ end
1495
+ end
1496
+ end
1497
+ end