Class: Azure::IotHub::Mgmt::V2019_03_22_preview::Models::EnrichmentProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb

Overview

The properties of an enrichment that your IoT hub applies to messages delivered to endpoints.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#endpoint_namesArray<String>

is applied to the message.

Returns:

  • (Array<String>)

    The list of endpoints for which the enrichment



24
25
26
# File 'lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb', line 24

def endpoint_names
  @endpoint_names
end

#keyString

Returns The key or name for the enrichment property.

Returns:

  • (String)

    The key or name for the enrichment property.



17
18
19
# File 'lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb', line 17

def key
  @key
end

#valueString

Returns The value for the enrichment property.

Returns:

  • (String)

    The value for the enrichment property.



20
21
22
# File 'lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb', line 20

def value
  @value
end

Class Method Details

.mapperObject

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



31
32
33
34
35
36
37
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
# File 'lib/2019-03-22-preview/generated/azure_mgmt_iot_hub/models/enrichment_properties.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EnrichmentProperties',
    type: {
      name: 'Composite',
      class_name: 'EnrichmentProperties',
      model_properties: {
        key: {
          client_side_validation: true,
          required: true,
          serialized_name: 'key',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: true,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        endpoint_names: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointNames',
          constraints: {
            MinItems: 1
          },
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end