google-shopping-merchant-issue_resolution-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 (36) 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/issue_resolution/v1/aggregate_product_statuses_service/client.rb +491 -0
  6. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service/paths.rb +49 -0
  8. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service/rest/client.rb +458 -0
  9. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service/rest/service_stub.rb +144 -0
  10. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service/rest.rb +54 -0
  11. data/lib/google/shopping/merchant/issue_resolution/v1/aggregate_product_statuses_service.rb +57 -0
  12. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/client.rb +692 -0
  13. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/credentials.rb +49 -0
  14. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/paths.rb +66 -0
  15. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/rest/client.rb +645 -0
  16. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/rest/service_stub.rb +269 -0
  17. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service/rest.rb +55 -0
  18. data/lib/google/shopping/merchant/issue_resolution/v1/issue_resolution_service.rb +58 -0
  19. data/lib/google/shopping/merchant/issue_resolution/v1/rest.rb +40 -0
  20. data/lib/google/shopping/merchant/issue_resolution/v1/version.rb +7 -2
  21. data/lib/google/shopping/merchant/issue_resolution/v1.rb +48 -0
  22. data/lib/google/shopping/merchant/issueresolution/v1/aggregateproductstatuses_pb.rb +56 -0
  23. data/lib/google/shopping/merchant/issueresolution/v1/aggregateproductstatuses_services_pb.rb +50 -0
  24. data/lib/google/shopping/merchant/issueresolution/v1/issueresolution_pb.rb +87 -0
  25. data/lib/google/shopping/merchant/issueresolution/v1/issueresolution_services_pb.rb +66 -0
  26. data/lib/google-shopping-merchant-issue_resolution-v1.rb +21 -0
  27. data/proto_docs/README.md +4 -0
  28. data/proto_docs/google/api/client.rb +473 -0
  29. data/proto_docs/google/api/field_behavior.rb +85 -0
  30. data/proto_docs/google/api/launch_stage.rb +71 -0
  31. data/proto_docs/google/api/resource.rb +227 -0
  32. data/proto_docs/google/protobuf/duration.rb +98 -0
  33. data/proto_docs/google/shopping/merchant/issueresolution/v1/aggregateproductstatuses.rb +173 -0
  34. data/proto_docs/google/shopping/merchant/issueresolution/v1/issueresolution.rb +952 -0
  35. data/proto_docs/google/shopping/type/types.rb +210 -0
  36. metadata +94 -9
@@ -0,0 +1,491 @@
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/issueresolution/v1/aggregateproductstatuses_pb"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module IssueResolution
26
+ module V1
27
+ module AggregateProductStatusesService
28
+ ##
29
+ # Client for the AggregateProductStatusesService service.
30
+ #
31
+ # Service to manage aggregate product statuses.
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 :aggregate_product_statuses_service_stub
44
+
45
+ ##
46
+ # Configure the AggregateProductStatusesService Client class.
47
+ #
48
+ # See {::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all AggregateProductStatusesService clients
54
+ # ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::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", "IssueResolution", "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 AggregateProductStatusesService 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::IssueResolution::V1::AggregateProductStatusesService::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
+ @aggregate_product_statuses_service_stub.universe_domain
112
+ end
113
+
114
+ ##
115
+ # Create a new AggregateProductStatusesService client object.
116
+ #
117
+ # @example
118
+ #
119
+ # # Create a client using the default configuration
120
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client.new
121
+ #
122
+ # # Create a client using a custom configuration
123
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client.new do |config|
124
+ # config.timeout = 10.0
125
+ # end
126
+ #
127
+ # @yield [config] Configure the AggregateProductStatusesService 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/issueresolution/v1/aggregateproductstatuses_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
+ @aggregate_product_statuses_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::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
+ @aggregate_product_statuses_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
+ @aggregate_product_statuses_service_stub.logger
188
+ end
189
+
190
+ # Service calls
191
+
192
+ ##
193
+ # Lists the `AggregateProductStatuses` resources for your merchant account.
194
+ # The response might contain fewer items than specified by `pageSize`.
195
+ # If `pageToken` was returned in previous request, it can be used to obtain
196
+ # additional results.
197
+ #
198
+ # @overload list_aggregate_product_statuses(request, options = nil)
199
+ # Pass arguments to `list_aggregate_product_statuses` via a request object, either of type
200
+ # {::Google::Shopping::Merchant::IssueResolution::V1::ListAggregateProductStatusesRequest} or an equivalent Hash.
201
+ #
202
+ # @param request [::Google::Shopping::Merchant::IssueResolution::V1::ListAggregateProductStatusesRequest, ::Hash]
203
+ # A request object representing the call parameters. Required. To specify no
204
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
205
+ # @param options [::Gapic::CallOptions, ::Hash]
206
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
207
+ #
208
+ # @overload list_aggregate_product_statuses(parent: nil, page_size: nil, page_token: nil, filter: nil)
209
+ # Pass arguments to `list_aggregate_product_statuses` via keyword arguments. Note that at
210
+ # least one keyword argument is required. To specify no parameters, or to keep all
211
+ # the default parameter values, pass an empty Hash as a request object (see above).
212
+ #
213
+ # @param parent [::String]
214
+ # Required. The account to list aggregate product statuses for.
215
+ # Format: `accounts/{account}`
216
+ # @param page_size [::Integer]
217
+ # Optional. The maximum number of aggregate product statuses to return. The
218
+ # service may return fewer than this value. If unspecified, at most 25
219
+ # aggregate product statuses are returned. The maximum value is 250; values
220
+ # above 250 are coerced to 250.
221
+ # @param page_token [::String]
222
+ # Optional. A page token, received from a previous
223
+ # `ListAggregateProductStatuses` call. Provide this to retrieve the
224
+ # subsequent page.
225
+ #
226
+ # When paginating, all other parameters provided to
227
+ # `ListAggregateProductStatuses` must match the call that provided the page
228
+ # token.
229
+ # @param filter [::String]
230
+ # Optional. A filter expression that filters the aggregate product statuses.
231
+ # Filtering is only supported by the `reporting_context` and `country` field.
232
+ # For example: `reporting_context = "SHOPPING_ADS" AND country = "US"`.
233
+ #
234
+ # @yield [response, operation] Access the result along with the RPC operation
235
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatus>]
236
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
237
+ #
238
+ # @return [::Gapic::PagedEnumerable<::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatus>]
239
+ #
240
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
241
+ #
242
+ # @example Basic example
243
+ # require "google/shopping/merchant/issue_resolution/v1"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Shopping::Merchant::IssueResolution::V1::ListAggregateProductStatusesRequest.new
250
+ #
251
+ # # Call the list_aggregate_product_statuses method.
252
+ # result = client.list_aggregate_product_statuses request
253
+ #
254
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
255
+ # # over elements, and API calls will be issued to fetch pages as needed.
256
+ # result.each do |item|
257
+ # # Each element is of type ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatus.
258
+ # p item
259
+ # end
260
+ #
261
+ def list_aggregate_product_statuses request, options = nil
262
+ raise ::ArgumentError, "request must be provided" if request.nil?
263
+
264
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::IssueResolution::V1::ListAggregateProductStatusesRequest
265
+
266
+ # Converts hash and nil to an options object
267
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
268
+
269
+ # Customize the options with defaults
270
+ metadata = @config.rpcs.list_aggregate_product_statuses.metadata.to_h
271
+
272
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
275
+ gapic_version: ::Google::Shopping::Merchant::IssueResolution::V1::VERSION
276
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
+
279
+ header_params = {}
280
+ if request.parent
281
+ header_params["parent"] = request.parent
282
+ end
283
+
284
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
285
+ metadata[:"x-goog-request-params"] ||= request_params_header
286
+
287
+ options.apply_defaults timeout: @config.rpcs.list_aggregate_product_statuses.timeout,
288
+ metadata: metadata,
289
+ retry_policy: @config.rpcs.list_aggregate_product_statuses.retry_policy
290
+
291
+ options.apply_defaults timeout: @config.timeout,
292
+ metadata: @config.metadata,
293
+ retry_policy: @config.retry_policy
294
+
295
+ @aggregate_product_statuses_service_stub.call_rpc :list_aggregate_product_statuses, request, options: options do |response, operation|
296
+ response = ::Gapic::PagedEnumerable.new @aggregate_product_statuses_service_stub, :list_aggregate_product_statuses, request, response, operation, options
297
+ yield response, operation if block_given?
298
+ throw :response, response
299
+ end
300
+ rescue ::GRPC::BadStatus => e
301
+ raise ::Google::Cloud::Error.from_error(e)
302
+ end
303
+
304
+ ##
305
+ # Configuration class for the AggregateProductStatusesService API.
306
+ #
307
+ # This class represents the configuration for AggregateProductStatusesService,
308
+ # providing control over timeouts, retry behavior, logging, transport
309
+ # parameters, and other low-level controls. Certain parameters can also be
310
+ # applied individually to specific RPCs. See
311
+ # {::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client::Configuration::Rpcs}
312
+ # for a list of RPCs that can be configured independently.
313
+ #
314
+ # Configuration can be applied globally to all clients, or to a single client
315
+ # on construction.
316
+ #
317
+ # @example
318
+ #
319
+ # # Modify the global config, setting the timeout for
320
+ # # list_aggregate_product_statuses to 20 seconds,
321
+ # # and all remaining timeouts to 10 seconds.
322
+ # ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client.configure do |config|
323
+ # config.timeout = 10.0
324
+ # config.rpcs.list_aggregate_product_statuses.timeout = 20.0
325
+ # end
326
+ #
327
+ # # Apply the above configuration only to a new client.
328
+ # client = ::Google::Shopping::Merchant::IssueResolution::V1::AggregateProductStatusesService::Client.new do |config|
329
+ # config.timeout = 10.0
330
+ # config.rpcs.list_aggregate_product_statuses.timeout = 20.0
331
+ # end
332
+ #
333
+ # @!attribute [rw] endpoint
334
+ # A custom service endpoint, as a hostname or hostname:port. The default is
335
+ # nil, indicating to use the default endpoint in the current universe domain.
336
+ # @return [::String,nil]
337
+ # @!attribute [rw] credentials
338
+ # Credentials to send with calls. You may provide any of the following types:
339
+ # * (`String`) The path to a service account key file in JSON format
340
+ # * (`Hash`) A service account key as a Hash
341
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
342
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
343
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
344
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
345
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
346
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
347
+ # * (`nil`) indicating no credentials
348
+ #
349
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
350
+ # external source for authentication to Google Cloud, you must validate it before
351
+ # providing it to a Google API client library. Providing an unvalidated credential
352
+ # configuration to Google APIs can compromise the security of your systems and data.
353
+ # For more information, refer to [Validate credential configurations from external
354
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
355
+ # @return [::Object]
356
+ # @!attribute [rw] scope
357
+ # The OAuth scopes
358
+ # @return [::Array<::String>]
359
+ # @!attribute [rw] lib_name
360
+ # The library name as recorded in instrumentation and logging
361
+ # @return [::String]
362
+ # @!attribute [rw] lib_version
363
+ # The library version as recorded in instrumentation and logging
364
+ # @return [::String]
365
+ # @!attribute [rw] channel_args
366
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
367
+ # `GRPC::Core::Channel` object is provided as the credential.
368
+ # @return [::Hash]
369
+ # @!attribute [rw] interceptors
370
+ # An array of interceptors that are run before calls are executed.
371
+ # @return [::Array<::GRPC::ClientInterceptor>]
372
+ # @!attribute [rw] timeout
373
+ # The call timeout in seconds.
374
+ # @return [::Numeric]
375
+ # @!attribute [rw] metadata
376
+ # Additional gRPC headers to be sent with the call.
377
+ # @return [::Hash{::Symbol=>::String}]
378
+ # @!attribute [rw] retry_policy
379
+ # The retry policy. The value is a hash with the following keys:
380
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
381
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
382
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
383
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
384
+ # trigger a retry.
385
+ # @return [::Hash]
386
+ # @!attribute [rw] quota_project
387
+ # A separate project against which to charge quota.
388
+ # @return [::String]
389
+ # @!attribute [rw] universe_domain
390
+ # The universe domain within which to make requests. This determines the
391
+ # default endpoint URL. The default value of nil uses the environment
392
+ # universe (usually the default "googleapis.com" universe).
393
+ # @return [::String,nil]
394
+ # @!attribute [rw] logger
395
+ # A custom logger to use for request/response debug logging, or the value
396
+ # `:default` (the default) to construct a default logger, or `nil` to
397
+ # explicitly disable logging.
398
+ # @return [::Logger,:default,nil]
399
+ #
400
+ class Configuration
401
+ extend ::Gapic::Config
402
+
403
+ # @private
404
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
405
+ DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
406
+
407
+ config_attr :endpoint, nil, ::String, nil
408
+ config_attr :credentials, nil do |value|
409
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
410
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
411
+ allowed.any? { |klass| klass === value }
412
+ end
413
+ config_attr :scope, nil, ::String, ::Array, nil
414
+ config_attr :lib_name, nil, ::String, nil
415
+ config_attr :lib_version, nil, ::String, nil
416
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
417
+ config_attr :interceptors, nil, ::Array, nil
418
+ config_attr :timeout, nil, ::Numeric, nil
419
+ config_attr :metadata, nil, ::Hash, nil
420
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
421
+ config_attr :quota_project, nil, ::String, nil
422
+ config_attr :universe_domain, nil, ::String, nil
423
+ config_attr :logger, :default, ::Logger, nil, :default
424
+
425
+ # @private
426
+ def initialize parent_config = nil
427
+ @parent_config = parent_config unless parent_config.nil?
428
+
429
+ yield self if block_given?
430
+ end
431
+
432
+ ##
433
+ # Configurations for individual RPCs
434
+ # @return [Rpcs]
435
+ #
436
+ def rpcs
437
+ @rpcs ||= begin
438
+ parent_rpcs = nil
439
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
440
+ Rpcs.new parent_rpcs
441
+ end
442
+ end
443
+
444
+ ##
445
+ # Configuration for the channel pool
446
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
447
+ #
448
+ def channel_pool
449
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
450
+ end
451
+
452
+ ##
453
+ # Configuration RPC class for the AggregateProductStatusesService API.
454
+ #
455
+ # Includes fields providing the configuration for each RPC in this service.
456
+ # Each configuration object is of type `Gapic::Config::Method` and includes
457
+ # the following configuration fields:
458
+ #
459
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
460
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
461
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
462
+ # include the following keys:
463
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
464
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
465
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
466
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
467
+ # trigger a retry.
468
+ #
469
+ class Rpcs
470
+ ##
471
+ # RPC-specific configuration for `list_aggregate_product_statuses`
472
+ # @return [::Gapic::Config::Method]
473
+ #
474
+ attr_reader :list_aggregate_product_statuses
475
+
476
+ # @private
477
+ def initialize parent_rpcs = nil
478
+ list_aggregate_product_statuses_config = parent_rpcs.list_aggregate_product_statuses if parent_rpcs.respond_to? :list_aggregate_product_statuses
479
+ @list_aggregate_product_statuses = ::Gapic::Config::Method.new list_aggregate_product_statuses_config
480
+
481
+ yield self if block_given?
482
+ end
483
+ end
484
+ end
485
+ end
486
+ end
487
+ end
488
+ end
489
+ end
490
+ end
491
+ end
@@ -0,0 +1,49 @@
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 "googleauth"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module IssueResolution
25
+ module V1
26
+ module AggregateProductStatusesService
27
+ # Credentials for the AggregateProductStatusesService API.
28
+ class Credentials < ::Google::Auth::Credentials
29
+ self.scope = [
30
+ "https://www.googleapis.com/auth/content"
31
+ ]
32
+ self.env_vars = [
33
+ "GOOGLE_CLOUD_CREDENTIALS",
34
+ "GOOGLE_CLOUD_KEYFILE",
35
+ "GCLOUD_KEYFILE",
36
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
37
+ "GOOGLE_CLOUD_KEYFILE_JSON",
38
+ "GCLOUD_KEYFILE_JSON"
39
+ ]
40
+ self.paths = [
41
+ "~/.config/google_cloud/application_default_credentials.json"
42
+ ]
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,49 @@
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
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module IssueResolution
24
+ module V1
25
+ module AggregateProductStatusesService
26
+ # Path helper methods for the AggregateProductStatusesService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified Account resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `accounts/{account}`
34
+ #
35
+ # @param account [String]
36
+ #
37
+ # @return [::String]
38
+ def account_path account:
39
+ "accounts/#{account}"
40
+ end
41
+
42
+ extend self
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end