Class: Azure::TimeSeriesInsights::Mgmt::V2018_08_15_preview::Models::EventHubEventSourceResource

Inherits:
EventSourceResource show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb

Overview

An event source that receives its data from an Azure EventHub.

Instance Attribute Summary collapse

Attributes inherited from TrackedResource

#location, #tags

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#resource_group

Constructor Details

#initializeEventHubEventSourceResource

Returns a new instance of EventHubEventSourceResource.



16
17
18
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 16

def initialize
  @kind = "Microsoft.EventHub"
end

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



49
50
51
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 49

def consumer_group_name
  @consumer_group_name
end

#creation_timeDateTime

Returns The time the resource was created.

Returns:

  • (DateTime)

    The time the resource was created.



28
29
30
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 28

def creation_time
  @creation_time
end

#event_hub_nameString

Returns The name of the event hub.

Returns:

  • (String)

    The name of the event hub.



45
46
47
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 45

def event_hub_name
  @event_hub_name
end

#event_source_resource_idString

Manager.

Returns:

  • (String)

    The resource id of the event source in Azure Resource



38
39
40
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 38

def event_source_resource_id
  @event_source_resource_id
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



54
55
56
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 54

def key_name
  @key_name
end

#kindObject

Returns the value of attribute kind.



20
21
22
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 20

def kind
  @kind
end

#provisioning_stateProvisioningState

Possible values include: ‘Accepted’, ‘Creating’, ‘Updating’, ‘Succeeded’, ‘Failed’, ‘Deleting’

Returns:



25
26
27
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 25

def provisioning_state
  @provisioning_state
end

#service_bus_namespaceString

hub.

Returns:

  • (String)

    The name of the service bus that contains the event



42
43
44
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 42

def service_bus_namespace
  @service_bus_namespace
end

#timestamp_property_nameString

source’s timestamp. If a value isn’t specified for timestampPropertyName, or if null or empty-string is specified, the event creation time will be used.

Returns:

  • (String)

    The event property that will be used as the event



34
35
36
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 34

def timestamp_property_name
  @timestamp_property_name
end

Class Method Details

.mapperObject

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



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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/2018-08-15-preview/generated/azure_mgmt_time_series_insights/models/event_hub_event_source_resource.rb', line 61

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Microsoft.EventHub',
    type: {
      name: 'Composite',
      class_name: 'EventHubEventSourceResource',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        timestamp_property_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.timestampPropertyName',
          type: {
            name: 'String'
          }
        },
        event_source_resource_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.eventSourceResourceId',
          type: {
            name: 'String'
          }
        },
        service_bus_namespace: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.serviceBusNamespace',
          type: {
            name: 'String'
          }
        },
        event_hub_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.eventHubName',
          type: {
            name: 'String'
          }
        },
        consumer_group_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.consumerGroupName',
          type: {
            name: 'String'
          }
        },
        key_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.keyName',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end