Class: Google::Apis::MerchantapiDatasourcesV1beta::FileInput

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb

Overview

The data specific for file data sources. This field is empty for other data source inputs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FileInput

Returns a new instance of FileInput.



343
344
345
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 343

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fetch_settingsGoogle::Apis::MerchantapiDatasourcesV1beta::FetchSettings

Fetch details to deliver the data source. Corresponds to the JSON property fetchSettings



330
331
332
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 330

def fetch_settings
  @fetch_settings
end

#file_input_typeString

Output only. The type of file input. Corresponds to the JSON property fileInputType

Returns:

  • (String)


335
336
337
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 335

def file_input_type
  @file_input_type
end

#file_nameString

Optional. The file name of the data source. Required for UPLOAD file input type. Corresponds to the JSON property fileName

Returns:

  • (String)


341
342
343
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 341

def file_name
  @file_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
352
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 348

def update!(**args)
  @fetch_settings = args[:fetch_settings] if args.key?(:fetch_settings)
  @file_input_type = args[:file_input_type] if args.key?(:file_input_type)
  @file_name = args[:file_name] if args.key?(:file_name)
end