class Google::Apis::DfareportingV2_1::File

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”.

Attributes

date_range[RW]

Represents a date range. Corresponds to the JSON property `dateRange` @return [Google::Apis::DfareportingV2_1::DateRange]

etag[RW]

The eTag of this response for caching purposes. Corresponds to the JSON property `etag` @return [String]

file_name[RW]

The filename of the file. Corresponds to the JSON property `fileName` @return [String]

format[RW]

The output format of the report. Only available once the file is available. Corresponds to the JSON property `format` @return [String]

id[RW]

The unique ID of this report file. Corresponds to the JSON property `id` @return [String]

kind[RW]

The kind of resource this is, in this case dfareporting#file. Corresponds to the JSON property `kind` @return [String]

last_modified_time[RW]

The timestamp in milliseconds since epoch when this file was last modified. Corresponds to the JSON property `lastModifiedTime` @return [String]

report_id[RW]

The ID of the report this file was generated from. Corresponds to the JSON property `reportId` @return [String]

status[RW]

The status of the report file. Corresponds to the JSON property `status` @return [String]

urls[RW]

The URLs where the completed report file can be downloaded. Corresponds to the JSON property `urls` @return [Google::Apis::DfareportingV2_1::File::Urls]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_1/classes.rb, line 4906
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dfareporting_v2_1/classes.rb, line 4911
def update!(**args)
  @date_range = args[:date_range] unless args[:date_range].nil?
  @etag = args[:etag] unless args[:etag].nil?
  @file_name = args[:file_name] unless args[:file_name].nil?
  @format = args[:format] unless args[:format].nil?
  @id = args[:id] unless args[:id].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil?
  @report_id = args[:report_id] unless args[:report_id].nil?
  @status = args[:status] unless args[:status].nil?
  @urls = args[:urls] unless args[:urls].nil?
end