google-cloud-dataplex-v1 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dataplex/v1/bindings_override.rb +34 -29
  4. data/lib/google/cloud/dataplex/v1/business_glossary_pb.rb +75 -0
  5. data/lib/google/cloud/dataplex/v1/business_glossary_service/client.rb +1985 -0
  6. data/lib/google/cloud/dataplex/v1/business_glossary_service/credentials.rb +47 -0
  7. data/lib/google/cloud/dataplex/v1/business_glossary_service/operations.rb +813 -0
  8. data/lib/google/cloud/dataplex/v1/business_glossary_service/paths.rb +111 -0
  9. data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/client.rb +1863 -0
  10. data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/operations.rb +943 -0
  11. data/lib/google/cloud/dataplex/v1/business_glossary_service/rest/service_stub.rb +1002 -0
  12. data/lib/google/cloud/dataplex/v1/business_glossary_service/rest.rb +59 -0
  13. data/lib/google/cloud/dataplex/v1/business_glossary_service.rb +61 -0
  14. data/lib/google/cloud/dataplex/v1/business_glossary_services_pb.rb +81 -0
  15. data/lib/google/cloud/dataplex/v1/catalog_pb.rb +7 -1
  16. data/lib/google/cloud/dataplex/v1/catalog_service/client.rb +298 -10
  17. data/lib/google/cloud/dataplex/v1/catalog_service/paths.rb +40 -0
  18. data/lib/google/cloud/dataplex/v1/catalog_service/rest/client.rb +277 -10
  19. data/lib/google/cloud/dataplex/v1/catalog_service/rest/operations.rb +2 -2
  20. data/lib/google/cloud/dataplex/v1/catalog_service/rest/service_stub.rb +184 -0
  21. data/lib/google/cloud/dataplex/v1/catalog_service/rest.rb +4 -4
  22. data/lib/google/cloud/dataplex/v1/catalog_service.rb +4 -4
  23. data/lib/google/cloud/dataplex/v1/catalog_services_pb.rb +14 -6
  24. data/lib/google/cloud/dataplex/v1/cmek_service/client.rb +1 -1
  25. data/lib/google/cloud/dataplex/v1/cmek_service/rest/client.rb +1 -1
  26. data/lib/google/cloud/dataplex/v1/cmek_service/rest/operations.rb +2 -2
  27. data/lib/google/cloud/dataplex/v1/cmek_service/rest.rb +1 -1
  28. data/lib/google/cloud/dataplex/v1/cmek_service.rb +1 -1
  29. data/lib/google/cloud/dataplex/v1/cmek_services_pb.rb +1 -1
  30. data/lib/google/cloud/dataplex/v1/content_service/client.rb +2 -1
  31. data/lib/google/cloud/dataplex/v1/content_service/rest/client.rb +2 -1
  32. data/lib/google/cloud/dataplex/v1/content_service/rest.rb +2 -1
  33. data/lib/google/cloud/dataplex/v1/content_service.rb +2 -1
  34. data/lib/google/cloud/dataplex/v1/content_services_pb.rb +2 -1
  35. data/lib/google/cloud/dataplex/v1/data_discovery_pb.rb +1 -1
  36. data/lib/google/cloud/dataplex/v1/data_profile_pb.rb +1 -1
  37. data/lib/google/cloud/dataplex/v1/data_quality_pb.rb +3 -1
  38. data/lib/google/cloud/dataplex/v1/data_scan_service/client.rb +7 -7
  39. data/lib/google/cloud/dataplex/v1/data_scan_service/paths.rb +14 -0
  40. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/client.rb +7 -7
  41. data/lib/google/cloud/dataplex/v1/data_scan_service/rest/operations.rb +2 -2
  42. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/client.rb +1 -1
  43. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/client.rb +1 -1
  44. data/lib/google/cloud/dataplex/v1/data_taxonomy_service/rest/operations.rb +2 -2
  45. data/lib/google/cloud/dataplex/v1/dataplex_service/client.rb +2 -2
  46. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/client.rb +2 -2
  47. data/lib/google/cloud/dataplex/v1/dataplex_service/rest/operations.rb +2 -2
  48. data/lib/google/cloud/dataplex/v1/datascans_common_pb.rb +45 -0
  49. data/lib/google/cloud/dataplex/v1/logs_pb.rb +3 -1
  50. data/lib/google/cloud/dataplex/v1/processing_pb.rb +1 -1
  51. data/lib/google/cloud/dataplex/v1/rest.rb +1 -0
  52. data/lib/google/cloud/dataplex/v1/version.rb +1 -1
  53. data/lib/google/cloud/dataplex/v1.rb +1 -0
  54. data/proto_docs/google/cloud/dataplex/v1/analyze.rb +1 -1
  55. data/proto_docs/google/cloud/dataplex/v1/business_glossary.rb +531 -0
  56. data/proto_docs/google/cloud/dataplex/v1/catalog.rb +192 -33
  57. data/proto_docs/google/cloud/dataplex/v1/data_discovery.rb +6 -0
  58. data/proto_docs/google/cloud/dataplex/v1/data_profile.rb +99 -98
  59. data/proto_docs/google/cloud/dataplex/v1/data_quality.rb +18 -5
  60. data/proto_docs/google/cloud/dataplex/v1/data_taxonomy.rb +1 -1
  61. data/proto_docs/google/cloud/dataplex/v1/datascans.rb +11 -11
  62. data/proto_docs/google/cloud/dataplex/v1/datascans_common.rb +48 -0
  63. data/proto_docs/google/cloud/dataplex/v1/logs.rb +7 -3
  64. data/proto_docs/google/cloud/dataplex/v1/metadata.rb +10 -8
  65. data/proto_docs/google/cloud/dataplex/v1/processing.rb +15 -11
  66. data/proto_docs/google/cloud/dataplex/v1/service.rb +2 -2
  67. data/proto_docs/google/cloud/dataplex/v1/tasks.rb +3 -3
  68. metadata +18 -4
@@ -0,0 +1,1863 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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/business_glossary_pb"
21
+ require "google/cloud/dataplex/v1/business_glossary_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 BusinessGlossaryService
30
+ module Rest
31
+ ##
32
+ # REST client for the BusinessGlossaryService service.
33
+ #
34
+ # BusinessGlossaryService provides APIs for managing business glossary
35
+ # resources for enterprise customers.
36
+ # The resources currently supported in Business Glossary are:
37
+ # 1. Glossary
38
+ # 2. GlossaryCategory
39
+ # 3. GlossaryTerm
40
+ #
41
+ class Client
42
+ # @private
43
+ API_VERSION = ""
44
+
45
+ # @private
46
+ DEFAULT_ENDPOINT_TEMPLATE = "dataplex.$UNIVERSE_DOMAIN$"
47
+
48
+ include Paths
49
+
50
+ # @private
51
+ attr_reader :business_glossary_service_stub
52
+
53
+ ##
54
+ # Configure the BusinessGlossaryService Client class.
55
+ #
56
+ # See {::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client::Configuration}
57
+ # for a description of the configuration fields.
58
+ #
59
+ # @example
60
+ #
61
+ # # Modify the configuration for all BusinessGlossaryService clients
62
+ # ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.configure do |config|
63
+ # config.timeout = 10.0
64
+ # end
65
+ #
66
+ # @yield [config] Configure the Client client.
67
+ # @yieldparam config [Client::Configuration]
68
+ #
69
+ # @return [Client::Configuration]
70
+ #
71
+ def self.configure
72
+ @configure ||= begin
73
+ namespace = ["Google", "Cloud", "Dataplex", "V1"]
74
+ parent_config = while namespace.any?
75
+ parent_name = namespace.join "::"
76
+ parent_const = const_get parent_name
77
+ break parent_const.configure if parent_const.respond_to? :configure
78
+ namespace.pop
79
+ end
80
+ default_config = Client::Configuration.new parent_config
81
+
82
+ default_config
83
+ end
84
+ yield @configure if block_given?
85
+ @configure
86
+ end
87
+
88
+ ##
89
+ # Configure the BusinessGlossaryService Client instance.
90
+ #
91
+ # The configuration is set to the derived mode, meaning that values can be changed,
92
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
93
+ # should be made on {Client.configure}.
94
+ #
95
+ # See {::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client::Configuration}
96
+ # for a description of the configuration fields.
97
+ #
98
+ # @yield [config] Configure the Client client.
99
+ # @yieldparam config [Client::Configuration]
100
+ #
101
+ # @return [Client::Configuration]
102
+ #
103
+ def configure
104
+ yield @config if block_given?
105
+ @config
106
+ end
107
+
108
+ ##
109
+ # The effective universe domain
110
+ #
111
+ # @return [String]
112
+ #
113
+ def universe_domain
114
+ @business_glossary_service_stub.universe_domain
115
+ end
116
+
117
+ ##
118
+ # Create a new BusinessGlossaryService REST client object.
119
+ #
120
+ # @example
121
+ #
122
+ # # Create a client using the default configuration
123
+ # client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
124
+ #
125
+ # # Create a client using a custom configuration
126
+ # client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new do |config|
127
+ # config.timeout = 10.0
128
+ # end
129
+ #
130
+ # @yield [config] Configure the BusinessGlossaryService client.
131
+ # @yieldparam config [Client::Configuration]
132
+ #
133
+ def initialize
134
+ # Create the configuration object
135
+ @config = Configuration.new Client.configure
136
+
137
+ # Yield the configuration if needed
138
+ yield @config if block_given?
139
+
140
+ # Create credentials
141
+ credentials = @config.credentials
142
+ # Use self-signed JWT if the endpoint is unchanged from default,
143
+ # but only if the default endpoint does not have a region prefix.
144
+ enable_self_signed_jwt = @config.endpoint.nil? ||
145
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
+ !@config.endpoint.split(".").first.include?("-"))
147
+ credentials ||= Credentials.default scope: @config.scope,
148
+ enable_self_signed_jwt: enable_self_signed_jwt
149
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
150
+ credentials = Credentials.new credentials, scope: @config.scope
151
+ end
152
+
153
+ @quota_project_id = @config.quota_project
154
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
155
+
156
+ @operations_client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Operations.new do |config|
157
+ config.credentials = credentials
158
+ config.quota_project = @quota_project_id
159
+ config.endpoint = @config.endpoint
160
+ config.universe_domain = @config.universe_domain
161
+ end
162
+
163
+ @business_glossary_service_stub = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::ServiceStub.new(
164
+ endpoint: @config.endpoint,
165
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
166
+ universe_domain: @config.universe_domain,
167
+ credentials: credentials,
168
+ logger: @config.logger
169
+ )
170
+
171
+ @business_glossary_service_stub.logger(stub: true)&.info do |entry|
172
+ entry.set_system_name
173
+ entry.set_service
174
+ entry.message = "Created client for #{entry.service}"
175
+ entry.set_credentials_fields credentials
176
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
177
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
178
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
179
+ end
180
+
181
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
182
+ config.credentials = credentials
183
+ config.quota_project = @quota_project_id
184
+ config.endpoint = @business_glossary_service_stub.endpoint
185
+ config.universe_domain = @business_glossary_service_stub.universe_domain
186
+ config.bindings_override = @config.bindings_override
187
+ config.logger = @business_glossary_service_stub.logger if config.respond_to? :logger=
188
+ end
189
+
190
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
191
+ config.credentials = credentials
192
+ config.quota_project = @quota_project_id
193
+ config.endpoint = @business_glossary_service_stub.endpoint
194
+ config.universe_domain = @business_glossary_service_stub.universe_domain
195
+ config.bindings_override = @config.bindings_override
196
+ config.logger = @business_glossary_service_stub.logger if config.respond_to? :logger=
197
+ end
198
+ end
199
+
200
+ ##
201
+ # Get the associated client for long-running operations.
202
+ #
203
+ # @return [::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Operations]
204
+ #
205
+ attr_reader :operations_client
206
+
207
+ ##
208
+ # Get the associated client for mix-in of the Locations.
209
+ #
210
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
211
+ #
212
+ attr_reader :location_client
213
+
214
+ ##
215
+ # Get the associated client for mix-in of the IAMPolicy.
216
+ #
217
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
218
+ #
219
+ attr_reader :iam_policy_client
220
+
221
+ ##
222
+ # The logger used for request/response debug logging.
223
+ #
224
+ # @return [Logger]
225
+ #
226
+ def logger
227
+ @business_glossary_service_stub.logger
228
+ end
229
+
230
+ # Service calls
231
+
232
+ ##
233
+ # Creates a new Glossary resource.
234
+ #
235
+ # @overload create_glossary(request, options = nil)
236
+ # Pass arguments to `create_glossary` via a request object, either of type
237
+ # {::Google::Cloud::Dataplex::V1::CreateGlossaryRequest} or an equivalent Hash.
238
+ #
239
+ # @param request [::Google::Cloud::Dataplex::V1::CreateGlossaryRequest, ::Hash]
240
+ # A request object representing the call parameters. Required. To specify no
241
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
242
+ # @param options [::Gapic::CallOptions, ::Hash]
243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
244
+ #
245
+ # @overload create_glossary(parent: nil, glossary_id: nil, glossary: nil, validate_only: nil)
246
+ # Pass arguments to `create_glossary` via keyword arguments. Note that at
247
+ # least one keyword argument is required. To specify no parameters, or to keep all
248
+ # the default parameter values, pass an empty Hash as a request object (see above).
249
+ #
250
+ # @param parent [::String]
251
+ # Required. The parent resource where this Glossary will be created.
252
+ # Format: projects/\\{project_id_or_number}/locations/\\{location_id}
253
+ # where `location_id` refers to a Google Cloud region.
254
+ # @param glossary_id [::String]
255
+ # Required. Glossary ID: Glossary identifier.
256
+ # @param glossary [::Google::Cloud::Dataplex::V1::Glossary, ::Hash]
257
+ # Required. The Glossary to create.
258
+ # @param validate_only [::Boolean]
259
+ # Optional. Validates the request without actually creating the Glossary.
260
+ # Default: false.
261
+ # @yield [result, operation] Access the result along with the TransportOperation object
262
+ # @yieldparam result [::Gapic::Operation]
263
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
264
+ #
265
+ # @return [::Gapic::Operation]
266
+ #
267
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
268
+ #
269
+ # @example Basic example
270
+ # require "google/cloud/dataplex/v1"
271
+ #
272
+ # # Create a client object. The client can be reused for multiple calls.
273
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
274
+ #
275
+ # # Create a request. To set request fields, pass in keyword arguments.
276
+ # request = Google::Cloud::Dataplex::V1::CreateGlossaryRequest.new
277
+ #
278
+ # # Call the create_glossary method.
279
+ # result = client.create_glossary request
280
+ #
281
+ # # The returned object is of type Gapic::Operation. You can use it to
282
+ # # check the status of an operation, cancel it, or wait for results.
283
+ # # Here is how to wait for a response.
284
+ # result.wait_until_done! timeout: 60
285
+ # if result.response?
286
+ # p result.response
287
+ # else
288
+ # puts "No response received."
289
+ # end
290
+ #
291
+ def create_glossary 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::CreateGlossaryRequest
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.create_glossary.metadata.to_h
301
+
302
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version 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-api-version"] = API_VERSION unless API_VERSION.empty?
309
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
310
+
311
+ options.apply_defaults timeout: @config.rpcs.create_glossary.timeout,
312
+ metadata: call_metadata,
313
+ retry_policy: @config.rpcs.create_glossary.retry_policy
314
+
315
+ options.apply_defaults timeout: @config.timeout,
316
+ metadata: @config.metadata,
317
+ retry_policy: @config.retry_policy
318
+
319
+ @business_glossary_service_stub.create_glossary request, options do |result, operation|
320
+ result = ::Gapic::Operation.new result, @operations_client, options: options
321
+ yield result, operation if block_given?
322
+ throw :response, result
323
+ end
324
+ rescue ::Gapic::Rest::Error => e
325
+ raise ::Google::Cloud::Error.from_error(e)
326
+ end
327
+
328
+ ##
329
+ # Updates a Glossary resource.
330
+ #
331
+ # @overload update_glossary(request, options = nil)
332
+ # Pass arguments to `update_glossary` via a request object, either of type
333
+ # {::Google::Cloud::Dataplex::V1::UpdateGlossaryRequest} or an equivalent Hash.
334
+ #
335
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateGlossaryRequest, ::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 update_glossary(glossary: nil, update_mask: nil, validate_only: nil)
342
+ # Pass arguments to `update_glossary` 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 glossary [::Google::Cloud::Dataplex::V1::Glossary, ::Hash]
347
+ # Required. The Glossary to update.
348
+ # The Glossary's `name` field is used to identify the Glossary to update.
349
+ # Format:
350
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
351
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
352
+ # Required. The list of fields to update.
353
+ # @param validate_only [::Boolean]
354
+ # Optional. Validates the request without actually updating the Glossary.
355
+ # Default: false.
356
+ # @yield [result, operation] Access the result along with the TransportOperation object
357
+ # @yieldparam result [::Gapic::Operation]
358
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
359
+ #
360
+ # @return [::Gapic::Operation]
361
+ #
362
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
363
+ #
364
+ # @example Basic example
365
+ # require "google/cloud/dataplex/v1"
366
+ #
367
+ # # Create a client object. The client can be reused for multiple calls.
368
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
369
+ #
370
+ # # Create a request. To set request fields, pass in keyword arguments.
371
+ # request = Google::Cloud::Dataplex::V1::UpdateGlossaryRequest.new
372
+ #
373
+ # # Call the update_glossary method.
374
+ # result = client.update_glossary request
375
+ #
376
+ # # The returned object is of type Gapic::Operation. You can use it to
377
+ # # check the status of an operation, cancel it, or wait for results.
378
+ # # Here is how to wait for a response.
379
+ # result.wait_until_done! timeout: 60
380
+ # if result.response?
381
+ # p result.response
382
+ # else
383
+ # puts "No response received."
384
+ # end
385
+ #
386
+ def update_glossary request, options = nil
387
+ raise ::ArgumentError, "request must be provided" if request.nil?
388
+
389
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateGlossaryRequest
390
+
391
+ # Converts hash and nil to an options object
392
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
393
+
394
+ # Customize the options with defaults
395
+ call_metadata = @config.rpcs.update_glossary.metadata.to_h
396
+
397
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
398
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
399
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
400
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
401
+ transports_version_send: [:rest]
402
+
403
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
404
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
405
+
406
+ options.apply_defaults timeout: @config.rpcs.update_glossary.timeout,
407
+ metadata: call_metadata,
408
+ retry_policy: @config.rpcs.update_glossary.retry_policy
409
+
410
+ options.apply_defaults timeout: @config.timeout,
411
+ metadata: @config.metadata,
412
+ retry_policy: @config.retry_policy
413
+
414
+ @business_glossary_service_stub.update_glossary request, options do |result, operation|
415
+ result = ::Gapic::Operation.new result, @operations_client, options: options
416
+ yield result, operation if block_given?
417
+ throw :response, result
418
+ end
419
+ rescue ::Gapic::Rest::Error => e
420
+ raise ::Google::Cloud::Error.from_error(e)
421
+ end
422
+
423
+ ##
424
+ # Deletes a Glossary resource. All the categories and terms within the
425
+ # Glossary must be deleted before the Glossary can be deleted.
426
+ #
427
+ # @overload delete_glossary(request, options = nil)
428
+ # Pass arguments to `delete_glossary` via a request object, either of type
429
+ # {::Google::Cloud::Dataplex::V1::DeleteGlossaryRequest} or an equivalent Hash.
430
+ #
431
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteGlossaryRequest, ::Hash]
432
+ # A request object representing the call parameters. Required. To specify no
433
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
434
+ # @param options [::Gapic::CallOptions, ::Hash]
435
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
436
+ #
437
+ # @overload delete_glossary(name: nil, etag: nil)
438
+ # Pass arguments to `delete_glossary` via keyword arguments. Note that at
439
+ # least one keyword argument is required. To specify no parameters, or to keep all
440
+ # the default parameter values, pass an empty Hash as a request object (see above).
441
+ #
442
+ # @param name [::String]
443
+ # Required. The name of the Glossary to delete.
444
+ # Format:
445
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
446
+ # @param etag [::String]
447
+ # Optional. The etag of the Glossary.
448
+ # If this is provided, it must match the server's etag.
449
+ # If the etag is provided and does not match the server-computed etag,
450
+ # the request must fail with a ABORTED error code.
451
+ # @yield [result, operation] Access the result along with the TransportOperation object
452
+ # @yieldparam result [::Gapic::Operation]
453
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
454
+ #
455
+ # @return [::Gapic::Operation]
456
+ #
457
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
458
+ #
459
+ # @example Basic example
460
+ # require "google/cloud/dataplex/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::Dataplex::V1::DeleteGlossaryRequest.new
467
+ #
468
+ # # Call the delete_glossary method.
469
+ # result = client.delete_glossary request
470
+ #
471
+ # # The returned object is of type Gapic::Operation. You can use it to
472
+ # # check the status of an operation, cancel it, or wait for results.
473
+ # # Here is how to wait for a response.
474
+ # result.wait_until_done! timeout: 60
475
+ # if result.response?
476
+ # p result.response
477
+ # else
478
+ # puts "No response received."
479
+ # end
480
+ #
481
+ def delete_glossary request, options = nil
482
+ raise ::ArgumentError, "request must be provided" if request.nil?
483
+
484
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteGlossaryRequest
485
+
486
+ # Converts hash and nil to an options object
487
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
488
+
489
+ # Customize the options with defaults
490
+ call_metadata = @config.rpcs.delete_glossary.metadata.to_h
491
+
492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
493
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
494
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
495
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
496
+ transports_version_send: [:rest]
497
+
498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
499
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
500
+
501
+ options.apply_defaults timeout: @config.rpcs.delete_glossary.timeout,
502
+ metadata: call_metadata,
503
+ retry_policy: @config.rpcs.delete_glossary.retry_policy
504
+
505
+ options.apply_defaults timeout: @config.timeout,
506
+ metadata: @config.metadata,
507
+ retry_policy: @config.retry_policy
508
+
509
+ @business_glossary_service_stub.delete_glossary request, options do |result, operation|
510
+ result = ::Gapic::Operation.new result, @operations_client, options: options
511
+ yield result, operation if block_given?
512
+ throw :response, result
513
+ end
514
+ rescue ::Gapic::Rest::Error => e
515
+ raise ::Google::Cloud::Error.from_error(e)
516
+ end
517
+
518
+ ##
519
+ # Gets a Glossary resource.
520
+ #
521
+ # @overload get_glossary(request, options = nil)
522
+ # Pass arguments to `get_glossary` via a request object, either of type
523
+ # {::Google::Cloud::Dataplex::V1::GetGlossaryRequest} or an equivalent Hash.
524
+ #
525
+ # @param request [::Google::Cloud::Dataplex::V1::GetGlossaryRequest, ::Hash]
526
+ # A request object representing the call parameters. Required. To specify no
527
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
528
+ # @param options [::Gapic::CallOptions, ::Hash]
529
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
530
+ #
531
+ # @overload get_glossary(name: nil)
532
+ # Pass arguments to `get_glossary` via keyword arguments. Note that at
533
+ # least one keyword argument is required. To specify no parameters, or to keep all
534
+ # the default parameter values, pass an empty Hash as a request object (see above).
535
+ #
536
+ # @param name [::String]
537
+ # Required. The name of the Glossary to retrieve.
538
+ # Format:
539
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
540
+ # @yield [result, operation] Access the result along with the TransportOperation object
541
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::Glossary]
542
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
543
+ #
544
+ # @return [::Google::Cloud::Dataplex::V1::Glossary]
545
+ #
546
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
547
+ #
548
+ # @example Basic example
549
+ # require "google/cloud/dataplex/v1"
550
+ #
551
+ # # Create a client object. The client can be reused for multiple calls.
552
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
553
+ #
554
+ # # Create a request. To set request fields, pass in keyword arguments.
555
+ # request = Google::Cloud::Dataplex::V1::GetGlossaryRequest.new
556
+ #
557
+ # # Call the get_glossary method.
558
+ # result = client.get_glossary request
559
+ #
560
+ # # The returned object is of type Google::Cloud::Dataplex::V1::Glossary.
561
+ # p result
562
+ #
563
+ def get_glossary request, options = nil
564
+ raise ::ArgumentError, "request must be provided" if request.nil?
565
+
566
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetGlossaryRequest
567
+
568
+ # Converts hash and nil to an options object
569
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
570
+
571
+ # Customize the options with defaults
572
+ call_metadata = @config.rpcs.get_glossary.metadata.to_h
573
+
574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
575
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
576
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
577
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
578
+ transports_version_send: [:rest]
579
+
580
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
+
583
+ options.apply_defaults timeout: @config.rpcs.get_glossary.timeout,
584
+ metadata: call_metadata,
585
+ retry_policy: @config.rpcs.get_glossary.retry_policy
586
+
587
+ options.apply_defaults timeout: @config.timeout,
588
+ metadata: @config.metadata,
589
+ retry_policy: @config.retry_policy
590
+
591
+ @business_glossary_service_stub.get_glossary request, options do |result, operation|
592
+ yield result, operation if block_given?
593
+ end
594
+ rescue ::Gapic::Rest::Error => e
595
+ raise ::Google::Cloud::Error.from_error(e)
596
+ end
597
+
598
+ ##
599
+ # Lists Glossary resources in a project and location.
600
+ #
601
+ # @overload list_glossaries(request, options = nil)
602
+ # Pass arguments to `list_glossaries` via a request object, either of type
603
+ # {::Google::Cloud::Dataplex::V1::ListGlossariesRequest} or an equivalent Hash.
604
+ #
605
+ # @param request [::Google::Cloud::Dataplex::V1::ListGlossariesRequest, ::Hash]
606
+ # A request object representing the call parameters. Required. To specify no
607
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
608
+ # @param options [::Gapic::CallOptions, ::Hash]
609
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
610
+ #
611
+ # @overload list_glossaries(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
612
+ # Pass arguments to `list_glossaries` via keyword arguments. Note that at
613
+ # least one keyword argument is required. To specify no parameters, or to keep all
614
+ # the default parameter values, pass an empty Hash as a request object (see above).
615
+ #
616
+ # @param parent [::String]
617
+ # Required. The parent, which has this collection of Glossaries.
618
+ # Format: projects/\\{project_id_or_number}/locations/\\{location_id}
619
+ # where `location_id` refers to a Google Cloud region.
620
+ # @param page_size [::Integer]
621
+ # Optional. The maximum number of Glossaries to return. The service may
622
+ # return fewer than this value. If unspecified, at most 50 Glossaries will be
623
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
624
+ # 1000.
625
+ # @param page_token [::String]
626
+ # Optional. A page token, received from a previous `ListGlossaries` call.
627
+ # Provide this to retrieve the subsequent page.
628
+ # When paginating, all other parameters provided to `ListGlossaries` must
629
+ # match the call that provided the page token.
630
+ # @param filter [::String]
631
+ # Optional. Filter expression that filters Glossaries listed in the response.
632
+ # Filters on proto fields of Glossary are supported.
633
+ # Examples of using a filter are:
634
+ # - `display_name="my-glossary"`
635
+ # - `categoryCount=1`
636
+ # - `termCount=0`
637
+ # @param order_by [::String]
638
+ # Optional. Order by expression that orders Glossaries listed in the
639
+ # response. Order by fields are: `name` or `create_time` for the result. If
640
+ # not specified, the ordering is undefined.
641
+ # @yield [result, operation] Access the result along with the TransportOperation object
642
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>]
643
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
644
+ #
645
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::Glossary>]
646
+ #
647
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
648
+ #
649
+ # @example Basic example
650
+ # require "google/cloud/dataplex/v1"
651
+ #
652
+ # # Create a client object. The client can be reused for multiple calls.
653
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
654
+ #
655
+ # # Create a request. To set request fields, pass in keyword arguments.
656
+ # request = Google::Cloud::Dataplex::V1::ListGlossariesRequest.new
657
+ #
658
+ # # Call the list_glossaries method.
659
+ # result = client.list_glossaries request
660
+ #
661
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
662
+ # # over elements, and API calls will be issued to fetch pages as needed.
663
+ # result.each do |item|
664
+ # # Each element is of type ::Google::Cloud::Dataplex::V1::Glossary.
665
+ # p item
666
+ # end
667
+ #
668
+ def list_glossaries request, options = nil
669
+ raise ::ArgumentError, "request must be provided" if request.nil?
670
+
671
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListGlossariesRequest
672
+
673
+ # Converts hash and nil to an options object
674
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
675
+
676
+ # Customize the options with defaults
677
+ call_metadata = @config.rpcs.list_glossaries.metadata.to_h
678
+
679
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
680
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
681
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
682
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
683
+ transports_version_send: [:rest]
684
+
685
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
686
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
687
+
688
+ options.apply_defaults timeout: @config.rpcs.list_glossaries.timeout,
689
+ metadata: call_metadata,
690
+ retry_policy: @config.rpcs.list_glossaries.retry_policy
691
+
692
+ options.apply_defaults timeout: @config.timeout,
693
+ metadata: @config.metadata,
694
+ retry_policy: @config.retry_policy
695
+
696
+ @business_glossary_service_stub.list_glossaries request, options do |result, operation|
697
+ result = ::Gapic::Rest::PagedEnumerable.new @business_glossary_service_stub, :list_glossaries, "glossaries", request, result, options
698
+ yield result, operation if block_given?
699
+ throw :response, result
700
+ end
701
+ rescue ::Gapic::Rest::Error => e
702
+ raise ::Google::Cloud::Error.from_error(e)
703
+ end
704
+
705
+ ##
706
+ # Creates a new GlossaryCategory resource.
707
+ #
708
+ # @overload create_glossary_category(request, options = nil)
709
+ # Pass arguments to `create_glossary_category` via a request object, either of type
710
+ # {::Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest} or an equivalent Hash.
711
+ #
712
+ # @param request [::Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest, ::Hash]
713
+ # A request object representing the call parameters. Required. To specify no
714
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
715
+ # @param options [::Gapic::CallOptions, ::Hash]
716
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
717
+ #
718
+ # @overload create_glossary_category(parent: nil, category_id: nil, category: nil)
719
+ # Pass arguments to `create_glossary_category` via keyword arguments. Note that at
720
+ # least one keyword argument is required. To specify no parameters, or to keep all
721
+ # the default parameter values, pass an empty Hash as a request object (see above).
722
+ #
723
+ # @param parent [::String]
724
+ # Required. The parent resource where this GlossaryCategory will be created.
725
+ # Format:
726
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
727
+ # where `locationId` refers to a Google Cloud region.
728
+ # @param category_id [::String]
729
+ # Required. GlossaryCategory identifier.
730
+ # @param category [::Google::Cloud::Dataplex::V1::GlossaryCategory, ::Hash]
731
+ # Required. The GlossaryCategory to create.
732
+ # @yield [result, operation] Access the result along with the TransportOperation object
733
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryCategory]
734
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
735
+ #
736
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryCategory]
737
+ #
738
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
739
+ #
740
+ # @example Basic example
741
+ # require "google/cloud/dataplex/v1"
742
+ #
743
+ # # Create a client object. The client can be reused for multiple calls.
744
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
745
+ #
746
+ # # Create a request. To set request fields, pass in keyword arguments.
747
+ # request = Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest.new
748
+ #
749
+ # # Call the create_glossary_category method.
750
+ # result = client.create_glossary_category request
751
+ #
752
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory.
753
+ # p result
754
+ #
755
+ def create_glossary_category request, options = nil
756
+ raise ::ArgumentError, "request must be provided" if request.nil?
757
+
758
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateGlossaryCategoryRequest
759
+
760
+ # Converts hash and nil to an options object
761
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
762
+
763
+ # Customize the options with defaults
764
+ call_metadata = @config.rpcs.create_glossary_category.metadata.to_h
765
+
766
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
767
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
768
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
769
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
770
+ transports_version_send: [:rest]
771
+
772
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
773
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
774
+
775
+ options.apply_defaults timeout: @config.rpcs.create_glossary_category.timeout,
776
+ metadata: call_metadata,
777
+ retry_policy: @config.rpcs.create_glossary_category.retry_policy
778
+
779
+ options.apply_defaults timeout: @config.timeout,
780
+ metadata: @config.metadata,
781
+ retry_policy: @config.retry_policy
782
+
783
+ @business_glossary_service_stub.create_glossary_category request, options do |result, operation|
784
+ yield result, operation if block_given?
785
+ end
786
+ rescue ::Gapic::Rest::Error => e
787
+ raise ::Google::Cloud::Error.from_error(e)
788
+ end
789
+
790
+ ##
791
+ # Updates a GlossaryCategory resource.
792
+ #
793
+ # @overload update_glossary_category(request, options = nil)
794
+ # Pass arguments to `update_glossary_category` via a request object, either of type
795
+ # {::Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest} or an equivalent Hash.
796
+ #
797
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest, ::Hash]
798
+ # A request object representing the call parameters. Required. To specify no
799
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
800
+ # @param options [::Gapic::CallOptions, ::Hash]
801
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
802
+ #
803
+ # @overload update_glossary_category(category: nil, update_mask: nil)
804
+ # Pass arguments to `update_glossary_category` via keyword arguments. Note that at
805
+ # least one keyword argument is required. To specify no parameters, or to keep all
806
+ # the default parameter values, pass an empty Hash as a request object (see above).
807
+ #
808
+ # @param category [::Google::Cloud::Dataplex::V1::GlossaryCategory, ::Hash]
809
+ # Required. The GlossaryCategory to update.
810
+ # The GlossaryCategory's `name` field is used to identify the
811
+ # GlossaryCategory to update. Format:
812
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/categories/\\{category_id}
813
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
814
+ # Required. The list of fields to update.
815
+ # @yield [result, operation] Access the result along with the TransportOperation object
816
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryCategory]
817
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
818
+ #
819
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryCategory]
820
+ #
821
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
822
+ #
823
+ # @example Basic example
824
+ # require "google/cloud/dataplex/v1"
825
+ #
826
+ # # Create a client object. The client can be reused for multiple calls.
827
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
828
+ #
829
+ # # Create a request. To set request fields, pass in keyword arguments.
830
+ # request = Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest.new
831
+ #
832
+ # # Call the update_glossary_category method.
833
+ # result = client.update_glossary_category request
834
+ #
835
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory.
836
+ # p result
837
+ #
838
+ def update_glossary_category request, options = nil
839
+ raise ::ArgumentError, "request must be provided" if request.nil?
840
+
841
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateGlossaryCategoryRequest
842
+
843
+ # Converts hash and nil to an options object
844
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
845
+
846
+ # Customize the options with defaults
847
+ call_metadata = @config.rpcs.update_glossary_category.metadata.to_h
848
+
849
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
850
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
851
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
852
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
853
+ transports_version_send: [:rest]
854
+
855
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
856
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
857
+
858
+ options.apply_defaults timeout: @config.rpcs.update_glossary_category.timeout,
859
+ metadata: call_metadata,
860
+ retry_policy: @config.rpcs.update_glossary_category.retry_policy
861
+
862
+ options.apply_defaults timeout: @config.timeout,
863
+ metadata: @config.metadata,
864
+ retry_policy: @config.retry_policy
865
+
866
+ @business_glossary_service_stub.update_glossary_category request, options do |result, operation|
867
+ yield result, operation if block_given?
868
+ end
869
+ rescue ::Gapic::Rest::Error => e
870
+ raise ::Google::Cloud::Error.from_error(e)
871
+ end
872
+
873
+ ##
874
+ # Deletes a GlossaryCategory resource. All the GlossaryCategories and
875
+ # GlossaryTerms nested directly under the specified GlossaryCategory will be
876
+ # moved one level up to the parent in the hierarchy.
877
+ #
878
+ # @overload delete_glossary_category(request, options = nil)
879
+ # Pass arguments to `delete_glossary_category` via a request object, either of type
880
+ # {::Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest} or an equivalent Hash.
881
+ #
882
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest, ::Hash]
883
+ # A request object representing the call parameters. Required. To specify no
884
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
885
+ # @param options [::Gapic::CallOptions, ::Hash]
886
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
887
+ #
888
+ # @overload delete_glossary_category(name: nil)
889
+ # Pass arguments to `delete_glossary_category` via keyword arguments. Note that at
890
+ # least one keyword argument is required. To specify no parameters, or to keep all
891
+ # the default parameter values, pass an empty Hash as a request object (see above).
892
+ #
893
+ # @param name [::String]
894
+ # Required. The name of the GlossaryCategory to delete.
895
+ # Format:
896
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/categories/\\{category_id}
897
+ # @yield [result, operation] Access the result along with the TransportOperation object
898
+ # @yieldparam result [::Google::Protobuf::Empty]
899
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
900
+ #
901
+ # @return [::Google::Protobuf::Empty]
902
+ #
903
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
904
+ #
905
+ # @example Basic example
906
+ # require "google/cloud/dataplex/v1"
907
+ #
908
+ # # Create a client object. The client can be reused for multiple calls.
909
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
910
+ #
911
+ # # Create a request. To set request fields, pass in keyword arguments.
912
+ # request = Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest.new
913
+ #
914
+ # # Call the delete_glossary_category method.
915
+ # result = client.delete_glossary_category request
916
+ #
917
+ # # The returned object is of type Google::Protobuf::Empty.
918
+ # p result
919
+ #
920
+ def delete_glossary_category request, options = nil
921
+ raise ::ArgumentError, "request must be provided" if request.nil?
922
+
923
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteGlossaryCategoryRequest
924
+
925
+ # Converts hash and nil to an options object
926
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
927
+
928
+ # Customize the options with defaults
929
+ call_metadata = @config.rpcs.delete_glossary_category.metadata.to_h
930
+
931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
932
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
933
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
934
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
935
+ transports_version_send: [:rest]
936
+
937
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
938
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
939
+
940
+ options.apply_defaults timeout: @config.rpcs.delete_glossary_category.timeout,
941
+ metadata: call_metadata,
942
+ retry_policy: @config.rpcs.delete_glossary_category.retry_policy
943
+
944
+ options.apply_defaults timeout: @config.timeout,
945
+ metadata: @config.metadata,
946
+ retry_policy: @config.retry_policy
947
+
948
+ @business_glossary_service_stub.delete_glossary_category request, options do |result, operation|
949
+ yield result, operation if block_given?
950
+ end
951
+ rescue ::Gapic::Rest::Error => e
952
+ raise ::Google::Cloud::Error.from_error(e)
953
+ end
954
+
955
+ ##
956
+ # Gets a GlossaryCategory resource.
957
+ #
958
+ # @overload get_glossary_category(request, options = nil)
959
+ # Pass arguments to `get_glossary_category` via a request object, either of type
960
+ # {::Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest} or an equivalent Hash.
961
+ #
962
+ # @param request [::Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest, ::Hash]
963
+ # A request object representing the call parameters. Required. To specify no
964
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
965
+ # @param options [::Gapic::CallOptions, ::Hash]
966
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
967
+ #
968
+ # @overload get_glossary_category(name: nil)
969
+ # Pass arguments to `get_glossary_category` via keyword arguments. Note that at
970
+ # least one keyword argument is required. To specify no parameters, or to keep all
971
+ # the default parameter values, pass an empty Hash as a request object (see above).
972
+ #
973
+ # @param name [::String]
974
+ # Required. The name of the GlossaryCategory to retrieve.
975
+ # Format:
976
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/categories/\\{category_id}
977
+ # @yield [result, operation] Access the result along with the TransportOperation object
978
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryCategory]
979
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
980
+ #
981
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryCategory]
982
+ #
983
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
984
+ #
985
+ # @example Basic example
986
+ # require "google/cloud/dataplex/v1"
987
+ #
988
+ # # Create a client object. The client can be reused for multiple calls.
989
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
990
+ #
991
+ # # Create a request. To set request fields, pass in keyword arguments.
992
+ # request = Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest.new
993
+ #
994
+ # # Call the get_glossary_category method.
995
+ # result = client.get_glossary_category request
996
+ #
997
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryCategory.
998
+ # p result
999
+ #
1000
+ def get_glossary_category request, options = nil
1001
+ raise ::ArgumentError, "request must be provided" if request.nil?
1002
+
1003
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetGlossaryCategoryRequest
1004
+
1005
+ # Converts hash and nil to an options object
1006
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1007
+
1008
+ # Customize the options with defaults
1009
+ call_metadata = @config.rpcs.get_glossary_category.metadata.to_h
1010
+
1011
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1012
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1013
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1014
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1015
+ transports_version_send: [:rest]
1016
+
1017
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1018
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1019
+
1020
+ options.apply_defaults timeout: @config.rpcs.get_glossary_category.timeout,
1021
+ metadata: call_metadata,
1022
+ retry_policy: @config.rpcs.get_glossary_category.retry_policy
1023
+
1024
+ options.apply_defaults timeout: @config.timeout,
1025
+ metadata: @config.metadata,
1026
+ retry_policy: @config.retry_policy
1027
+
1028
+ @business_glossary_service_stub.get_glossary_category request, options do |result, operation|
1029
+ yield result, operation if block_given?
1030
+ end
1031
+ rescue ::Gapic::Rest::Error => e
1032
+ raise ::Google::Cloud::Error.from_error(e)
1033
+ end
1034
+
1035
+ ##
1036
+ # Lists GlossaryCategory resources in a Glossary.
1037
+ #
1038
+ # @overload list_glossary_categories(request, options = nil)
1039
+ # Pass arguments to `list_glossary_categories` via a request object, either of type
1040
+ # {::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest} or an equivalent Hash.
1041
+ #
1042
+ # @param request [::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest, ::Hash]
1043
+ # A request object representing the call parameters. Required. To specify no
1044
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1045
+ # @param options [::Gapic::CallOptions, ::Hash]
1046
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1047
+ #
1048
+ # @overload list_glossary_categories(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1049
+ # Pass arguments to `list_glossary_categories` via keyword arguments. Note that at
1050
+ # least one keyword argument is required. To specify no parameters, or to keep all
1051
+ # the default parameter values, pass an empty Hash as a request object (see above).
1052
+ #
1053
+ # @param parent [::String]
1054
+ # Required. The parent, which has this collection of GlossaryCategories.
1055
+ # Format:
1056
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
1057
+ # Location is the Google Cloud region.
1058
+ # @param page_size [::Integer]
1059
+ # Optional. The maximum number of GlossaryCategories to return. The service
1060
+ # may return fewer than this value. If unspecified, at most 50
1061
+ # GlossaryCategories will be returned. The maximum value is 1000; values
1062
+ # above 1000 will be coerced to 1000.
1063
+ # @param page_token [::String]
1064
+ # Optional. A page token, received from a previous `ListGlossaryCategories`
1065
+ # call. Provide this to retrieve the subsequent page. When paginating, all
1066
+ # other parameters provided to `ListGlossaryCategories` must match the call
1067
+ # that provided the page token.
1068
+ # @param filter [::String]
1069
+ # Optional. Filter expression that filters GlossaryCategories listed in the
1070
+ # response. Filters are supported on the following fields:
1071
+ # - immediate_parent
1072
+ #
1073
+ # Examples of using a filter are:
1074
+ # -
1075
+ # `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"`
1076
+ # -
1077
+ # `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"`
1078
+ #
1079
+ # This will only return the GlossaryCategories that are directly nested
1080
+ # under the specified parent.
1081
+ # @param order_by [::String]
1082
+ # Optional. Order by expression that orders GlossaryCategories listed in the
1083
+ # response. Order by fields are: `name` or `create_time` for the result. If
1084
+ # not specified, the ordering is undefined.
1085
+ # @yield [result, operation] Access the result along with the TransportOperation object
1086
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>]
1087
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1088
+ #
1089
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryCategory>]
1090
+ #
1091
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1092
+ #
1093
+ # @example Basic example
1094
+ # require "google/cloud/dataplex/v1"
1095
+ #
1096
+ # # Create a client object. The client can be reused for multiple calls.
1097
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1098
+ #
1099
+ # # Create a request. To set request fields, pass in keyword arguments.
1100
+ # request = Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest.new
1101
+ #
1102
+ # # Call the list_glossary_categories method.
1103
+ # result = client.list_glossary_categories request
1104
+ #
1105
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1106
+ # # over elements, and API calls will be issued to fetch pages as needed.
1107
+ # result.each do |item|
1108
+ # # Each element is of type ::Google::Cloud::Dataplex::V1::GlossaryCategory.
1109
+ # p item
1110
+ # end
1111
+ #
1112
+ def list_glossary_categories request, options = nil
1113
+ raise ::ArgumentError, "request must be provided" if request.nil?
1114
+
1115
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListGlossaryCategoriesRequest
1116
+
1117
+ # Converts hash and nil to an options object
1118
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1119
+
1120
+ # Customize the options with defaults
1121
+ call_metadata = @config.rpcs.list_glossary_categories.metadata.to_h
1122
+
1123
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1124
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1125
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1126
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1127
+ transports_version_send: [:rest]
1128
+
1129
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1130
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1131
+
1132
+ options.apply_defaults timeout: @config.rpcs.list_glossary_categories.timeout,
1133
+ metadata: call_metadata,
1134
+ retry_policy: @config.rpcs.list_glossary_categories.retry_policy
1135
+
1136
+ options.apply_defaults timeout: @config.timeout,
1137
+ metadata: @config.metadata,
1138
+ retry_policy: @config.retry_policy
1139
+
1140
+ @business_glossary_service_stub.list_glossary_categories request, options do |result, operation|
1141
+ result = ::Gapic::Rest::PagedEnumerable.new @business_glossary_service_stub, :list_glossary_categories, "categories", request, result, options
1142
+ yield result, operation if block_given?
1143
+ throw :response, result
1144
+ end
1145
+ rescue ::Gapic::Rest::Error => e
1146
+ raise ::Google::Cloud::Error.from_error(e)
1147
+ end
1148
+
1149
+ ##
1150
+ # Creates a new GlossaryTerm resource.
1151
+ #
1152
+ # @overload create_glossary_term(request, options = nil)
1153
+ # Pass arguments to `create_glossary_term` via a request object, either of type
1154
+ # {::Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest} or an equivalent Hash.
1155
+ #
1156
+ # @param request [::Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest, ::Hash]
1157
+ # A request object representing the call parameters. Required. To specify no
1158
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1159
+ # @param options [::Gapic::CallOptions, ::Hash]
1160
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1161
+ #
1162
+ # @overload create_glossary_term(parent: nil, term_id: nil, term: nil)
1163
+ # Pass arguments to `create_glossary_term` via keyword arguments. Note that at
1164
+ # least one keyword argument is required. To specify no parameters, or to keep all
1165
+ # the default parameter values, pass an empty Hash as a request object (see above).
1166
+ #
1167
+ # @param parent [::String]
1168
+ # Required. The parent resource where the GlossaryTerm will be created.
1169
+ # Format:
1170
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
1171
+ # where `location_id` refers to a Google Cloud region.
1172
+ # @param term_id [::String]
1173
+ # Required. GlossaryTerm identifier.
1174
+ # @param term [::Google::Cloud::Dataplex::V1::GlossaryTerm, ::Hash]
1175
+ # Required. The GlossaryTerm to create.
1176
+ # @yield [result, operation] Access the result along with the TransportOperation object
1177
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1178
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1179
+ #
1180
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1181
+ #
1182
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1183
+ #
1184
+ # @example Basic example
1185
+ # require "google/cloud/dataplex/v1"
1186
+ #
1187
+ # # Create a client object. The client can be reused for multiple calls.
1188
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1189
+ #
1190
+ # # Create a request. To set request fields, pass in keyword arguments.
1191
+ # request = Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest.new
1192
+ #
1193
+ # # Call the create_glossary_term method.
1194
+ # result = client.create_glossary_term request
1195
+ #
1196
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm.
1197
+ # p result
1198
+ #
1199
+ def create_glossary_term request, options = nil
1200
+ raise ::ArgumentError, "request must be provided" if request.nil?
1201
+
1202
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::CreateGlossaryTermRequest
1203
+
1204
+ # Converts hash and nil to an options object
1205
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1206
+
1207
+ # Customize the options with defaults
1208
+ call_metadata = @config.rpcs.create_glossary_term.metadata.to_h
1209
+
1210
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1211
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1212
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1213
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1214
+ transports_version_send: [:rest]
1215
+
1216
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1217
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1218
+
1219
+ options.apply_defaults timeout: @config.rpcs.create_glossary_term.timeout,
1220
+ metadata: call_metadata,
1221
+ retry_policy: @config.rpcs.create_glossary_term.retry_policy
1222
+
1223
+ options.apply_defaults timeout: @config.timeout,
1224
+ metadata: @config.metadata,
1225
+ retry_policy: @config.retry_policy
1226
+
1227
+ @business_glossary_service_stub.create_glossary_term request, options do |result, operation|
1228
+ yield result, operation if block_given?
1229
+ end
1230
+ rescue ::Gapic::Rest::Error => e
1231
+ raise ::Google::Cloud::Error.from_error(e)
1232
+ end
1233
+
1234
+ ##
1235
+ # Updates a GlossaryTerm resource.
1236
+ #
1237
+ # @overload update_glossary_term(request, options = nil)
1238
+ # Pass arguments to `update_glossary_term` via a request object, either of type
1239
+ # {::Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest} or an equivalent Hash.
1240
+ #
1241
+ # @param request [::Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest, ::Hash]
1242
+ # A request object representing the call parameters. Required. To specify no
1243
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1244
+ # @param options [::Gapic::CallOptions, ::Hash]
1245
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1246
+ #
1247
+ # @overload update_glossary_term(term: nil, update_mask: nil)
1248
+ # Pass arguments to `update_glossary_term` via keyword arguments. Note that at
1249
+ # least one keyword argument is required. To specify no parameters, or to keep all
1250
+ # the default parameter values, pass an empty Hash as a request object (see above).
1251
+ #
1252
+ # @param term [::Google::Cloud::Dataplex::V1::GlossaryTerm, ::Hash]
1253
+ # Required. The GlossaryTerm to update.
1254
+ # The GlossaryTerm's `name` field is used to identify the GlossaryTerm to
1255
+ # update. Format:
1256
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/terms/\\{term_id}
1257
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1258
+ # Required. The list of fields to update.
1259
+ # @yield [result, operation] Access the result along with the TransportOperation object
1260
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1261
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1262
+ #
1263
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1264
+ #
1265
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1266
+ #
1267
+ # @example Basic example
1268
+ # require "google/cloud/dataplex/v1"
1269
+ #
1270
+ # # Create a client object. The client can be reused for multiple calls.
1271
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1272
+ #
1273
+ # # Create a request. To set request fields, pass in keyword arguments.
1274
+ # request = Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest.new
1275
+ #
1276
+ # # Call the update_glossary_term method.
1277
+ # result = client.update_glossary_term request
1278
+ #
1279
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm.
1280
+ # p result
1281
+ #
1282
+ def update_glossary_term request, options = nil
1283
+ raise ::ArgumentError, "request must be provided" if request.nil?
1284
+
1285
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::UpdateGlossaryTermRequest
1286
+
1287
+ # Converts hash and nil to an options object
1288
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1289
+
1290
+ # Customize the options with defaults
1291
+ call_metadata = @config.rpcs.update_glossary_term.metadata.to_h
1292
+
1293
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1294
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1295
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1296
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1297
+ transports_version_send: [:rest]
1298
+
1299
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1300
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1301
+
1302
+ options.apply_defaults timeout: @config.rpcs.update_glossary_term.timeout,
1303
+ metadata: call_metadata,
1304
+ retry_policy: @config.rpcs.update_glossary_term.retry_policy
1305
+
1306
+ options.apply_defaults timeout: @config.timeout,
1307
+ metadata: @config.metadata,
1308
+ retry_policy: @config.retry_policy
1309
+
1310
+ @business_glossary_service_stub.update_glossary_term request, options do |result, operation|
1311
+ yield result, operation if block_given?
1312
+ end
1313
+ rescue ::Gapic::Rest::Error => e
1314
+ raise ::Google::Cloud::Error.from_error(e)
1315
+ end
1316
+
1317
+ ##
1318
+ # Deletes a GlossaryTerm resource.
1319
+ #
1320
+ # @overload delete_glossary_term(request, options = nil)
1321
+ # Pass arguments to `delete_glossary_term` via a request object, either of type
1322
+ # {::Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest} or an equivalent Hash.
1323
+ #
1324
+ # @param request [::Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest, ::Hash]
1325
+ # A request object representing the call parameters. Required. To specify no
1326
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1327
+ # @param options [::Gapic::CallOptions, ::Hash]
1328
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1329
+ #
1330
+ # @overload delete_glossary_term(name: nil)
1331
+ # Pass arguments to `delete_glossary_term` via keyword arguments. Note that at
1332
+ # least one keyword argument is required. To specify no parameters, or to keep all
1333
+ # the default parameter values, pass an empty Hash as a request object (see above).
1334
+ #
1335
+ # @param name [::String]
1336
+ # Required. The name of the GlossaryTerm to delete.
1337
+ # Format:
1338
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/terms/\\{term_id}
1339
+ # @yield [result, operation] Access the result along with the TransportOperation object
1340
+ # @yieldparam result [::Google::Protobuf::Empty]
1341
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1342
+ #
1343
+ # @return [::Google::Protobuf::Empty]
1344
+ #
1345
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1346
+ #
1347
+ # @example Basic example
1348
+ # require "google/cloud/dataplex/v1"
1349
+ #
1350
+ # # Create a client object. The client can be reused for multiple calls.
1351
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1352
+ #
1353
+ # # Create a request. To set request fields, pass in keyword arguments.
1354
+ # request = Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest.new
1355
+ #
1356
+ # # Call the delete_glossary_term method.
1357
+ # result = client.delete_glossary_term request
1358
+ #
1359
+ # # The returned object is of type Google::Protobuf::Empty.
1360
+ # p result
1361
+ #
1362
+ def delete_glossary_term request, options = nil
1363
+ raise ::ArgumentError, "request must be provided" if request.nil?
1364
+
1365
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::DeleteGlossaryTermRequest
1366
+
1367
+ # Converts hash and nil to an options object
1368
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1369
+
1370
+ # Customize the options with defaults
1371
+ call_metadata = @config.rpcs.delete_glossary_term.metadata.to_h
1372
+
1373
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1374
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1375
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1376
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1377
+ transports_version_send: [:rest]
1378
+
1379
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1380
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1381
+
1382
+ options.apply_defaults timeout: @config.rpcs.delete_glossary_term.timeout,
1383
+ metadata: call_metadata,
1384
+ retry_policy: @config.rpcs.delete_glossary_term.retry_policy
1385
+
1386
+ options.apply_defaults timeout: @config.timeout,
1387
+ metadata: @config.metadata,
1388
+ retry_policy: @config.retry_policy
1389
+
1390
+ @business_glossary_service_stub.delete_glossary_term request, options do |result, operation|
1391
+ yield result, operation if block_given?
1392
+ end
1393
+ rescue ::Gapic::Rest::Error => e
1394
+ raise ::Google::Cloud::Error.from_error(e)
1395
+ end
1396
+
1397
+ ##
1398
+ # Gets a GlossaryTerm resource.
1399
+ #
1400
+ # @overload get_glossary_term(request, options = nil)
1401
+ # Pass arguments to `get_glossary_term` via a request object, either of type
1402
+ # {::Google::Cloud::Dataplex::V1::GetGlossaryTermRequest} or an equivalent Hash.
1403
+ #
1404
+ # @param request [::Google::Cloud::Dataplex::V1::GetGlossaryTermRequest, ::Hash]
1405
+ # A request object representing the call parameters. Required. To specify no
1406
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1407
+ # @param options [::Gapic::CallOptions, ::Hash]
1408
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1409
+ #
1410
+ # @overload get_glossary_term(name: nil)
1411
+ # Pass arguments to `get_glossary_term` via keyword arguments. Note that at
1412
+ # least one keyword argument is required. To specify no parameters, or to keep all
1413
+ # the default parameter values, pass an empty Hash as a request object (see above).
1414
+ #
1415
+ # @param name [::String]
1416
+ # Required. The name of the GlossaryTerm to retrieve.
1417
+ # Format:
1418
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}/terms/\\{term_id}
1419
+ # @yield [result, operation] Access the result along with the TransportOperation object
1420
+ # @yieldparam result [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1421
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1422
+ #
1423
+ # @return [::Google::Cloud::Dataplex::V1::GlossaryTerm]
1424
+ #
1425
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1426
+ #
1427
+ # @example Basic example
1428
+ # require "google/cloud/dataplex/v1"
1429
+ #
1430
+ # # Create a client object. The client can be reused for multiple calls.
1431
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1432
+ #
1433
+ # # Create a request. To set request fields, pass in keyword arguments.
1434
+ # request = Google::Cloud::Dataplex::V1::GetGlossaryTermRequest.new
1435
+ #
1436
+ # # Call the get_glossary_term method.
1437
+ # result = client.get_glossary_term request
1438
+ #
1439
+ # # The returned object is of type Google::Cloud::Dataplex::V1::GlossaryTerm.
1440
+ # p result
1441
+ #
1442
+ def get_glossary_term request, options = nil
1443
+ raise ::ArgumentError, "request must be provided" if request.nil?
1444
+
1445
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::GetGlossaryTermRequest
1446
+
1447
+ # Converts hash and nil to an options object
1448
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1449
+
1450
+ # Customize the options with defaults
1451
+ call_metadata = @config.rpcs.get_glossary_term.metadata.to_h
1452
+
1453
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1454
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1455
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1456
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1457
+ transports_version_send: [:rest]
1458
+
1459
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1460
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1461
+
1462
+ options.apply_defaults timeout: @config.rpcs.get_glossary_term.timeout,
1463
+ metadata: call_metadata,
1464
+ retry_policy: @config.rpcs.get_glossary_term.retry_policy
1465
+
1466
+ options.apply_defaults timeout: @config.timeout,
1467
+ metadata: @config.metadata,
1468
+ retry_policy: @config.retry_policy
1469
+
1470
+ @business_glossary_service_stub.get_glossary_term request, options do |result, operation|
1471
+ yield result, operation if block_given?
1472
+ end
1473
+ rescue ::Gapic::Rest::Error => e
1474
+ raise ::Google::Cloud::Error.from_error(e)
1475
+ end
1476
+
1477
+ ##
1478
+ # Lists GlossaryTerm resources in a Glossary.
1479
+ #
1480
+ # @overload list_glossary_terms(request, options = nil)
1481
+ # Pass arguments to `list_glossary_terms` via a request object, either of type
1482
+ # {::Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest} or an equivalent Hash.
1483
+ #
1484
+ # @param request [::Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest, ::Hash]
1485
+ # A request object representing the call parameters. Required. To specify no
1486
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1487
+ # @param options [::Gapic::CallOptions, ::Hash]
1488
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1489
+ #
1490
+ # @overload list_glossary_terms(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1491
+ # Pass arguments to `list_glossary_terms` via keyword arguments. Note that at
1492
+ # least one keyword argument is required. To specify no parameters, or to keep all
1493
+ # the default parameter values, pass an empty Hash as a request object (see above).
1494
+ #
1495
+ # @param parent [::String]
1496
+ # Required. The parent, which has this collection of GlossaryTerms.
1497
+ # Format:
1498
+ # projects/\\{project_id_or_number}/locations/\\{location_id}/glossaries/\\{glossary_id}
1499
+ # where `location_id` refers to a Google Cloud region.
1500
+ # @param page_size [::Integer]
1501
+ # Optional. The maximum number of GlossaryTerms to return. The service may
1502
+ # return fewer than this value. If unspecified, at most 50 GlossaryTerms will
1503
+ # be returned. The maximum value is 1000; values above 1000 will be coerced
1504
+ # to 1000.
1505
+ # @param page_token [::String]
1506
+ # Optional. A page token, received from a previous `ListGlossaryTerms` call.
1507
+ # Provide this to retrieve the subsequent page.
1508
+ # When paginating, all other parameters provided to `ListGlossaryTerms` must
1509
+ # match the call that provided the page token.
1510
+ # @param filter [::String]
1511
+ # Optional. Filter expression that filters GlossaryTerms listed in the
1512
+ # response. Filters are supported on the following fields:
1513
+ # - immediate_parent
1514
+ #
1515
+ # Examples of using a filter are:
1516
+ # -
1517
+ # `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}"`
1518
+ # -
1519
+ # `immediate_parent="projects/{project_id_or_number}/locations/{location_id}/glossaries/{glossary_id}/categories/{category_id}"`
1520
+ #
1521
+ # This will only return the GlossaryTerms that are directly nested under the
1522
+ # specified parent.
1523
+ # @param order_by [::String]
1524
+ # Optional. Order by expression that orders GlossaryTerms listed in the
1525
+ # response. Order by fields are: `name` or `create_time` for the result. If
1526
+ # not specified, the ordering is undefined.
1527
+ # @yield [result, operation] Access the result along with the TransportOperation object
1528
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>]
1529
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1530
+ #
1531
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dataplex::V1::GlossaryTerm>]
1532
+ #
1533
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1534
+ #
1535
+ # @example Basic example
1536
+ # require "google/cloud/dataplex/v1"
1537
+ #
1538
+ # # Create a client object. The client can be reused for multiple calls.
1539
+ # client = Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new
1540
+ #
1541
+ # # Create a request. To set request fields, pass in keyword arguments.
1542
+ # request = Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest.new
1543
+ #
1544
+ # # Call the list_glossary_terms method.
1545
+ # result = client.list_glossary_terms request
1546
+ #
1547
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1548
+ # # over elements, and API calls will be issued to fetch pages as needed.
1549
+ # result.each do |item|
1550
+ # # Each element is of type ::Google::Cloud::Dataplex::V1::GlossaryTerm.
1551
+ # p item
1552
+ # end
1553
+ #
1554
+ def list_glossary_terms request, options = nil
1555
+ raise ::ArgumentError, "request must be provided" if request.nil?
1556
+
1557
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataplex::V1::ListGlossaryTermsRequest
1558
+
1559
+ # Converts hash and nil to an options object
1560
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1561
+
1562
+ # Customize the options with defaults
1563
+ call_metadata = @config.rpcs.list_glossary_terms.metadata.to_h
1564
+
1565
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1566
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1567
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1568
+ gapic_version: ::Google::Cloud::Dataplex::V1::VERSION,
1569
+ transports_version_send: [:rest]
1570
+
1571
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1572
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1573
+
1574
+ options.apply_defaults timeout: @config.rpcs.list_glossary_terms.timeout,
1575
+ metadata: call_metadata,
1576
+ retry_policy: @config.rpcs.list_glossary_terms.retry_policy
1577
+
1578
+ options.apply_defaults timeout: @config.timeout,
1579
+ metadata: @config.metadata,
1580
+ retry_policy: @config.retry_policy
1581
+
1582
+ @business_glossary_service_stub.list_glossary_terms request, options do |result, operation|
1583
+ result = ::Gapic::Rest::PagedEnumerable.new @business_glossary_service_stub, :list_glossary_terms, "terms", request, result, options
1584
+ yield result, operation if block_given?
1585
+ throw :response, result
1586
+ end
1587
+ rescue ::Gapic::Rest::Error => e
1588
+ raise ::Google::Cloud::Error.from_error(e)
1589
+ end
1590
+
1591
+ ##
1592
+ # Configuration class for the BusinessGlossaryService REST API.
1593
+ #
1594
+ # This class represents the configuration for BusinessGlossaryService REST,
1595
+ # providing control over timeouts, retry behavior, logging, transport
1596
+ # parameters, and other low-level controls. Certain parameters can also be
1597
+ # applied individually to specific RPCs. See
1598
+ # {::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client::Configuration::Rpcs}
1599
+ # for a list of RPCs that can be configured independently.
1600
+ #
1601
+ # Configuration can be applied globally to all clients, or to a single client
1602
+ # on construction.
1603
+ #
1604
+ # @example
1605
+ #
1606
+ # # Modify the global config, setting the timeout for
1607
+ # # create_glossary to 20 seconds,
1608
+ # # and all remaining timeouts to 10 seconds.
1609
+ # ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.configure do |config|
1610
+ # config.timeout = 10.0
1611
+ # config.rpcs.create_glossary.timeout = 20.0
1612
+ # end
1613
+ #
1614
+ # # Apply the above configuration only to a new client.
1615
+ # client = ::Google::Cloud::Dataplex::V1::BusinessGlossaryService::Rest::Client.new do |config|
1616
+ # config.timeout = 10.0
1617
+ # config.rpcs.create_glossary.timeout = 20.0
1618
+ # end
1619
+ #
1620
+ # @!attribute [rw] endpoint
1621
+ # A custom service endpoint, as a hostname or hostname:port. The default is
1622
+ # nil, indicating to use the default endpoint in the current universe domain.
1623
+ # @return [::String,nil]
1624
+ # @!attribute [rw] credentials
1625
+ # Credentials to send with calls. You may provide any of the following types:
1626
+ # * (`String`) The path to a service account key file in JSON format
1627
+ # * (`Hash`) A service account key as a Hash
1628
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
1629
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1630
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1631
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1632
+ # * (`nil`) indicating no credentials
1633
+ #
1634
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
1635
+ # external source for authentication to Google Cloud, you must validate it before
1636
+ # providing it to a Google API client library. Providing an unvalidated credential
1637
+ # configuration to Google APIs can compromise the security of your systems and data.
1638
+ # For more information, refer to [Validate credential configurations from external
1639
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
1640
+ # @return [::Object]
1641
+ # @!attribute [rw] scope
1642
+ # The OAuth scopes
1643
+ # @return [::Array<::String>]
1644
+ # @!attribute [rw] lib_name
1645
+ # The library name as recorded in instrumentation and logging
1646
+ # @return [::String]
1647
+ # @!attribute [rw] lib_version
1648
+ # The library version as recorded in instrumentation and logging
1649
+ # @return [::String]
1650
+ # @!attribute [rw] timeout
1651
+ # The call timeout in seconds.
1652
+ # @return [::Numeric]
1653
+ # @!attribute [rw] metadata
1654
+ # Additional headers to be sent with the call.
1655
+ # @return [::Hash{::Symbol=>::String}]
1656
+ # @!attribute [rw] retry_policy
1657
+ # The retry policy. The value is a hash with the following keys:
1658
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1659
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1660
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1661
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1662
+ # trigger a retry.
1663
+ # @return [::Hash]
1664
+ # @!attribute [rw] quota_project
1665
+ # A separate project against which to charge quota.
1666
+ # @return [::String]
1667
+ # @!attribute [rw] universe_domain
1668
+ # The universe domain within which to make requests. This determines the
1669
+ # default endpoint URL. The default value of nil uses the environment
1670
+ # universe (usually the default "googleapis.com" universe).
1671
+ # @return [::String,nil]
1672
+ # @!attribute [rw] logger
1673
+ # A custom logger to use for request/response debug logging, or the value
1674
+ # `:default` (the default) to construct a default logger, or `nil` to
1675
+ # explicitly disable logging.
1676
+ # @return [::Logger,:default,nil]
1677
+ #
1678
+ class Configuration
1679
+ extend ::Gapic::Config
1680
+
1681
+ # @private
1682
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
1683
+ DEFAULT_ENDPOINT = "dataplex.googleapis.com"
1684
+
1685
+ config_attr :endpoint, nil, ::String, nil
1686
+ config_attr :credentials, nil do |value|
1687
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
1688
+ allowed.any? { |klass| klass === value }
1689
+ end
1690
+ config_attr :scope, nil, ::String, ::Array, nil
1691
+ config_attr :lib_name, nil, ::String, nil
1692
+ config_attr :lib_version, nil, ::String, nil
1693
+ config_attr :timeout, nil, ::Numeric, nil
1694
+ config_attr :metadata, nil, ::Hash, nil
1695
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1696
+ config_attr :quota_project, nil, ::String, nil
1697
+ config_attr :universe_domain, nil, ::String, nil
1698
+
1699
+ # @private
1700
+ # Overrides for http bindings for the RPCs of this service
1701
+ # are only used when this service is used as mixin, and only
1702
+ # by the host service.
1703
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1704
+ config_attr :bindings_override, {}, ::Hash, nil
1705
+ config_attr :logger, :default, ::Logger, nil, :default
1706
+
1707
+ # @private
1708
+ def initialize parent_config = nil
1709
+ @parent_config = parent_config unless parent_config.nil?
1710
+
1711
+ yield self if block_given?
1712
+ end
1713
+
1714
+ ##
1715
+ # Configurations for individual RPCs
1716
+ # @return [Rpcs]
1717
+ #
1718
+ def rpcs
1719
+ @rpcs ||= begin
1720
+ parent_rpcs = nil
1721
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
1722
+ Rpcs.new parent_rpcs
1723
+ end
1724
+ end
1725
+
1726
+ ##
1727
+ # Configuration RPC class for the BusinessGlossaryService API.
1728
+ #
1729
+ # Includes fields providing the configuration for each RPC in this service.
1730
+ # Each configuration object is of type `Gapic::Config::Method` and includes
1731
+ # the following configuration fields:
1732
+ #
1733
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
1734
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
1735
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
1736
+ # include the following keys:
1737
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1738
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1739
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1740
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1741
+ # trigger a retry.
1742
+ #
1743
+ class Rpcs
1744
+ ##
1745
+ # RPC-specific configuration for `create_glossary`
1746
+ # @return [::Gapic::Config::Method]
1747
+ #
1748
+ attr_reader :create_glossary
1749
+ ##
1750
+ # RPC-specific configuration for `update_glossary`
1751
+ # @return [::Gapic::Config::Method]
1752
+ #
1753
+ attr_reader :update_glossary
1754
+ ##
1755
+ # RPC-specific configuration for `delete_glossary`
1756
+ # @return [::Gapic::Config::Method]
1757
+ #
1758
+ attr_reader :delete_glossary
1759
+ ##
1760
+ # RPC-specific configuration for `get_glossary`
1761
+ # @return [::Gapic::Config::Method]
1762
+ #
1763
+ attr_reader :get_glossary
1764
+ ##
1765
+ # RPC-specific configuration for `list_glossaries`
1766
+ # @return [::Gapic::Config::Method]
1767
+ #
1768
+ attr_reader :list_glossaries
1769
+ ##
1770
+ # RPC-specific configuration for `create_glossary_category`
1771
+ # @return [::Gapic::Config::Method]
1772
+ #
1773
+ attr_reader :create_glossary_category
1774
+ ##
1775
+ # RPC-specific configuration for `update_glossary_category`
1776
+ # @return [::Gapic::Config::Method]
1777
+ #
1778
+ attr_reader :update_glossary_category
1779
+ ##
1780
+ # RPC-specific configuration for `delete_glossary_category`
1781
+ # @return [::Gapic::Config::Method]
1782
+ #
1783
+ attr_reader :delete_glossary_category
1784
+ ##
1785
+ # RPC-specific configuration for `get_glossary_category`
1786
+ # @return [::Gapic::Config::Method]
1787
+ #
1788
+ attr_reader :get_glossary_category
1789
+ ##
1790
+ # RPC-specific configuration for `list_glossary_categories`
1791
+ # @return [::Gapic::Config::Method]
1792
+ #
1793
+ attr_reader :list_glossary_categories
1794
+ ##
1795
+ # RPC-specific configuration for `create_glossary_term`
1796
+ # @return [::Gapic::Config::Method]
1797
+ #
1798
+ attr_reader :create_glossary_term
1799
+ ##
1800
+ # RPC-specific configuration for `update_glossary_term`
1801
+ # @return [::Gapic::Config::Method]
1802
+ #
1803
+ attr_reader :update_glossary_term
1804
+ ##
1805
+ # RPC-specific configuration for `delete_glossary_term`
1806
+ # @return [::Gapic::Config::Method]
1807
+ #
1808
+ attr_reader :delete_glossary_term
1809
+ ##
1810
+ # RPC-specific configuration for `get_glossary_term`
1811
+ # @return [::Gapic::Config::Method]
1812
+ #
1813
+ attr_reader :get_glossary_term
1814
+ ##
1815
+ # RPC-specific configuration for `list_glossary_terms`
1816
+ # @return [::Gapic::Config::Method]
1817
+ #
1818
+ attr_reader :list_glossary_terms
1819
+
1820
+ # @private
1821
+ def initialize parent_rpcs = nil
1822
+ create_glossary_config = parent_rpcs.create_glossary if parent_rpcs.respond_to? :create_glossary
1823
+ @create_glossary = ::Gapic::Config::Method.new create_glossary_config
1824
+ update_glossary_config = parent_rpcs.update_glossary if parent_rpcs.respond_to? :update_glossary
1825
+ @update_glossary = ::Gapic::Config::Method.new update_glossary_config
1826
+ delete_glossary_config = parent_rpcs.delete_glossary if parent_rpcs.respond_to? :delete_glossary
1827
+ @delete_glossary = ::Gapic::Config::Method.new delete_glossary_config
1828
+ get_glossary_config = parent_rpcs.get_glossary if parent_rpcs.respond_to? :get_glossary
1829
+ @get_glossary = ::Gapic::Config::Method.new get_glossary_config
1830
+ list_glossaries_config = parent_rpcs.list_glossaries if parent_rpcs.respond_to? :list_glossaries
1831
+ @list_glossaries = ::Gapic::Config::Method.new list_glossaries_config
1832
+ create_glossary_category_config = parent_rpcs.create_glossary_category if parent_rpcs.respond_to? :create_glossary_category
1833
+ @create_glossary_category = ::Gapic::Config::Method.new create_glossary_category_config
1834
+ update_glossary_category_config = parent_rpcs.update_glossary_category if parent_rpcs.respond_to? :update_glossary_category
1835
+ @update_glossary_category = ::Gapic::Config::Method.new update_glossary_category_config
1836
+ delete_glossary_category_config = parent_rpcs.delete_glossary_category if parent_rpcs.respond_to? :delete_glossary_category
1837
+ @delete_glossary_category = ::Gapic::Config::Method.new delete_glossary_category_config
1838
+ get_glossary_category_config = parent_rpcs.get_glossary_category if parent_rpcs.respond_to? :get_glossary_category
1839
+ @get_glossary_category = ::Gapic::Config::Method.new get_glossary_category_config
1840
+ list_glossary_categories_config = parent_rpcs.list_glossary_categories if parent_rpcs.respond_to? :list_glossary_categories
1841
+ @list_glossary_categories = ::Gapic::Config::Method.new list_glossary_categories_config
1842
+ create_glossary_term_config = parent_rpcs.create_glossary_term if parent_rpcs.respond_to? :create_glossary_term
1843
+ @create_glossary_term = ::Gapic::Config::Method.new create_glossary_term_config
1844
+ update_glossary_term_config = parent_rpcs.update_glossary_term if parent_rpcs.respond_to? :update_glossary_term
1845
+ @update_glossary_term = ::Gapic::Config::Method.new update_glossary_term_config
1846
+ delete_glossary_term_config = parent_rpcs.delete_glossary_term if parent_rpcs.respond_to? :delete_glossary_term
1847
+ @delete_glossary_term = ::Gapic::Config::Method.new delete_glossary_term_config
1848
+ get_glossary_term_config = parent_rpcs.get_glossary_term if parent_rpcs.respond_to? :get_glossary_term
1849
+ @get_glossary_term = ::Gapic::Config::Method.new get_glossary_term_config
1850
+ list_glossary_terms_config = parent_rpcs.list_glossary_terms if parent_rpcs.respond_to? :list_glossary_terms
1851
+ @list_glossary_terms = ::Gapic::Config::Method.new list_glossary_terms_config
1852
+
1853
+ yield self if block_given?
1854
+ end
1855
+ end
1856
+ end
1857
+ end
1858
+ end
1859
+ end
1860
+ end
1861
+ end
1862
+ end
1863
+ end