Skip to content

Commit 9619ee2

Browse files
authored
added generated files (#25401)
* added generated files * temp * 2024-01-01-preview combined all test * updated test * updated doc * fixed test * fixed test * regenration
1 parent d950ce1 commit 9619ee2

File tree

56 files changed

+1508
-3952
lines changed

Some content is hidden

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

56 files changed

+1508
-3952
lines changed

src/Nginx/Nginx.Autorest/Az.Nginx.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.Nginx.private.dll'
1313
FormatsToProcess = './Az.Nginx.format.ps1xml'
14-
FunctionsToExport = 'Get-AzNginxCertificate', 'Get-AzNginxConfiguration', 'Get-AzNginxDeployment', 'New-AzNginxCertificate', 'New-AzNginxConfiguration', 'New-AzNginxConfigurationFileObject', 'New-AzNginxDeployment', 'New-AzNginxNetworkProfileObject', 'New-AzNginxPrivateIPAddressObject', 'New-AzNginxPublicIPAddressObject', 'Remove-AzNginxCertificate', 'Remove-AzNginxConfiguration', 'Remove-AzNginxDeployment', 'Update-AzNginxDeployment', '*'
14+
FunctionsToExport = 'Get-AzNginxCertificate', 'Get-AzNginxConfiguration', 'Get-AzNginxDeployment', 'Invoke-AzNginxAnalysisConfiguration', 'New-AzNginxCertificate', 'New-AzNginxConfiguration', 'New-AzNginxConfigurationFileObject', 'New-AzNginxDeployment', 'New-AzNginxNetworkProfileObject', 'New-AzNginxPrivateIPAddressObject', 'New-AzNginxPublicIPAddressObject', 'Remove-AzNginxCertificate', 'Remove-AzNginxConfiguration', 'Remove-AzNginxDeployment', 'Update-AzNginxDeployment', '*'
1515
AliasesToExport = '*'
1616
PrivateData = @{
1717
PSData = @{

src/Nginx/Nginx.Autorest/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
This directory contains the PowerShell module for the Nginx service.
44

55
---
6-
## Status
7-
[![Az.Nginx](https://img.shields.io/powershellgallery/v/Az.Nginx.svg?style=flat-square&label=Az.Nginx "Az.Nginx")](https://www.powershellgallery.com/packages/Az.Nginx/)
8-
96
## Info
107
- Modifiable: yes
118
- Generated: all
@@ -29,15 +26,14 @@ For information on how to develop for `Az.Nginx`, see [how-to.md](how-to.md).
2926
### AutoRest Configuration
3027
> see https://aka.ms/autorest
3128
``` yaml
32-
commit: e38e7dd462571865266d320bd7cec9804c67f70b
33-
tag: package-2023-04-01
29+
commit: d1027c6d6d0994ef3a656a561b0cce8378ac58a4
30+
tag: package-2024-01-01-preview
3431
require:
3532
# readme.azure.noprofile.md is the common configuration file
3633
- $(this-folder)/../../readme.azure.noprofile.md
3734
input-file:
3835
# You need to specify your swagger files here.
39-
- $(repo)/specification/nginx/resource-manager/NGINX.NGINXPLUS/stable/2023-04-01/swagger.json
40-
36+
- $(repo)/specification/nginx/resource-manager/NGINX.NGINXPLUS/preview/2024-01-01-preview/swagger.json
4137
root-module-name: $(prefix).Nginx
4238
title: Nginx
4339
module-version: 0.1.0

src/Nginx/Nginx.Autorest/UX/Nginx.NginxPlus/nginxDeployments-certificates.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "nginxDeployments/certificates",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2024-01-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.nginx"
66
},

src/Nginx/Nginx.Autorest/UX/Nginx.NginxPlus/nginxDeployments-configurations.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "nginxDeployments/configurations",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2024-01-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.nginx"
66
},
@@ -48,6 +48,49 @@
4848
}
4949
]
5050
},
51+
{
52+
"name": "Invoke-AzNginxAnalysisConfiguration",
53+
"description": "Analyze an NGINX configuration without applying it to the NGINXaaS deployment",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}/analyze",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.nginx/invoke-aznginxanalysisconfiguration"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ConfigurationName <String>",
63+
"-DeploymentName <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Analyze an NGINX configuration without applying it to the NGINXaaS deployment",
73+
"parameters": [
74+
{
75+
"name": "-ConfigurationName",
76+
"value": "[Path.configurationName]"
77+
},
78+
{
79+
"name": "-DeploymentName",
80+
"value": "[Path.deploymentName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
},
5194
{
5295
"name": "Remove-AzNginxConfiguration",
5396
"description": "Reset the NGINX configuration of given NGINX deployment to default",

src/Nginx/Nginx.Autorest/UX/Nginx.NginxPlus/nginxDeployments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "nginxDeployments",
3-
"apiVersion": "2023-04-01",
3+
"apiVersion": "2024-01-01-preview",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.nginx"
66
},

src/Nginx/Nginx.Autorest/custom/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Custom
2-
This directory contains custom implementation for non-generated cmdlets for the `Az.Nginx` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.Nginx.custom.psm1`. This file should not be modified.
2+
This directory contains custom implementation for non-generated cmdlets for the `Az.Nginx` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.Nginx.custom.psm1`. This file should not be modified.
33

44
## Info
55
- Modifiable: yes
@@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle
1515
For script cmdlets, these are loaded via the `Az.Nginx.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
1616

1717
## Purpose
18-
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
18+
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder.
1919

2020
## Usage
21-
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
21+
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
2222
- Break
2323
- DefaultProfile
2424
- HttpPipelineAppend
@@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes:
3636
- `Microsoft.Azure.PowerShell.Cmdlets.Nginx.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.Nginx`.
3838
- `Microsoft.Azure.PowerShell.Cmdlets.Nginx.InternalExportAttribute`
39-
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.Nginx`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
39+
- Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.Nginx`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
4040
- `Microsoft.Azure.PowerShell.Cmdlets.Nginx.ProfileAttribute`
4141
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

src/Nginx/Nginx.Autorest/docs/Az.Nginx.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Get the NGINX configuration of given NGINX deployment
2020
### [Get-AzNginxDeployment](Get-AzNginxDeployment.md)
2121
Get the NGINX deployment
2222

23+
### [Invoke-AzNginxAnalysisConfiguration](Invoke-AzNginxAnalysisConfiguration.md)
24+
Analyze an NGINX configuration without applying it to the NGINXaaS deployment
25+
2326
### [New-AzNginxCertificate](New-AzNginxCertificate.md)
2427
Create or update the NGINX certificates for given NGINX deployment
2528

src/Nginx/Nginx.Autorest/docs/Get-AzNginxCertificate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
165165
166166
## OUTPUTS
167167
168-
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api20230401.INginxCertificate
168+
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxCertificate
169169
170170
## NOTES
171171

src/Nginx/Nginx.Autorest/docs/Get-AzNginxConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
151151
152152
## OUTPUTS
153153
154-
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api20230401.INginxConfiguration
154+
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxConfiguration
155155
156156
## NOTES
157157

src/Nginx/Nginx.Autorest/docs/Get-AzNginxDeployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
171171
172172
## OUTPUTS
173173
174-
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api20230401.INginxDeployment
174+
### Microsoft.Azure.PowerShell.Cmdlets.Nginx.Models.Api202401Preview.INginxDeployment
175175
176176
## NOTES
177177

0 commit comments

Comments
 (0)