From c5397ed13a7f18bde1de85e3130b7c0325ad0550 Mon Sep 17 00:00:00 2001 From: Mike Lucadamo Date: Tue, 10 Jun 2025 11:25:45 -0400 Subject: [PATCH 1/3] adding generated code for FIST 04-01-2025-preview api --- .../Properties/AssemblyInfo.cs | 26 +++++++++++++++++++ .../FirmwareAnalysis.Autorest/README.md | 15 +++-------- .../examples/README.md | 11 ++++++++ .../generate-info.json | 3 --- .../resources/README.md | 11 ++++++++ 5 files changed, 51 insertions(+), 15 deletions(-) create mode 100644 src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs create mode 100644 src/FirmwareAnalysis/FirmwareAnalysis.Autorest/examples/README.md delete mode 100644 src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json create mode 100644 src/FirmwareAnalysis/FirmwareAnalysis.Autorest/resources/README.md diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..3bb7cb545a24 --- /dev/null +++ b/src/FirmwareAnalysis/FirmwareAnalysis.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 - FirmwareAnalysis")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] \ No newline at end of file diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/README.md b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/README.md index 7626eb0780c1..e4de39b1b11f 100644 --- a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/README.md +++ b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/README.md @@ -24,11 +24,12 @@ For information on how to develop for `Az.FirmwareAnalysis`, see [how-to.md](how ### AutoRest Configuration + > see https://aka.ms/autorest ```yaml # pin the swagger version by using the commit id instead of branch name -commit: ef348fed285ae01b78cf6afd394ad2c4c8b6da7e +commit: 09f3dd2d269324277e8909230e1dc4c1f274cb3a require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md @@ -39,17 +40,7 @@ require: # - (this-folder)/relative-path-to-your-local-readme.md input-file: - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/firmwares.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/workspaces.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/binaryHardeningResults.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/sbomComponents.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cves.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cryptoCertificates.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/cryptoKeys.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/passwordHashes.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/summaries.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/common.json - - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/operations.json + - $(repo)/specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2025-04-01-preview/iotfirmwaredefense.json try-require: - /swagger/fist/resource-manager/readme.powershell.md diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/examples/README.md b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/examples/README.md new file mode 100644 index 000000000000..ac871d71fc72 --- /dev/null +++ b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/examples/README.md @@ -0,0 +1,11 @@ +# Examples +This directory contains examples from the exported cmdlets of the module. When `build-module.ps1` is ran, example stub files will be generated here. If your module support Azure Profiles, the example stubs will be in individual profile folders. These example stubs should be updated to show how the cmdlet is used. The examples are imported into the documentation when `generate-help.ps1` is ran. + +## Info +- Modifiable: yes +- Generated: partial +- Committed: yes +- Packaged: no + +## Purpose +This separates the example documentation details from the generated documentation information provided directly from the generated cmdlets. Since the cmdlets don't have examples from the REST spec, this provides a means to add examples easily. The example stubs provide the markdown format that is required. The 3 core elements are: the name of the example, the code information of the example, and the description of the example. That information, if the markdown format is followed, will be available to documentation generation and be part of the documents in the `..\docs` folder. \ No newline at end of file diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json deleted file mode 100644 index 37b0a17e1e49..000000000000 --- a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "generate_Id": "794ca94b-d357-43b9-81eb-a66aa20d34e3" -} diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/resources/README.md b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/FirmwareAnalysis/FirmwareAnalysis.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 From d7097659400825cda1d08192fa9e1c81643b78f0 Mon Sep 17 00:00:00 2001 From: Mike Lucadamo Date: Tue, 10 Jun 2025 11:40:23 -0400 Subject: [PATCH 2/3] updating changelog for new release --- src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md b/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md index 9f81ff66bb3e..8abbeed7e9a1 100644 --- a/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md +++ b/src/FirmwareAnalysis/FirmwareAnalysis/ChangeLog.md @@ -19,6 +19,9 @@ --> ## Upcoming Release +## Version 0.2.0 +* New public preview release to support breaking changes in 2024-04-01-preview API + ## Version 0.1.4 * Upgraded nuget package to signed package. From d3c47ccea8adec0499037fd484e1f6b177c1ec5a Mon Sep 17 00:00:00 2001 From: Mike Lucadamo Date: Mon, 23 Jun 2025 16:54:00 -0400 Subject: [PATCH 3/3] restoring the generate-info file that was accidentally deleted --- .../FirmwareAnalysis.Autorest/generate-info.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json diff --git a/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json new file mode 100644 index 000000000000..5c33cc957d73 --- /dev/null +++ b/src/FirmwareAnalysis/FirmwareAnalysis.Autorest/generate-info.json @@ -0,0 +1,3 @@ +{ + "generate_Id": "794ca94b-d357-43b9-81eb-a66aa20d34e3" +} \ No newline at end of file