class Azure::IotHub::Mgmt::V2019_07_01_preview::Models::EnrichmentProperties

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

Attributes

endpoint_names[RW]

@return [Array<String>] The list of endpoints for which the enrichment is applied to the message.

key[RW]

@return [String] The key or name for the enrichment property.

value[RW]

@return [String] The value for the enrichment property.

Public Class Methods

mapper() click to toggle source

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

# File lib/2019-07-01-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