Class: Google::Apis::MerchantapiDatasourcesV1beta::FileInput
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::FileInput
- 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
-
#fetch_settings ⇒ Google::Apis::MerchantapiDatasourcesV1beta::FetchSettings
Fetch details to deliver the data source.
-
#file_input_type ⇒ String
Output only.
-
#file_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileInput
constructor
A new instance of FileInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileInput
Returns a new instance of FileInput.
309 310 311 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fetch_settings ⇒ Google::Apis::MerchantapiDatasourcesV1beta::FetchSettings
Fetch details to deliver the data source.
Corresponds to the JSON property fetchSettings
296 297 298 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 296 def fetch_settings @fetch_settings end |
#file_input_type ⇒ String
Output only. The type of file input.
Corresponds to the JSON property fileInputType
301 302 303 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 301 def file_input_type @file_input_type end |
#file_name ⇒ String
Optional. The file name of the data source. Required for UPLOAD
file input
type.
Corresponds to the JSON property fileName
307 308 309 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 307 def file_name @file_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
314 315 316 317 318 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 314 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 |