Class: Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetResult
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb
Overview
Successfully executed facet containing additional statistics on the response of a query.
Instance Attribute Summary collapse
-
#count ⇒ Integer
Number of records returned in the facet response.
-
#data ⇒ Object
facet is valid.
-
#resultType ⇒ Object
Returns the value of attribute resultType.
-
#total_records ⇒ Integer
Number of total records in the facet results.
Attributes inherited from Facet
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for FacetResult class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ FacetResult
constructor
A new instance of FacetResult.
Constructor Details
#initialize ⇒ FacetResult
Returns a new instance of FacetResult.
17 18 19 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 17 def initialize @resultType = "FacetResult" end |
Instance Attribute Details
#count ⇒ Integer
Returns Number of records returned in the facet response.
27 28 29 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 27 def count @count end |
#data ⇒ Object
facet is valid.
31 32 33 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 31 def data @data end |
#resultType ⇒ Object
Returns the value of attribute resultType.
21 22 23 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 21 def resultType @resultType end |
#total_records ⇒ Integer
Returns Number of total records in the facet results.
24 25 26 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 24 def total_records @total_records end |
Class Method Details
.mapper ⇒ Object
Mapper for FacetResult class as Ruby Hash. This will be used for serialization/deserialization.
38 39 40 41 42 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 |
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'FacetResult', type: { name: 'Composite', class_name: 'FacetResult', model_properties: { expression: { client_side_validation: true, required: true, serialized_name: 'expression', type: { name: 'String' } }, resultType: { client_side_validation: true, required: true, serialized_name: 'resultType', type: { name: 'String' } }, 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' } }, data: { client_side_validation: true, required: true, serialized_name: 'data', type: { name: 'Object' } } } } } end |