Class: Google::Apis::DfareportingV3_3::File

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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ File

Returns a new instance of File



5659
5660
5661
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5659

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

Instance Attribute Details

#date_rangeGoogle::Apis::DfareportingV3_3::DateRange

Represents a date range. Corresponds to the JSON property dateRange



5612
5613
5614
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5612

def date_range
  @date_range
end

#etagString

The eTag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


5617
5618
5619
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5617

def etag
  @etag
end

#file_nameString

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

Returns:

  • (String)


5622
5623
5624
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5622

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)


5627
5628
5629
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5627

def format
  @format
end

#idFixnum

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

Returns:

  • (Fixnum)


5632
5633
5634
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5632

def id
  @id
end

#kindString

The kind of resource this is, in this case dfareporting#file. Corresponds to the JSON property kind

Returns:

  • (String)


5637
5638
5639
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5637

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)


5642
5643
5644
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5642

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)


5647
5648
5649
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5647

def report_id
  @report_id
end

#statusString

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

Returns:

  • (String)


5652
5653
5654
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5652

def status
  @status
end

#urlsGoogle::Apis::DfareportingV3_3::File::Urls

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



5657
5658
5659
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5657

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 5664

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