Skip to content

Commit bf25276

Browse files
Migrate MobileNetwork from generation to main (#21654)
* Move MobileNetwork to main * Update changelog --------- Co-authored-by: Jinpei Li <[email protected]>
1 parent 706b0d9 commit bf25276

16 files changed

+1735
-277
lines changed

src/MobileNetwork/Az.MobileNetwork.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 4/20/2023
6+
# Generated on: 4/26/2023
77
#
88

99
@{
@@ -146,7 +146,7 @@ PrivateData = @{
146146
# IconUri = ''
147147

148148
# ReleaseNotes of this module
149-
ReleaseNotes = '* The ''Update-AzMobileNetwork*'' cmdlets has been improved to support more parameter changes.'
149+
# ReleaseNotes = ''
150150

151151
# Prerelease string of this module
152152
# Prerelease = ''

src/MobileNetwork/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* The function of the cmdlet `New-AzMobileNetworkSite` has been extended. Allows users to quickly deploy a new site under an existing mobile network using optional parameters, reducing the number of commands they need to execute.
2122

2223
## Version 0.1.1
2324
* The `Update-AzMobileNetwork*` cmdlets has been improved to support more parameter changes.

src/MobileNetwork/MobileNetwork.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{17CC7646-092F-413C-9A6C-3407CF1929A7}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{E647309F-BCDF-4A20-A518-7CB715793740}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{BA3C242C-7DE1-4191-A643-5ADD1C2BBEE3}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{9F12E822-DD68-468D-A82C-844E9C5CC39E}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{A6B3A4C7-6E2B-4B9D-AA04-6B75F185D9A8}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3780019C-1FB2-4244-B296-352593772984}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A07628A1-C00F-46D0-B453-D7A451C0E6A7}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{DDDE15AC-C94B-409C-BF7B-F1CA090B27EC}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{B5FE95A8-5409-468E-96B9-87D6792DB2E9}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{8264B2E8-578B-43A6-973D-C50CAF10A93B}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{17CC7646-092F-413C-9A6C-3407CF1929A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{17CC7646-092F-413C-9A6C-3407CF1929A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{17CC7646-092F-413C-9A6C-3407CF1929A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{17CC7646-092F-413C-9A6C-3407CF1929A7}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{9F12E822-DD68-468D-A82C-844E9C5CC39E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{9F12E822-DD68-468D-A82C-844E9C5CC39E}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{9F12E822-DD68-468D-A82C-844E9C5CC39E}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{9F12E822-DD68-468D-A82C-844E9C5CC39E}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{E647309F-BCDF-4A20-A518-7CB715793740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{E647309F-BCDF-4A20-A518-7CB715793740}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{E647309F-BCDF-4A20-A518-7CB715793740}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{E647309F-BCDF-4A20-A518-7CB715793740}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{BA3C242C-7DE1-4191-A643-5ADD1C2BBEE3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{BA3C242C-7DE1-4191-A643-5ADD1C2BBEE3}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{BA3C242C-7DE1-4191-A643-5ADD1C2BBEE3}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{BA3C242C-7DE1-4191-A643-5ADD1C2BBEE3}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{A6B3A4C7-6E2B-4B9D-AA04-6B75F185D9A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{A6B3A4C7-6E2B-4B9D-AA04-6B75F185D9A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{A6B3A4C7-6E2B-4B9D-AA04-6B75F185D9A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{A6B3A4C7-6E2B-4B9D-AA04-6B75F185D9A8}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{3780019C-1FB2-4244-B296-352593772984}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{3780019C-1FB2-4244-B296-352593772984}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{3780019C-1FB2-4244-B296-352593772984}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{3780019C-1FB2-4244-B296-352593772984}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{A07628A1-C00F-46D0-B453-D7A451C0E6A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{A07628A1-C00F-46D0-B453-D7A451C0E6A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{A07628A1-C00F-46D0-B453-D7A451C0E6A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{A07628A1-C00F-46D0-B453-D7A451C0E6A7}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{DDDE15AC-C94B-409C-BF7B-F1CA090B27EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{DDDE15AC-C94B-409C-BF7B-F1CA090B27EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{DDDE15AC-C94B-409C-BF7B-F1CA090B27EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{DDDE15AC-C94B-409C-BF7B-F1CA090B27EC}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{8264B2E8-578B-43A6-973D-C50CAF10A93B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{8264B2E8-578B-43A6-973D-C50CAF10A93B}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{8264B2E8-578B-43A6-973D-C50CAF10A93B}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{8264B2E8-578B-43A6-973D-C50CAF10A93B}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/MobileNetwork/README.md

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ identity-correction-for-post: true
5858
nested-object-to-string: true
5959

6060
directive:
61+
# Change interopSettings type from <IAny> to <HashTable>
6162
- from: swagger-document
6263
where: $.definitions.PacketCoreControlPlanePropertiesFormat.properties.interopSettings
6364
transform: >-
@@ -67,13 +68,15 @@ directive:
6768
"description": "Settings to allow interoperability with third party components e.g. RANs and UEs."
6869
}
6970
71+
# Remove parameters from swagger file
7072
- from: swagger-document
7173
where: $.definitions
7274
transform: delete $.CoreNetworkTypeRm
7375
- from: swagger-document
7476
where: $.definitions
7577
transform: delete $.PduSessionTypeRm
7678

79+
# Replace [`default`] with ['default']
7780
- from: swagger-document
7881
where: $
7982
transform: return $.replace(/\`default\`/g, "'default'")
@@ -94,6 +97,7 @@ directive:
9497
- where:
9598
verb: Set
9699
remove: true
100+
97101
- where:
98102
subject: ^AttachedDataNetworkTag$
99103
set:
@@ -138,11 +142,13 @@ directive:
138142
subject: ^Slouse$
139143
set:
140144
subject: Slice
145+
141146
- where:
142147
parameter-name: DefaultSlouseId
143148
set:
144149
parameter-name: DefaultSliceId
145150

151+
# Due to business requirements, the logic of some commands is customized and they need to be hidden
146152
- where:
147153
verb: Update
148154
subject: ^AttachedDataNetwork$|^DataNetwork$|^PacketCoreControlPlane$|^PacketCoreDataPlane$|^Service$|^SimGroup$|^SimPolicy$|^Slice$
@@ -152,63 +158,40 @@ directive:
152158
verb: Update
153159
subject: ^AttachedDataNetwork$|^DataNetwork$|^PacketCoreControlPlane$|^PacketCoreDataPlane$|^Service$|^SimGroup$|^SimPolicy$|^Slice$
154160
hide: true
161+
- where:
162+
verb: New
163+
subject: ^Site$
164+
hide: true
155165

156-
# - where:
157-
# verb: Invoke
158-
# subject: ^BulkSimDelete$
159-
# set:
160-
# verb: Remove
166+
# Due to business needs, some commands are deleted and not exposed to the public
161167
- where:
162168
verb: Invoke
163169
subject: ^BulkSimDelete$
164170
remove: true
165-
# - where:
166-
# verb: Invoke
167-
# subject: ^BulkSimUpload$
168-
# set:
169-
# verb: Update
170171
- where:
171172
verb: Invoke
172173
subject: ^BulkSimUpload$
173174
remove: true
174-
# - where:
175-
# verb: Invoke
176-
# subject: ^BulkSimUploadEncrypted$
177-
# set:
178-
# verb: Update
179175
- where:
180176
verb: Invoke
181177
subject: ^BulkSimUploadEncrypted$
182178
remove: true
183-
# - where:
184-
# verb: Invoke
185-
# subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
186-
# set:
187-
# verb: Update
188179
- where:
189180
verb: Invoke
190181
subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
191182
remove: true
192-
# - where:
193-
# verb: Invoke
194-
# subject: ^ReinstallPacketCoreControlPlane$
195-
# set:
196-
# verb: Reset
197183
- where:
198184
verb: Invoke
199185
subject: ^ReinstallPacketCoreControlPlane$
200186
remove: true
201-
# - where:
202-
# verb: Invoke
203-
# subject: ^RollbackPacketCoreControlPlane$
204-
# set:
205-
# verb: Revoke
206187
- where:
207188
verb: Invoke
208189
subject: ^RollbackPacketCoreControlPlane$
209190
remove: true
210191

192+
# Some of the parameters are of type Object and need to be expanded into a command for the convenience of the user
211193
# The following are commented out and their generated cmdlets may be renamed and custom logic
194+
# Do not delete this code
212195
# - model-cmdlet:
213196
# - SliceConfiguration # SlouseId -> SliceId
214197
# - DataNetworkConfiguration

0 commit comments

Comments
 (0)