Skip to content

Commit 6988783

Browse files
authored
Merge pull request MicrosoftDocs#577 from MicrosoftDocs/smoke-test-previous
Adding azure-eventhub to Legacy ToC
2 parents 873a603 + c9123f0 commit 6988783

File tree

66 files changed

+5563
-1572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+5563
-1572
lines changed

docs-ref-mapping/reference-previous.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
landingPageType: Service
99
children:
1010
- 'azure-keyvault*'
11+
- name: Event Hubs
12+
uid: azure.python.sdk.landingPage.services.EventHub.Preview
13+
landingPageType: Service
14+
children:
15+
- 'azure-eventhub*'
1116
- name: Storage
1217
uid: azure.python.sdk.landingPage.services.Storage.Preview
1318
landingPageType: Service
Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
### YamlMime:UniversalReference
2+
api_name: []
3+
items:
4+
- children:
5+
- azure.eventhub.async_ops.EventHubClientAsync.add_async_epoch_receiver
6+
- azure.eventhub.async_ops.EventHubClientAsync.add_async_receiver
7+
- azure.eventhub.async_ops.EventHubClientAsync.add_async_sender
8+
- azure.eventhub.async_ops.EventHubClientAsync.get_eventhub_info_async
9+
- azure.eventhub.async_ops.EventHubClientAsync.run_async
10+
- azure.eventhub.async_ops.EventHubClientAsync.stop_async
11+
class: azure.eventhub.async_ops.EventHubClientAsync
12+
fullName: azure.eventhub.async_ops.EventHubClientAsync
13+
inheritance:
14+
- inheritance:
15+
- type: builtins.object
16+
type: azure.eventhub.client.EventHubClient
17+
langs:
18+
- python
19+
module: azure.eventhub.async_ops
20+
name: EventHubClientAsync
21+
summary: 'The EventHubClient class defines a high level interface for asynchronously
22+
23+
sending events to and receiving events from the Azure Event Hubs service.'
24+
syntax:
25+
content: EventHubClientAsync(address, username=None, password=None, debug=False,
26+
http_proxy=None, auth_timeout=60, sas_token=None)
27+
type: class
28+
uid: azure.eventhub.async_ops.EventHubClientAsync
29+
- class: azure.eventhub.async_ops.EventHubClientAsync
30+
fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_epoch_receiver
31+
langs:
32+
- python
33+
module: azure.eventhub.async_ops
34+
name: add_async_epoch_receiver(consumer_group, partition, epoch, prefetch=300, operation=None,
35+
keep_alive=30, auto_reconnect=True, loop=None)
36+
summary: 'Add an async receiver to the client with an epoch value. Only a single
37+
epoch receiver
38+
39+
can connect to a partition at any given time - additional epoch receivers must
40+
have
41+
42+
a higher epoch value or they will be rejected. If a 2nd epoch receiver has
43+
44+
connected, the first will be closed.'
45+
syntax:
46+
content: add_async_epoch_receiver(consumer_group, partition, epoch, prefetch=300,
47+
operation=None, keep_alive=30, auto_reconnect=True, loop=None)
48+
parameters:
49+
- description: The name of the consumer group.
50+
id: consumer_group
51+
type:
52+
- str
53+
- description: The ID of the partition.
54+
id: partition
55+
type:
56+
- str
57+
- description: The epoch value for the receiver.
58+
id: epoch
59+
type:
60+
- int
61+
- defaultValue: '300'
62+
description: The message prefetch count of the receiver. Default is 300.
63+
id: prefetch
64+
type:
65+
- int
66+
- defaultValue: None
67+
id: operation
68+
- defaultValue: '30'
69+
id: keep_alive
70+
- defaultValue: 'True'
71+
id: auto_reconnect
72+
- defaultValue: None
73+
id: loop
74+
return:
75+
type:
76+
- azure.eventhub.async_ops.receiver_async.ReceiverAsync
77+
type: method
78+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_epoch_receiver
79+
- class: azure.eventhub.async_ops.EventHubClientAsync
80+
fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_receiver
81+
langs:
82+
- python
83+
module: azure.eventhub.async_ops
84+
name: add_async_receiver(consumer_group, partition, offset=None, prefetch=300, operation=None,
85+
keep_alive=30, auto_reconnect=True, loop=None)
86+
summary: Add an async receiver to the client for a particular consumer group and
87+
partition.
88+
syntax:
89+
content: add_async_receiver(consumer_group, partition, offset=None, prefetch=300,
90+
operation=None, keep_alive=30, auto_reconnect=True, loop=None)
91+
parameters:
92+
- description: The name of the consumer group.
93+
id: consumer_group
94+
type:
95+
- str
96+
- description: The ID of the partition.
97+
id: partition
98+
type:
99+
- str
100+
- defaultValue: None
101+
description: The offset from which to start receiving.
102+
id: offset
103+
type:
104+
- azure.eventhub.common.Offset
105+
- defaultValue: '300'
106+
description: The message prefetch count of the receiver. Default is 300.
107+
id: prefetch
108+
type:
109+
- int
110+
- defaultValue: None
111+
id: operation
112+
- defaultValue: '30'
113+
id: keep_alive
114+
- defaultValue: 'True'
115+
id: auto_reconnect
116+
- defaultValue: None
117+
id: loop
118+
return:
119+
type:
120+
- azure.eventhub.async_ops.receiver_async.ReceiverAsync
121+
type: method
122+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_receiver
123+
- class: azure.eventhub.async_ops.EventHubClientAsync
124+
fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_sender
125+
langs:
126+
- python
127+
module: azure.eventhub.async_ops
128+
name: add_async_sender(partition=None, operation=None, send_timeout=60, keep_alive=30,
129+
auto_reconnect=True, loop=None)
130+
summary: 'Add an async sender to the client to send ~azure.eventhub.common.EventData
131+
object
132+
133+
to an EventHub.'
134+
syntax:
135+
content: add_async_sender(partition=None, operation=None, send_timeout=60, keep_alive=30,
136+
auto_reconnect=True, loop=None)
137+
parameters:
138+
- defaultValue: None
139+
description: 'Optionally specify a particular partition to send to.
140+
141+
If omitted, the events will be distributed to available partitions via
142+
143+
round-robin.'
144+
id: partition
145+
type:
146+
- str
147+
- defaultValue: None
148+
description: 'The timeout in seconds for an individual event to be sent from
149+
the time that it is
150+
151+
queued. Default value is 60 seconds. If set to 0, there will be no timeout.'
152+
id: send_timeout
153+
type:
154+
- int
155+
- defaultValue: '60'
156+
description: 'The time interval in seconds between pinging the connection to
157+
keep it alive during
158+
159+
periods of inactivity. The default value is 30 seconds. If set to *None*,
160+
the connection will not
161+
162+
be pinged.'
163+
id: keep_alive
164+
type:
165+
- int
166+
- defaultValue: '30'
167+
description: 'Whether to automatically reconnect the sender if a retryable error
168+
occurs.
169+
170+
Default value is *True*.'
171+
id: auto_reconnect
172+
type:
173+
- bool
174+
- defaultValue: 'True'
175+
id: auto_reconnect
176+
- defaultValue: None
177+
id: loop
178+
return:
179+
type:
180+
- azure.eventhub.async_ops.sender_async.SenderAsync
181+
type: method
182+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_sender
183+
- class: azure.eventhub.async_ops.EventHubClientAsync
184+
fullName: azure.eventhub.async_ops.EventHubClientAsync.get_eventhub_info_async
185+
langs:
186+
- python
187+
module: azure.eventhub.async_ops
188+
name: get_eventhub_info_async()
189+
summary: Get details on the specified EventHub async.
190+
syntax:
191+
content: get_eventhub_info_async()
192+
parameters: []
193+
return:
194+
type:
195+
- dict
196+
type: method
197+
uid: azure.eventhub.async_ops.EventHubClientAsync.get_eventhub_info_async
198+
- class: azure.eventhub.async_ops.EventHubClientAsync
199+
fullName: azure.eventhub.async_ops.EventHubClientAsync.run_async
200+
langs:
201+
- python
202+
module: azure.eventhub.async_ops
203+
name: run_async()
204+
summary: 'Run the EventHubClient asynchronously.
205+
206+
Opens the connection and starts running all AsyncSender/AsyncReceiver clients.
207+
208+
Returns a list of the start up results. For a succcesful client start the
209+
210+
result will be *None*, otherwise the exception raised.
211+
212+
If all clients failed to start, then run will fail, shut down the connection
213+
214+
and raise an exception.
215+
216+
If at least one client starts up successfully the run command will succeed.'
217+
syntax:
218+
content: run_async()
219+
parameters: []
220+
return:
221+
type:
222+
- list[azure.eventhub.common.EventHubError]
223+
type: method
224+
uid: azure.eventhub.async_ops.EventHubClientAsync.run_async
225+
- class: azure.eventhub.async_ops.EventHubClientAsync
226+
fullName: azure.eventhub.async_ops.EventHubClientAsync.stop_async
227+
langs:
228+
- python
229+
module: azure.eventhub.async_ops
230+
name: stop_async()
231+
summary: Stop the EventHubClient and all its Sender/Receiver clients.
232+
syntax:
233+
content: stop_async()
234+
parameters: []
235+
type: method
236+
uid: azure.eventhub.async_ops.EventHubClientAsync.stop_async
237+
references:
238+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_epoch_receiver
239+
isExternal: false
240+
name: add_async_epoch_receiver(consumer_group, partition, epoch, prefetch=300, operation=None,
241+
keep_alive=30, auto_reconnect=True, loop=None)
242+
parent: azure.eventhub.async_ops.EventHubClientAsync
243+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_epoch_receiver
244+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_receiver
245+
isExternal: false
246+
name: add_async_receiver(consumer_group, partition, offset=None, prefetch=300, operation=None,
247+
keep_alive=30, auto_reconnect=True, loop=None)
248+
parent: azure.eventhub.async_ops.EventHubClientAsync
249+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_receiver
250+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.add_async_sender
251+
isExternal: false
252+
name: add_async_sender(partition=None, operation=None, send_timeout=60, keep_alive=30,
253+
auto_reconnect=True, loop=None)
254+
parent: azure.eventhub.async_ops.EventHubClientAsync
255+
uid: azure.eventhub.async_ops.EventHubClientAsync.add_async_sender
256+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.get_eventhub_info_async
257+
isExternal: false
258+
name: get_eventhub_info_async()
259+
parent: azure.eventhub.async_ops.EventHubClientAsync
260+
uid: azure.eventhub.async_ops.EventHubClientAsync.get_eventhub_info_async
261+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.run_async
262+
isExternal: false
263+
name: run_async()
264+
parent: azure.eventhub.async_ops.EventHubClientAsync
265+
uid: azure.eventhub.async_ops.EventHubClientAsync.run_async
266+
- fullName: azure.eventhub.async_ops.EventHubClientAsync.stop_async
267+
isExternal: false
268+
name: stop_async()
269+
parent: azure.eventhub.async_ops.EventHubClientAsync
270+
uid: azure.eventhub.async_ops.EventHubClientAsync.stop_async
271+
- fullName: list[azure.eventhub.common.EventHubError]
272+
name: list[EventHubError]
273+
spec.python:
274+
- fullName: list
275+
name: list
276+
uid: list
277+
- fullName: '['
278+
name: '['
279+
- fullName: azure.eventhub.common.EventHubError
280+
name: EventHubError
281+
uid: azure.eventhub.common.EventHubError
282+
- fullName: ']'
283+
name: ']'
284+
uid: list[azure.eventhub.common.EventHubError]

0 commit comments

Comments
 (0)