Class: Google::Apis::DoubleclickbidmanagerV1_1::Query

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/doubleclickbidmanager_v1_1/classes.rb,
generated/google/apis/doubleclickbidmanager_v1_1/representations.rb,
generated/google/apis/doubleclickbidmanager_v1_1/representations.rb

Overview

Represents a query.

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) ⇒ Query

Returns a new instance of Query.



392
393
394
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 392

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


351
352
353
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 351

def kind
  @kind
end

#metadataGoogle::Apis::DoubleclickbidmanagerV1_1::QueryMetadata

Query metadata. Corresponds to the JSON property metadata



356
357
358
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 356

def 
  @metadata
end

#paramsGoogle::Apis::DoubleclickbidmanagerV1_1::Parameters

Parameters of a query or report. Corresponds to the JSON property params



361
362
363
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 361

def params
  @params
end

#query_idFixnum

Query ID. Corresponds to the JSON property queryId

Returns:

  • (Fixnum)


366
367
368
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 366

def query_id
  @query_id
end

#report_data_end_time_msFixnum

The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. Corresponds to the JSON property reportDataEndTimeMs

Returns:

  • (Fixnum)


373
374
375
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 373

def report_data_end_time_ms
  @report_data_end_time_ms
end

#report_data_start_time_msFixnum

The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise. Corresponds to the JSON property reportDataStartTimeMs

Returns:

  • (Fixnum)


380
381
382
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 380

def report_data_start_time_ms
  @report_data_start_time_ms
end

#scheduleGoogle::Apis::DoubleclickbidmanagerV1_1::QuerySchedule

Information on how frequently and when to run a query. Corresponds to the JSON property schedule



385
386
387
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 385

def schedule
  @schedule
end

#timezone_codeString

Canonical timezone code for report data time. Defaults to America/New_York. Corresponds to the JSON property timezoneCode

Returns:

  • (String)


390
391
392
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 390

def timezone_code
  @timezone_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



397
398
399
400
401
402
403
404
405
406
# File 'generated/google/apis/doubleclickbidmanager_v1_1/classes.rb', line 397

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @metadata = args[:metadata] if args.key?(:metadata)
  @params = args[:params] if args.key?(:params)
  @query_id = args[:query_id] if args.key?(:query_id)
  @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms)
  @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms)
  @schedule = args[:schedule] if args.key?(:schedule)
  @timezone_code = args[:timezone_code] if args.key?(:timezone_code)
end