Skip to content

Commit 8aa1ca5

Browse files
Migrate EventHub from generation to main (Azure#21019)
* Move EventHub to main * Update ChangeLog.md --------- Co-authored-by: Beisi Zhou <[email protected]>
1 parent 764820d commit 8aa1ca5

28 files changed

+311
-299
lines changed

src/EventHub/EventHub.Autorest/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,15 @@ directive:
343343
set:
344344
property-name: MessageRetentionInDays
345345

346+
- where:
347+
verb: New
348+
subject: EventHub
349+
parameter-name: MessageRetentionInDays
350+
set:
351+
breaking-change:
352+
change-description: -MessageRetentionInDays would be deprecated and would be replaced by -RetentionTimeInHours
353+
deprecated-by-version: 4.0.0
354+
346355
# Cluster
347356
- where:
348357
verb: New

src/EventHub/EventHub.Autorest/custom/Set-AzEventHub.ps1

+27-26
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function Set-AzEventHub{
2424
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202201Preview.IEventHub])]
2525
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
2626
param(
27-
[Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of EventHub Entity.")]
27+
[Parameter(ParameterSetName = 'SetExpanded', Mandatory, HelpMessage = "The name of EventHub Entity.")]
2828
[Alias('EventHubName')]
2929
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')]
3030
[System.String]
@@ -71,16 +71,16 @@ function Set-AzEventHub{
7171
${Encoding},
7272

7373
[Parameter(HelpMessage = "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")]
74-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
75-
[System.Int32]
76-
# 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
77-
${IntervalInSeconds},
74+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
75+
[System.Int32]
76+
# 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
77+
${IntervalInSeconds},
7878

7979
[Parameter(HelpMessage = "The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes")]
80-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
81-
[System.Int32]
82-
# The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
83-
${SizeLimitInBytes},
80+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
81+
[System.Int32]
82+
# The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes
83+
${SizeLimitInBytes},
8484

8585
[Parameter(HelpMessage = "A value that indicates whether to Skip Empty Archives")]
8686
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
@@ -89,10 +89,11 @@ function Set-AzEventHub{
8989
${SkipEmptyArchive},
9090

9191
[Parameter(HelpMessage = "Number of days to retain the events for this Event Hub, value should be 1 to 7 days")]
92-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
93-
[System.Int64]
94-
# Number of days to retain the events for this Event Hub, value should be 1 to 7 days
95-
${MessageRetentionInDays},
92+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("MessageRetentionInDays", "4.0.0", "", ChangeDescription = "-MessageRetentionInDays would be deprecated and would be replaced by -RetentionTimeInHours")]
93+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
94+
[System.Int64]
95+
# Number of days to retain the events for this Event Hub, value should be 1 to 7 days
96+
${MessageRetentionInDays},
9697

9798
[Parameter(HelpMessage = "Enumerates the possible values for the status of the Event Hub.")]
9899
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
@@ -101,16 +102,16 @@ function Set-AzEventHub{
101102
${Status},
102103

103104
[Parameter(HelpMessage = "Name for capture destination")]
104-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
105-
[System.String]
106-
# Name for capture destination
107-
${DestinationName},
105+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
106+
[System.String]
107+
# Name for capture destination
108+
${DestinationName},
108109

109110
[Parameter(HelpMessage = "Resource id of the storage account to be used to create the blobs")]
110-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
111-
[System.String]
112-
# Resource id of the storage account to be used to create the blobs
113-
${StorageAccountResourceId},
111+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
112+
[System.String]
113+
# Resource id of the storage account to be used to create the blobs
114+
${StorageAccountResourceId},
114115

115116
[Parameter(HelpMessage = "Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order")]
116117
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
@@ -119,10 +120,10 @@ function Set-AzEventHub{
119120
${ArchiveNameFormat},
120121

121122
[Parameter(HelpMessage = "Blob container Name")]
122-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
123-
[System.String]
124-
# Blob container Name
125-
${BlobContainer},
123+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
124+
[System.String]
125+
# Blob container Name
126+
${BlobContainer},
126127

127128
[Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
128129
[Alias('AzureRMContext', 'AzureCredential')]
@@ -282,4 +283,4 @@ function Set-AzEventHub{
282283
throw
283284
}
284285
}
285-
}
286+
}

src/EventHub/EventHub.Autorest/custom/Set-AzEventHubApplicationGroup.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function Set-AzEventHubApplicationGroup{
5959
[Parameter(ValueFromPipelineByPropertyName, HelpMessage = "The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)")]
6060
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
6161
[System.String]
62-
# The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid)
62+
# The Unique identifier for application group.Supports SAS(NamespaceSASKeyName=KeyName or EntitySASKeyName=KeyName) or AAD(AADAppID=Guid)
6363
${ClientAppGroupIdentifier},
6464

6565
[Parameter(ValueFromPipelineByPropertyName, HelpMessage = "Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed")]

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Get-AzEventHubApplicationGroup -ResourceGroupName myResourceGroup -NamespaceName
4141
```
4242

4343
```output
44-
ClientAppGroupIdentifier : SASKeyName=RootManageSharedAccessKey
44+
ClientAppGroupIdentifier : NamespaceSASKeyName=RootManageSharedAccessKey
4545
Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
4646
myAppGroup
4747
IsEnabled : True

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Creates or updates an ApplicationGroup for a Namespace.
2727
```powershell
2828
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
2929
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
30-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
30+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
3131
```
3232

3333
```output
34-
ClientAppGroupIdentifier : SASKeyName=a
34+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
3535
Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
3636
myAppGroup
3737
IsEnabled : True

src/EventHub/EventHub.Autorest/docs/Set-AzEventHubApplicationGroup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Set-AzEventHubApplicationGroup -ResourceGroupName myResourceGroup -NamespaceName
4141
```
4242

4343
```output
44-
ClientAppGroupIdentifier : SASKeyName=a
44+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
4545
Id : /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
4646
myAppGroup
4747
IsEnabled : True
@@ -77,7 +77,7 @@ Set-AzEventHubApplicationGroup -InputObject $appGroup -IsEnabled:$false
7777
```
7878

7979
```output
80-
ClientAppGroupIdentifier : SASKeyName=a
80+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
8181
Id : /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
8282
myAppGroup
8383
IsEnabled : False

src/EventHub/EventHub.Autorest/examples/Get-AzEventHubApplicationGroup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Get-AzEventHubApplicationGroup -ResourceGroupName myResourceGroup -NamespaceName
44
```
55

66
```output
7-
ClientAppGroupIdentifier : SASKeyName=RootManageSharedAccessKey
7+
ClientAppGroupIdentifier : NamespaceSASKeyName=RootManageSharedAccessKey
88
Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
99
myAppGroup
1010
IsEnabled : True

src/EventHub/EventHub.Autorest/examples/New-AzEventHubApplicationGroup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
```powershell
33
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
44
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
5-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
5+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
66
```
77

88
```output
9-
ClientAppGroupIdentifier : SASKeyName=a
9+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
1010
Id : /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
1111
myAppGroup
1212
IsEnabled : True

src/EventHub/EventHub.Autorest/examples/Set-AzEventHubApplicationGroup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Set-AzEventHubApplicationGroup -ResourceGroupName myResourceGroup -NamespaceName
77
```
88

99
```output
10-
ClientAppGroupIdentifier : SASKeyName=a
10+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
1111
Id : /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
1212
myAppGroup
1313
IsEnabled : True
@@ -41,7 +41,7 @@ Set-AzEventHubApplicationGroup -InputObject $appGroup -IsEnabled:$false
4141
```
4242

4343
```output
44-
ClientAppGroupIdentifier : SASKeyName=a
44+
ClientAppGroupIdentifier : NamespaceSASKeyName=a
4545
Id : /subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace/applicationGroups/
4646
myAppGroup
4747
IsEnabled : False

src/EventHub/EventHub.Autorest/exports/New-AzEventHubApplicationGroup.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Creates or updates an ApplicationGroup for a Namespace.
2222
.Example
2323
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
2424
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
25-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
25+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
2626
2727
.Outputs
2828
Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202201Preview.IApplicationGroup

src/EventHub/EventHub.Autorest/exports/ProxyCmdletDefinitions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ Creates or updates an ApplicationGroup for a Namespace.
23582358
.Example
23592359
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
23602360
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
2361-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
2361+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
23622362
23632363
.Outputs
23642364
Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202201Preview.IApplicationGroup
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest_core": "3.9.3",
3-
"autorest_powershell": "3.0.498",
4-
"swagger_commit": "d85953a9cb1b464824fae7c1fd300a99d086c8e4",
5-
"autorest": "`-- (empty)",
62
"autorest_modelerfour": "4.15.414",
7-
"node": "v14.15.5"
3+
"autorest_powershell": "3.0.499",
4+
"autorest": "`-- (empty)",
5+
"node": "v14.15.5",
6+
"swagger_commit": "8468620c009664ed91a3148c04cf77b6c8eb7b6f",
7+
"autorest_core": "3.9.4"
88
}

src/EventHub/EventHub.Autorest/generated/cmdlets/NewAzEventHub_CreateExpanded.cs

+1
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public partial class NewAzEventHub_CreateExpanded : global::System.Management.Au
191191
Description = @"Number of days to retain the events for this Event Hub, value should be 1 to 7 days",
192192
SerializedName = @"messageRetentionInDays",
193193
PossibleTypes = new [] { typeof(long) })]
194+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChange("MessageRetentionInDays", "4.0.0", ChangeDescription="-MessageRetentionInDays would be deprecated and would be replaced by -RetentionTimeInHours")]
194195
public long MessageRetentionInDays { get => _parametersBody.MessageRetentionInDays ?? default(long); set => _parametersBody.MessageRetentionInDays = value; }
195196

196197
/// <summary>

src/EventHub/EventHub.Autorest/internal/New-AzEventHubApplicationGroup.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Creates or updates an ApplicationGroup for a Namespace.
2222
.Example
2323
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
2424
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
25-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
25+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
2626
2727
.Inputs
2828
Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202201Preview.IApplicationGroup

src/EventHub/EventHub.Autorest/internal/ProxyCmdletDefinitions.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ Creates or updates an ApplicationGroup for a Namespace.
14301430
.Example
14311431
$t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000
14321432
$t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000
1433-
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier SASKeyName=a -Policy $t1,$t2
1433+
New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2
14341434
14351435
.Inputs
14361436
Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202201Preview.IApplicationGroup

0 commit comments

Comments
 (0)