google-shopping-merchant-data_sources-v1beta 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 982569be8e2b66cdadf66091200708f8e5bb42a620ed4830d742b2f54b9a55d6
4
- data.tar.gz: bf47e009928ce648fa8518eb9e00c2d41fc6490a1f39b5d010de33c034a59b55
3
+ metadata.gz: 17b8871c76cb766c6cf94eff0c362e0e07660f8fe0d8dcb8756166e4512b6e31
4
+ data.tar.gz: c8362cc35dbbd9aaa002f482ecd075731fef3c1ba2bf83e87228d3e0bc9a294f
5
5
  SHA512:
6
- metadata.gz: 21b399032b9eb2c89bbcf972b0d607e16be241143540622c74668411489c56223fa8f69e72ca2b6d924b353282f23cd475552c1ee95ba7f23b388752ca6c29a0
7
- data.tar.gz: '04988d4697673f630a7957f76b68a9532f8959330e72e7ba040528c43b4d8b847b9be29a0d1f89729b6cdde0ba86ede12d5f98fd91e4388c7f28013e52646c44'
6
+ metadata.gz: 9e6f42b44455f4b9309d81d7c7b7c814843620143cc81b0e43edb35a35b21db33bdd1639803b1a1f44510127a41e4e3fadc300fb21a4d188438b71151a0581ff
7
+ data.tar.gz: b8301866b928f8da97bcc20ed31d3f60b8cac6a500492d5ccf92af43146acb6892fc6919b9ad2bd312b01f7eae667f762a3b3661061e886f5e056c583b54b6bf
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Ruby Client for the Merchant V1BETA API
2
2
 
3
- Programmatically manage your Merchant Center accounts.
3
+ Programmatically manage your Merchant Center Accounts.
4
4
 
5
+ Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables you to programmatically manage your accounts. Conversions Sub-API: Enables you to programmatically manage your conversion sources for a merchant account. Datasources Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API: This bundle enables you to programmatically manage your local and regional inventories. Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically manage your notification subscriptions. Products Sub-API: This bundle enables you to programmatically manage your products. Promotions Sub-API: This bundle enables you to programmatically manage your promotions for products. Quota Sub-API: This bundle enables you to list your quotas for all APIs you are using. Reports Sub-API: This bundle enables you to programmatically retrieve reports and insights about products, their performance and their competitive environment.
5
6
 
6
7
  https://github.com/googleapis/google-cloud-ruby
7
8
 
@@ -0,0 +1,435 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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/datasources/v1beta/fileuploads_pb"
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module DataSources
26
+ module V1beta
27
+ module FileUploadsService
28
+ ##
29
+ # Client for the FileUploadsService service.
30
+ #
31
+ # Service to manage data source file uploads.
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 :file_uploads_service_stub
44
+
45
+ ##
46
+ # Configure the FileUploadsService Client class.
47
+ #
48
+ # See {::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client::Configuration}
49
+ # for a description of the configuration fields.
50
+ #
51
+ # @example
52
+ #
53
+ # # Modify the configuration for all FileUploadsService clients
54
+ # ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::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", "DataSources", "V1beta"]
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 FileUploadsService 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::DataSources::V1beta::FileUploadsService::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
+ @file_uploads_service_stub.universe_domain
112
+ end
113
+
114
+ ##
115
+ # Create a new FileUploadsService client object.
116
+ #
117
+ # @example
118
+ #
119
+ # # Create a client using the default configuration
120
+ # client = ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client.new
121
+ #
122
+ # # Create a client using a custom configuration
123
+ # client = ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client.new do |config|
124
+ # config.timeout = 10.0
125
+ # end
126
+ #
127
+ # @yield [config] Configure the FileUploadsService 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/datasources/v1beta/fileuploads_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
+ @file_uploads_service_stub = ::Gapic::ServiceStub.new(
159
+ ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::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
+ )
168
+ end
169
+
170
+ # Service calls
171
+
172
+ ##
173
+ # Gets the latest data source file upload. Only the `latest` alias is
174
+ # accepted for a file upload.
175
+ #
176
+ # @overload get_file_upload(request, options = nil)
177
+ # Pass arguments to `get_file_upload` via a request object, either of type
178
+ # {::Google::Shopping::Merchant::DataSources::V1beta::GetFileUploadRequest} or an equivalent Hash.
179
+ #
180
+ # @param request [::Google::Shopping::Merchant::DataSources::V1beta::GetFileUploadRequest, ::Hash]
181
+ # A request object representing the call parameters. Required. To specify no
182
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
183
+ # @param options [::Gapic::CallOptions, ::Hash]
184
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
185
+ #
186
+ # @overload get_file_upload(name: nil)
187
+ # Pass arguments to `get_file_upload` via keyword arguments. Note that at
188
+ # least one keyword argument is required. To specify no parameters, or to keep all
189
+ # the default parameter values, pass an empty Hash as a request object (see above).
190
+ #
191
+ # @param name [::String]
192
+ # Required. The name of the data source file upload to retrieve.
193
+ # Format:
194
+ # `accounts/{account}/dataSources/{datasource}/fileUploads/latest`
195
+ #
196
+ # @yield [response, operation] Access the result along with the RPC operation
197
+ # @yieldparam response [::Google::Shopping::Merchant::DataSources::V1beta::FileUpload]
198
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
199
+ #
200
+ # @return [::Google::Shopping::Merchant::DataSources::V1beta::FileUpload]
201
+ #
202
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
203
+ #
204
+ # @example Basic example
205
+ # require "google/shopping/merchant/data_sources/v1beta"
206
+ #
207
+ # # Create a client object. The client can be reused for multiple calls.
208
+ # client = Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client.new
209
+ #
210
+ # # Create a request. To set request fields, pass in keyword arguments.
211
+ # request = Google::Shopping::Merchant::DataSources::V1beta::GetFileUploadRequest.new
212
+ #
213
+ # # Call the get_file_upload method.
214
+ # result = client.get_file_upload request
215
+ #
216
+ # # The returned object is of type Google::Shopping::Merchant::DataSources::V1beta::FileUpload.
217
+ # p result
218
+ #
219
+ def get_file_upload request, options = nil
220
+ raise ::ArgumentError, "request must be provided" if request.nil?
221
+
222
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::DataSources::V1beta::GetFileUploadRequest
223
+
224
+ # Converts hash and nil to an options object
225
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
226
+
227
+ # Customize the options with defaults
228
+ metadata = @config.rpcs.get_file_upload.metadata.to_h
229
+
230
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
231
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
232
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
233
+ gapic_version: ::Google::Shopping::Merchant::DataSources::V1beta::VERSION
234
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
235
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
236
+
237
+ header_params = {}
238
+ if request.name
239
+ header_params["name"] = request.name
240
+ end
241
+
242
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
243
+ metadata[:"x-goog-request-params"] ||= request_params_header
244
+
245
+ options.apply_defaults timeout: @config.rpcs.get_file_upload.timeout,
246
+ metadata: metadata,
247
+ retry_policy: @config.rpcs.get_file_upload.retry_policy
248
+
249
+ options.apply_defaults timeout: @config.timeout,
250
+ metadata: @config.metadata,
251
+ retry_policy: @config.retry_policy
252
+
253
+ @file_uploads_service_stub.call_rpc :get_file_upload, request, options: options do |response, operation|
254
+ yield response, operation if block_given?
255
+ return response
256
+ end
257
+ rescue ::GRPC::BadStatus => e
258
+ raise ::Google::Cloud::Error.from_error(e)
259
+ end
260
+
261
+ ##
262
+ # Configuration class for the FileUploadsService API.
263
+ #
264
+ # This class represents the configuration for FileUploadsService,
265
+ # providing control over timeouts, retry behavior, logging, transport
266
+ # parameters, and other low-level controls. Certain parameters can also be
267
+ # applied individually to specific RPCs. See
268
+ # {::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client::Configuration::Rpcs}
269
+ # for a list of RPCs that can be configured independently.
270
+ #
271
+ # Configuration can be applied globally to all clients, or to a single client
272
+ # on construction.
273
+ #
274
+ # @example
275
+ #
276
+ # # Modify the global config, setting the timeout for
277
+ # # get_file_upload to 20 seconds,
278
+ # # and all remaining timeouts to 10 seconds.
279
+ # ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client.configure do |config|
280
+ # config.timeout = 10.0
281
+ # config.rpcs.get_file_upload.timeout = 20.0
282
+ # end
283
+ #
284
+ # # Apply the above configuration only to a new client.
285
+ # client = ::Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Client.new do |config|
286
+ # config.timeout = 10.0
287
+ # config.rpcs.get_file_upload.timeout = 20.0
288
+ # end
289
+ #
290
+ # @!attribute [rw] endpoint
291
+ # A custom service endpoint, as a hostname or hostname:port. The default is
292
+ # nil, indicating to use the default endpoint in the current universe domain.
293
+ # @return [::String,nil]
294
+ # @!attribute [rw] credentials
295
+ # Credentials to send with calls. You may provide any of the following types:
296
+ # * (`String`) The path to a service account key file in JSON format
297
+ # * (`Hash`) A service account key as a Hash
298
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
299
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
300
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
301
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
302
+ # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
303
+ # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
304
+ # * (`nil`) indicating no credentials
305
+ # @return [::Object]
306
+ # @!attribute [rw] scope
307
+ # The OAuth scopes
308
+ # @return [::Array<::String>]
309
+ # @!attribute [rw] lib_name
310
+ # The library name as recorded in instrumentation and logging
311
+ # @return [::String]
312
+ # @!attribute [rw] lib_version
313
+ # The library version as recorded in instrumentation and logging
314
+ # @return [::String]
315
+ # @!attribute [rw] channel_args
316
+ # Extra parameters passed to the gRPC channel. Note: this is ignored if a
317
+ # `GRPC::Core::Channel` object is provided as the credential.
318
+ # @return [::Hash]
319
+ # @!attribute [rw] interceptors
320
+ # An array of interceptors that are run before calls are executed.
321
+ # @return [::Array<::GRPC::ClientInterceptor>]
322
+ # @!attribute [rw] timeout
323
+ # The call timeout in seconds.
324
+ # @return [::Numeric]
325
+ # @!attribute [rw] metadata
326
+ # Additional gRPC headers to be sent with the call.
327
+ # @return [::Hash{::Symbol=>::String}]
328
+ # @!attribute [rw] retry_policy
329
+ # The retry policy. The value is a hash with the following keys:
330
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
331
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
332
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
333
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
334
+ # trigger a retry.
335
+ # @return [::Hash]
336
+ # @!attribute [rw] quota_project
337
+ # A separate project against which to charge quota.
338
+ # @return [::String]
339
+ # @!attribute [rw] universe_domain
340
+ # The universe domain within which to make requests. This determines the
341
+ # default endpoint URL. The default value of nil uses the environment
342
+ # universe (usually the default "googleapis.com" universe).
343
+ # @return [::String,nil]
344
+ #
345
+ class Configuration
346
+ extend ::Gapic::Config
347
+
348
+ # @private
349
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
350
+ DEFAULT_ENDPOINT = "merchantapi.googleapis.com"
351
+
352
+ config_attr :endpoint, nil, ::String, nil
353
+ config_attr :credentials, nil do |value|
354
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
355
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
356
+ allowed.any? { |klass| klass === value }
357
+ end
358
+ config_attr :scope, nil, ::String, ::Array, nil
359
+ config_attr :lib_name, nil, ::String, nil
360
+ config_attr :lib_version, nil, ::String, nil
361
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution" => 1 }, ::Hash, nil)
362
+ config_attr :interceptors, nil, ::Array, nil
363
+ config_attr :timeout, nil, ::Numeric, nil
364
+ config_attr :metadata, nil, ::Hash, nil
365
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
366
+ config_attr :quota_project, nil, ::String, nil
367
+ config_attr :universe_domain, nil, ::String, nil
368
+
369
+ # @private
370
+ def initialize parent_config = nil
371
+ @parent_config = parent_config unless parent_config.nil?
372
+
373
+ yield self if block_given?
374
+ end
375
+
376
+ ##
377
+ # Configurations for individual RPCs
378
+ # @return [Rpcs]
379
+ #
380
+ def rpcs
381
+ @rpcs ||= begin
382
+ parent_rpcs = nil
383
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
384
+ Rpcs.new parent_rpcs
385
+ end
386
+ end
387
+
388
+ ##
389
+ # Configuration for the channel pool
390
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
391
+ #
392
+ def channel_pool
393
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
394
+ end
395
+
396
+ ##
397
+ # Configuration RPC class for the FileUploadsService API.
398
+ #
399
+ # Includes fields providing the configuration for each RPC in this service.
400
+ # Each configuration object is of type `Gapic::Config::Method` and includes
401
+ # the following configuration fields:
402
+ #
403
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
404
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional gRPC headers
405
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
406
+ # include the following keys:
407
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
408
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
409
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
410
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
411
+ # trigger a retry.
412
+ #
413
+ class Rpcs
414
+ ##
415
+ # RPC-specific configuration for `get_file_upload`
416
+ # @return [::Gapic::Config::Method]
417
+ #
418
+ attr_reader :get_file_upload
419
+
420
+ # @private
421
+ def initialize parent_rpcs = nil
422
+ get_file_upload_config = parent_rpcs.get_file_upload if parent_rpcs.respond_to? :get_file_upload
423
+ @get_file_upload = ::Gapic::Config::Method.new get_file_upload_config
424
+
425
+ yield self if block_given?
426
+ end
427
+ end
428
+ end
429
+ end
430
+ end
431
+ end
432
+ end
433
+ end
434
+ end
435
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 DataSources
25
+ module V1beta
26
+ module FileUploadsService
27
+ # Credentials for the FileUploadsService 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,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 DataSources
24
+ module V1beta
25
+ module FileUploadsService
26
+ # Path helper methods for the FileUploadsService API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified FileUpload resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}`
34
+ #
35
+ # @param account [String]
36
+ # @param datasource [String]
37
+ # @param fileupload [String]
38
+ #
39
+ # @return [::String]
40
+ def file_upload_path account:, datasource:, fileupload:
41
+ raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
42
+ raise ::ArgumentError, "datasource cannot contain /" if datasource.to_s.include? "/"
43
+
44
+ "accounts/#{account}/dataSources/#{datasource}/fileUploads/#{fileupload}"
45
+ end
46
+
47
+ extend self
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end