Skip to content

Commit 87b1df3

Browse files
fixing the test failure
1 parent 3c99202 commit 87b1df3

24 files changed

+454
-539
lines changed

src/EventHub/EventHub.Autorest/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ keep-pec-and-plr: true
6666

6767
directive:
6868
- where:
69-
variant: ^(Create|Update)(?!.*?Expanded)
69+
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaJsonFilePath$|^CreateViaJsonString$
7070
remove: true
7171
- where:
7272
variant: ^CreateViaIdentity$
73-
remove: true
73+
hide: true
7474
- where:
7575
variant: ^RegenerateExpanded$|^RegenerateViaIdentityExpanded$|^RegenerateViaIdentity$
7676
remove: true

src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateEndpointConnection.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,31 @@ Gets a description for the specified Private Endpoint Connection name.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: Get an Event Hub Namespace Private Endpoint Connection
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzEventHubPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name 00000000000
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
50+
ConnectionState : Approved
51+
Description :
52+
Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/privateEndpointC
53+
onnections/00000000000
54+
Location : Australia East
55+
Name : 00000000000
56+
PrivateEndpointId : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/privateEndpointName
57+
ProvisioningState : Succeeded
58+
ResourceGroupName : myResourceGroup
5159
```
5260

53-
{{ Add description here }}
61+
Gets details of private endpoint connection `00000000000` created under EventHub namespace `myNamespace`.
5462

55-
### Example 2: {{ Add title here }}
63+
### Example 2: List all private endpoint connections on an EventHub namespace
5664
```powershell
57-
{{ Add code here }}
65+
Get-AzEventHubPrivateEndpointConnection -ResourceGroupName myResourceGroup -NamespaceName myNamespace
5866
```
5967

60-
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
68+
Lists all private endpoint connections of EventHub namespace `myNamespace`.
6569

6670
## PARAMETERS
6771

src/EventHub/EventHub.Autorest/docs/Get-AzEventHubPrivateLink.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,21 @@ Gets lists of resources that supports Privatelinks.
2222

2323
## EXAMPLES
2424

25-
### Example 1: {{ Add title here }}
25+
### Example 1: Get private links associated with an EventHub namespace
2626
```powershell
27-
{{ Add code here }}
27+
Get-AzEventHubPrivateLink -ResourceGroupName myResourceGroup -NamespaceName myNamespace
2828
```
2929

3030
```output
31-
{{ Add output here (remove the output block if the example doesn't have an output) }}
31+
GroupId : namespace
32+
Id : subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/privateLinkResources/namespace
33+
Name : namespace
34+
RequiredMember : {namespace}
35+
RequiredZoneName : {privatelink.servicebus.windows.net}
36+
Type : Microsoft.EventHub/namespaces/privateLinkResources
3237
```
3338

34-
{{ Add description here }}
35-
36-
### Example 2: {{ Add title here }}
37-
```powershell
38-
{{ Add code here }}
39-
```
40-
41-
```output
42-
{{ Add output here (remove the output block if the example doesn't have an output) }}
43-
```
44-
45-
{{ Add description here }}
39+
Gets private link resources available on EventHubs namespace `myNamespace`.
4640

4741
## PARAMETERS
4842

src/EventHub/EventHub.Autorest/docs/New-AzEventHub.md

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ New-AzEventHub -Name <String> -NamespaceName <String> -ResourceGroupName <String
2222
[-UserAssignedIdentityId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2323
```
2424

25-
### CreateViaIdentityExpanded
25+
### CreateViaIdentityNamespace
2626
```
27-
New-AzEventHub -InputObject <IEventHubIdentity> [-ArchiveNameFormat <String>] [-BlobContainer <String>]
28-
[-CaptureEnabled] [-CleanupPolicy <String>] [-DestinationName <String>] [-Encoding <String>]
29-
[-IdentityType <String>] [-IntervalInSeconds <Int32>] [-PartitionCount <Int64>]
30-
[-RetentionTimeInHour <Int64>] [-SizeLimitInBytes <Int32>] [-SkipEmptyArchive] [-Status <String>]
31-
[-StorageAccountResourceId <String>] [-TombstoneRetentionTimeInHour <Int32>]
32-
[-UserAssignedIdentityId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
27+
New-AzEventHub -Name <String> -NamespaceInputObject <IEventHubIdentity> -Parameter <IEventhub>
28+
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
3329
```
3430

3531
### CreateViaIdentityNamespaceExpanded
@@ -172,7 +168,7 @@ etc) are mandatory irrespective of order
172168

173169
```yaml
174170
Type: System.String
175-
Parameter Sets: (All)
171+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
176172
Aliases:
177173

178174
Required: False
@@ -187,7 +183,7 @@ Blob container Name
187183
188184
```yaml
189185
Type: System.String
190-
Parameter Sets: (All)
186+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
191187
Aliases:
192188

193189
Required: False
@@ -202,7 +198,7 @@ A value that indicates whether capture description is enabled.
202198
203199
```yaml
204200
Type: System.Management.Automation.SwitchParameter
205-
Parameter Sets: (All)
201+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
206202
Aliases:
207203

208204
Required: False
@@ -217,7 +213,7 @@ Enumerates the possible values for cleanup policy
217213
218214
```yaml
219215
Type: System.String
220-
Parameter Sets: (All)
216+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
221217
Aliases:
222218

223219
Required: False
@@ -248,7 +244,7 @@ Name for capture destination
248244
249245
```yaml
250246
Type: System.String
251-
Parameter Sets: (All)
247+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
252248
Aliases:
253249

254250
Required: False
@@ -264,7 +260,7 @@ Note: 'AvroDeflate' will be deprecated in New API Version
264260
265261
```yaml
266262
Type: System.String
267-
Parameter Sets: (All)
263+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
268264
Aliases:
269265

270266
Required: False
@@ -279,7 +275,7 @@ Type of Azure Active Directory Managed Identity.
279275
280276
```yaml
281277
Type: System.String
282-
Parameter Sets: (All)
278+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
283279
Aliases:
284280

285281
Required: False
@@ -289,28 +285,12 @@ Accept pipeline input: False
289285
Accept wildcard characters: False
290286
```
291287
292-
### -InputObject
293-
Identity Parameter
294-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
295-
296-
```yaml
297-
Type: Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity
298-
Parameter Sets: CreateViaIdentityExpanded
299-
Aliases:
300-
301-
Required: True
302-
Position: Named
303-
Default value: None
304-
Accept pipeline input: True (ByValue)
305-
Accept wildcard characters: False
306-
```
307-
308288
### -IntervalInSeconds
309289
The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds
310290
311291
```yaml
312292
Type: System.Int32
313-
Parameter Sets: (All)
293+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
314294
Aliases:
315295

316296
Required: False
@@ -325,7 +305,7 @@ The Event Hub name
325305
326306
```yaml
327307
Type: System.String
328-
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
308+
Parameter Sets: (All)
329309
Aliases: EventHubName
330310

331311
Required: True
@@ -341,7 +321,7 @@ To construct, see NOTES section for NAMESPACEINPUTOBJECT properties and create a
341321
342322
```yaml
343323
Type: Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity
344-
Parameter Sets: CreateViaIdentityNamespaceExpanded
324+
Parameter Sets: CreateViaIdentityNamespace, CreateViaIdentityNamespaceExpanded
345325
Aliases:
346326

347327
Required: True
@@ -366,12 +346,28 @@ Accept pipeline input: False
366346
Accept wildcard characters: False
367347
```
368348
349+
### -Parameter
350+
Single item in List or Get Event Hub operation
351+
To construct, see NOTES section for PARAMETER properties and create a hash table.
352+
353+
```yaml
354+
Type: Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub
355+
Parameter Sets: CreateViaIdentityNamespace
356+
Aliases:
357+
358+
Required: True
359+
Position: Named
360+
Default value: None
361+
Accept pipeline input: True (ByValue)
362+
Accept wildcard characters: False
363+
```
364+
369365
### -PartitionCount
370366
Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
371367
372368
```yaml
373369
Type: System.Int64
374-
Parameter Sets: (All)
370+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
375371
Aliases:
376372

377373
Required: False
@@ -403,7 +399,7 @@ If cleanupPolicy is Compact the returned value of this property is Long.MaxValue
403399
404400
```yaml
405401
Type: System.Int64
406-
Parameter Sets: (All)
402+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
407403
Aliases:
408404

409405
Required: False
@@ -418,7 +414,7 @@ The size window defines the amount of data built up in your Event Hub before an
418414
419415
```yaml
420416
Type: System.Int32
421-
Parameter Sets: (All)
417+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
422418
Aliases:
423419

424420
Required: False
@@ -433,7 +429,7 @@ A value that indicates whether to Skip Empty Archives
433429
434430
```yaml
435431
Type: System.Management.Automation.SwitchParameter
436-
Parameter Sets: (All)
432+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
437433
Aliases:
438434

439435
Required: False
@@ -448,7 +444,7 @@ Enumerates the possible values for the status of the Event Hub.
448444
449445
```yaml
450446
Type: System.String
451-
Parameter Sets: (All)
447+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
452448
Aliases:
453449

454450
Required: False
@@ -463,7 +459,7 @@ Resource id of the storage account to be used to create the blobs
463459
464460
```yaml
465461
Type: System.String
466-
Parameter Sets: (All)
462+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
467463
Aliases:
468464

469465
Required: False
@@ -496,7 +492,7 @@ Consumer must complete reading the tombstone marker within this specified amount
496492
497493
```yaml
498494
Type: System.Int32
499-
Parameter Sets: (All)
495+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
500496
Aliases:
501497

502498
Required: False
@@ -513,7 +509,7 @@ If type is SystemAssigned, then the System Assigned Identity Associated with the
513509
514510
```yaml
515511
Type: System.String
516-
Parameter Sets: (All)
512+
Parameter Sets: CreateExpanded, CreateViaIdentityNamespaceExpanded
517513
Aliases:
518514

519515
Required: False
@@ -559,6 +555,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
559555
560556
## INPUTS
561557
558+
### Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub
559+
562560
### Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity
563561
564562
## OUTPUTS

0 commit comments

Comments
 (0)