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.



231
232
233
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 231

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



218
219
220
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 218

def fetch_settings
  @fetch_settings
end

#file_input_typeString

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

Returns:

  • (String)


223
224
225
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 223

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)


229
230
231
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 229

def file_name
  @file_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 236

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