From 20bcba6c2a26283657e3949221e0786c23b36bd6 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 27 Mar 2025 21:13:32 +0800 Subject: [PATCH 1/3] Az.BareMetal update generation tool version: autorest.powershell v3->v4 --- .../Properties/AssemblyInfo.cs | 26 ++++++ src/BareMetal/BareMetal.Autorest/README.md | 8 -- .../BareMetal.Autorest/docs/Az.BareMetal.md | 2 +- .../docs/Get-AzBareMetal.md | 2 +- .../docs/Update-AzBareMetal.md | 53 +++++++++-- .../BareMetal.Autorest/generate-info.json | 2 +- .../BareMetal.Autorest/resources/README.md | 11 +++ src/BareMetal/BareMetal.sln | 89 +++++++++++++++++-- src/BareMetal/BareMetal/Az.BareMetal.psd1 | 14 +-- .../BareMetal/help/Get-AzBareMetal.md | 2 +- .../BareMetal/help/Update-AzBareMetal.md | 53 +++++++++-- 11 files changed, 222 insertions(+), 40 deletions(-) create mode 100644 src/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/BareMetal/BareMetal.Autorest/resources/README.md diff --git a/src/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs b/src/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..e586f0297925 --- /dev/null +++ b/src/BareMetal/BareMetal.Autorest/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an ""AS IS"" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - BareMetal")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] diff --git a/src/BareMetal/BareMetal.Autorest/README.md b/src/BareMetal/BareMetal.Autorest/README.md index ce404df0c4fc..af2ffa80290a 100644 --- a/src/BareMetal/BareMetal.Autorest/README.md +++ b/src/BareMetal/BareMetal.Autorest/README.md @@ -38,14 +38,6 @@ module-version: 0.1.0 title: BareMetal subject-prefix: $(service-name) -identity-correction-for-post: true -resourcegroup-append: true -nested-object-to-string: true - -# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option -use-extension: - "@autorest/powershell": "3.x" - directive: - where: subject: ^AzureBareMetalInstance(.*) diff --git a/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md b/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md index ffe59def87c7..d383aa1238f0 100644 --- a/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md @@ -1,6 +1,6 @@ --- Module Name: Az.BareMetal -Module Guid: 4b038ccd-b128-4b3d-be04-8a9921c69093 +Module Guid: d7176ff1-379d-458c-b203-1bc66494709f Download Help Link: https://learn.microsoft.com/powershell/module/az.baremetal Help Version: 1.0.0.0 Locale: en-US diff --git a/src/BareMetal/BareMetal.Autorest/docs/Get-AzBareMetal.md b/src/BareMetal/BareMetal.Autorest/docs/Get-AzBareMetal.md index 332bb70144bb..25bc419b705c 100644 --- a/src/BareMetal/BareMetal.Autorest/docs/Get-AzBareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/docs/Get-AzBareMetal.md @@ -148,7 +148,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance +### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance ## NOTES diff --git a/src/BareMetal/BareMetal.Autorest/docs/Update-AzBareMetal.md b/src/BareMetal/BareMetal.Autorest/docs/Update-AzBareMetal.md index a04342856080..3dfb9462760d 100644 --- a/src/BareMetal/BareMetal.Autorest/docs/Update-AzBareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/docs/Update-AzBareMetal.md @@ -24,6 +24,18 @@ Update-AzBareMetal -InputObject [-Tag ] [-Defaul [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzBareMetal -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzBareMetal -Name -ResourceGroupName -JsonString [-SubscriptionId ] + [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name. @@ -75,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity @@ -89,12 +100,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the Azure BareMetal on Azure instance. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: AzureBareMetalInstanceName Required: True @@ -110,7 +151,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -125,7 +166,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -140,7 +181,7 @@ Tags field of the AzureBareMetal instance. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -190,7 +231,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance +### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance ## NOTES diff --git a/src/BareMetal/BareMetal.Autorest/generate-info.json b/src/BareMetal/BareMetal.Autorest/generate-info.json index efb7da28df7f..b4b61f5513ac 100644 --- a/src/BareMetal/BareMetal.Autorest/generate-info.json +++ b/src/BareMetal/BareMetal.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "8ac47f73-2bd8-4c01-9857-c8ec51d7cae3" + "generate_Id": "19b2e24b-abee-43e1-8582-2e94bf6af4f7" } diff --git a/src/BareMetal/BareMetal.Autorest/resources/README.md b/src/BareMetal/BareMetal.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/BareMetal/BareMetal.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +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. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +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. \ No newline at end of file diff --git a/src/BareMetal/BareMetal.sln b/src/BareMetal/BareMetal.sln index 9628c14250e3..a64fcb046bd3 100644 --- a/src/BareMetal/BareMetal.sln +++ b/src/BareMetal/BareMetal.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BareMetal", "BareMetal\BareMetal.csproj", "{013FE344-1002-4A45-A03E-079B5F3D69A9}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BareMetal", "..\..\generated\BareMetal\BareMetal.Autorest\Az.BareMetal.csproj", "{3D13FAEF-E53C-4CA4-BAAF-D1F963EE46B5}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BareMetal.Autorest", "BareMetal.Autorest", "{A279DA99-F19B-27D7-F944-9A2E969703B3}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BareMetal", "..\..\generated\BareMetal\BareMetal.Autorest\Az.BareMetal.csproj", "{8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|x64.ActiveCfg = Debug|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|x64.Build.0 = Debug|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|x86.ActiveCfg = Debug|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Debug|x86.Build.0 = Debug|Any CPU {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|Any CPU.ActiveCfg = Release|Any CPU {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|Any CPU.Build.0 = Release|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|x64.ActiveCfg = Release|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|x64.Build.0 = Release|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|x86.ActiveCfg = Release|Any CPU + {CA3C840D-C036-4884-997D-5CB903225E6D}.Release|x86.Build.0 = Release|Any CPU {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|x64.ActiveCfg = Debug|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|x64.Build.0 = Debug|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|x86.ActiveCfg = Debug|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Debug|x86.Build.0 = Debug|Any CPU {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|Any CPU.ActiveCfg = Release|Any CPU {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|Any CPU.Build.0 = Release|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|x64.ActiveCfg = Release|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|x64.Build.0 = Release|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|x86.ActiveCfg = Release|Any CPU + {1958B87F-59FC-4504-8C63-D8D3F1F344D5}.Release|x86.Build.0 = Release|Any CPU {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|x64.ActiveCfg = Debug|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|x64.Build.0 = Debug|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|x86.ActiveCfg = Debug|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Debug|x86.Build.0 = Debug|Any CPU {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|Any CPU.ActiveCfg = Release|Any CPU {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|Any CPU.Build.0 = Release|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|x64.ActiveCfg = Release|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|x64.Build.0 = Release|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|x86.ActiveCfg = Release|Any CPU + {1E1A3B58-58CF-4B03-BA9C-D005A03ECC59}.Release|x86.Build.0 = Release|Any CPU {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|x64.ActiveCfg = Debug|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|x64.Build.0 = Debug|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|x86.ActiveCfg = Debug|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Debug|x86.Build.0 = Debug|Any CPU {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|Any CPU.ActiveCfg = Release|Any CPU {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|Any CPU.Build.0 = Release|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|x64.ActiveCfg = Release|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|x64.Build.0 = Release|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|x86.ActiveCfg = Release|Any CPU + {650883E7-A611-40BD-AA30-615B7EB0780B}.Release|x86.Build.0 = Release|Any CPU {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|x64.ActiveCfg = Debug|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|x64.Build.0 = Debug|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|x86.ActiveCfg = Debug|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Debug|x86.Build.0 = Debug|Any CPU {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|Any CPU.ActiveCfg = Release|Any CPU {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|Any CPU.Build.0 = Release|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|x64.ActiveCfg = Release|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|x64.Build.0 = Release|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|x86.ActiveCfg = Release|Any CPU + {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC}.Release|x86.Build.0 = Release|Any CPU {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|Any CPU.Build.0 = Debug|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|x64.ActiveCfg = Debug|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|x64.Build.0 = Debug|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|x86.ActiveCfg = Debug|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Debug|x86.Build.0 = Debug|Any CPU {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|Any CPU.ActiveCfg = Release|Any CPU {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|Any CPU.Build.0 = Release|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|x64.ActiveCfg = Release|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|x64.Build.0 = Release|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|x86.ActiveCfg = Release|Any CPU + {775B68BA-EED2-4F57-9254-89F9723E4E25}.Release|x86.Build.0 = Release|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|x64.ActiveCfg = Debug|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|x64.Build.0 = Debug|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|x86.ActiveCfg = Debug|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Debug|x86.Build.0 = Debug|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|Any CPU.ActiveCfg = Release|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|Any CPU.Build.0 = Release|Any CPU - {3D13FAEF-E53C-4CA4-BAAF-D1F963EE46B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3D13FAEF-E53C-4CA4-BAAF-D1F963EE46B5}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3D13FAEF-E53C-4CA4-BAAF-D1F963EE46B5}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3D13FAEF-E53C-4CA4-BAAF-D1F963EE46B5}.Release|Any CPU.Build.0 = Release|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x64.ActiveCfg = Release|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x64.Build.0 = Release|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x86.ActiveCfg = Release|Any CPU + {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x86.Build.0 = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x64.ActiveCfg = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x64.Build.0 = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x86.ActiveCfg = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x86.Build.0 = Debug|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|Any CPU.Build.0 = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x64.ActiveCfg = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x64.Build.0 = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x86.ActiveCfg = Release|Any CPU + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {CA3C840D-C036-4884-997D-5CB903225E6D} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} @@ -70,5 +140,6 @@ Global {650883E7-A611-40BD-AA30-615B7EB0780B} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} {775B68BA-EED2-4F57-9254-89F9723E4E25} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} + {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F} = {A279DA99-F19B-27D7-F944-9A2E969703B3} EndGlobalSection EndGlobal diff --git a/src/BareMetal/BareMetal/Az.BareMetal.psd1 b/src/BareMetal/BareMetal/Az.BareMetal.psd1 index 244de2e6c7da..61ae77b4f9b8 100644 --- a/src/BareMetal/BareMetal/Az.BareMetal.psd1 +++ b/src/BareMetal/BareMetal/Az.BareMetal.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-03-27 # @{ @@ -51,19 +51,19 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.2'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'BareMetal.Autorest/bin/Az.BareMetal.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module -FormatsToProcess = 'BareMetal.Autorest\Az.BareMetal.format.ps1xml' +FormatsToProcess = 'BareMetal.Autorest/Az.BareMetal.format.ps1xml' # Modules to import as nested modules of the module specified in RootModule/ModuleToProcess NestedModules = @('BareMetal.Autorest/Az.BareMetal.psm1') @@ -95,7 +95,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','BareMetal' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'BareMetal' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -120,7 +120,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/BareMetal/BareMetal/help/Get-AzBareMetal.md b/src/BareMetal/BareMetal/help/Get-AzBareMetal.md index d04a987919ef..76aa8df32466 100644 --- a/src/BareMetal/BareMetal/help/Get-AzBareMetal.md +++ b/src/BareMetal/BareMetal/help/Get-AzBareMetal.md @@ -149,7 +149,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance +### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance ## NOTES diff --git a/src/BareMetal/BareMetal/help/Update-AzBareMetal.md b/src/BareMetal/BareMetal/help/Update-AzBareMetal.md index c5cde25fa426..f92c359662f2 100644 --- a/src/BareMetal/BareMetal/help/Update-AzBareMetal.md +++ b/src/BareMetal/BareMetal/help/Update-AzBareMetal.md @@ -18,6 +18,18 @@ Update-AzBareMetal -Name -ResourceGroupName [-SubscriptionId < [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonString +``` +Update-AzBareMetal -Name -ResourceGroupName [-SubscriptionId ] -JsonString + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzBareMetal -Name -ResourceGroupName [-SubscriptionId ] -JsonFilePath + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzBareMetal -InputObject [-Tag ] [-DefaultProfile ] @@ -75,7 +87,6 @@ Accept wildcard characters: False ### -InputObject Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ```yaml Type: Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IBareMetalIdentity @@ -89,12 +100,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name Name of the Azure BareMetal on Azure instance. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: AzureBareMetalInstanceName Required: True @@ -110,7 +151,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: True @@ -125,7 +166,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonString, UpdateViaJsonFilePath Aliases: Required: False @@ -140,7 +181,7 @@ Tags field of the AzureBareMetal instance. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -190,7 +231,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.Api20210809.IAzureBareMetalInstance +### Microsoft.Azure.PowerShell.Cmdlets.BareMetal.Models.IAzureBareMetalInstance ## NOTES From 3f3f196be1a8427d230f7298ec1f552f851e92ab Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Thu, 27 Mar 2025 21:14:03 +0800 Subject: [PATCH 2/3] update changelog --- src/BareMetal/BareMetal/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/BareMetal/BareMetal/ChangeLog.md b/src/BareMetal/BareMetal/ChangeLog.md index 98652fcda28a..854238ba5d86 100644 --- a/src/BareMetal/BareMetal/ChangeLog.md +++ b/src/BareMetal/BareMetal/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Implemented code refactoring, no behavior changes expected. ## Version 0.1.2 * Upgraded nuget package to signed package. From 37ebe8d48aede62e217b981fc4b40da5e89ac795 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 11 Apr 2025 19:30:34 +0800 Subject: [PATCH 3/3] update README.md file and update changelog file --- src/BareMetal/BareMetal.Autorest/README.md | 7 +++-- .../BareMetal.Autorest/docs/Az.BareMetal.md | 2 +- .../BareMetal.Autorest/generate-info.json | 2 +- src/BareMetal/BareMetal.sln | 28 +++++++++---------- src/BareMetal/BareMetal/Az.BareMetal.psd1 | 4 +-- src/BareMetal/BareMetal/ChangeLog.md | 2 +- 6 files changed, 24 insertions(+), 21 deletions(-) diff --git a/src/BareMetal/BareMetal.Autorest/README.md b/src/BareMetal/BareMetal.Autorest/README.md index af2ffa80290a..05feb6c67c4b 100644 --- a/src/BareMetal/BareMetal.Autorest/README.md +++ b/src/BareMetal/BareMetal.Autorest/README.md @@ -44,8 +44,11 @@ directive: set: subject: $1 - where: - variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^GetViaIdentity$ + variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString)) + subject-prefix: BareMetal + remove: true + - where: + variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^GetViaIdentity$ subject-prefix: BareMetal remove: true - ``` diff --git a/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md b/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md index d383aa1238f0..a193e56867db 100644 --- a/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md +++ b/src/BareMetal/BareMetal.Autorest/docs/Az.BareMetal.md @@ -1,6 +1,6 @@ --- Module Name: Az.BareMetal -Module Guid: d7176ff1-379d-458c-b203-1bc66494709f +Module Guid: 806859af-c1e8-475c-979d-f13b38d60ec1 Download Help Link: https://learn.microsoft.com/powershell/module/az.baremetal Help Version: 1.0.0.0 Locale: en-US diff --git a/src/BareMetal/BareMetal.Autorest/generate-info.json b/src/BareMetal/BareMetal.Autorest/generate-info.json index b4b61f5513ac..62837e5e7c55 100644 --- a/src/BareMetal/BareMetal.Autorest/generate-info.json +++ b/src/BareMetal/BareMetal.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "19b2e24b-abee-43e1-8582-2e94bf6af4f7" + "generate_Id": "44b7941b-5824-4f02-963b-daffa3df1e89" } diff --git a/src/BareMetal/BareMetal.sln b/src/BareMetal/BareMetal.sln index a64fcb046bd3..12c7622a6556 100644 --- a/src/BareMetal/BareMetal.sln +++ b/src/BareMetal/BareMetal.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BareMetal", "BareMetal\Bare EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "BareMetal.Autorest", "BareMetal.Autorest", "{A279DA99-F19B-27D7-F944-9A2E969703B3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BareMetal", "..\..\generated\BareMetal\BareMetal.Autorest\Az.BareMetal.csproj", "{8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.BareMetal", "..\..\generated\BareMetal\BareMetal.Autorest\Az.BareMetal.csproj", "{A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x64.Build.0 = Release|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x86.ActiveCfg = Release|Any CPU {013FE344-1002-4A45-A03E-079B5F3D69A9}.Release|x86.Build.0 = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x64.ActiveCfg = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x64.Build.0 = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x86.ActiveCfg = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Debug|x86.Build.0 = Debug|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|Any CPU.Build.0 = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x64.ActiveCfg = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x64.Build.0 = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x86.ActiveCfg = Release|Any CPU - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F}.Release|x86.Build.0 = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|x64.ActiveCfg = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|x64.Build.0 = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|x86.ActiveCfg = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Debug|x86.Build.0 = Debug|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|Any CPU.Build.0 = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|x64.ActiveCfg = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|x64.Build.0 = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|x86.ActiveCfg = Release|Any CPU + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {650883E7-A611-40BD-AA30-615B7EB0780B} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} {9BB5BF30-FE76-4D12-8C79-F82F49E95BEC} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} {775B68BA-EED2-4F57-9254-89F9723E4E25} = {7BF066B0-08B0-4C82-A6A5-8182F9D43E92} - {8208E63A-BEBB-4743-AEA4-2F6E0D9BA33F} = {A279DA99-F19B-27D7-F944-9A2E969703B3} + {A12BE46A-6B9D-4A1A-85CB-C0E2E2EB06C5} = {A279DA99-F19B-27D7-F944-9A2E969703B3} EndGlobalSection EndGlobal diff --git a/src/BareMetal/BareMetal/Az.BareMetal.psd1 b/src/BareMetal/BareMetal/Az.BareMetal.psd1 index 61ae77b4f9b8..3251ccfcf82d 100644 --- a/src/BareMetal/BareMetal/Az.BareMetal.psd1 +++ b/src/BareMetal/BareMetal/Az.BareMetal.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2025-03-27 +# Generated on: 2025-04-11 # @{ @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.2'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.1.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'BareMetal.Autorest/bin/Az.BareMetal.private.dll' diff --git a/src/BareMetal/BareMetal/ChangeLog.md b/src/BareMetal/BareMetal/ChangeLog.md index 854238ba5d86..c4cfbfa6c355 100644 --- a/src/BareMetal/BareMetal/ChangeLog.md +++ b/src/BareMetal/BareMetal/ChangeLog.md @@ -18,7 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release -* Implemented code refactoring, no behavior changes expected. +* Introduced various new features by upgrading code generator. Please see detail [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md). ## Version 0.1.2 * Upgraded nuget package to signed package.