class Azure::StreamAnalytics::Mgmt::V2016_03_01::Models::IoTHubStreamInputDataSource

Describes an IoT Hub input data source that contains stream data.

Attributes

consumer_group_name[RW]

@return [String] The name of an IoT Hub Consumer Group that should be used to read events from the IoT Hub. If not specified, the input uses the Iot Hub’s default consumer group.

endpoint[RW]

@return [String] The IoT Hub endpoint to connect to (ie. messages/events, messages/operationsMonitoringEvents, etc.).

iot_hub_namespace[RW]

@return [String] The name or the URI of the IoT Hub. Required on PUT (CreateOrReplace) requests.

shared_access_policy_key[RW]

@return [String] The shared access policy key for the specified shared access policy. Required on PUT (CreateOrReplace) requests.

shared_access_policy_name[RW]

@return [String] The shared access policy name for the IoT Hub. This policy must contain at least the Service connect permission. Required on PUT (CreateOrReplace) requests.

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/io_thub_stream_input_data_source.rb, line 49
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.Devices/IotHubs',
    type: {
      name: 'Composite',
      class_name: 'IoTHubStreamInputDataSource',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        iot_hub_namespace: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.iotHubNamespace',
          type: {
            name: 'String'
          }
        },
        shared_access_policy_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sharedAccessPolicyName',
          type: {
            name: 'String'
          }
        },
        shared_access_policy_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sharedAccessPolicyKey',
          type: {
            name: 'String'
          }
        },
        consumer_group_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.consumerGroupName',
          type: {
            name: 'String'
          }
        },
        endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endpoint',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2016-03-01/generated/azure_mgmt_stream_analytics/models/io_thub_stream_input_data_source.rb, line 16
def initialize
  @type = "Microsoft.Devices/IotHubs"
end