Sha256: cadf3313fa4df144125736c0cabf525c113d81eb2d2fd0c33309ebbb2a1157f4

Contents?: true

Size: 1.92 KB

Versions: 3

Compression:

Stored size: 1.92 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::IotHub
  module Models
    #
    # The properties of the Messaging Endpoints used by this IoT Hub.
    #
    class MessagingEndpointProperties

      include MsRestAzure

      # @return [Duration] The lock duration. Range: 5 Sec (PT5S) - 5 Min
      # (PT5M).
      attr_accessor :lock_duration_as_iso8601

      # @return [Duration] The time to live. Range: 1 Min (PT1M) - 2 Days
      # (P2D).
      attr_accessor :ttl_as_iso8601

      # @return [Integer] The max delivery count. Range: 1-100.
      attr_accessor :max_delivery_count


      #
      # Mapper for MessagingEndpointProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'MessagingEndpointProperties',
          type: {
            name: 'Composite',
            class_name: 'MessagingEndpointProperties',
            model_properties: {
              lock_duration_as_iso8601: {
                required: false,
                serialized_name: 'lockDurationAsIso8601',
                type: {
                  name: 'TimeSpan'
                }
              },
              ttl_as_iso8601: {
                required: false,
                serialized_name: 'ttlAsIso8601',
                type: {
                  name: 'TimeSpan'
                }
              },
              max_delivery_count: {
                required: false,
                serialized_name: 'maxDeliveryCount',
                constraints: {
                  InclusiveMaximum: 100,
                  InclusiveMinimum: 1
                },
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
azure_mgmt_iot_hub-0.7.0 lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
azure_mgmt_iot_hub-0.6.0 lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
azure_mgmt_iot_hub-0.5.0 lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb