Class: Google::Apis::DfareportingV4::File

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File.



6119
6120
6121
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6119

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#date_rangeGoogle::Apis::DfareportingV4::DateRange

Represents a date range. Corresponds to the JSON property dateRange



6071
6072
6073
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6071

def date_range
  @date_range
end

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


6076
6077
6078
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6076

def etag
  @etag
end

#file_nameString

The filename of the file. Corresponds to the JSON property fileName

Returns:

  • (String)


6081
6082
6083
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6081

def file_name
  @file_name
end

#formatString

The output format of the report. Only available once the file is available. Corresponds to the JSON property format

Returns:

  • (String)


6086
6087
6088
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6086

def format
  @format
end

#idFixnum

The unique ID of this report file. Corresponds to the JSON property id

Returns:

  • (Fixnum)


6091
6092
6093
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6091

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " dfareporting#file". Corresponds to the JSON property kind

Returns:

  • (String)


6097
6098
6099
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6097

def kind
  @kind
end

#last_modified_timeFixnum

The timestamp in milliseconds since epoch when this file was last modified. Corresponds to the JSON property lastModifiedTime

Returns:

  • (Fixnum)


6102
6103
6104
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6102

def last_modified_time
  @last_modified_time
end

#report_idFixnum

The ID of the report this file was generated from. Corresponds to the JSON property reportId

Returns:

  • (Fixnum)


6107
6108
6109
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6107

def report_id
  @report_id
end

#statusString

The status of the report file. Corresponds to the JSON property status

Returns:

  • (String)


6112
6113
6114
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6112

def status
  @status
end

#urlsGoogle::Apis::DfareportingV4::File::Urls

The URLs where the completed report file can be downloaded. Corresponds to the JSON property urls



6117
6118
6119
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6117

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 6124

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