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.



339
340
341
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 339

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



326
327
328
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 326

def fetch_settings
  @fetch_settings
end

#file_input_typeString

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

Returns:

  • (String)


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

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)


337
338
339
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 337

def file_name
  @file_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



344
345
346
347
348
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 344

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