Class: Google::Apis::CloudassetV1::QueryResult
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::QueryResult
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
Execution results of the query. The result is formatted as rows represented by BigQuery compatible [schema]. When pagination is necessary, it will contains the page token to retrieve the results of following pages.
Instance Attribute Summary collapse
-
#next_page_token ⇒ String
Token to retrieve the next page of the results.
-
#rows ⇒ Array<Hash<String,Object>>
Each row hold a query result in the format of
Struct. -
#schema ⇒ Google::Apis::CloudassetV1::TableSchema
BigQuery Compatible table schema.
-
#total_rows ⇒ Fixnum
Total rows of the whole query results.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryResult
constructor
A new instance of QueryResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryResult
Returns a new instance of QueryResult.
4939 4940 4941 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4939 def initialize(**args) update!(**args) end |
Instance Attribute Details
#next_page_token ⇒ String
Token to retrieve the next page of the results.
Corresponds to the JSON property nextPageToken
4922 4923 4924 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4922 def next_page_token @next_page_token end |
#rows ⇒ Array<Hash<String,Object>>
Each row hold a query result in the format of Struct.
Corresponds to the JSON property rows
4927 4928 4929 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4927 def rows @rows end |
#schema ⇒ Google::Apis::CloudassetV1::TableSchema
BigQuery Compatible table schema.
Corresponds to the JSON property schema
4932 4933 4934 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4932 def schema @schema end |
#total_rows ⇒ Fixnum
Total rows of the whole query results.
Corresponds to the JSON property totalRows
4937 4938 4939 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4937 def total_rows @total_rows end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4944 4945 4946 4947 4948 4949 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4944 def update!(**args) @next_page_token = args[:next_page_token] if args.key?(:next_page_token) @rows = args[:rows] if args.key?(:rows) @schema = args[:schema] if args.key?(:schema) @total_rows = args[:total_rows] if args.key?(:total_rows) end |