# 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 description of the IotHub. # class IotHubDescription < MsRestAzure::Resource include MsRestAzure # @return [String] The subscription identifier. attr_accessor :subscriptionid # @return [String] The resource group name uniquely identifies the # resource group within the user subscriptionId. attr_accessor :resourcegroup # @return [String] The Etag field is *not* required. If it is provided # in the response body, it must also be provided as a header per the # normal ETag convention. attr_accessor :etag # @return [IotHubProperties] attr_accessor :properties # @return [IotHubSkuInfo] attr_accessor :sku # # Mapper for IotHubDescription class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'IotHubDescription', type: { name: 'Composite', class_name: 'IotHubDescription', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', constraints: { Pattern: '^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$' }, type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, location: { required: false, serialized_name: 'location', type: { name: 'String' } }, tags: { required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, subscriptionid: { required: false, serialized_name: 'subscriptionid', type: { name: 'String' } }, resourcegroup: { required: false, serialized_name: 'resourcegroup', type: { name: 'String' } }, etag: { required: false, serialized_name: 'etag', type: { name: 'String' } }, properties: { required: false, serialized_name: 'properties', type: { name: 'Composite', class_name: 'IotHubProperties' } }, sku: { required: false, serialized_name: 'sku', type: { name: 'Composite', class_name: 'IotHubSkuInfo' } } } } } end end end end