Sha256: 2955425ef5bc7ec443655e19141dd9a300c15022b33e941936103dcd02bf0e52

Contents?: true

Size: 1.93 KB

Versions: 3

Compression:

Stored size: 1.93 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 Iot Hub Cloud-To-Device messaging properties.
    #
    class CloudToDeviceProperties

      include MsRestAzure

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

      # @return [Duration] The default time to live for the device queue.
      # Range : 1 Min (PT1M) - 2 Days (P2D).
      attr_accessor :default_ttl_as_iso8601

      # @return [FeedbackProperties]
      attr_accessor :feedback


      #
      # Mapper for CloudToDeviceProperties class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'CloudToDeviceProperties',
          type: {
            name: 'Composite',
            class_name: 'CloudToDeviceProperties',
            model_properties: {
              max_delivery_count: {
                required: false,
                serialized_name: 'maxDeliveryCount',
                constraints: {
                  InclusiveMaximum: 100,
                  InclusiveMinimum: 1
                },
                type: {
                  name: 'Number'
                }
              },
              default_ttl_as_iso8601: {
                required: false,
                serialized_name: 'defaultTtlAsIso8601',
                type: {
                  name: 'TimeSpan'
                }
              },
              feedback: {
                required: false,
                serialized_name: 'feedback',
                type: {
                  name: 'Composite',
                  class_name: 'FeedbackProperties'
                }
              }
            }
          }
        }
      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/cloud_to_device_properties.rb
azure_mgmt_iot_hub-0.6.0 lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb
azure_mgmt_iot_hub-0.5.0 lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb