Skip to content

Commit c1f3222

Browse files
authored
[MobileNetwork] Additional change mobile network (#20610)
* update mobile network * add SignatureIssues.csv * create examples
1 parent 99a0aa8 commit c1f3222

File tree

173 files changed

+1872
-6583
lines changed

Some content is hidden

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

173 files changed

+1872
-6583
lines changed

src/MobileNetwork/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ internal
66
exports
77
tools
88
custom/*.psm1
9+
custom/autogen-model-cmdlets
910
test/*-TestResults.xml
1011
/*.ps1
1112
/*.ps1xml

src/MobileNetwork/Az.MobileNetwork.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.MobileNetwork.private.dll'
1313
FormatsToProcess = './Az.MobileNetwork.format.ps1xml'
14-
FunctionsToExport = 'Get-AzMobileNetwork', 'Get-AzMobileNetworkAttachedDataNetwork', 'Get-AzMobileNetworkDataNetwork', 'Get-AzMobileNetworkPacketCoreControlPlane', 'Get-AzMobileNetworkPacketCoreControlPlaneVersion', 'Get-AzMobileNetworkPacketCoreDataPlane', 'Get-AzMobileNetworkService', 'Get-AzMobileNetworkSim', 'Get-AzMobileNetworkSimGroup', 'Get-AzMobileNetworkSimPolicy', 'Get-AzMobileNetworkSite', 'Get-AzMobileNetworkSlice', 'New-AzMobileNetwork', 'New-AzMobileNetworkAttachedDataNetwork', 'New-AzMobileNetworkDataNetwork', 'New-AzMobileNetworkDataNetworkConfigurationObject', 'New-AzMobileNetworkPacketCoreControlPlane', 'New-AzMobileNetworkPacketCoreDataPlane', 'New-AzMobileNetworkPccRuleConfigurationObject', 'New-AzMobileNetworkService', 'New-AzMobileNetworkServiceDataFlowTemplateObject', 'New-AzMobileNetworkServiceResourceIdObject', 'New-AzMobileNetworkSim', 'New-AzMobileNetworkSimGroup', 'New-AzMobileNetworkSimNameAndEncryptedPropertiesObject', 'New-AzMobileNetworkSimNameAndPropertiesObject', 'New-AzMobileNetworkSimPolicy', 'New-AzMobileNetworkSimStaticIPPropertiesObject', 'New-AzMobileNetworkSite', 'New-AzMobileNetworkSiteResourceIdObject', 'New-AzMobileNetworkSlice', 'New-AzMobileNetworkSliceConfigurationObject', 'Remove-AzMobileNetwork', 'Remove-AzMobileNetworkAttachedDataNetwork', 'Remove-AzMobileNetworkBulkSimDelete', 'Remove-AzMobileNetworkDataNetwork', 'Remove-AzMobileNetworkPacketCoreControlPlane', 'Remove-AzMobileNetworkPacketCoreDataPlane', 'Remove-AzMobileNetworkService', 'Remove-AzMobileNetworkSim', 'Remove-AzMobileNetworkSimGroup', 'Remove-AzMobileNetworkSimPolicy', 'Remove-AzMobileNetworkSite', 'Remove-AzMobileNetworkSlice', 'Reset-AzMobileNetworkReinstallPacketCoreControlPlane', 'Revoke-AzMobileNetworkRollbackPacketCoreControlPlane', 'Update-AzMobileNetwork', 'Update-AzMobileNetworkAttachedDataNetwork', 'Update-AzMobileNetworkBulkSimUpload', 'Update-AzMobileNetworkBulkSimUploadEncrypted', 'Update-AzMobileNetworkCollectPacketCoreControlPlaneDiagnosticPackage', 'Update-AzMobileNetworkDataNetwork', 'Update-AzMobileNetworkPacketCoreControlPlane', 'Update-AzMobileNetworkPacketCoreDataPlane', 'Update-AzMobileNetworkService', 'Update-AzMobileNetworkSimGroup', 'Update-AzMobileNetworkSimPolicy', 'Update-AzMobileNetworkSite', 'Update-AzMobileNetworkSlice', '*'
14+
FunctionsToExport = 'Get-AzMobileNetwork', 'Get-AzMobileNetworkAttachedDataNetwork', 'Get-AzMobileNetworkDataNetwork', 'Get-AzMobileNetworkPacketCoreControlPlane', 'Get-AzMobileNetworkPacketCoreControlPlaneVersion', 'Get-AzMobileNetworkPacketCoreDataPlane', 'Get-AzMobileNetworkService', 'Get-AzMobileNetworkSim', 'Get-AzMobileNetworkSimGroup', 'Get-AzMobileNetworkSimPolicy', 'Get-AzMobileNetworkSite', 'Get-AzMobileNetworkSlice', 'New-AzMobileNetwork', 'New-AzMobileNetworkAttachedDataNetwork', 'New-AzMobileNetworkDataNetwork', 'New-AzMobileNetworkDataNetworkConfigurationObject', 'New-AzMobileNetworkPacketCoreControlPlane', 'New-AzMobileNetworkPacketCoreDataPlane', 'New-AzMobileNetworkPccRuleConfigurationObject', 'New-AzMobileNetworkService', 'New-AzMobileNetworkServiceDataFlowTemplateObject', 'New-AzMobileNetworkServiceResourceIdObject', 'New-AzMobileNetworkSim', 'New-AzMobileNetworkSimGroup', 'New-AzMobileNetworkSimPolicy', 'New-AzMobileNetworkSimStaticIPPropertiesObject', 'New-AzMobileNetworkSite', 'New-AzMobileNetworkSiteResourceIdObject', 'New-AzMobileNetworkSlice', 'New-AzMobileNetworkSliceConfigurationObject', 'Remove-AzMobileNetwork', 'Remove-AzMobileNetworkAttachedDataNetwork', 'Remove-AzMobileNetworkDataNetwork', 'Remove-AzMobileNetworkPacketCoreControlPlane', 'Remove-AzMobileNetworkPacketCoreDataPlane', 'Remove-AzMobileNetworkService', 'Remove-AzMobileNetworkSim', 'Remove-AzMobileNetworkSimGroup', 'Remove-AzMobileNetworkSimPolicy', 'Remove-AzMobileNetworkSite', 'Remove-AzMobileNetworkSlice', 'Update-AzMobileNetwork', 'Update-AzMobileNetworkAttachedDataNetwork', 'Update-AzMobileNetworkDataNetwork', 'Update-AzMobileNetworkPacketCoreControlPlane', 'Update-AzMobileNetworkPacketCoreDataPlane', 'Update-AzMobileNetworkService', 'Update-AzMobileNetworkSimGroup', 'Update-AzMobileNetworkSimPolicy', 'Update-AzMobileNetworkSite', 'Update-AzMobileNetworkSlice', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/MobileNetwork/README.md

Lines changed: 89 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This directory contains the PowerShell module for the MobileNetwork service.
1717
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
1818

1919
## Module Requirements
20-
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.2.3 or greater
20+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
2121

2222
## Authentication
2323
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
@@ -82,6 +82,11 @@ directive:
8282
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^BulkViaIdentity$|^Bulk$|^Collect$|^CollectViaIdentity$
8383
remove: true
8484

85+
- where:
86+
verb: New
87+
subject: SimGroup
88+
hide: true
89+
8590
- where:
8691
verb: Set
8792
remove: true
@@ -129,47 +134,73 @@ directive:
129134
subject: ^Slouse$
130135
set:
131136
subject: Slice
137+
- where:
138+
parameter-name: DefaultSlouseId
139+
set:
140+
parameter-name: DefaultSliceId
132141

142+
# - where:
143+
# verb: Invoke
144+
# subject: ^BulkSimDelete$
145+
# set:
146+
# verb: Remove
133147
- where:
134148
verb: Invoke
135149
subject: ^BulkSimDelete$
136-
set:
137-
verb: Remove
150+
remove: true
151+
# - where:
152+
# verb: Invoke
153+
# subject: ^BulkSimUpload$
154+
# set:
155+
# verb: Update
138156
- where:
139157
verb: Invoke
140158
subject: ^BulkSimUpload$
141-
set:
142-
verb: Update
159+
remove: true
160+
# - where:
161+
# verb: Invoke
162+
# subject: ^BulkSimUploadEncrypted$
163+
# set:
164+
# verb: Update
143165
- where:
144166
verb: Invoke
145167
subject: ^BulkSimUploadEncrypted$
146-
set:
147-
verb: Update
168+
remove: true
169+
# - where:
170+
# verb: Invoke
171+
# subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
172+
# set:
173+
# verb: Update
148174
- where:
149175
verb: Invoke
150176
subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
151-
set:
152-
verb: Update
177+
remove: true
178+
# - where:
179+
# verb: Invoke
180+
# subject: ^ReinstallPacketCoreControlPlane$
181+
# set:
182+
# verb: Reset
153183
- where:
154184
verb: Invoke
155185
subject: ^ReinstallPacketCoreControlPlane$
156-
set:
157-
verb: Reset
186+
remove: true
187+
# - where:
188+
# verb: Invoke
189+
# subject: ^RollbackPacketCoreControlPlane$
190+
# set:
191+
# verb: Revoke
158192
- where:
159193
verb: Invoke
160194
subject: ^RollbackPacketCoreControlPlane$
161-
set:
162-
verb: Revoke
195+
remove: true
163196

164197
# The following are commented out and their generated cmdlets may be renamed and custom logic
165198
# - model-cmdlet:
166-
# - SimNameAndEncryptedProperties
167-
# - SimNameAndProperties
168-
# - SliceConfiguration
199+
# - SliceConfiguration # SlouseId -> SliceId
169200
# - DataNetworkConfiguration
170201
# - ServiceResourceId
171202
# - SiteResourceId
172-
# - SimStaticIPProperties
203+
# - SimStaticIPProperties # SlouseId -> SliceId
173204
# - PccRuleConfiguration
174205
# - ServiceDataFlowTemplate
175206

@@ -247,5 +278,45 @@ directive:
247278
- Name
248279
- ResourceGroupName
249280
- ProvisioningState
250-
- IdentityType
281+
- where:
282+
model-name: PacketCoreControlPlane
283+
set:
284+
format-table:
285+
properties:
286+
- Location
287+
- Name
288+
- ResourceGroupName
289+
- ProvisioningState
290+
- where:
291+
model-name: PacketCoreDataPlane
292+
set:
293+
format-table:
294+
properties:
295+
- Location
296+
- Name
297+
- ResourceGroupName
298+
- ProvisioningState
299+
- where:
300+
model-name: AttachedDataNetwork
301+
set:
302+
format-table:
303+
properties:
304+
- Location
305+
- Name
306+
- ResourceGroupName
307+
- ProvisioningState
308+
- where:
309+
model-name: Sim
310+
set:
311+
format-table:
312+
properties:
313+
- Name
314+
- ResourceGroupName
315+
- ProvisioningState
316+
- where:
317+
model-name: PacketCoreControlPlaneVersion
318+
set:
319+
format-table:
320+
properties:
321+
- Name
251322
```
Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,200 @@
1+
2+
# ----------------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
# Unless required by applicable law or agreed to in writing, software
9+
# distributed under the License is distributed on an "AS IS" BASIS,
10+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
# See the License for the specific language governing permissions and
12+
# limitations under the License.
13+
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
14+
# is regenerated.
15+
# ----------------------------------------------------------------------------------
16+
17+
<#
18+
.Synopsis
19+
Creates or updates a SIM group.
20+
.Description
21+
Creates or updates a SIM group.
22+
.Example
23+
New-AzMobileNetworkSimGroup -Name azps-mn-simgroup -ResourceGroupName azps_test_group -Location eastus -MobileNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn"
24+
25+
.Outputs
26+
Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup
27+
.Link
28+
https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup
29+
#>
30+
function New-AzMobileNetworkSimGroup {
31+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])]
32+
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
33+
param(
34+
[Parameter(Mandatory)]
35+
[Alias('SimGroupName')]
36+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
37+
[System.String]
38+
# The name of the SIM Group.
39+
${Name},
40+
41+
[Parameter(Mandatory)]
42+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
43+
[System.String]
44+
# The name of the resource group.
45+
# The name is case insensitive.
46+
${ResourceGroupName},
47+
48+
[Parameter()]
49+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
50+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
51+
[System.String]
52+
# The ID of the target subscription.
53+
${SubscriptionId},
54+
55+
[Parameter(Mandatory)]
56+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
57+
[System.String]
58+
# The geo-location where the resource lives
59+
${Location},
60+
61+
[Parameter()]
62+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
63+
[System.String]
64+
# The key URL, unversioned.
65+
# For example: https://contosovault.vault.azure.net/keys/azureKey.
66+
${EncryptionKeyUrl},
67+
68+
[Parameter()]
69+
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType])]
70+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
71+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType]
72+
# Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
73+
${IdentityType},
74+
75+
[Parameter()]
76+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
77+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IUserAssignedIdentities]))]
78+
[System.Collections.Hashtable]
79+
# The set of user assigned identities associated with the resource.
80+
# The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
81+
# The dictionary values can be empty objects ({}) in requests.
82+
${IdentityUserAssignedIdentity},
83+
84+
[Parameter(Mandatory)]
85+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
86+
[System.String]
87+
# Mobile network resource ID.
88+
${MobileNetworkId},
89+
90+
[Parameter()]
91+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
92+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
93+
[System.Collections.Hashtable]
94+
# Resource tags.
95+
${Tag},
96+
97+
[Parameter()]
98+
[Alias('AzureRMContext', 'AzureCredential')]
99+
[ValidateNotNull()]
100+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
101+
[System.Management.Automation.PSObject]
102+
# The credentials, account, tenant, and subscription used for communication with Azure.
103+
${DefaultProfile},
104+
105+
[Parameter()]
106+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
107+
[System.Management.Automation.SwitchParameter]
108+
# Run the command as a job
109+
${AsJob},
110+
111+
[Parameter(DontShow)]
112+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
113+
[System.Management.Automation.SwitchParameter]
114+
# Wait for .NET debugger to attach
115+
${Break},
116+
117+
[Parameter(DontShow)]
118+
[ValidateNotNull()]
119+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
120+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
121+
# SendAsync Pipeline Steps to be appended to the front of the pipeline
122+
${HttpPipelineAppend},
123+
124+
[Parameter(DontShow)]
125+
[ValidateNotNull()]
126+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
127+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
128+
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
129+
${HttpPipelinePrepend},
130+
131+
[Parameter()]
132+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
133+
[System.Management.Automation.SwitchParameter]
134+
# Run the command asynchronously
135+
${NoWait},
136+
137+
[Parameter(DontShow)]
138+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
139+
[System.Uri]
140+
# The URI for the proxy server to use
141+
${Proxy},
142+
143+
[Parameter(DontShow)]
144+
[ValidateNotNull()]
145+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
146+
[System.Management.Automation.PSCredential]
147+
# Credentials for a proxy server to use for the remote call
148+
${ProxyCredential},
149+
150+
[Parameter(DontShow)]
151+
[Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
152+
[System.Management.Automation.SwitchParameter]
153+
# Use the default credentials for the proxy
154+
${ProxyUseDefaultCredentials}
155+
)
156+
157+
begin {
158+
try {
159+
$outBuffer = $null
160+
if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
161+
$PSBoundParameters['OutBuffer'] = 1
162+
}
163+
$parameterSet = $PSCmdlet.ParameterSetName
164+
165+
$mapping = @{
166+
CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded';
167+
}
168+
if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
169+
$PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
170+
}
171+
172+
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
173+
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
174+
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
175+
$steppablePipeline.Begin($PSCmdlet)
176+
} catch {
177+
178+
throw
179+
}
180+
}
181+
182+
process {
183+
try {
184+
$steppablePipeline.Process($_)
185+
} catch {
186+
187+
throw
188+
}
189+
190+
}
191+
end {
192+
try {
193+
$steppablePipeline.End()
194+
195+
} catch {
196+
197+
throw
198+
}
199+
}
200+
}

0 commit comments

Comments
 (0)