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

A single query used to generate a report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Query

Returns a new instance of Query.



285
286
287
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 285

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

Instance Attribute Details

#metadataGoogle::Apis::DoubleclickbidmanagerV2::QueryMetadata

The metadata of the query. Corresponds to the JSON property metadata



268
269
270
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 268

def 
  @metadata
end

#paramsGoogle::Apis::DoubleclickbidmanagerV2::Parameters

Parameters of a generated report. Corresponds to the JSON property params



273
274
275
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 273

def params
  @params
end

#query_idFixnum

Output only. The unique ID of the query. Corresponds to the JSON property queryId

Returns:

  • (Fixnum)


278
279
280
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 278

def query_id
  @query_id
end

#scheduleGoogle::Apis::DoubleclickbidmanagerV2::QuerySchedule

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



283
284
285
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 283

def schedule
  @schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



290
291
292
293
294
295
# File 'lib/google/apis/doubleclickbidmanager_v2/classes.rb', line 290

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