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