Class: Google::Apis::DoubleclickbidmanagerV2::Query

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

Overview

Represents a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.



444
445
446
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 444

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

Instance Attribute Details

#metadataGoogle::Apis::DoubleclickbidmanagerV2::QueryMetadata

Query metadata. Corresponds to the JSON property metadata



427
428
429
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 427

def 
  @metadata
end

#paramsGoogle::Apis::DoubleclickbidmanagerV2::Parameters

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



432
433
434
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 432

def params
  @params
end

#query_idFixnum

Output only. Query ID. Corresponds to the JSON property queryId

Returns:

  • (Fixnum)


437
438
439
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 437

def query_id
  @query_id
end

#scheduleGoogle::Apis::DoubleclickbidmanagerV2::QuerySchedule

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



442
443
444
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 442

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



449
450
451
452
453
454
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 449

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