google-shopping-merchant-conversions-v1 0.a → 0.1.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/client.rb +956 -0
  6. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/paths.rb +66 -0
  8. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest/client.rb +888 -0
  9. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest/service_stub.rb +452 -0
  10. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service/rest.rb +54 -0
  11. data/lib/google/shopping/merchant/conversions/v1/conversion_sources_service.rb +57 -0
  12. data/lib/google/shopping/merchant/conversions/v1/conversionsources_pb.rb +68 -0
  13. data/lib/google/shopping/merchant/conversions/v1/conversionsources_services_pb.rb +62 -0
  14. data/lib/google/shopping/merchant/conversions/v1/rest.rb +39 -0
  15. data/lib/google/shopping/merchant/conversions/v1/version.rb +7 -2
  16. data/lib/google/shopping/merchant/conversions/v1.rb +47 -0
  17. data/lib/google-shopping-merchant-conversions-v1.rb +21 -0
  18. data/proto_docs/README.md +4 -0
  19. data/proto_docs/google/api/client.rb +473 -0
  20. data/proto_docs/google/api/field_behavior.rb +85 -0
  21. data/proto_docs/google/api/launch_stage.rb +71 -0
  22. data/proto_docs/google/api/resource.rb +227 -0
  23. data/proto_docs/google/protobuf/duration.rb +98 -0
  24. data/proto_docs/google/protobuf/empty.rb +34 -0
  25. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  26. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  27. data/proto_docs/google/shopping/merchant/conversions/v1/conversionsources.rb +289 -0
  28. metadata +72 -9
@@ -0,0 +1,956 @@
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/shopping/merchant/conversions/v1/conversionsources_pb"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module Conversions
26
+ module V1
27
+ module ConversionSourcesService
28
+ ##
29
+ # Client for the ConversionSourcesService service.
30
+ #
31
+ # Service for managing conversion sources for a merchant account.
32
+ #
33
+ class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
37
+ # @private
38
+ DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
39
+
40
+ include Paths
41
+
42
+ # @private
43
+ attr_reader :conversion_sources_service_stub
44
+
45
+ ##
46
+ # Configure the ConversionSourcesService Client class.
47
+ #
48
+ # See {::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all ConversionSourcesService clients
54
+ # ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.configure do |config|
55
+ # config.timeout = 10.0
56
+ # end
57
+ #
58
+ # @yield [config] Configure the Client client.
59
+ # @yieldparam config [Client::Configuration]
60
+ #
61
+ # @return [Client::Configuration]
62
+ #
63
+ def self.configure
64
+ @configure ||= begin
65
+ namespace = ["Google", "Shopping", "Merchant", "Conversions", "V1"]
66
+ parent_config = while namespace.any?
67
+ parent_name = namespace.join "::"
68
+ parent_const = const_get parent_name
69
+ break parent_const.configure if parent_const.respond_to? :configure
70
+ namespace.pop
71
+ end
72
+ default_config = Client::Configuration.new parent_config
73
+
74
+ default_config.timeout = 60.0
75
+ default_config.retry_policy = {
76
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
77
+ }
78
+
79
+ default_config
80
+ end
81
+ yield @configure if block_given?
82
+ @configure
83
+ end
84
+
85
+ ##
86
+ # Configure the ConversionSourcesService Client instance.
87
+ #
88
+ # The configuration is set to the derived mode, meaning that values can be changed,
89
+ # but structural changes (adding new fields, etc.) are not allowed. Structural changes
90
+ # should be made on {Client.configure}.
91
+ #
92
+ # See {::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client::Configuration}
93
+ # for a description of the configuration fields.
94
+ #
95
+ # @yield [config] Configure the Client client.
96
+ # @yieldparam config [Client::Configuration]
97
+ #
98
+ # @return [Client::Configuration]
99
+ #
100
+ def configure
101
+ yield @config if block_given?
102
+ @config
103
+ end
104
+
105
+ ##
106
+ # The effective universe domain
107
+ #
108
+ # @return [String]
109
+ #
110
+ def universe_domain
111
+ @conversion_sources_service_stub.universe_domain
112
+ end
113
+
114
+ ##
115
+ # Create a new ConversionSourcesService client object.
116
+ #
117
+ # @example
118
+ #
119
+ # # Create a client using the default configuration
120
+ # client = ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
121
+ #
122
+ # # Create a client using a custom configuration
123
+ # client = ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new do |config|
124
+ # config.timeout = 10.0
125
+ # end
126
+ #
127
+ # @yield [config] Configure the ConversionSourcesService client.
128
+ # @yieldparam config [Client::Configuration]
129
+ #
130
+ def initialize
131
+ # These require statements are intentionally placed here to initialize
132
+ # the gRPC module only when it's required.
133
+ # See https://github.com/googleapis/toolkit/issues/446
134
+ require "gapic/grpc"
135
+ require "google/shopping/merchant/conversions/v1/conversionsources_services_pb"
136
+
137
+ # Create the configuration object
138
+ @config = Configuration.new Client.configure
139
+
140
+ # Yield the configuration if needed
141
+ yield @config if block_given?
142
+
143
+ # Create credentials
144
+ credentials = @config.credentials
145
+ # Use self-signed JWT if the endpoint is unchanged from default,
146
+ # but only if the default endpoint does not have a region prefix.
147
+ enable_self_signed_jwt = @config.endpoint.nil? ||
148
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
149
+ !@config.endpoint.split(".").first.include?("-"))
150
+ credentials ||= Credentials.default scope: @config.scope,
151
+ enable_self_signed_jwt: enable_self_signed_jwt
152
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
153
+ credentials = Credentials.new credentials, scope: @config.scope
154
+ end
155
+ @quota_project_id = @config.quota_project
156
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
157
+
158
+ @conversion_sources_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Stub,
160
+ credentials: credentials,
161
+ endpoint: @config.endpoint,
162
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
163
+ universe_domain: @config.universe_domain,
164
+ channel_args: @config.channel_args,
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool,
167
+ logger: @config.logger
168
+ )
169
+
170
+ @conversion_sources_service_stub.stub_logger&.info do |entry|
171
+ entry.set_system_name
172
+ entry.set_service
173
+ entry.message = "Created client for #{entry.service}"
174
+ entry.set_credentials_fields credentials
175
+ entry.set "customEndpoint", @config.endpoint if @config.endpoint
176
+ entry.set "defaultTimeout", @config.timeout if @config.timeout
177
+ entry.set "quotaProject", @quota_project_id if @quota_project_id
178
+ end
179
+ end
180
+
181
+ ##
182
+ # The logger used for request/response debug logging.
183
+ #
184
+ # @return [Logger]
185
+ #
186
+ def logger
187
+ @conversion_sources_service_stub.logger
188
+ end
189
+
190
+ # Service calls
191
+
192
+ ##
193
+ # Creates a new conversion source.
194
+ #
195
+ # @overload create_conversion_source(request, options = nil)
196
+ # Pass arguments to `create_conversion_source` via a request object, either of type
197
+ # {::Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest} or an equivalent Hash.
198
+ #
199
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest, ::Hash]
200
+ # A request object representing the call parameters. Required. To specify no
201
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
202
+ # @param options [::Gapic::CallOptions, ::Hash]
203
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
204
+ #
205
+ # @overload create_conversion_source(parent: nil, conversion_source: nil)
206
+ # Pass arguments to `create_conversion_source` via keyword arguments. Note that at
207
+ # least one keyword argument is required. To specify no parameters, or to keep all
208
+ # the default parameter values, pass an empty Hash as a request object (see above).
209
+ #
210
+ # @param parent [::String]
211
+ # Required. The merchant account that will own the new conversion source.
212
+ # Format: `accounts/{account}`
213
+ # @param conversion_source [::Google::Shopping::Merchant::Conversions::V1::ConversionSource, ::Hash]
214
+ # Required. The conversion source description. A new ID will be automatically
215
+ # assigned to it upon creation.
216
+ #
217
+ # @yield [response, operation] Access the result along with the RPC operation
218
+ # @yieldparam response [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
219
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
220
+ #
221
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
222
+ #
223
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/shopping/merchant/conversions/v1"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest.new
233
+ #
234
+ # # Call the create_conversion_source method.
235
+ # result = client.create_conversion_source request
236
+ #
237
+ # # The returned object is of type Google::Shopping::Merchant::Conversions::V1::ConversionSource.
238
+ # p result
239
+ #
240
+ def create_conversion_source request, options = nil
241
+ raise ::ArgumentError, "request must be provided" if request.nil?
242
+
243
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::CreateConversionSourceRequest
244
+
245
+ # Converts hash and nil to an options object
246
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
247
+
248
+ # Customize the options with defaults
249
+ metadata = @config.rpcs.create_conversion_source.metadata.to_h
250
+
251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
252
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
253
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
254
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
256
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
+
258
+ header_params = {}
259
+ if request.parent
260
+ header_params["parent"] = request.parent
261
+ end
262
+
263
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
264
+ metadata[:"x-goog-request-params"] ||= request_params_header
265
+
266
+ options.apply_defaults timeout: @config.rpcs.create_conversion_source.timeout,
267
+ metadata: metadata,
268
+ retry_policy: @config.rpcs.create_conversion_source.retry_policy
269
+
270
+ options.apply_defaults timeout: @config.timeout,
271
+ metadata: @config.metadata,
272
+ retry_policy: @config.retry_policy
273
+
274
+ @conversion_sources_service_stub.call_rpc :create_conversion_source, request, options: options do |response, operation|
275
+ yield response, operation if block_given?
276
+ end
277
+ rescue ::GRPC::BadStatus => e
278
+ raise ::Google::Cloud::Error.from_error(e)
279
+ end
280
+
281
+ ##
282
+ # Updates information of an existing conversion source. Available only for
283
+ # Merchant Center Destination conversion sources.
284
+ #
285
+ # @overload update_conversion_source(request, options = nil)
286
+ # Pass arguments to `update_conversion_source` via a request object, either of type
287
+ # {::Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest} or an equivalent Hash.
288
+ #
289
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest, ::Hash]
290
+ # A request object representing the call parameters. Required. To specify no
291
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
292
+ # @param options [::Gapic::CallOptions, ::Hash]
293
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
294
+ #
295
+ # @overload update_conversion_source(conversion_source: nil, update_mask: nil)
296
+ # Pass arguments to `update_conversion_source` via keyword arguments. Note that at
297
+ # least one keyword argument is required. To specify no parameters, or to keep all
298
+ # the default parameter values, pass an empty Hash as a request object (see above).
299
+ #
300
+ # @param conversion_source [::Google::Shopping::Merchant::Conversions::V1::ConversionSource, ::Hash]
301
+ # Required. The new version of the conversion source data.
302
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
303
+ # Optional. List of fields being updated.
304
+ #
305
+ # @yield [response, operation] Access the result along with the RPC operation
306
+ # @yieldparam response [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
307
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
308
+ #
309
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
310
+ #
311
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
312
+ #
313
+ # @example Basic example
314
+ # require "google/shopping/merchant/conversions/v1"
315
+ #
316
+ # # Create a client object. The client can be reused for multiple calls.
317
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
318
+ #
319
+ # # Create a request. To set request fields, pass in keyword arguments.
320
+ # request = Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest.new
321
+ #
322
+ # # Call the update_conversion_source method.
323
+ # result = client.update_conversion_source request
324
+ #
325
+ # # The returned object is of type Google::Shopping::Merchant::Conversions::V1::ConversionSource.
326
+ # p result
327
+ #
328
+ def update_conversion_source request, options = nil
329
+ raise ::ArgumentError, "request must be provided" if request.nil?
330
+
331
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::UpdateConversionSourceRequest
332
+
333
+ # Converts hash and nil to an options object
334
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
335
+
336
+ # Customize the options with defaults
337
+ metadata = @config.rpcs.update_conversion_source.metadata.to_h
338
+
339
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
340
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
341
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
342
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
343
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
+
346
+ header_params = {}
347
+ if request.conversion_source&.name
348
+ header_params["conversion_source.name"] = request.conversion_source.name
349
+ end
350
+
351
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
352
+ metadata[:"x-goog-request-params"] ||= request_params_header
353
+
354
+ options.apply_defaults timeout: @config.rpcs.update_conversion_source.timeout,
355
+ metadata: metadata,
356
+ retry_policy: @config.rpcs.update_conversion_source.retry_policy
357
+
358
+ options.apply_defaults timeout: @config.timeout,
359
+ metadata: @config.metadata,
360
+ retry_policy: @config.retry_policy
361
+
362
+ @conversion_sources_service_stub.call_rpc :update_conversion_source, request, options: options do |response, operation|
363
+ yield response, operation if block_given?
364
+ end
365
+ rescue ::GRPC::BadStatus => e
366
+ raise ::Google::Cloud::Error.from_error(e)
367
+ end
368
+
369
+ ##
370
+ # Archives an existing conversion source. If the conversion source is a
371
+ # Merchant Center Destination, it will be recoverable for 30 days. If the
372
+ # conversion source is a Google Analytics Link, it will be deleted
373
+ # immediately and can be restored by creating a new one.
374
+ #
375
+ # @overload delete_conversion_source(request, options = nil)
376
+ # Pass arguments to `delete_conversion_source` via a request object, either of type
377
+ # {::Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest} or an equivalent Hash.
378
+ #
379
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest, ::Hash]
380
+ # A request object representing the call parameters. Required. To specify no
381
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
382
+ # @param options [::Gapic::CallOptions, ::Hash]
383
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
384
+ #
385
+ # @overload delete_conversion_source(name: nil)
386
+ # Pass arguments to `delete_conversion_source` via keyword arguments. Note that at
387
+ # least one keyword argument is required. To specify no parameters, or to keep all
388
+ # the default parameter values, pass an empty Hash as a request object (see above).
389
+ #
390
+ # @param name [::String]
391
+ # Required. The name of the conversion source to be deleted.
392
+ # Format: `accounts/{account}/conversionSources/{conversion_source}`
393
+ #
394
+ # @yield [response, operation] Access the result along with the RPC operation
395
+ # @yieldparam response [::Google::Protobuf::Empty]
396
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
397
+ #
398
+ # @return [::Google::Protobuf::Empty]
399
+ #
400
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
401
+ #
402
+ # @example Basic example
403
+ # require "google/shopping/merchant/conversions/v1"
404
+ #
405
+ # # Create a client object. The client can be reused for multiple calls.
406
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
407
+ #
408
+ # # Create a request. To set request fields, pass in keyword arguments.
409
+ # request = Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest.new
410
+ #
411
+ # # Call the delete_conversion_source method.
412
+ # result = client.delete_conversion_source request
413
+ #
414
+ # # The returned object is of type Google::Protobuf::Empty.
415
+ # p result
416
+ #
417
+ def delete_conversion_source request, options = nil
418
+ raise ::ArgumentError, "request must be provided" if request.nil?
419
+
420
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::DeleteConversionSourceRequest
421
+
422
+ # Converts hash and nil to an options object
423
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
424
+
425
+ # Customize the options with defaults
426
+ metadata = @config.rpcs.delete_conversion_source.metadata.to_h
427
+
428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
429
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
430
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
431
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
432
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
433
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
434
+
435
+ header_params = {}
436
+ if request.name
437
+ header_params["name"] = request.name
438
+ end
439
+
440
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
441
+ metadata[:"x-goog-request-params"] ||= request_params_header
442
+
443
+ options.apply_defaults timeout: @config.rpcs.delete_conversion_source.timeout,
444
+ metadata: metadata,
445
+ retry_policy: @config.rpcs.delete_conversion_source.retry_policy
446
+
447
+ options.apply_defaults timeout: @config.timeout,
448
+ metadata: @config.metadata,
449
+ retry_policy: @config.retry_policy
450
+
451
+ @conversion_sources_service_stub.call_rpc :delete_conversion_source, request, options: options do |response, operation|
452
+ yield response, operation if block_given?
453
+ end
454
+ rescue ::GRPC::BadStatus => e
455
+ raise ::Google::Cloud::Error.from_error(e)
456
+ end
457
+
458
+ ##
459
+ # Re-enables an archived conversion source. Only Available for Merchant
460
+ # Center Destination conversion sources.
461
+ #
462
+ # @overload undelete_conversion_source(request, options = nil)
463
+ # Pass arguments to `undelete_conversion_source` via a request object, either of type
464
+ # {::Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest} or an equivalent Hash.
465
+ #
466
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest, ::Hash]
467
+ # A request object representing the call parameters. Required. To specify no
468
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
469
+ # @param options [::Gapic::CallOptions, ::Hash]
470
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
471
+ #
472
+ # @overload undelete_conversion_source(name: nil)
473
+ # Pass arguments to `undelete_conversion_source` via keyword arguments. Note that at
474
+ # least one keyword argument is required. To specify no parameters, or to keep all
475
+ # the default parameter values, pass an empty Hash as a request object (see above).
476
+ #
477
+ # @param name [::String]
478
+ # Required. The name of the conversion source to be undeleted.
479
+ # Format: `accounts/{account}/conversionSources/{conversion_source}`
480
+ #
481
+ # @yield [response, operation] Access the result along with the RPC operation
482
+ # @yieldparam response [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
483
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
484
+ #
485
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
486
+ #
487
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
488
+ #
489
+ # @example Basic example
490
+ # require "google/shopping/merchant/conversions/v1"
491
+ #
492
+ # # Create a client object. The client can be reused for multiple calls.
493
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
494
+ #
495
+ # # Create a request. To set request fields, pass in keyword arguments.
496
+ # request = Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest.new
497
+ #
498
+ # # Call the undelete_conversion_source method.
499
+ # result = client.undelete_conversion_source request
500
+ #
501
+ # # The returned object is of type Google::Shopping::Merchant::Conversions::V1::ConversionSource.
502
+ # p result
503
+ #
504
+ def undelete_conversion_source request, options = nil
505
+ raise ::ArgumentError, "request must be provided" if request.nil?
506
+
507
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::UndeleteConversionSourceRequest
508
+
509
+ # Converts hash and nil to an options object
510
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
511
+
512
+ # Customize the options with defaults
513
+ metadata = @config.rpcs.undelete_conversion_source.metadata.to_h
514
+
515
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
516
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
517
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
518
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
519
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
520
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
521
+
522
+ header_params = {}
523
+ if request.name
524
+ header_params["name"] = request.name
525
+ end
526
+
527
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
528
+ metadata[:"x-goog-request-params"] ||= request_params_header
529
+
530
+ options.apply_defaults timeout: @config.rpcs.undelete_conversion_source.timeout,
531
+ metadata: metadata,
532
+ retry_policy: @config.rpcs.undelete_conversion_source.retry_policy
533
+
534
+ options.apply_defaults timeout: @config.timeout,
535
+ metadata: @config.metadata,
536
+ retry_policy: @config.retry_policy
537
+
538
+ @conversion_sources_service_stub.call_rpc :undelete_conversion_source, request, options: options do |response, operation|
539
+ yield response, operation if block_given?
540
+ end
541
+ rescue ::GRPC::BadStatus => e
542
+ raise ::Google::Cloud::Error.from_error(e)
543
+ end
544
+
545
+ ##
546
+ # Fetches a conversion source.
547
+ #
548
+ # @overload get_conversion_source(request, options = nil)
549
+ # Pass arguments to `get_conversion_source` via a request object, either of type
550
+ # {::Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest} or an equivalent Hash.
551
+ #
552
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest, ::Hash]
553
+ # A request object representing the call parameters. Required. To specify no
554
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
555
+ # @param options [::Gapic::CallOptions, ::Hash]
556
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
557
+ #
558
+ # @overload get_conversion_source(name: nil)
559
+ # Pass arguments to `get_conversion_source` via keyword arguments. Note that at
560
+ # least one keyword argument is required. To specify no parameters, or to keep all
561
+ # the default parameter values, pass an empty Hash as a request object (see above).
562
+ #
563
+ # @param name [::String]
564
+ # Required. The name of the conversion source to be fetched.
565
+ # Format: `accounts/{account}/conversionSources/{conversion_source}`
566
+ #
567
+ # @yield [response, operation] Access the result along with the RPC operation
568
+ # @yieldparam response [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
569
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
570
+ #
571
+ # @return [::Google::Shopping::Merchant::Conversions::V1::ConversionSource]
572
+ #
573
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
574
+ #
575
+ # @example Basic example
576
+ # require "google/shopping/merchant/conversions/v1"
577
+ #
578
+ # # Create a client object. The client can be reused for multiple calls.
579
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
580
+ #
581
+ # # Create a request. To set request fields, pass in keyword arguments.
582
+ # request = Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest.new
583
+ #
584
+ # # Call the get_conversion_source method.
585
+ # result = client.get_conversion_source request
586
+ #
587
+ # # The returned object is of type Google::Shopping::Merchant::Conversions::V1::ConversionSource.
588
+ # p result
589
+ #
590
+ def get_conversion_source request, options = nil
591
+ raise ::ArgumentError, "request must be provided" if request.nil?
592
+
593
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::GetConversionSourceRequest
594
+
595
+ # Converts hash and nil to an options object
596
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
597
+
598
+ # Customize the options with defaults
599
+ metadata = @config.rpcs.get_conversion_source.metadata.to_h
600
+
601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
602
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
603
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
604
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
605
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
606
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
607
+
608
+ header_params = {}
609
+ if request.name
610
+ header_params["name"] = request.name
611
+ end
612
+
613
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
614
+ metadata[:"x-goog-request-params"] ||= request_params_header
615
+
616
+ options.apply_defaults timeout: @config.rpcs.get_conversion_source.timeout,
617
+ metadata: metadata,
618
+ retry_policy: @config.rpcs.get_conversion_source.retry_policy
619
+
620
+ options.apply_defaults timeout: @config.timeout,
621
+ metadata: @config.metadata,
622
+ retry_policy: @config.retry_policy
623
+
624
+ @conversion_sources_service_stub.call_rpc :get_conversion_source, request, options: options do |response, operation|
625
+ yield response, operation if block_given?
626
+ end
627
+ rescue ::GRPC::BadStatus => e
628
+ raise ::Google::Cloud::Error.from_error(e)
629
+ end
630
+
631
+ ##
632
+ # Retrieves the list of conversion sources the caller has access to.
633
+ #
634
+ # @overload list_conversion_sources(request, options = nil)
635
+ # Pass arguments to `list_conversion_sources` via a request object, either of type
636
+ # {::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest} or an equivalent Hash.
637
+ #
638
+ # @param request [::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest, ::Hash]
639
+ # A request object representing the call parameters. Required. To specify no
640
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
641
+ # @param options [::Gapic::CallOptions, ::Hash]
642
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
643
+ #
644
+ # @overload list_conversion_sources(parent: nil, page_size: nil, page_token: nil, show_deleted: nil)
645
+ # Pass arguments to `list_conversion_sources` via keyword arguments. Note that at
646
+ # least one keyword argument is required. To specify no parameters, or to keep all
647
+ # the default parameter values, pass an empty Hash as a request object (see above).
648
+ #
649
+ # @param parent [::String]
650
+ # Required. The merchant account who owns the collection of conversion
651
+ # sources. Format: `accounts/{account}`
652
+ # @param page_size [::Integer]
653
+ # Optional. The maximum number of conversion sources to return in a page.
654
+ # If no `page_size` is specified, `100` is used as the default value. The
655
+ # maximum value is `200`. Values above `200` will be coerced to `200`.
656
+ # Regardless of pagination, at most `200` conversion sources are returned
657
+ # in total.
658
+ # @param page_token [::String]
659
+ # Optional. Page token.
660
+ # @param show_deleted [::Boolean]
661
+ # Optional. Show deleted (archived) conversion sources. By default, deleted
662
+ # conversion sources are not returned.
663
+ #
664
+ # @yield [response, operation] Access the result along with the RPC operation
665
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Shopping::Merchant::Conversions::V1::ConversionSource>]
666
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
667
+ #
668
+ # @return [::Gapic::PagedEnumerable<::Google::Shopping::Merchant::Conversions::V1::ConversionSource>]
669
+ #
670
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
671
+ #
672
+ # @example Basic example
673
+ # require "google/shopping/merchant/conversions/v1"
674
+ #
675
+ # # Create a client object. The client can be reused for multiple calls.
676
+ # client = Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new
677
+ #
678
+ # # Create a request. To set request fields, pass in keyword arguments.
679
+ # request = Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest.new
680
+ #
681
+ # # Call the list_conversion_sources method.
682
+ # result = client.list_conversion_sources request
683
+ #
684
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
685
+ # # over elements, and API calls will be issued to fetch pages as needed.
686
+ # result.each do |item|
687
+ # # Each element is of type ::Google::Shopping::Merchant::Conversions::V1::ConversionSource.
688
+ # p item
689
+ # end
690
+ #
691
+ def list_conversion_sources request, options = nil
692
+ raise ::ArgumentError, "request must be provided" if request.nil?
693
+
694
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Conversions::V1::ListConversionSourcesRequest
695
+
696
+ # Converts hash and nil to an options object
697
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
698
+
699
+ # Customize the options with defaults
700
+ metadata = @config.rpcs.list_conversion_sources.metadata.to_h
701
+
702
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
703
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
704
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
705
+ gapic_version: ::Google::Shopping::Merchant::Conversions::V1::VERSION
706
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
707
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
708
+
709
+ header_params = {}
710
+ if request.parent
711
+ header_params["parent"] = request.parent
712
+ end
713
+
714
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
715
+ metadata[:"x-goog-request-params"] ||= request_params_header
716
+
717
+ options.apply_defaults timeout: @config.rpcs.list_conversion_sources.timeout,
718
+ metadata: metadata,
719
+ retry_policy: @config.rpcs.list_conversion_sources.retry_policy
720
+
721
+ options.apply_defaults timeout: @config.timeout,
722
+ metadata: @config.metadata,
723
+ retry_policy: @config.retry_policy
724
+
725
+ @conversion_sources_service_stub.call_rpc :list_conversion_sources, request, options: options do |response, operation|
726
+ response = ::Gapic::PagedEnumerable.new @conversion_sources_service_stub, :list_conversion_sources, request, response, operation, options
727
+ yield response, operation if block_given?
728
+ throw :response, response
729
+ end
730
+ rescue ::GRPC::BadStatus => e
731
+ raise ::Google::Cloud::Error.from_error(e)
732
+ end
733
+
734
+ ##
735
+ # Configuration class for the ConversionSourcesService API.
736
+ #
737
+ # This class represents the configuration for ConversionSourcesService,
738
+ # providing control over timeouts, retry behavior, logging, transport
739
+ # parameters, and other low-level controls. Certain parameters can also be
740
+ # applied individually to specific RPCs. See
741
+ # {::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client::Configuration::Rpcs}
742
+ # for a list of RPCs that can be configured independently.
743
+ #
744
+ # Configuration can be applied globally to all clients, or to a single client
745
+ # on construction.
746
+ #
747
+ # @example
748
+ #
749
+ # # Modify the global config, setting the timeout for
750
+ # # create_conversion_source to 20 seconds,
751
+ # # and all remaining timeouts to 10 seconds.
752
+ # ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.configure do |config|
753
+ # config.timeout = 10.0
754
+ # config.rpcs.create_conversion_source.timeout = 20.0
755
+ # end
756
+ #
757
+ # # Apply the above configuration only to a new client.
758
+ # client = ::Google::Shopping::Merchant::Conversions::V1::ConversionSourcesService::Client.new do |config|
759
+ # config.timeout = 10.0
760
+ # config.rpcs.create_conversion_source.timeout = 20.0
761
+ # end
762
+ #
763
+ # @!attribute [rw] endpoint
764
+ # A custom service endpoint, as a hostname or hostname:port. The default is
765
+ # nil, indicating to use the default endpoint in the current universe domain.
766
+ # @return [::String,nil]
767
+ # @!attribute [rw] credentials
768
+ # Credentials to send with calls. You may provide any of the following types:
769
+ # * (`String`) The path to a service account key file in JSON format
770
+ # * (`Hash`) A service account key as a Hash
771
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
772
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
773
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
774
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
775
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
776
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
777
+ # * (`nil`) indicating no credentials
778
+ #
779
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
780
+ # external source for authentication to Google Cloud, you must validate it before
781
+ # providing it to a Google API client library. Providing an unvalidated credential
782
+ # configuration to Google APIs can compromise the security of your systems and data.
783
+ # For more information, refer to [Validate credential configurations from external
784
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
785
+ # @return [::Object]
786
+ # @!attribute [rw] scope
787
+ # The OAuth scopes
788
+ # @return [::Array<::String>]
789
+ # @!attribute [rw] lib_name
790
+ # The library name as recorded in instrumentation and logging
791
+ # @return [::String]
792
+ # @!attribute [rw] lib_version
793
+ # The library version as recorded in instrumentation and logging
794
+ # @return [::String]
795
+ # @!attribute [rw] channel_args
796
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
797
+ # `GRPC::Core::Channel` object is provided as the credential.
798
+ # @return [::Hash]
799
+ # @!attribute [rw] interceptors
800
+ # An array of interceptors that are run before calls are executed.
801
+ # @return [::Array<::GRPC::ClientInterceptor>]
802
+ # @!attribute [rw] timeout
803
+ # The call timeout in seconds.
804
+ # @return [::Numeric]
805
+ # @!attribute [rw] metadata
806
+ # Additional gRPC headers to be sent with the call.
807
+ # @return [::Hash{::Symbol=>::String}]
808
+ # @!attribute [rw] retry_policy
809
+ # The retry policy. The value is a hash with the following keys:
810
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
811
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
812
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
813
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
814
+ # trigger a retry.
815
+ # @return [::Hash]
816
+ # @!attribute [rw] quota_project
817
+ # A separate project against which to charge quota.
818
+ # @return [::String]
819
+ # @!attribute [rw] universe_domain
820
+ # The universe domain within which to make requests. This determines the
821
+ # default endpoint URL. The default value of nil uses the environment
822
+ # universe (usually the default "googleapis.com" universe).
823
+ # @return [::String,nil]
824
+ # @!attribute [rw] logger
825
+ # A custom logger to use for request/response debug logging, or the value
826
+ # `:default` (the default) to construct a default logger, or `nil` to
827
+ # explicitly disable logging.
828
+ # @return [::Logger,:default,nil]
829
+ #
830
+ class Configuration
831
+ extend ::Gapic::Config
832
+
833
+ # @private
834
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
835
+ DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
836
+
837
+ config_attr :endpoint, nil, ::String, nil
838
+ config_attr :credentials, nil do |value|
839
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
840
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
841
+ allowed.any? { |klass| klass === value }
842
+ end
843
+ config_attr :scope, nil, ::String, ::Array, nil
844
+ config_attr :lib_name, nil, ::String, nil
845
+ config_attr :lib_version, nil, ::String, nil
846
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
847
+ config_attr :interceptors, nil, ::Array, nil
848
+ config_attr :timeout, nil, ::Numeric, nil
849
+ config_attr :metadata, nil, ::Hash, nil
850
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
851
+ config_attr :quota_project, nil, ::String, nil
852
+ config_attr :universe_domain, nil, ::String, nil
853
+ config_attr :logger, :default, ::Logger, nil, :default
854
+
855
+ # @private
856
+ def initialize parent_config = nil
857
+ @parent_config = parent_config unless parent_config.nil?
858
+
859
+ yield self if block_given?
860
+ end
861
+
862
+ ##
863
+ # Configurations for individual RPCs
864
+ # @return [Rpcs]
865
+ #
866
+ def rpcs
867
+ @rpcs ||= begin
868
+ parent_rpcs = nil
869
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
870
+ Rpcs.new parent_rpcs
871
+ end
872
+ end
873
+
874
+ ##
875
+ # Configuration for the channel pool
876
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
877
+ #
878
+ def channel_pool
879
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
880
+ end
881
+
882
+ ##
883
+ # Configuration RPC class for the ConversionSourcesService API.
884
+ #
885
+ # Includes fields providing the configuration for each RPC in this service.
886
+ # Each configuration object is of type `Gapic::Config::Method` and includes
887
+ # the following configuration fields:
888
+ #
889
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
890
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
891
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
892
+ # include the following keys:
893
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
894
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
895
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
896
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
897
+ # trigger a retry.
898
+ #
899
+ class Rpcs
900
+ ##
901
+ # RPC-specific configuration for `create_conversion_source`
902
+ # @return [::Gapic::Config::Method]
903
+ #
904
+ attr_reader :create_conversion_source
905
+ ##
906
+ # RPC-specific configuration for `update_conversion_source`
907
+ # @return [::Gapic::Config::Method]
908
+ #
909
+ attr_reader :update_conversion_source
910
+ ##
911
+ # RPC-specific configuration for `delete_conversion_source`
912
+ # @return [::Gapic::Config::Method]
913
+ #
914
+ attr_reader :delete_conversion_source
915
+ ##
916
+ # RPC-specific configuration for `undelete_conversion_source`
917
+ # @return [::Gapic::Config::Method]
918
+ #
919
+ attr_reader :undelete_conversion_source
920
+ ##
921
+ # RPC-specific configuration for `get_conversion_source`
922
+ # @return [::Gapic::Config::Method]
923
+ #
924
+ attr_reader :get_conversion_source
925
+ ##
926
+ # RPC-specific configuration for `list_conversion_sources`
927
+ # @return [::Gapic::Config::Method]
928
+ #
929
+ attr_reader :list_conversion_sources
930
+
931
+ # @private
932
+ def initialize parent_rpcs = nil
933
+ create_conversion_source_config = parent_rpcs.create_conversion_source if parent_rpcs.respond_to? :create_conversion_source
934
+ @create_conversion_source = ::Gapic::Config::Method.new create_conversion_source_config
935
+ update_conversion_source_config = parent_rpcs.update_conversion_source if parent_rpcs.respond_to? :update_conversion_source
936
+ @update_conversion_source = ::Gapic::Config::Method.new update_conversion_source_config
937
+ delete_conversion_source_config = parent_rpcs.delete_conversion_source if parent_rpcs.respond_to? :delete_conversion_source
938
+ @delete_conversion_source = ::Gapic::Config::Method.new delete_conversion_source_config
939
+ undelete_conversion_source_config = parent_rpcs.undelete_conversion_source if parent_rpcs.respond_to? :undelete_conversion_source
940
+ @undelete_conversion_source = ::Gapic::Config::Method.new undelete_conversion_source_config
941
+ get_conversion_source_config = parent_rpcs.get_conversion_source if parent_rpcs.respond_to? :get_conversion_source
942
+ @get_conversion_source = ::Gapic::Config::Method.new get_conversion_source_config
943
+ list_conversion_sources_config = parent_rpcs.list_conversion_sources if parent_rpcs.respond_to? :list_conversion_sources
944
+ @list_conversion_sources = ::Gapic::Config::Method.new list_conversion_sources_config
945
+
946
+ yield self if block_given?
947
+ end
948
+ end
949
+ end
950
+ end
951
+ end
952
+ end
953
+ end
954
+ end
955
+ end
956
+ end