Class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1AsyncQueryResultView

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApigeeV1AsyncQueryResultView

Returns a new instance of GoogleCloudApigeeV1AsyncQueryResultView.



2371
2372
2373
# File 'lib/google/apis/apigee_v1/classes.rb', line 2371

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

Instance Attribute Details

#codeFixnum

Error code when there is a failure. Corresponds to the JSON property code

Returns:

  • (Fixnum)


2348
2349
2350
# File 'lib/google/apis/apigee_v1/classes.rb', line 2348

def code
  @code
end

#errorString

Error message when there is a failure. Corresponds to the JSON property error

Returns:

  • (String)


2353
2354
2355
# File 'lib/google/apis/apigee_v1/classes.rb', line 2353

def error
  @error
end

#metadataGoogle::Apis::ApigeeV1::GoogleCloudApigeeV1QueryMetadata

Metadata contains information like metrics, dimenstions etc of the AsyncQuery. Corresponds to the JSON property metadata



2358
2359
2360
# File 'lib/google/apis/apigee_v1/classes.rb', line 2358

def 
  @metadata
end

#rowsArray<Object>

Rows of query result. Each row is a JSON object. Example: sum(message_count): 1, developer_app: "(not set)",… Corresponds to the JSON property rows

Returns:

  • (Array<Object>)


2364
2365
2366
# File 'lib/google/apis/apigee_v1/classes.rb', line 2364

def rows
  @rows
end

#stateString

State of retrieving ResultView. Corresponds to the JSON property state

Returns:

  • (String)


2369
2370
2371
# File 'lib/google/apis/apigee_v1/classes.rb', line 2369

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2376
2377
2378
2379
2380
2381
2382
# File 'lib/google/apis/apigee_v1/classes.rb', line 2376

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @error = args[:error] if args.key?(:error)
  @metadata = args[:metadata] if args.key?(:metadata)
  @rows = args[:rows] if args.key?(:rows)
  @state = args[:state] if args.key?(:state)
end