Class: Google::Apis::DfareportingV2_3::File

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



4976
4977
4978
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4976

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

Instance Attribute Details

#date_rangeGoogle::Apis::DfareportingV2_3::DateRange

Represents a date range. Corresponds to the JSON property dateRange



4929
4930
4931
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4929

def date_range
  @date_range
end

#etagString

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

Returns:

  • (String)


4934
4935
4936
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4934

def etag
  @etag
end

#file_nameString

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

Returns:

  • (String)


4939
4940
4941
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4939

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)


4944
4945
4946
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4944

def format
  @format
end

#idString

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

Returns:

  • (String)


4949
4950
4951
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4949

def id
  @id
end

#kindString

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

Returns:

  • (String)


4954
4955
4956
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4954

def kind
  @kind
end

#last_modified_timeString

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

Returns:

  • (String)


4959
4960
4961
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4959

def last_modified_time
  @last_modified_time
end

#report_idString

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

Returns:

  • (String)


4964
4965
4966
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4964

def report_id
  @report_id
end

#statusString

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

Returns:

  • (String)


4969
4970
4971
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4969

def status
  @status
end

#urlsGoogle::Apis::DfareportingV2_3::File::Urls

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



4974
4975
4976
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4974

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
# File 'generated/google/apis/dfareporting_v2_3/classes.rb', line 4981

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