Module: Google::Shopping::Merchant::DataSources::V1beta::FileUploadsService::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/paths.rb
Overview
Path helper methods for the FileUploadsService API.
Instance Method Summary collapse
-
#file_upload_path(account:, datasource:, fileupload:) ⇒ ::String
Create a fully-qualified FileUpload resource string.
Instance Method Details
#file_upload_path(account:, datasource:, fileupload:) ⇒ ::String
Create a fully-qualified FileUpload resource string.
The resource will be in the following format:
accounts/{account}/dataSources/{datasource}/fileUploads/{fileupload}
40 41 42 43 44 45 |
# File 'lib/google/shopping/merchant/data_sources/v1beta/file_uploads_service/paths.rb', line 40 def file_upload_path account:, datasource:, fileupload: raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/" raise ::ArgumentError, "datasource cannot contain /" if datasource.to_s.include? "/" "accounts/#{account}/dataSources/#{datasource}/fileUploads/#{fileupload}" end |