Class: Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryResponse
- Inherits:
-
Object
- Object
- Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryResponse
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb
Overview
Query result.
Instance Attribute Summary collapse
-
#count ⇒ Integer
In the case of paging, this is the number of records in the current page.
-
#data ⇒ Object
Query output in tabular format.
-
#facets ⇒ Array<Facet>
Query facets.
-
#result_truncated ⇒ ResultTruncated
truncated.
-
#skip_token ⇒ String
query call (together with the same query and subscriptions used in the current request) to retrieve the next page of data.
-
#total_records ⇒ Integer
Number of total records matching the query.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for QueryResponse class as Ruby Hash.
Instance Attribute Details
#count ⇒ Integer
In the case of paging, this is the number of records in the current page.
21 22 23 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 21 def count @count end |
#data ⇒ Object
Returns Query output in tabular format.
33 34 35 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 33 def data @data end |
#facets ⇒ Array<Facet>
Returns Query facets.
36 37 38 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 36 def facets @facets end |
#result_truncated ⇒ ResultTruncated
truncated. Possible values include: ‘true’, ‘false’
25 26 27 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 25 def result_truncated @result_truncated end |
#skip_token ⇒ String
query call (together with the same query and subscriptions used in the current request) to retrieve the next page of data.
30 31 32 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 30 def skip_token @skip_token end |
#total_records ⇒ Integer
Returns Number of total records matching the query.
16 17 18 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 16 def total_records @total_records end |
Class Method Details
.mapper ⇒ Object
Mapper for QueryResponse class as Ruby Hash. This will be used for serialization/deserialization.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'QueryResponse', type: { name: 'Composite', class_name: 'QueryResponse', model_properties: { total_records: { client_side_validation: true, required: true, serialized_name: 'totalRecords', type: { name: 'Number' } }, count: { client_side_validation: true, required: true, serialized_name: 'count', type: { name: 'Number' } }, result_truncated: { client_side_validation: true, required: true, serialized_name: 'resultTruncated', type: { name: 'Enum', module: 'ResultTruncated' } }, skip_token: { client_side_validation: true, required: false, serialized_name: '$skipToken', type: { name: 'String' } }, data: { client_side_validation: true, required: true, serialized_name: 'data', type: { name: 'Object' } }, facets: { client_side_validation: true, required: false, serialized_name: 'facets', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'FacetElementType', type: { name: 'Composite', polymorphic_discriminator: 'resultType', uber_parent: 'Facet', class_name: 'Facet' } } } } } } } end |