Skip to content

Commit 6148dba

Browse files
Migrate EventHub from generation to main (#22610)
* Move EventHub to main * update ChangeLog --------- Co-authored-by: YanaXu <[email protected]>
1 parent b38d0c2 commit 6148dba

File tree

654 files changed

+21655
-11742
lines changed

Some content is hidden

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

654 files changed

+21655
-11742
lines changed

src/EventHub/EventHub.Autorest/Az.EventHub.format.ps1xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<Configuration>
33
<ViewDefinitions>
44
<View>
5-
<Name>Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.SchemaGroupProperties</Name>
5+
<Name>Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.SchemaGroupProperties</Name>
66
<ViewSelectedBy>
7-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.SchemaGroupProperties</TypeName>
7+
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.SchemaGroupProperties</TypeName>
88
</ViewSelectedBy>
99
<TableControl>
1010
<TableHeaders>

src/EventHub/EventHub.Autorest/README.md

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,24 @@ For information on how to develop for `Az.EventHub`, see [how-to.md](how-to.md).
3131
3232
``` yaml
3333
# Please specify the commit id that includes your features to make sure generated codes stable.
34-
branch: 00ff897270e1f60b5e8944b15fc35fc0f9af2598
34+
branch: 49946abc47b5ea9402d7763ae61b183ca4741855
3535
require:
3636
# readme.azure.noprofile.md is the common configuration file
3737
- $(this-folder)/../../readme.azure.noprofile.md
3838
input-file:
3939
# You need to specify your swagger files here.
40-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/AvailableClusterRegions-preview.json
41-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/Clusters-preview.json
42-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/namespaces-preview.json
43-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/networkrulessets-preview.json
44-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/AuthorizationRules.json
45-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/CheckNameAvailability.json
46-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/consumergroups.json
47-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/disasterRecoveryConfigs.json
48-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/operations.json
49-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/SchemaRegistry.json
50-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/eventhubs.json
51-
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2022-10-01-preview/ApplicationGroups.json
40+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/AvailableClusterRegions-preview.json
41+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/Clusters-preview.json
42+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/namespaces-preview.json
43+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/networkrulessets-preview.json
44+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/AuthorizationRules.json
45+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/CheckNameAvailability.json
46+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/consumergroups.json
47+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/disasterRecoveryConfigs.json
48+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/operations.json
49+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/SchemaRegistry.json
50+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/eventhubs.json
51+
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/eventhub/resource-manager/Microsoft.EventHub/preview/2023-01-01-preview/ApplicationGroups.json
5252
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
5353
# - (this-folder)/relative-path-to-your-swagger
5454

@@ -284,6 +284,18 @@ directive:
284284
set:
285285
property-name: CaptureEnabled
286286

287+
- where:
288+
verb: New
289+
subject: EventHub
290+
parameter-name: IdentityUserAssignedIdentity
291+
set:
292+
parameter-name: UserAssignedIdentityId
293+
- where:
294+
model-name: EventHub
295+
property-name: IdentityUserAssignedIdentity
296+
set:
297+
property-name: UserAssignedIdentityId
298+
287299
- where:
288300
verb: New
289301
subject: EventHub

src/EventHub/EventHub.Autorest/custom/Approve-AzEventHubPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Approves an EventHub PrivateEndpointConnection
2020
#>
2121

2222
function Approve-AzEventHubPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/EventHub/EventHub.Autorest/custom/Deny-AzEventHubPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Denies an EventHub PrivateEndpointConnection
2020
#>
2121

2222
function Deny-AzEventHubPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/EventHub/EventHub.Autorest/custom/Get-AzEventHubAuthorizationRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets an EventHub Authorization Rule
2020
#>
2121

2222
function Get-AzEventHubAuthorizationRule{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IAuthorizationRule])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedEntity', HelpMessage = "The name of the Authorization Rule")]

src/EventHub/EventHub.Autorest/custom/Get-AzEventHubKey.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets an EventHub SAS key
2020
#>
2121

2222
function Get-AzEventHubKey{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IAccessKeys])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAccessKeys])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]

src/EventHub/EventHub.Autorest/custom/New-AzEventHubAuthorizationRule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates an EventHub Authorization Rule
2020
#>
2121

2222
function New-AzEventHubAuthorizationRule{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IAuthorizationRule])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
2424
[CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'NewExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]
@@ -130,7 +130,7 @@ function New-AzEventHubAuthorizationRule{
130130
$null = $PSBoundParameters.Remove('WhatIf')
131131
$null = $PSBoundParameters.Remove('Confirm')
132132

133-
$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IAuthorizationRule]@{
133+
$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule]@{
134134
Rights = $Rights
135135
}
136136

src/EventHub/EventHub.Autorest/custom/New-AzEventHubIPRuleConfig.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHu
1919
Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
2020
#>
2121
function New-AzEventHubIPRuleConfig{
22-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.INwRuleSetIPRules])]
22+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules])]
2323
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
2424
param(
2525
[Parameter(Mandatory, HelpMessage = "IP Mask")]
@@ -35,7 +35,7 @@ function New-AzEventHubIPRuleConfig{
3535

3636
process{
3737
try{
38-
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.INwRuleSetIPRules]@{
38+
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules]@{
3939
IPMask = $IPMask
4040
Action = $Action
4141
}

src/EventHub/EventHub.Autorest/custom/New-AzEventHubKey.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Regenerates an EventHub SAS key
2020
#>
2121

2222
function New-AzEventHubKey{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IAccessKeys])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAccessKeys])]
2424
[CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'NewExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]
@@ -139,7 +139,7 @@ function New-AzEventHubKey{
139139
$null = $PSBoundParameters.Remove('WhatIf')
140140
$null = $PSBoundParameters.Remove('Confirm')
141141

142-
$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IRegenerateAccessKeyParameters]@{
142+
$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IRegenerateAccessKeyParameters]@{
143143
KeyType = $KeyType
144144
}
145145

src/EventHub/EventHub.Autorest/custom/New-AzEventHubNamespace.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Creates an EventHub Namespace
2121

2222
function New-AzEventHubNamespace{
2323
[Alias("New-AzEventHubNamespaceV2")]
24-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IEhNamespace])]
24+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IEhNamespace])]
2525
[CmdletBinding(PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
2626
param(
2727

@@ -77,7 +77,7 @@ function New-AzEventHubNamespace{
7777

7878
[Parameter(HelpMessage = "Properties to configure Encryption")]
7979
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
80-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.IKeyVaultProperties[]]
80+
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IKeyVaultProperties[]]
8181
${KeyVaultProperty},
8282

8383
[Parameter(HelpMessage = "Type of managed service identity.")]
@@ -200,7 +200,7 @@ function New-AzEventHubNamespace{
200200
$identityHashTable = @{}
201201

202202
foreach ($resourceID in $UserAssignedIdentityId){
203-
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api20221001Preview.UserAssignedIdentity]::new())
203+
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.UserAssignedIdentity]::new())
204204
}
205205

206206
$PSBoundParameters.Add("UserAssignedIdentity", $identityHashTable)

0 commit comments

Comments
 (0)