Class: Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Facet

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb

Overview

A facet containing additional statistics on the response of a query. Can be either FacetResult or FacetError.

Direct Known Subclasses

FacetError, FacetResult

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFacet

Returns a new instance of Facet.



20
21
22
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb', line 20

def initialize
  @resultType = "Facet"
end

Instance Attribute Details

#expressionString

request.

Returns:

  • (String)

    Facet expression, same as in the corresponding facet



28
29
30
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb', line 28

def expression
  @expression
end

#resultTypeObject

Returns the value of attribute resultType.



24
25
26
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb', line 24

def resultType
  @resultType
end

Class Method Details

.mapperObject

Mapper for Facet class as Ruby Hash. This will be used for serialization/deserialization.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Facet',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'resultType',
      uber_parent: 'Facet',
      class_name: 'Facet',
      model_properties: {
        expression: {
          client_side_validation: true,
          required: true,
          serialized_name: 'expression',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end