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

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}

Parameters:

  • account (String)
  • datasource (String)
  • fileupload (String)

Returns:

  • (::String)

Raises:

  • (::ArgumentError)


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 .to_s.include? "/"
  raise ::ArgumentError, "datasource cannot contain /" if datasource.to_s.include? "/"

  "accounts/#{}/dataSources/#{datasource}/fileUploads/#{fileupload}"
end