Class: Google::Apis::DfareportingV2_6::File
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV2_6::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v2_6/classes.rb,
generated/google/apis/dfareporting_v2_6/representations.rb,
generated/google/apis/dfareporting_v2_6/representations.rb
Overview
Represents a File resource. A file contains the metadata for a report run. It shows the status of the run and holds the URLs to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
Defined Under Namespace
Classes: Urls
Instance Attribute Summary collapse
-
#date_range ⇒ Google::Apis::DfareportingV2_6::DateRange
Represents a date range.
-
#etag ⇒ String
The eTag of this response for caching purposes.
-
#file_name ⇒ String
The filename of the file.
-
#format ⇒ String
The output format of the report.
-
#id ⇒ String
The unique ID of this report file.
-
#kind ⇒ String
The kind of resource this is, in this case dfareporting#file.
-
#last_modified_time ⇒ String
The timestamp in milliseconds since epoch when this file was last modified.
-
#report_id ⇒ String
The ID of the report this file was generated from.
-
#status ⇒ String
The status of the report file.
-
#urls ⇒ Google::Apis::DfareportingV2_6::File::Urls
The URLs where the completed report file can be downloaded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ File
constructor
A new instance of File.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
5457 5458 5459 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5457 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::DfareportingV2_6::DateRange
Represents a date range.
Corresponds to the JSON property dateRange
5410 5411 5412 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5410 def date_range @date_range end |
#etag ⇒ String
The eTag of this response for caching purposes.
Corresponds to the JSON property etag
5415 5416 5417 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5415 def etag @etag end |
#file_name ⇒ String
The filename of the file.
Corresponds to the JSON property fileName
5420 5421 5422 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5420 def file_name @file_name end |
#format ⇒ String
The output format of the report. Only available once the file is available.
Corresponds to the JSON property format
5425 5426 5427 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5425 def format @format end |
#id ⇒ String
The unique ID of this report file.
Corresponds to the JSON property id
5430 5431 5432 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5430 def id @id end |
#kind ⇒ String
The kind of resource this is, in this case dfareporting#file.
Corresponds to the JSON property kind
5435 5436 5437 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5435 def kind @kind end |
#last_modified_time ⇒ String
The timestamp in milliseconds since epoch when this file was last modified.
Corresponds to the JSON property lastModifiedTime
5440 5441 5442 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5440 def last_modified_time @last_modified_time end |
#report_id ⇒ String
The ID of the report this file was generated from.
Corresponds to the JSON property reportId
5445 5446 5447 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5445 def report_id @report_id end |
#status ⇒ String
The status of the report file.
Corresponds to the JSON property status
5450 5451 5452 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5450 def status @status end |
#urls ⇒ Google::Apis::DfareportingV2_6::File::Urls
The URLs where the completed report file can be downloaded.
Corresponds to the JSON property urls
5455 5456 5457 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5455 def urls @urls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 |
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 5462 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @etag = args[:etag] if args.key?(:etag) @file_name = args[:file_name] if args.key?(:file_name) @format = args[:format] if args.key?(:format) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) @report_id = args[:report_id] if args.key?(:report_id) @status = args[:status] if args.key?(:status) @urls = args[:urls] if args.key?(:urls) end |