Class: Google::Apis::BigqueryV2::TableDataList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableDataList

Returns a new instance of TableDataList.



11482
11483
11484
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11482

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

Instance Attribute Details

#etagString

A hash of this page of results. Corresponds to the JSON property etag

Returns:

  • (String)


11457
11458
11459
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11457

def etag
  @etag
end

#kindString

The resource type of the response. Corresponds to the JSON property kind

Returns:

  • (String)


11462
11463
11464
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11462

def kind
  @kind
end

#page_tokenString

A token used for paging results. Providing this token instead of the startIndex parameter can help you retrieve stable results when an underlying table is changing. Corresponds to the JSON property pageToken

Returns:

  • (String)


11469
11470
11471
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11469

def page_token
  @page_token
end

#rowsArray<Google::Apis::BigqueryV2::TableRow>

Rows of results. Corresponds to the JSON property rows



11474
11475
11476
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11474

def rows
  @rows
end

#total_rowsFixnum

Total rows of the entire table. In order to show default value 0 we have to present it as string. Corresponds to the JSON property totalRows

Returns:

  • (Fixnum)


11480
11481
11482
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11480

def total_rows
  @total_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11487
11488
11489
11490
11491
11492
11493
# File 'lib/google/apis/bigquery_v2/classes.rb', line 11487

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @page_token = args[:page_token] if args.key?(:page_token)
  @rows = args[:rows] if args.key?(:rows)
  @total_rows = args[:total_rows] if args.key?(:total_rows)
end