class Google::Apis::DfareportingV2_3::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_3::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_3::File::Urls]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dfareporting_v2_3/classes.rb, line 4967
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_3/classes.rb, line 4972
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