Skip to content

Commit a5dd427

Browse files
committed
Run autorest and build
1 parent ac624e3 commit a5dd427

File tree

54 files changed

+152
-78
lines changed

Some content is hidden

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

54 files changed

+152
-78
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DevCenter")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/DevCenter/DevCenter.AutoRest/custom/Az.DevCenter.custom.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# region Generated
22
# Load the private module dll
3-
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DevCenter.private.dll')
3+
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DevCenter.private.dll')
44

55
# Load the internal module
6-
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DevCenter.internal.psm1'
6+
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DevCenter.internal.psm1'
77
if(Test-Path $internalModulePath) {
88
$null = Import-Module -Name $internalModulePath
99
}

src/DevCenter/DevCenter.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.DevCenter` 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.DevCenter.custom.psm1`. This file should not be modified.
2+
This directory contains custom implementation for non-generated cmdlets for the `Az.DevCenter` 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.DevCenter.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.DevCenter.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.DevCenter.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.DevCenter`.
3838
- `Microsoft.Azure.PowerShell.Cmdlets.DevCenter.InternalExportAttribute`
39-
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.DevCenter`. 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.DevCenter`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
4040
- `Microsoft.Azure.PowerShell.Cmdlets.DevCenter.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/DevCenter/DevCenter.AutoRest/docs/Az.DevCenter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DevCenter
3-
Module Guid: 24d861ed-547c-4787-81d0-d5e222ff4d0d
3+
Module Guid: a99f1246-613b-410f-b91b-5331cc1595d1
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.devcenter
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Docs
2-
This directory contains the documentation of the cmdlets for the `Az.DevCenter` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder.
2+
This directory contains the documentation of the cmdlets for the `Az.DevCenter` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder.
33

44
## Info
55
- Modifiable: no
@@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.DevCenter`
88
- Packaged: yes
99

1010
## Details
11-
The process of documentation generation loads `Az.DevCenter` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder.
11+
The process of documentation generation loads `Az.DevCenter` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "db53e5d3-ae5e-4566-b6f8-d3fa0b2f0356"
2+
"generate_Id": "ac3b0a11-4f4f-4d5b-a971-e820b3344978"
33
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Resources
2+
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder.
3+
4+
## Info
5+
- Modifiable: yes
6+
- Generated: no
7+
- Committed: yes
8+
- Packaged: no
9+
10+
## Purpose
11+
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.

src/DevCenter/DevCenter.AutoRest/test/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test
2-
This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets.
2+
This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets.
33

44
## Info
55
- Modifiable: yes

src/DevCenter/DevCenter.sln

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
@@ -19,9 +19,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun
1919
EndProject
2020
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DevCenter", "DevCenter\DevCenter.csproj", "{F8BC2C62-A017-4240-86AF-2A9143834EA2}"
2121
EndProject
22-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DevCenter", "..\..\generated\DevCenter\DevCenter.AutoRest\Az.DevCenter.csproj", "{55792641-BEB0-4995-9FF2-01A77DEF52B0}"
22+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DevCenter", "..\..\generated\DevCenter\DevCenter.AutoRest\Az.DevCenter.csproj", "{231906C4-27A2-49F8-9F8D-D6CF401B8794}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DevCenterData", "..\..\generated\DevCenter\DevCenterData.AutoRest\Az.DevCenterData.csproj", "{08A933F1-0B41-4B5C-A247-640EF2F87C37}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.DevCenterdata", "..\..\generated\DevCenter\DevCenterData.AutoRest\Az.DevCenterdata.csproj", "{7EFB45E3-7F5A-4F6F-8C77-D88E93392D5D}"
2525
EndProject
2626
Global
2727
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -60,14 +60,14 @@ Global
6060
{F8BC2C62-A017-4240-86AF-2A9143834EA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
6161
{F8BC2C62-A017-4240-86AF-2A9143834EA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
6262
{F8BC2C62-A017-4240-86AF-2A9143834EA2}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{55792641-BEB0-4995-9FF2-01A77DEF52B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64-
{55792641-BEB0-4995-9FF2-01A77DEF52B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
65-
{55792641-BEB0-4995-9FF2-01A77DEF52B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
66-
{55792641-BEB0-4995-9FF2-01A77DEF52B0}.Release|Any CPU.Build.0 = Release|Any CPU
67-
{08A933F1-0B41-4B5C-A247-640EF2F87C37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68-
{08A933F1-0B41-4B5C-A247-640EF2F87C37}.Debug|Any CPU.Build.0 = Debug|Any CPU
69-
{08A933F1-0B41-4B5C-A247-640EF2F87C37}.Release|Any CPU.ActiveCfg = Release|Any CPU
70-
{08A933F1-0B41-4B5C-A247-640EF2F87C37}.Release|Any CPU.Build.0 = Release|Any CPU
63+
{231906C4-27A2-49F8-9F8D-D6CF401B8794}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64+
{231906C4-27A2-49F8-9F8D-D6CF401B8794}.Debug|Any CPU.Build.0 = Debug|Any CPU
65+
{231906C4-27A2-49F8-9F8D-D6CF401B8794}.Release|Any CPU.ActiveCfg = Release|Any CPU
66+
{231906C4-27A2-49F8-9F8D-D6CF401B8794}.Release|Any CPU.Build.0 = Release|Any CPU
67+
{7EFB45E3-7F5A-4F6F-8C77-D88E93392D5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68+
{7EFB45E3-7F5A-4F6F-8C77-D88E93392D5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
69+
{7EFB45E3-7F5A-4F6F-8C77-D88E93392D5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
70+
{7EFB45E3-7F5A-4F6F-8C77-D88E93392D5D}.Release|Any CPU.Build.0 = Release|Any CPU
7171
EndGlobalSection
7272
GlobalSection(NestedProjects) = preSolution
7373
{47E4694E-AFFE-4BE1-8F20-2C604F612C22} = {139FAA20-2493-460E-BB57-1C7D892C9614}

src/DevCenter/DevCenter/Az.DevCenter.psd1

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

99
@{
@@ -51,17 +51,17 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'DevCenter.AutoRest/bin/Az.DevCenter.private.dll',
5858
'DevCenterData.AutoRest/bin/Az.DevCenterdata.private.dll'
5959

6060
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
61-
# ScriptsToProcess = @()
61+
ScriptsToProcess = @()
6262

6363
# Type files (.ps1xml) to be loaded when importing this module
64-
# TypesToProcess = @()
64+
TypesToProcess = @()
6565

6666
# Format files (.ps1xml) to be loaded when importing this module
6767
FormatsToProcess = 'DevCenter.AutoRest/Az.DevCenter.format.ps1xml',
@@ -190,7 +190,7 @@ PrivateData = @{
190190
PSData = @{
191191

192192
# Tags applied to this module. These help with module discovery in online galleries.
193-
Tags = 'Azure','ResourceManager','ARM','PSModule','DevCenter'
193+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DevCenter'
194194

195195
# A URL to the license for this module.
196196
LicenseUri = 'https://aka.ms/azps-license'
@@ -215,7 +215,7 @@ PrivateData = @{
215215

216216
} # End of PSData hashtable
217217

218-
} # End of PrivateData hashtable
218+
} # End of PrivateData hashtable
219219

220220
# HelpInfo URI of this module
221221
# HelpInfoURI = ''

src/DevCenter/DevCenter/help/Get-AzDevCenterAdminCatalogSyncErrorDetail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Gets catalog synchronization error details
3030

3131
## EXAMPLES
3232

33-
### Example 1: Get the catalog sync error details
33+
### Example 1: Get the catalog sync error detail
3434
```powershell
3535
Get-AzDevCenterAdminCatalogSyncErrorDetail -DevCenterName Contoso -CatalogName CentralCatalog -ResourceGroupName testRg
3636
```

src/DevCenter/DevCenter/help/New-AzDevCenterUserDevBoxCustomizationGroup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Applies customizations to the Dev Box.
4545

4646
## EXAMPLES
4747

48-
### Example 1: Create a customization group by endpoint
48+
### Example 1: Create a customization groupby endpoint
4949
```powershell
5050
$task = @{
5151
Name = "catalogName/choco"
@@ -63,22 +63,22 @@ New-AzDevCenterUserDevBoxCustomizationGroup -Endpoint "https://8a40af38-3b4c-467
6363

6464
This command creates the customization group "Provisioning" for the dev box "myDevBox".
6565

66-
### Example 2: Create a customization group by dev center
66+
### Example 2: Create a customization groupby dev center
6767
```powershell
6868
New-AzDevCenterUserDevBoxCustomizationGroup -DevCenterName Contoso -ProjectName DevProject -UserId "me" -DevBoxName myDevBox -CustomizationGroupName Provisioning -Task $tasks
6969
```
7070

7171
This command creates the customization group "Provisioning" for the dev box "myDevBox".
7272

73-
### Example 3: Create a customization group by endpoint and InputObject
73+
### Example 3: Create a customization groupby endpoint and InputObject
7474
```powershell
7575
$customizationGroupInput = @{"CustomizationGroupName" = "Provisioning"; "DevBoxName" = "myDevBox"; "UserId" = "me"; "ProjectName" = "DevProject" }
7676
New-AzDevCenterUserDevBoxCustomizationGroup -Endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" -InputObject $customizationGroupInput -Task $tasks
7777
```
7878

7979
This command creates the customization group "Provisioning" for the dev box "myDevBox".
8080

81-
### Example 4: Create a customization group by dev center and InputObject
81+
### Example 4: Create a customization groupby dev center and InputObject
8282
```powershell
8383
$customizationGroupInput = @{"CustomizationGroupName" = "Provisioning"; "DevBoxName" = "myDevBox"; "UserId" = "786a823c-8037-48ab-89b8-8599901e67d0"; "ProjectName" = "DevProject" }
8484
New-AzDevCenterUserDevBoxCustomizationGroup -DevCenterName Contoso -InputObject $customizationGroupInput -Task $tasks
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DevCenterdata")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.1")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.1")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]

src/DevCenter/DevCenterData.AutoRest/custom/Az.DevCenterdata.custom.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# region Generated
22
# Load the private module dll
3-
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DevCenterdata.private.dll')
3+
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DevCenterdata.private.dll')
44

55
# Load the internal module
6-
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DevCenterdata.internal.psm1'
6+
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DevCenterdata.internal.psm1'
77
if(Test-Path $internalModulePath) {
88
$null = Import-Module -Name $internalModulePath
99
}

0 commit comments

Comments
 (0)