Class: Azure::TimeSeriesInsights::Mgmt::V2017_02_28_preview::Models::EventHubEventSourceCommonProperties

Inherits:
AzureEventSourceProperties show all
Includes:
MsRestAzure
Defined in:
lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb

Overview

Properties of the EventHub event source.

Instance Attribute Summary collapse

Attributes inherited from AzureEventSourceProperties

#event_source_resource_id

Attributes inherited from EventSourceCommonProperties

#timestamp_property_name

Attributes inherited from ResourceProperties

#creation_time, #provisioning_state

Class Method Summary collapse

Instance Attribute Details

#consumer_group_nameString

the partitions from which events will be read.

Returns:

  • (String)

    The name of the event hub’s consumer group that holds



24
25
26
# File 'lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb', line 24

def consumer_group_name
  @consumer_group_name
end

#event_hub_nameString

Returns The name of the event hub.

Returns:

  • (String)

    The name of the event hub.



20
21
22
# File 'lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb', line 20

def event_hub_name
  @event_hub_name
end

#key_nameString

Insights service access to the event hub. The shared access policies for this key must grant ‘Listen’ permissions to the event hub.

Returns:

  • (String)

    The name of the SAS key that grants the Time Series



29
30
31
# File 'lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb', line 29

def key_name
  @key_name
end

#service_bus_namespaceString

hub.

Returns:

  • (String)

    The name of the service bus that contains the event



17
18
19
# File 'lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb', line 17

def service_bus_namespace
  @service_bus_namespace
end

Class Method Details

.mapperObject

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



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/2017-02-28-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_common_properties.rb', line 36

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EventHubEventSourceCommonProperties',
    type: {
      name: 'Composite',
      class_name: 'EventHubEventSourceCommonProperties',
      model_properties: {
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'provisioningState',
          type: {
            name: 'Enum',
            module: 'ProvisioningState'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'creationTime',
          type: {
            name: 'DateTime'
          }
        },
        timestamp_property_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'timestampPropertyName',
          type: {
            name: 'String'
          }
        },
        event_source_resource_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'eventSourceResourceId',
          type: {
            name: 'String'
          }
        },
        service_bus_namespace: {
          client_side_validation: true,
          required: true,
          serialized_name: 'serviceBusNamespace',
          type: {
            name: 'String'
          }
        },
        event_hub_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'eventHubName',
          type: {
            name: 'String'
          }
        },
        consumer_group_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'consumerGroupName',
          type: {
            name: 'String'
          }
        },
        key_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'keyName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end