Class: Google::Apis::DfareportingV3_4::File
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV3_4::File
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dfareporting_v3_4/classes.rb,
generated/google/apis/dfareporting_v3_4/representations.rb,
generated/google/apis/dfareporting_v3_4/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::DfareportingV3_4::DateRange
Represents a date range.
-
#etag ⇒ String
Etag of this resource.
-
#file_name ⇒ String
The filename of the file.
-
#format ⇒ String
The output format of the report.
-
#id ⇒ Fixnum
The unique ID of this report file.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#last_modified_time ⇒ Fixnum
The timestamp in milliseconds since epoch when this file was last modified.
-
#report_id ⇒ Fixnum
The ID of the report this file was generated from.
-
#status ⇒ String
The status of the report file.
-
#urls ⇒ Google::Apis::DfareportingV3_4::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.
Constructor Details
#initialize(**args) ⇒ File
Returns a new instance of File.
6155 6156 6157 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6155 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::DfareportingV3_4::DateRange
Represents a date range.
Corresponds to the JSON property dateRange
6107 6108 6109 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6107 def date_range @date_range end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
6112 6113 6114 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6112 def etag @etag end |
#file_name ⇒ String
The filename of the file.
Corresponds to the JSON property fileName
6117 6118 6119 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6117 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
6122 6123 6124 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6122 def format @format end |
#id ⇒ Fixnum
The unique ID of this report file.
Corresponds to the JSON property id
6127 6128 6129 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6127 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
dfareporting#file".
Corresponds to the JSON property kind
6133 6134 6135 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6133 def kind @kind end |
#last_modified_time ⇒ Fixnum
The timestamp in milliseconds since epoch when this file was last modified.
Corresponds to the JSON property lastModifiedTime
6138 6139 6140 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6138 def last_modified_time @last_modified_time end |
#report_id ⇒ Fixnum
The ID of the report this file was generated from.
Corresponds to the JSON property reportId
6143 6144 6145 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6143 def report_id @report_id end |
#status ⇒ String
The status of the report file.
Corresponds to the JSON property status
6148 6149 6150 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6148 def status @status end |
#urls ⇒ Google::Apis::DfareportingV3_4::File::Urls
The URLs where the completed report file can be downloaded.
Corresponds to the JSON property urls
6153 6154 6155 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6153 def urls @urls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 |
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 6160 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 |