Class: Google::Apis::MerchantapiDatasourcesV1beta::FileUpload
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::FileUpload
- 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 file upload of a specific data source, that is, the result of the retrieval of the data source at a certain timestamp computed asynchronously when the data source processing is finished. Only applicable to file data sources.
Instance Attribute Summary collapse
-
#data_source_id ⇒ Fixnum
Output only.
-
#issues ⇒ Array<Google::Apis::MerchantapiDatasourcesV1beta::Issue>
Output only.
-
#items_created ⇒ Fixnum
Output only.
-
#items_total ⇒ Fixnum
Output only.
-
#items_updated ⇒ Fixnum
Output only.
-
#name ⇒ String
Identifier.
-
#processing_state ⇒ String
Output only.
-
#upload_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FileUpload
constructor
A new instance of FileUpload.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FileUpload
Returns a new instance of FileUpload.
369 370 371 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_id ⇒ Fixnum
Output only. The data source id.
Corresponds to the JSON property dataSourceId
331 332 333 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 331 def data_source_id @data_source_id end |
#issues ⇒ Array<Google::Apis::MerchantapiDatasourcesV1beta::Issue>
Output only. The list of issues occurring in the data source.
Corresponds to the JSON property issues
336 337 338 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 336 def issues @issues end |
#items_created ⇒ Fixnum
Output only. The number of items in the data source that were created.
Corresponds to the JSON property itemsCreated
341 342 343 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 341 def items_created @items_created end |
#items_total ⇒ Fixnum
Output only. The number of items in the data source that were processed.
Corresponds to the JSON property itemsTotal
346 347 348 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 346 def items_total @items_total end |
#items_updated ⇒ Fixnum
Output only. The number of items in the data source that were updated.
Corresponds to the JSON property itemsUpdated
351 352 353 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 351 def items_updated @items_updated end |
#name ⇒ String
Identifier. The name of the data source file upload. Format: datasource.name=
accounts/`account`/dataSources/`datasource`/fileUploads/`fileupload
Corresponds to the JSON property
name`
357 358 359 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 357 def name @name end |
#processing_state ⇒ String
Output only. The processing state of the data source.
Corresponds to the JSON property processingState
362 363 364 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 362 def processing_state @processing_state end |
#upload_time ⇒ String
Output only. The date at which the file of the data source was uploaded.
Corresponds to the JSON property uploadTime
367 368 369 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 367 def upload_time @upload_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
374 375 376 377 378 379 380 381 382 383 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 374 def update!(**args) @data_source_id = args[:data_source_id] if args.key?(:data_source_id) @issues = args[:issues] if args.key?(:issues) @items_created = args[:items_created] if args.key?(:items_created) @items_total = args[:items_total] if args.key?(:items_total) @items_updated = args[:items_updated] if args.key?(:items_updated) @name = args[:name] if args.key?(:name) @processing_state = args[:processing_state] if args.key?(:processing_state) @upload_time = args[:upload_time] if args.key?(:upload_time) end |