Skip to content

Commit f77b734

Browse files
Migrate Alb from generation to main (#23688)
* Move Alb to main * Update ChangeLog.md for alb --------- Co-authored-by: Xiaogang <[email protected]>
1 parent 00a4508 commit f77b734

File tree

269 files changed

+17604
-5914
lines changed

Some content is hidden

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

269 files changed

+17604
-5914
lines changed

src/Alb/Alb.Autorest/Az.Alb.format.ps1xml

Lines changed: 207 additions & 213 deletions
Large diffs are not rendered by default.

src/Alb/Alb.Autorest/Az.Alb.psd1

Lines changed: 20 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -1,135 +1,23 @@
1-
#
2-
# Module manifest for module 'Az.Alb'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 7/24/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.Alb.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '0.1.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = '1ee185fc-e626-4b80-be4c-0e42e44db17c'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: Alb cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.Alb.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.Alb.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
72-
FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'New-AzAlb',
73-
'New-AzAlbAssociation', 'New-AzAlbFrontend', 'Remove-AzAlb',
74-
'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Update-AzAlb',
75-
'Update-AzAlbAssociation', 'Update-AzAlbFrontend'
76-
77-
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
78-
CmdletsToExport = @()
79-
80-
# Variables to export from this module
81-
# VariablesToExport = @()
82-
83-
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
84-
AliasesToExport = '*'
85-
86-
# DSC resources to export from this module
87-
# DscResourcesToExport = @()
88-
89-
# List of all modules packaged with this module
90-
# ModuleList = @()
91-
92-
# List of all files packaged with this module
93-
# FileList = @()
94-
95-
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
96-
PrivateData = @{
97-
2+
GUID = '593f5094-e96e-4646-9c96-5342db09e51a'
3+
RootModule = './Az.Alb.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Alb cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Alb.private.dll'
13+
FormatsToProcess = './Az.Alb.format.ps1xml'
14+
FunctionsToExport = 'Get-AzAlb', 'Get-AzAlbAssociation', 'Get-AzAlbFrontend', 'New-AzAlb', 'New-AzAlbAssociation', 'New-AzAlbFrontend', 'Remove-AzAlb', 'Remove-AzAlbAssociation', 'Remove-AzAlbFrontend', 'Update-AzAlb', 'Update-AzAlbAssociation', 'Update-AzAlbFrontend'
15+
PrivateData = @{
9816
PSData = @{
99-
100-
# Tags applied to this module. These help with module discovery in online galleries.
101-
Tags = 'Azure','ResourceManager','ARM','PSModule','Alb'
102-
103-
# A URL to the license for this module.
104-
LicenseUri = 'https://aka.ms/azps-license'
105-
106-
# A URL to the main website for this project.
107-
ProjectUri = 'https://github.com/Azure/azure-powershell'
108-
109-
# A URL to an icon representing this module.
110-
# IconUri = ''
111-
112-
# ReleaseNotes of this module
113-
# ReleaseNotes = ''
114-
115-
# Prerelease string of this module
116-
# Prerelease = ''
117-
118-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
119-
# RequireLicenseAcceptance = $false
120-
121-
# External dependent modules of this module
122-
# ExternalModuleDependencies = @()
123-
124-
} # End of PSData hashtable
125-
126-
} # End of PrivateData hashtable
127-
128-
# HelpInfo URI of this module
129-
# HelpInfoURI = ''
130-
131-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
132-
# DefaultCommandPrefix = ''
133-
17+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Alb'
18+
LicenseUri = 'https://aka.ms/azps-license'
19+
ProjectUri = 'https://github.com/Azure/azure-powershell'
20+
ReleaseNotes = ''
21+
}
22+
}
13423
}
135-

src/Alb/Alb.Autorest/README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,18 @@ module-version: 0.1.0
3535
title: Alb
3636
subject-prefix: $(service-name)
3737
inlining-threshold: 100
38-
resourcegroup-append: true
39-
nested-object-to-string: true
4038

4139
# pin the swagger version by using the commit id instead of branch name
42-
commit: f7c77a57cf879e3938f5084c3d0cf0611b5834e7
40+
commit: 1b338481329645df2d9460738cbaab6109472488
4341
require:
4442
# readme.azure.noprofile.md is the common configuration file
45-
- $(this-folder)/../readme.azure.noprofile.md
43+
- $(this-folder)/../../readme.azure.noprofile.md
4644
- $(repo)/specification/servicenetworking/resource-manager/readme.md
4745

4846
try-require:
4947
- $(repo)/specification/servicenetworking/resource-manager/readme.powershell.md
5048

5149
directive:
52-
# Bug: https://github.com/Azure/autorest.powershell/issues/983
53-
- from: source-file-csharp
54-
where: $
55-
transform: $ = $.replace('((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType = value;', '((Microsoft.Azure.PowerShell.Cmdlets.Alb.Models.Api20230501Preview.IAssociationPropertiesInternal)Property).AssociationType = value ?? "";');
5650
# Fix swagger issues
5751
- from: swagger-document
5852
where: $.definitions.TrafficControllerUpdateProperties
@@ -69,7 +63,10 @@ directive:
6963
subject: $1
7064
# Remove the unexpanded parameter set
7165
- where:
72-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
66+
variant: ^(Create|Update)(?!.*?Expanded|JsonFilePath|JsonString)
67+
remove: true
68+
- where:
69+
variant: ^CreateViaIdentity.*$
7370
remove: true
7471
# Param and table formatting
7572
- where:
@@ -149,16 +146,20 @@ directive:
149146
- where:
150147
verb: New
151148
set:
152-
preview-message: Application Gateway for Containers is currently in Preview.
149+
preview-announcement:
150+
preview-message: Application Gateway for Containers is currently in Preview.
153151
- where:
154152
verb: Get
155153
set:
156-
preview-message: Application Gateway for Containers is currently in Preview.
154+
preview-announcement:
155+
preview-message: Application Gateway for Containers is currently in Preview.
157156
- where:
158157
verb: Update
159158
set:
160-
preview-message: Application Gateway for Containers is currently in Preview.
159+
preview-announcement:
160+
preview-message: Application Gateway for Containers is currently in Preview.
161161
- where:
162162
verb: Remove
163163
set:
164-
preview-message: Application Gateway for Containers is currently in Preview.
164+
preview-announcement:
165+
preview-message: Application Gateway for Containers is currently in Preview.
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "trafficControllers/associations",
3+
"apiVersion": "2023-11-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.alb"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzAlbAssociation",
10+
"description": "Get a Association",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.alb/get-azalbassociation"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AlbName <String>",
20+
"-Name <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Get a Association",
30+
"parameters": [
31+
{
32+
"name": "-AlbName",
33+
"value": "[Path.trafficControllerName]"
34+
},
35+
{
36+
"name": "-Name",
37+
"value": "[Path.associationName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzAlbAssociation",
53+
"description": "Delete a Association",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceNetworking/trafficControllers/{trafficControllerName}/associations/{associationName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.alb/remove-azalbassociation"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-AlbName <String>",
63+
"-Name <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Delete a Association",
73+
"parameters": [
74+
{
75+
"name": "-AlbName",
76+
"value": "[Path.trafficControllerName]"
77+
},
78+
{
79+
"name": "-Name",
80+
"value": "[Path.associationName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

0 commit comments

Comments
 (0)