diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index 9a13937e1fdb..bf04bcfd15e6 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -433,7 +433,7 @@ com.azure.resourcemanager:azure-resourcemanager-networkcloud;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-cosmosdbforpostgresql;1.0.0;1.1.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-managementgroups;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;1.0.0;1.1.0-beta.1
-com.azure.resourcemanager:azure-resourcemanager-iotfirmwaredefense;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-iotfirmwaredefense;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-quantum;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-sphere;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-chaos;1.1.0;1.2.0-beta.1
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/CHANGELOG.md b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/CHANGELOG.md
index 3af45b0c6995..589f2e141f6e 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/CHANGELOG.md
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/CHANGELOG.md
@@ -1,14 +1,242 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0 (2024-03-18)
-### Features Added
+- Azure Resource Manager IoT Firmware Defense client library for Java. This package contains Microsoft Azure SDK for IoT Firmware Defense Management SDK. Firmware & IoT Security REST API. Package tag package-2024-01-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+* `models.Cve` was removed
+
+* `models.CryptoKeyList` was removed
+
+* `models.PasswordHashList` was removed
+
+* `models.NxFlag` was removed
+
+* `models.CveList` was removed
+
+* `models.CryptoKey` was removed
+
+* `models.CryptoCertificateList` was removed
+
+* `models.CryptoKeySummary` was removed
+
+* `models.BinaryHardeningSummary` was removed
+
+* `models.BinaryHardeningList` was removed
+
+* `models.CanaryFlag` was removed
+
+* `models.IsExpired` was removed
+
+* `models.IsUpdateAvailable` was removed
+
+* `models.CryptoCertificateSummary` was removed
+
+* `models.PasswordHash` was removed
+
+* `models.PieFlag` was removed
+
+* `models.StrippedFlag` was removed
+
+* `models.IsSelfSigned` was removed
+
+* `models.CryptoCertificate` was removed
+
+* `models.IsWeakSignature` was removed
+
+* `models.IsShortKeySize` was removed
+
+* `models.ComponentList` was removed
+
+* `models.RelroFlag` was removed
+
+* `models.Component` was removed
+
+* `models.BinaryHardening` was removed
+
+#### `models.PairedKey` was modified
+
+* `withAdditionalProperties(java.lang.Object)` was removed
+* `additionalProperties()` was removed
+
+#### `models.UrlToken` was modified
+
+* `uploadUrl()` was removed
+
+#### `IoTFirmwareDefenseManager` was modified
+
+* `fluent.Fist serviceClient()` -> `fluent.IoTFirmwareDefense serviceClient()`
+
+#### `models.FirmwareSummary` was modified
+
+* `java.lang.Long extractedFileCount()` -> `java.lang.Long extractedFileCount()`
+* `java.lang.Long fileSize()` -> `java.lang.Long fileSize()`
+* `innerModel()` was removed
+* `java.lang.Long componentCount()` -> `java.lang.Long componentCount()`
+* `java.lang.Long rootFileSystems()` -> `java.lang.Long rootFileSystems()`
+* `java.lang.Long analysisTimeSeconds()` -> `java.lang.Long analysisTimeSeconds()`
+* `java.lang.Long binaryCount()` -> `java.lang.Long binaryCount()`
+* `java.lang.Long extractedSize()` -> `java.lang.Long extractedSize()`
+
+#### `models.Firmwares` was modified
+
+* `generateCveSummary(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGenerateCveList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateSummaryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGenerateCryptoKeyList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGeneratePasswordHashList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGenerateCryptoCertificateList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGenerateBinaryHardeningList(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGenerateCveList(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGenerateComponentList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateBinaryHardeningDetails(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateCryptoKeySummary(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateBinaryHardeningDetailsWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateBinaryHardeningSummary(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGenerateCryptoKeyList(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateCryptoCertificateSummary(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateCveSummaryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGenerateComponentList(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateComponentDetails(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGeneratePasswordHashList(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `listGenerateBinaryHardeningList(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateBinaryHardeningSummaryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateComponentDetailsWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateCryptoKeySummaryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `generateSummary(java.lang.String,java.lang.String,java.lang.String)` was removed
+* `generateCryptoCertificateSummaryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `listGenerateCryptoCertificateList(java.lang.String,java.lang.String,java.lang.String)` was removed
+
+#### `models.CveSummary` was modified
+
+* `java.lang.Long critical()` -> `java.lang.Long critical()`
+* `java.lang.Long low()` -> `java.lang.Long low()`
+* `java.lang.Long high()` -> `java.lang.Long high()`
+* `undefined()` was removed
+* `innerModel()` was removed
+* `java.lang.Long unknown()` -> `java.lang.Long unknown()`
+* `java.lang.Long medium()` -> `java.lang.Long medium()`
+
+#### `models.Firmware` was modified
+
+* `listGeneratePasswordHashList()` was removed
+* `listGenerateCveList(com.azure.core.util.Context)` was removed
+* `generateComponentDetailsWithResponse(com.azure.core.util.Context)` was removed
+* `generateCryptoKeySummaryWithResponse(com.azure.core.util.Context)` was removed
+* `listGenerateCveList()` was removed
+* `generateCveSummary()` was removed
+* `listGenerateComponentList()` was removed
+* `generateComponentDetails()` was removed
+* `generateBinaryHardeningDetails()` was removed
+* `listGenerateComponentList(com.azure.core.util.Context)` was removed
+* `listGenerateBinaryHardeningList(com.azure.core.util.Context)` was removed
+* `listGenerateCryptoKeyList(com.azure.core.util.Context)` was removed
+* `listGenerateBinaryHardeningList()` was removed
+* `listGenerateCryptoCertificateList(com.azure.core.util.Context)` was removed
+* `generateCryptoKeySummary()` was removed
+* `generateBinaryHardeningSummary()` was removed
+* `listGenerateCryptoKeyList()` was removed
+* `generateSummaryWithResponse(com.azure.core.util.Context)` was removed
+* `listGeneratePasswordHashList(com.azure.core.util.Context)` was removed
+* `generateSummary()` was removed
+* `generateCryptoCertificateSummary()` was removed
+* `generateBinaryHardeningDetailsWithResponse(com.azure.core.util.Context)` was removed
+* `generateCryptoCertificateSummaryWithResponse(com.azure.core.util.Context)` was removed
+* `listGenerateCryptoCertificateList()` was removed
+* `generateCveSummaryWithResponse(com.azure.core.util.Context)` was removed
+* `generateBinaryHardeningSummaryWithResponse(com.azure.core.util.Context)` was removed
+
+### Features Added
+
+* `models.SbomComponentResource` was added
+
+* `models.CveResource` was added
+
+* `models.SbomComponentListResult` was added
+
+* `models.BinaryHardenings` was added
+
+* `models.CryptoCertificateSummaryResource` was added
+
+* `models.BinaryHardeningListResult` was added
+
+* `models.CryptoKeyListResult` was added
+
+* `models.SummaryListResult` was added
+
+* `models.BinaryHardeningSummaryResource` was added
+
+* `models.CveListResult` was added
+
+* `models.CryptoKeys` was added
+
+* `models.Summaries` was added
+
+* `models.SbomComponents` was added
+
+* `models.SummaryType` was added
+
+* `models.SummaryResource` was added
+
+* `models.StatusMessage` was added
+
+* `models.CveComponent` was added
+
+* `models.CryptoCertificateListResult` was added
+
+* `models.SummaryResourceProperties` was added
+
+* `models.CryptoCertificates` was added
+
+* `models.CryptoKeyResource` was added
+
+* `models.SummaryName` was added
+
+* `models.CryptoCertificateResource` was added
+
+* `models.CryptoKeySummaryResource` was added
+
+* `models.PasswordHashes` was added
+
+* `models.Cves` was added
+
+* `models.PasswordHashResource` was added
+
+* `models.PasswordHashListResult` was added
+
+* `models.BinaryHardeningResource` was added
+
+#### `IoTFirmwareDefenseManager` was modified
+
+* `passwordHashes()` was added
+* `binaryHardenings()` was added
+* `cryptoCertificates()` was added
+* `sbomComponents()` was added
+* `summaries()` was added
+* `cves()` was added
+* `cryptoKeys()` was added
+
+#### `models.FirmwareSummary` was modified
+
+* `withExtractedFileCount(java.lang.Long)` was added
+* `withFileSize(java.lang.Long)` was added
+* `withExtractedSize(java.lang.Long)` was added
+* `withComponentCount(java.lang.Long)` was added
+* `withBinaryCount(java.lang.Long)` was added
+* `withAnalysisTimeSeconds(java.lang.Long)` was added
+* `withRootFileSystems(java.lang.Long)` was added
+* `validate()` was added
+
+#### `models.CveSummary` was modified
-### Other Changes
+* `withUnknown(java.lang.Long)` was added
+* `withLow(java.lang.Long)` was added
+* `withMedium(java.lang.Long)` was added
+* `validate()` was added
+* `withHigh(java.lang.Long)` was added
+* `withCritical(java.lang.Long)` was added
## 1.0.0-beta.1 (2023-07-20)
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/README.md b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/README.md
index c59231da6be3..2444da68044d 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/README.md
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager IoT Firmware Defense client library for Java.
-This package contains Microsoft Azure SDK for IoT Firmware Defense Management SDK. The definitions and parameters in this swagger specification will be used to manage the IoT Firmware Defense resources. Package tag package-2023-02-08-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for IoT Firmware Defense Management SDK. Firmware & IoT Security REST API. Package tag package-2024-01-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanagerazure-resourcemanager-iotfirmwaredefense
- 1.0.0-beta.1
+ 1.0.0
```
[//]: # ({x-version-update-end})
@@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen
### Authentication
-By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
+By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.
- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
-[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/SAMPLE.md b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/SAMPLE.md
index 4ac2d3af1ba1..f061a9295800 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/SAMPLE.md
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/SAMPLE.md
@@ -1,890 +1,690 @@
# Code snippets and samples
-## Firmware
-
-- [Create](#firmware_create)
-- [Delete](#firmware_delete)
-- [GenerateBinaryHardeningDetails](#firmware_generatebinaryhardeningdetails)
-- [GenerateBinaryHardeningSummary](#firmware_generatebinaryhardeningsummary)
-- [GenerateComponentDetails](#firmware_generatecomponentdetails)
-- [GenerateCryptoCertificateSummary](#firmware_generatecryptocertificatesummary)
-- [GenerateCryptoKeySummary](#firmware_generatecryptokeysummary)
-- [GenerateCveSummary](#firmware_generatecvesummary)
-- [GenerateDownloadUrl](#firmware_generatedownloadurl)
-- [GenerateFilesystemDownloadUrl](#firmware_generatefilesystemdownloadurl)
-- [GenerateSummary](#firmware_generatesummary)
-- [Get](#firmware_get)
-- [ListByWorkspace](#firmware_listbyworkspace)
-- [ListGenerateBinaryHardeningList](#firmware_listgeneratebinaryhardeninglist)
-- [ListGenerateComponentList](#firmware_listgeneratecomponentlist)
-- [ListGenerateCryptoCertificateList](#firmware_listgeneratecryptocertificatelist)
-- [ListGenerateCryptoKeyList](#firmware_listgeneratecryptokeylist)
-- [ListGenerateCveList](#firmware_listgeneratecvelist)
-- [ListGeneratePasswordHashList](#firmware_listgeneratepasswordhashlist)
-- [Update](#firmware_update)
+## BinaryHardening
-## Operations
+- [ListByFirmware](#binaryhardening_listbyfirmware)
-- [List](#operations_list)
+## CryptoCertificates
-## Workspaces
+- [ListByFirmware](#cryptocertificates_listbyfirmware)
-- [Create](#workspaces_create)
-- [Delete](#workspaces_delete)
-- [GenerateUploadUrl](#workspaces_generateuploadurl)
-- [GetByResourceGroup](#workspaces_getbyresourcegroup)
-- [List](#workspaces_list)
-- [ListByResourceGroup](#workspaces_listbyresourcegroup)
-- [Update](#workspaces_update)
-### Firmware_Create
+## CryptoKeys
-```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.iotfirmwaredefense.models.Status;
-import java.io.IOException;
-import java.util.Arrays;
+- [ListByFirmware](#cryptokeys_listbyfirmware)
-/** Samples for Firmware Create. */
-public final class FirmwareCreateSamples {
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MinimumSet_Gen.json
- */
- /**
- * Sample code: Firmware_Create_MinimumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareCreateMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager.firmwares().define("umrkdttp").withExistingWorkspace("rgworkspaces-firmwares", "A7").create();
- }
+## Cves
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Create_MaximumSet_Gen.json
- */
- /**
- * Sample code: Firmware_Create_MaximumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareCreateMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) throws IOException {
- manager
- .firmwares()
- .define("umrkdttp")
- .withExistingWorkspace("rgworkspaces-firmwares", "A7")
- .withFileName("wresexxulcdsdd")
- .withVendor("vycmdhgtmepcptyoubztiuudpkcpd")
- .withModel("f")
- .withVersion("s")
- .withDescription("uz")
- .withFileSize(17L)
- .withStatus(Status.PENDING)
- .withStatusMessages(
- Arrays
- .asList(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"message\":\"ulvhmhokezathzzauiitu\"}", Object.class, SerializerEncoding.JSON)))
- .create();
- }
-}
-```
+- [ListByFirmware](#cves_listbyfirmware)
-### Firmware_Delete
+## Firmwares
-```java
-/** Samples for Firmware Delete. */
-public final class FirmwareDeleteSamples {
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MinimumSet_Gen.json
- */
- /**
- * Sample code: Firmware_Delete_MinimumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareDeleteMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .deleteWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Delete_MaximumSet_Gen.json
- */
- /**
- * Sample code: Firmware_Delete_MaximumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareDeleteMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .deleteWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
-}
-```
+- [Create](#firmwares_create)
+- [Delete](#firmwares_delete)
+- [GenerateDownloadUrl](#firmwares_generatedownloadurl)
+- [GenerateFilesystemDownloadUrl](#firmwares_generatefilesystemdownloadurl)
+- [Get](#firmwares_get)
+- [ListByWorkspace](#firmwares_listbyworkspace)
+- [Update](#firmwares_update)
-### Firmware_GenerateBinaryHardeningDetails
+## Operations
-```java
-/** Samples for Firmware GenerateBinaryHardeningDetails. */
-public final class FirmwareGenerateBinaryHardeningDetailsSamples {
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateBinaryHardeningDetails_MaximumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateBinaryHardeningDetailsMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateBinaryHardeningDetailsWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
+- [List](#operations_list)
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateBinaryHardeningDetails_MinimumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateBinaryHardeningDetailsMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateBinaryHardeningDetailsWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
-}
-```
+## PasswordHashes
-### Firmware_GenerateBinaryHardeningSummary
+- [ListByFirmware](#passwordhashes_listbyfirmware)
-```java
-/** Samples for Firmware GenerateBinaryHardeningSummary. */
-public final class FirmwareGenerateBinaryHardeningSummarySamples {
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateBinaryHardeningSummary_MaximumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateBinaryHardeningSummaryMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateBinaryHardeningSummaryWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
+## SbomComponents
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateBinaryHardeningSummary_MinimumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateBinaryHardeningSummaryMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateBinaryHardeningSummaryWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
-}
-```
+- [ListByFirmware](#sbomcomponents_listbyfirmware)
-### Firmware_GenerateComponentDetails
+## Summaries
-```java
-/** Samples for Firmware GenerateComponentDetails. */
-public final class FirmwareGenerateComponentDetailsSamples {
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MinimumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateComponentDetails_MinimumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateComponentDetailsMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateComponentDetailsWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
+- [Get](#summaries_get)
+- [ListByFirmware](#summaries_listbyfirmware)
- /*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateComponentDetails_MaximumSet_Gen.json
- */
- /**
- * Sample code: Firmware_GenerateComponentDetails_MaximumSet_Gen.
- *
- * @param manager Entry point to IoTFirmwareDefenseManager.
- */
- public static void firmwareGenerateComponentDetailsMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateComponentDetailsWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
- }
-}
-```
+## Workspaces
-### Firmware_GenerateCryptoCertificateSummary
+- [Create](#workspaces_create)
+- [Delete](#workspaces_delete)
+- [GenerateUploadUrl](#workspaces_generateuploadurl)
+- [GetByResourceGroup](#workspaces_getbyresourcegroup)
+- [List](#workspaces_list)
+- [ListByResourceGroup](#workspaces_listbyresourcegroup)
+- [Update](#workspaces_update)
+### BinaryHardening_ListByFirmware
```java
-/** Samples for Firmware GenerateCryptoCertificateSummary. */
-public final class FirmwareGenerateCryptoCertificateSummarySamples {
+/**
+ * Samples for BinaryHardening ListByFirmware.
+ */
+public final class BinaryHardeningListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * BinaryHardening_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCryptoCertificateSummary_MaximumSet_Gen.
- *
+ * Sample code: BinaryHardening_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCryptoCertificateSummaryMaximumSetGen(
+ public static void binaryHardeningListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCryptoCertificateSummaryWithResponse(
- "FirmwareAnalysisRG",
- "default",
- "DECAFBAD-0000-0000-0000-BADBADBADBAD",
- com.azure.core.util.Context.NONE);
+ manager.binaryHardenings().listByFirmware("FirmwareAnalysisRG", "default",
+ "109a9886-50bf-85a8-9d75-000000000000", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * BinaryHardening_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCryptoCertificateSummary_MinimumSet_Gen.
- *
+ * Sample code: BinaryHardening_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCryptoCertificateSummaryMinimumSetGen(
+ public static void binaryHardeningListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCryptoCertificateSummaryWithResponse(
- "rgworkspaces-firmwares", "j5QE_", "wujtpcgypfpqseyrsebolarkspy", com.azure.core.util.Context.NONE);
+ manager.binaryHardenings().listByFirmware("FirmwareAnalysisRG", "default",
+ "109a9886-50bf-85a8-9d75-000000000000", com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_GenerateCryptoKeySummary
+### CryptoCertificates_ListByFirmware
```java
-/** Samples for Firmware GenerateCryptoKeySummary. */
-public final class FirmwareGenerateCryptoKeySummarySamples {
+/**
+ * Samples for CryptoCertificates ListByFirmware.
+ */
+public final class CryptoCertificatesListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * CryptoCertificates_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCryptoKeySummary_MaximumSet_Gen.
- *
+ * Sample code: CryptoCertificates_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCryptoKeySummaryMaximumSetGen(
+ public static void cryptoCertificatesListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCryptoKeySummaryWithResponse(
- "FirmwareAnalysisRG",
- "default",
- "DECAFBAD-0000-0000-0000-BADBADBADBAD",
- com.azure.core.util.Context.NONE);
+ manager.cryptoCertificates().listByFirmware("FirmwareAnalysisRG", "default",
+ "109a9886-50bf-85a8-9d75-000000000000", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * CryptoCertificates_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCryptoKeySummary_MinimumSet_Gen.
- *
+ * Sample code: CryptoCertificates_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCryptoKeySummaryMinimumSetGen(
+ public static void cryptoCertificatesListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCryptoKeySummaryWithResponse(
- "rgworkspaces-firmwares", "j5QE_", "wujtpcgypfpqseyrsebolarkspy", com.azure.core.util.Context.NONE);
+ manager.cryptoCertificates().listByFirmware("FirmwareAnalysisRG", "default",
+ "109a9886-50bf-85a8-9d75-000000000000", com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_GenerateCveSummary
+### CryptoKeys_ListByFirmware
```java
-/** Samples for Firmware GenerateCveSummary. */
-public final class FirmwareGenerateCveSummarySamples {
+/**
+ * Samples for CryptoKeys ListByFirmware.
+ */
+public final class CryptoKeysListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * CryptoKeys_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCveSummary_MinimumSet_Gen.
- *
+ * Sample code: CryptoKeys_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCveSummaryMinimumSetGen(
+ public static void cryptoKeysListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCveSummaryWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.cryptoKeys().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateCveSummary_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * CryptoKeys_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateCveSummary_MaximumSet_Gen.
- *
+ * Sample code: CryptoKeys_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateCveSummaryMaximumSetGen(
+ public static void cryptoKeysListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateCveSummaryWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.cryptoKeys().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_GenerateDownloadUrl
+### Cves_ListByFirmware
```java
-/** Samples for Firmware GenerateDownloadUrl. */
-public final class FirmwareGenerateDownloadUrlSamples {
+/**
+ * Samples for Cves ListByFirmware.
+ */
+public final class CvesListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Cves_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateDownloadUrl_MaximumSet_Gen.
- *
+ * Sample code: Cves_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateDownloadUrlMaximumSetGen(
+ public static void cvesListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateDownloadUrlWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.cves().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateDownloadUrl_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Cves_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateDownloadUrl_MinimumSet_Gen.
- *
+ * Sample code: Cves_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateDownloadUrlMinimumSetGen(
+ public static void cvesListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateDownloadUrlWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.cves().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_GenerateFilesystemDownloadUrl
+### Firmwares_Create
```java
-/** Samples for Firmware GenerateFilesystemDownloadUrl. */
-public final class FirmwareGenerateFilesystemDownloadUrlSamples {
+import com.azure.resourcemanager.iotfirmwaredefense.models.Status;
+import com.azure.resourcemanager.iotfirmwaredefense.models.StatusMessage;
+import java.util.Arrays;
+
+/**
+ * Samples for Firmwares Create.
+ */
+public final class FirmwaresCreateSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Create_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateFilesystemDownloadUrl_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_Create_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateFilesystemDownloadUrlMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateFilesystemDownloadUrlWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresCreateMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().define("umrkdttp").withExistingWorkspace("rgworkspaces-firmwares", "A7")
+ .withFileName("wresexxulcdsdd").withVendor("vycmdhgtmepcptyoubztiuudpkcpd").withModel("f").withVersion("s")
+ .withDescription("uz").withFileSize(17L).withStatus(Status.PENDING)
+ .withStatusMessages(Arrays.asList(new StatusMessage().withMessage("ulvhmhokezathzzauiitu"))).create();
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Create_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateFilesystemDownloadUrl_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_Create_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateFilesystemDownloadUrlMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateFilesystemDownloadUrlWithResponse(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresCreateMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().define("umrkdttp").withExistingWorkspace("rgworkspaces-firmwares", "A7").create();
}
}
```
-### Firmware_GenerateSummary
+### Firmwares_Delete
```java
-/** Samples for Firmware GenerateSummary. */
-public final class FirmwareGenerateSummarySamples {
+/**
+ * Samples for Firmwares Delete.
+ */
+public final class FirmwaresDeleteSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Delete_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateSummary_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_Delete_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateSummaryMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateSummaryWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresDeleteMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().deleteWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_GenerateSummary_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Delete_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_GenerateSummary_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_Delete_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGenerateSummaryMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .generateSummaryWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresDeleteMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().deleteWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_Get
+### Firmwares_GenerateDownloadUrl
```java
-/** Samples for Firmware Get. */
-public final class FirmwareGetSamples {
+/**
+ * Samples for Firmwares GenerateDownloadUrl.
+ */
+public final class FirmwaresGenerateDownloadUrlSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_GenerateDownloadUrl_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_Get_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_GenerateDownloadUrl_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGetMinimumSetGen(
+ public static void firmwaresGenerateDownloadUrlMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.firmwares().generateDownloadUrlWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Get_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_GenerateDownloadUrl_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_Get_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_GenerateDownloadUrl_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareGetMaximumSetGen(
+ public static void firmwaresGenerateDownloadUrlMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.firmwares().generateDownloadUrlWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListByWorkspace
+### Firmwares_GenerateFilesystemDownloadUrl
```java
-/** Samples for Firmware ListByWorkspace. */
-public final class FirmwareListByWorkspaceSamples {
+/**
+ * Samples for Firmwares GenerateFilesystemDownloadUrl.
+ */
+public final class FirmwaresGenerateFilesystemDownloadUrlSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListByWorkspace_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_GenerateFilesystemDownloadUrl_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListByWorkspaceMaximumSetGen(
+ public static void firmwaresGenerateFilesystemDownloadUrlMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager.firmwares().listByWorkspace("rgworkspaces-firmwares", "A7", com.azure.core.util.Context.NONE);
+ manager.firmwares().generateFilesystemDownloadUrlWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListByWorkspace_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_GenerateFilesystemDownloadUrl_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListByWorkspace_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_GenerateFilesystemDownloadUrl_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListByWorkspaceMinimumSetGen(
+ public static void firmwaresGenerateFilesystemDownloadUrlMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager.firmwares().listByWorkspace("rgworkspaces-firmwares", "A7", com.azure.core.util.Context.NONE);
+ manager.firmwares().generateFilesystemDownloadUrlWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListGenerateBinaryHardeningList
+### Firmwares_Get
```java
-/** Samples for Firmware ListGenerateBinaryHardeningList. */
-public final class FirmwareListGenerateBinaryHardeningListSamples {
+/**
+ * Samples for Firmwares Get.
+ */
+public final class FirmwaresGetSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Get_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateBinaryHardeningList_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_Get_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateBinaryHardeningListMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateBinaryHardeningList(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresGetMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Get_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateBinaryHardeningList_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_Get_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateBinaryHardeningListMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateBinaryHardeningList(
- "rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresGetMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.firmwares().getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListGenerateComponentList
+### Firmwares_ListByWorkspace
```java
-/** Samples for Firmware ListGenerateComponentList. */
-public final class FirmwareListGenerateComponentListSamples {
+/**
+ * Samples for Firmwares ListByWorkspace.
+ */
+public final class FirmwaresListByWorkspaceSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_ListByWorkspace_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateComponentList_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_ListByWorkspace_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateComponentListMaximumSetGen(
+ public static void firmwaresListByWorkspaceMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateComponentList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.firmwares().listByWorkspace("rgworkspaces-firmwares", "A7", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateComponentList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_ListByWorkspace_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateComponentList_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_ListByWorkspace_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateComponentListMinimumSetGen(
+ public static void firmwaresListByWorkspaceMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateComponentList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.firmwares().listByWorkspace("rgworkspaces-firmwares", "A7", com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListGenerateCryptoCertificateList
+### Firmwares_Update
```java
-/** Samples for Firmware ListGenerateCryptoCertificateList. */
-public final class FirmwareListGenerateCryptoCertificateListSamples {
+import com.azure.resourcemanager.iotfirmwaredefense.models.Firmware;
+import com.azure.resourcemanager.iotfirmwaredefense.models.Status;
+import com.azure.resourcemanager.iotfirmwaredefense.models.StatusMessage;
+import java.util.Arrays;
+
+/**
+ * Samples for Firmwares Update.
+ */
+public final class FirmwaresUpdateSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Update_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCryptoCertificateList_MaximumSet_Gen.
- *
+ * Sample code: Firmwares_Update_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCryptoCertificateListMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCryptoCertificateList(
- "FirmwareAnalysisRG",
- "default",
- "DECAFBAD-0000-0000-0000-BADBADBADBAD",
- com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresUpdateMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ Firmware resource = manager.firmwares()
+ .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE).getValue();
+ resource.update().withFileName("wresexxulcdsdd").withVendor("vycmdhgtmepcptyoubztiuudpkcpd").withModel("f")
+ .withVersion("s").withDescription("uz").withFileSize(17L).withStatus(Status.PENDING)
+ .withStatusMessages(Arrays.asList(new StatusMessage().withMessage("ulvhmhokezathzzauiitu"))).apply();
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Firmwares_Update_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCryptoCertificateList_MinimumSet_Gen.
- *
+ * Sample code: Firmwares_Update_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCryptoCertificateListMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCryptoCertificateList(
- "rgworkspaces-firmwares", "j5QE_", "wujtpcgypfpqseyrsebolarkspy", com.azure.core.util.Context.NONE);
+ public static void
+ firmwaresUpdateMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ Firmware resource = manager.firmwares()
+ .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE).getValue();
+ resource.update().apply();
}
}
```
-### Firmware_ListGenerateCryptoKeyList
+### Operations_List
```java
-/** Samples for Firmware ListGenerateCryptoKeyList. */
-public final class FirmwareListGenerateCryptoKeyListSamples {
+/**
+ * Samples for Operations List.
+ */
+public final class OperationsListSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Operations_List_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCryptoKeyList_MinimumSet_Gen.
- *
+ * Sample code: Operations_List_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCryptoKeyListMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCryptoKeyList(
- "rgworkspaces-firmwares", "j5QE_", "wujtpcgypfpqseyrsebolarkspy", com.azure.core.util.Context.NONE);
+ public static void
+ operationsListMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Operations_List_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCryptoKeyList_MaximumSet_Gen.
- *
+ * Sample code: Operations_List_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCryptoKeyListMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCryptoKeyList(
- "FirmwareAnalysisRG",
- "default",
- "DECAFBAD-0000-0000-0000-BADBADBADBAD",
- com.azure.core.util.Context.NONE);
+ public static void
+ operationsListMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListGenerateCveList
+### PasswordHashes_ListByFirmware
```java
-/** Samples for Firmware ListGenerateCveList. */
-public final class FirmwareListGenerateCveListSamples {
+/**
+ * Samples for PasswordHashes ListByFirmware.
+ */
+public final class PasswordHashesListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * PasswordHashes_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCveList_MaximumSet_Gen.
- *
+ * Sample code: PasswordHashes_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCveListMaximumSetGen(
+ public static void passwordHashesListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCveList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.passwordHashes().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGenerateCveList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * PasswordHashes_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGenerateCveList_MinimumSet_Gen.
- *
+ * Sample code: PasswordHashes_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGenerateCveListMinimumSetGen(
+ public static void passwordHashesListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGenerateCveList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.passwordHashes().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_ListGeneratePasswordHashList
+### SbomComponents_ListByFirmware
```java
-/** Samples for Firmware ListGeneratePasswordHashList. */
-public final class FirmwareListGeneratePasswordHashListSamples {
+/**
+ * Samples for SbomComponents ListByFirmware.
+ */
+public final class SbomComponentsListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * SbomComponents_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGeneratePasswordHashList_MinimumSet_Gen.
- *
+ * Sample code: SbomComponents_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGeneratePasswordHashListMinimumSetGen(
+ public static void sbomComponentsListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGeneratePasswordHashList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.sbomComponents().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * SbomComponents_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_ListGeneratePasswordHashList_MaximumSet_Gen.
- *
+ * Sample code: SbomComponents_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareListGeneratePasswordHashListMaximumSetGen(
+ public static void sbomComponentsListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .firmwares()
- .listGeneratePasswordHashList("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE);
+ manager.sbomComponents().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Firmware_Update
+### Summaries_Get
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.iotfirmwaredefense.models.Firmware;
-import com.azure.resourcemanager.iotfirmwaredefense.models.Status;
-import java.io.IOException;
-import java.util.Arrays;
+import com.azure.resourcemanager.iotfirmwaredefense.models.SummaryName;
-/** Samples for Firmware Update. */
-public final class FirmwareUpdateSamples {
+/**
+ * Samples for Summaries Get.
+ */
+public final class SummariesGetSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Summaries_Get_MaximumSet_Gen.json
*/
/**
- * Sample code: Firmware_Update_MaximumSet_Gen.
- *
+ * Sample code: Summaries_Get_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareUpdateMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) throws IOException {
- Firmware resource =
- manager
- .firmwares()
- .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE)
- .getValue();
- resource
- .update()
- .withFileName("wresexxulcdsdd")
- .withVendor("vycmdhgtmepcptyoubztiuudpkcpd")
- .withModel("f")
- .withVersion("s")
- .withDescription("uz")
- .withFileSize(17L)
- .withStatus(Status.PENDING)
- .withStatusMessages(
- Arrays
- .asList(
- SerializerFactory
- .createDefaultManagementSerializerAdapter()
- .deserialize(
- "{\"message\":\"ulvhmhokezathzzauiitu\"}", Object.class, SerializerEncoding.JSON)))
- .apply();
+ public static void
+ summariesGetMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.summaries().getWithResponse("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ SummaryName.FIRMWARE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Firmware_Update_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Summaries_Get_MinimumSet_Gen.json
*/
/**
- * Sample code: Firmware_Update_MinimumSet_Gen.
- *
+ * Sample code: Summaries_Get_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void firmwareUpdateMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- Firmware resource =
- manager
- .firmwares()
- .getWithResponse("rgworkspaces-firmwares", "A7", "umrkdttp", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().apply();
+ public static void
+ summariesGetMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.summaries().getWithResponse("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ SummaryName.FIRMWARE, com.azure.core.util.Context.NONE);
}
}
```
-### Operations_List
+### Summaries_ListByFirmware
```java
-/** Samples for Operations List. */
-public final class OperationsListSamples {
+/**
+ * Samples for Summaries ListByFirmware.
+ */
+public final class SummariesListByFirmwareSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Summaries_ListByFirmware_MinimumSet_Gen.json
*/
/**
- * Sample code: Operations_List_MinimumSet_Gen.
- *
+ * Sample code: Summaries_ListByFirmware_MinimumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void operationsListMinimumSetGen(
+ public static void summariesListByFirmwareMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ manager.summaries().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Operations_List_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Summaries_ListByFirmware_MaximumSet_Gen.json
*/
/**
- * Sample code: Operations_List_MaximumSet_Gen.
- *
+ * Sample code: Summaries_ListByFirmware_MaximumSet_Gen.
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void operationsListMaximumSetGen(
+ public static void summariesListByFirmwareMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ manager.summaries().listByFirmware("FirmwareAnalysisRG", "default", "109a9886-50bf-85a8-9d75-000000000000",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -895,45 +695,41 @@ public final class OperationsListSamples {
import java.util.HashMap;
import java.util.Map;
-/** Samples for Workspaces Create. */
+/**
+ * Samples for Workspaces Create.
+ */
public final class WorkspacesCreateSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Create_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_Create_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesCreateMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .define("E___-3")
- .withRegion("jjwbseilitjgdrhbvvkwviqj")
- .withExistingResourceGroup("rgworkspaces")
- .create();
+ public static void
+ workspacesCreateMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.workspaces().define("E___-3").withRegion("jjwbseilitjgdrhbvvkwviqj")
+ .withExistingResourceGroup("rgworkspaces").create();
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Create_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Create_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_Create_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesCreateMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .define("E___-3")
- .withRegion("jjwbseilitjgdrhbvvkwviqj")
- .withExistingResourceGroup("rgworkspaces")
- .withTags(mapOf("key450", "fakeTokenPlaceholder"))
- .create();
+ public static void
+ workspacesCreateMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.workspaces().define("E___-3").withRegion("jjwbseilitjgdrhbvvkwviqj")
+ .withExistingResourceGroup("rgworkspaces").withTags(mapOf("key450", "fakeTokenPlaceholder")).create();
}
+ // Use "Map.of" if available
@SuppressWarnings("unchecked")
private static Map mapOf(Object... inputs) {
Map map = new HashMap<>();
@@ -950,36 +746,38 @@ public final class WorkspacesCreateSamples {
### Workspaces_Delete
```java
-/** Samples for Workspaces Delete. */
+/**
+ * Samples for Workspaces Delete.
+ */
public final class WorkspacesDeleteSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_Delete_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesDeleteMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .deleteByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE);
+ public static void
+ workspacesDeleteMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.workspaces().deleteByResourceGroupWithResponse("rgworkspaces", "E___-3",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_Delete_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesDeleteMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .deleteByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE);
+ public static void
+ workspacesDeleteMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ manager.workspaces().deleteByResourceGroupWithResponse("rgworkspaces", "E___-3",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -989,41 +787,38 @@ public final class WorkspacesDeleteSamples {
```java
import com.azure.resourcemanager.iotfirmwaredefense.models.GenerateUploadUrlRequest;
-/** Samples for Workspaces GenerateUploadUrl. */
+/**
+ * Samples for Workspaces GenerateUploadUrl.
+ */
public final class WorkspacesGenerateUploadUrlSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_GenerateUploadUrl_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_GenerateUploadUrl_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesGenerateUploadUrlMinimumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .generateUploadUrlWithResponse(
- "rgworkspaces", "E___-3", new GenerateUploadUrlRequest(), com.azure.core.util.Context.NONE);
+ manager.workspaces().generateUploadUrlWithResponse("rgworkspaces", "E___-3", new GenerateUploadUrlRequest(),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_GenerateUploadUrl_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_GenerateUploadUrl_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_GenerateUploadUrl_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesGenerateUploadUrlMaximumSetGen(
com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- manager
- .workspaces()
- .generateUploadUrlWithResponse(
- "rgworkspaces",
- "E___-3",
- new GenerateUploadUrlRequest().withFirmwareId("ytsfprbywi"),
- com.azure.core.util.Context.NONE);
+ manager.workspaces().generateUploadUrlWithResponse("rgworkspaces", "E___-3",
+ new GenerateUploadUrlRequest().withFirmwareId("ytsfprbywi"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1031,31 +826,35 @@ public final class WorkspacesGenerateUploadUrlSamples {
### Workspaces_GetByResourceGroup
```java
-/** Samples for Workspaces GetByResourceGroup. */
+/**
+ * Samples for Workspaces GetByResourceGroup.
+ */
public final class WorkspacesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_Get_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesGetMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ public static void
+ workspacesGetMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
manager.workspaces().getByResourceGroupWithResponse("rgworkspaces", "E_US", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Get_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Get_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_Get_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesGetMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ public static void
+ workspacesGetMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
manager.workspaces().getByResourceGroupWithResponse("rgworkspaces", "E_US", com.azure.core.util.Context.NONE);
}
}
@@ -1064,14 +863,17 @@ public final class WorkspacesGetByResourceGroupSamples {
### Workspaces_List
```java
-/** Samples for Workspaces List. */
+/**
+ * Samples for Workspaces List.
+ */
public final class WorkspacesListSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_ListBySubscription_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesListBySubscriptionMaximumSetGen(
@@ -1080,11 +882,12 @@ public final class WorkspacesListSamples {
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_ListBySubscription_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesListBySubscriptionMinimumSetGen(
@@ -1097,14 +900,17 @@ public final class WorkspacesListSamples {
### Workspaces_ListByResourceGroup
```java
-/** Samples for Workspaces ListByResourceGroup. */
+/**
+ * Samples for Workspaces ListByResourceGroup.
+ */
public final class WorkspacesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_ListByResourceGroup_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesListByResourceGroupMaximumSetGen(
@@ -1113,11 +919,12 @@ public final class WorkspacesListByResourceGroupSamples {
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_ListByResourceGroup_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
public static void workspacesListByResourceGroupMinimumSetGen(
@@ -1132,41 +939,39 @@ public final class WorkspacesListByResourceGroupSamples {
```java
import com.azure.resourcemanager.iotfirmwaredefense.models.Workspace;
-/** Samples for Workspaces Update. */
+/**
+ * Samples for Workspaces Update.
+ */
public final class WorkspacesUpdateSamples {
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MaximumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Update_MaximumSet_Gen.json
*/
/**
* Sample code: Workspaces_Update_MaximumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesUpdateMaximumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- Workspace resource =
- manager
- .workspaces()
- .getByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE)
- .getValue();
+ public static void
+ workspacesUpdateMaximumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ Workspace resource = manager.workspaces()
+ .getByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
/*
- * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/preview/2023-02-08-preview/examples/Workspaces_Update_MinimumSet_Gen.json
+ * x-ms-original-file: specification/fist/resource-manager/Microsoft.IoTFirmwareDefense/stable/2024-01-10/examples/
+ * Workspaces_Update_MinimumSet_Gen.json
*/
/**
* Sample code: Workspaces_Update_MinimumSet_Gen.
- *
+ *
* @param manager Entry point to IoTFirmwareDefenseManager.
*/
- public static void workspacesUpdateMinimumSetGen(
- com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
- Workspace resource =
- manager
- .workspaces()
- .getByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE)
- .getValue();
+ public static void
+ workspacesUpdateMinimumSetGen(com.azure.resourcemanager.iotfirmwaredefense.IoTFirmwareDefenseManager manager) {
+ Workspace resource = manager.workspaces()
+ .getByResourceGroupWithResponse("rgworkspaces", "E___-3", com.azure.core.util.Context.NONE).getValue();
resource.update().apply();
}
}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/pom.xml b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/pom.xml
index 5c3c636de769..72e3389a026a 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/pom.xml
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/pom.xml
@@ -14,11 +14,11 @@
com.azure.resourcemanagerazure-resourcemanager-iotfirmwaredefense
- 1.0.0-beta.2
+ 1.0.0jarMicrosoft Azure SDK for IoT Firmware Defense Management
- This package contains Microsoft Azure SDK for IoT Firmware Defense Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The definitions and parameters in this swagger specification will be used to manage the IoT Firmware Defense resources. Package tag package-2023-02-08-preview.
+ This package contains Microsoft Azure SDK for IoT Firmware Defense Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Firmware & IoT Security REST API. Package tag package-2024-01-10.https://github.com/Azure/azure-sdk-for-java
@@ -87,8 +87,6 @@
4.11.0test
-
-
net.bytebuddybyte-buddy
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/IoTFirmwareDefenseManager.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/IoTFirmwareDefenseManager.java
index 25e0d19ed806..c3f1c3a689e7 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/IoTFirmwareDefenseManager.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/IoTFirmwareDefenseManager.java
@@ -23,13 +23,27 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.Fist;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.IoTFirmwareDefense;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.BinaryHardeningsImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.CryptoCertificatesImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.CryptoKeysImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.CvesImpl;
import com.azure.resourcemanager.iotfirmwaredefense.implementation.FirmwaresImpl;
-import com.azure.resourcemanager.iotfirmwaredefense.implementation.FistBuilder;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.IoTFirmwareDefenseBuilder;
import com.azure.resourcemanager.iotfirmwaredefense.implementation.OperationsImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.PasswordHashesImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.SbomComponentsImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.implementation.SummariesImpl;
import com.azure.resourcemanager.iotfirmwaredefense.implementation.WorkspacesImpl;
+import com.azure.resourcemanager.iotfirmwaredefense.models.BinaryHardenings;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CryptoCertificates;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CryptoKeys;
+import com.azure.resourcemanager.iotfirmwaredefense.models.Cves;
import com.azure.resourcemanager.iotfirmwaredefense.models.Firmwares;
import com.azure.resourcemanager.iotfirmwaredefense.models.Operations;
+import com.azure.resourcemanager.iotfirmwaredefense.models.PasswordHashes;
+import com.azure.resourcemanager.iotfirmwaredefense.models.SbomComponents;
+import com.azure.resourcemanager.iotfirmwaredefense.models.Summaries;
import com.azure.resourcemanager.iotfirmwaredefense.models.Workspaces;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -39,33 +53,43 @@
import java.util.stream.Collectors;
/**
- * Entry point to IoTFirmwareDefenseManager. The definitions and parameters in this swagger specification will be used
- * to manage the IoT Firmware Defense resources.
+ * Entry point to IoTFirmwareDefenseManager.
+ * Firmware & IoT Security REST API.
*/
public final class IoTFirmwareDefenseManager {
- private Firmwares firmwares;
+ private BinaryHardenings binaryHardenings;
- private Workspaces workspaces;
+ private CryptoCertificates cryptoCertificates;
+
+ private CryptoKeys cryptoKeys;
+
+ private Cves cves;
+
+ private Firmwares firmwares;
private Operations operations;
- private final Fist clientObject;
+ private PasswordHashes passwordHashes;
+
+ private SbomComponents sbomComponents;
+
+ private Summaries summaries;
+
+ private Workspaces workspaces;
+
+ private final IoTFirmwareDefense clientObject;
private IoTFirmwareDefenseManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new FistBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new IoTFirmwareDefenseBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint()).subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval).buildClient();
}
/**
* Creates an instance of IoT Firmware Defense service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the IoT Firmware Defense service API instance.
@@ -78,7 +102,7 @@ public static IoTFirmwareDefenseManager authenticate(TokenCredential credential,
/**
* Creates an instance of IoT Firmware Defense service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the IoT Firmware Defense service API instance.
@@ -91,14 +115,16 @@ public static IoTFirmwareDefenseManager authenticate(HttpPipeline httpPipeline,
/**
* Gets a Configurable instance that can be used to create IoTFirmwareDefenseManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new IoTFirmwareDefenseManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -170,8 +196,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
*
* @param retryOptions the retry options for the HTTP pipeline retry policy.
* @return the configurable object itself.
@@ -188,8 +214,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -209,21 +235,12 @@ public IoTFirmwareDefenseManager authenticate(TokenCredential credential, AzureP
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
- .append("-")
- .append("com.azure.resourcemanager.iotfirmwaredefense")
- .append("/")
- .append("1.0.0-beta.1");
+ userAgentBuilder.append("azsdk-java").append("-").append("com.azure.resourcemanager.iotfirmwaredefense")
+ .append("/").append("1.0.0");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
- .append(Configuration.getGlobalConfiguration().get("java.version"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.name"))
- .append("; ")
- .append(Configuration.getGlobalConfiguration().get("os.version"))
- .append("; auto-generated)");
+ userAgentBuilder.append(" (").append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ").append(Configuration.getGlobalConfiguration().get("os.name")).append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version")).append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}
@@ -242,38 +259,73 @@ public IoTFirmwareDefenseManager authenticate(TokenCredential credential, AzureP
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream().filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY).collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
- HttpPipeline httpPipeline =
- new HttpPipelineBuilder()
- .httpClient(httpClient)
- .policies(policies.toArray(new HttpPipelinePolicy[0]))
- .build();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0])).build();
return new IoTFirmwareDefenseManager(httpPipeline, profile, defaultPollInterval);
}
}
+ /**
+ * Gets the resource collection API of BinaryHardenings.
+ *
+ * @return Resource collection API of BinaryHardenings.
+ */
+ public BinaryHardenings binaryHardenings() {
+ if (this.binaryHardenings == null) {
+ this.binaryHardenings = new BinaryHardeningsImpl(clientObject.getBinaryHardenings(), this);
+ }
+ return binaryHardenings;
+ }
+
+ /**
+ * Gets the resource collection API of CryptoCertificates.
+ *
+ * @return Resource collection API of CryptoCertificates.
+ */
+ public CryptoCertificates cryptoCertificates() {
+ if (this.cryptoCertificates == null) {
+ this.cryptoCertificates = new CryptoCertificatesImpl(clientObject.getCryptoCertificates(), this);
+ }
+ return cryptoCertificates;
+ }
+
+ /**
+ * Gets the resource collection API of CryptoKeys.
+ *
+ * @return Resource collection API of CryptoKeys.
+ */
+ public CryptoKeys cryptoKeys() {
+ if (this.cryptoKeys == null) {
+ this.cryptoKeys = new CryptoKeysImpl(clientObject.getCryptoKeys(), this);
+ }
+ return cryptoKeys;
+ }
+
+ /**
+ * Gets the resource collection API of Cves.
+ *
+ * @return Resource collection API of Cves.
+ */
+ public Cves cves() {
+ if (this.cves == null) {
+ this.cves = new CvesImpl(clientObject.getCves(), this);
+ }
+ return cves;
+ }
+
/**
* Gets the resource collection API of Firmwares. It manages Firmware.
- *
+ *
* @return Resource collection API of Firmwares.
*/
public Firmwares firmwares() {
@@ -283,21 +335,9 @@ public Firmwares firmwares() {
return firmwares;
}
- /**
- * Gets the resource collection API of Workspaces. It manages Workspace.
- *
- * @return Resource collection API of Workspaces.
- */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -308,10 +348,60 @@ public Operations operations() {
}
/**
- * @return Wrapped service client Fist providing direct access to the underlying auto-generated API implementation,
- * based on Azure REST API.
+ * Gets the resource collection API of PasswordHashes.
+ *
+ * @return Resource collection API of PasswordHashes.
+ */
+ public PasswordHashes passwordHashes() {
+ if (this.passwordHashes == null) {
+ this.passwordHashes = new PasswordHashesImpl(clientObject.getPasswordHashes(), this);
+ }
+ return passwordHashes;
+ }
+
+ /**
+ * Gets the resource collection API of SbomComponents.
+ *
+ * @return Resource collection API of SbomComponents.
+ */
+ public SbomComponents sbomComponents() {
+ if (this.sbomComponents == null) {
+ this.sbomComponents = new SbomComponentsImpl(clientObject.getSbomComponents(), this);
+ }
+ return sbomComponents;
+ }
+
+ /**
+ * Gets the resource collection API of Summaries.
+ *
+ * @return Resource collection API of Summaries.
+ */
+ public Summaries summaries() {
+ if (this.summaries == null) {
+ this.summaries = new SummariesImpl(clientObject.getSummaries(), this);
+ }
+ return summaries;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages Workspace.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets wrapped service client IoTFirmwareDefense providing direct access to the underlying auto-generated API
+ * implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client IoTFirmwareDefense.
*/
- public Fist serviceClient() {
+ public IoTFirmwareDefense serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/BinaryHardeningsClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/BinaryHardeningsClient.java
new file mode 100644
index 000000000000..01834d11246e
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/BinaryHardeningsClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.BinaryHardeningResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BinaryHardeningsClient.
+ */
+public interface BinaryHardeningsClient {
+ /**
+ * Lists binary hardening analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of binary hardening results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists binary hardening analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of binary hardening results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoCertificatesClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoCertificatesClient.java
new file mode 100644
index 000000000000..a06def7392ec
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoCertificatesClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoCertificateResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CryptoCertificatesClient.
+ */
+public interface CryptoCertificatesClient {
+ /**
+ * Lists cryptographic certificate analysis results found in a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of crypto certificates as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists cryptographic certificate analysis results found in a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of crypto certificates as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoKeysClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoKeysClient.java
new file mode 100644
index 000000000000..2fb6b18bac96
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CryptoKeysClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoKeyResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CryptoKeysClient.
+ */
+public interface CryptoKeysClient {
+ /**
+ * Lists cryptographic key analysis results found in a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of crypto keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists cryptographic key analysis results found in a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of crypto keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CvesClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CvesClient.java
new file mode 100644
index 000000000000..1f30566ff7fa
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/CvesClient.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CveResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CvesClient.
+ */
+public interface CvesClient {
+ /**
+ * Lists CVE analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of CVE results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName, String firmwareId);
+
+ /**
+ * Lists CVE analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of CVE results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName, String firmwareId,
+ Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/FirmwaresClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/FirmwaresClient.java
index 2b52cc81adea..3966be2042cb 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/FirmwaresClient.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/FirmwaresClient.java
@@ -9,26 +9,17 @@
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.BinaryHardeningInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.BinaryHardeningSummaryInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.ComponentInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoCertificateInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoCertificateSummaryInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoKeyInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CryptoKeySummaryInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CveInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.CveSummaryInner;
import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.FirmwareInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.FirmwareSummaryInner;
-import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.PasswordHashInner;
import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.UrlTokenInner;
import com.azure.resourcemanager.iotfirmwaredefense.models.FirmwareUpdateDefinition;
-/** An instance of this class provides access to all the operations defined in FirmwaresClient. */
+/**
+ * An instance of this class provides access to all the operations defined in FirmwaresClient.
+ */
public interface FirmwaresClient {
/**
* Lists all of firmwares inside a workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -41,7 +32,7 @@ public interface FirmwaresClient {
/**
* Lists all of firmwares inside a workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param context The context to associate with this operation.
@@ -55,7 +46,7 @@ public interface FirmwaresClient {
/**
* The operation to create a firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -67,12 +58,12 @@ public interface FirmwaresClient {
* @return firmware definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, FirmwareInner firmware, Context context);
+ Response createWithResponse(String resourceGroupName, String workspaceName, String firmwareId,
+ FirmwareInner firmware, Context context);
/**
* The operation to create a firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -87,7 +78,7 @@ Response createWithResponse(
/**
* The operation to update firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -99,16 +90,12 @@ Response createWithResponse(
* @return firmware definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName,
- String workspaceName,
- String firmwareId,
- FirmwareUpdateDefinition firmware,
- Context context);
+ Response updateWithResponse(String resourceGroupName, String workspaceName, String firmwareId,
+ FirmwareUpdateDefinition firmware, Context context);
/**
* The operation to update firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -119,12 +106,12 @@ Response updateWithResponse(
* @return firmware definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- FirmwareInner update(
- String resourceGroupName, String workspaceName, String firmwareId, FirmwareUpdateDefinition firmware);
+ FirmwareInner update(String resourceGroupName, String workspaceName, String firmwareId,
+ FirmwareUpdateDefinition firmware);
/**
* The operation to delete a firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -135,12 +122,12 @@ FirmwareInner update(
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String firmwareId,
+ Context context);
/**
* The operation to delete a firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -153,7 +140,7 @@ Response deleteWithResponse(
/**
* Get firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -164,12 +151,12 @@ Response deleteWithResponse(
* @return firmware along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName, String firmwareId,
+ Context context);
/**
* Get firmware.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -183,7 +170,7 @@ Response getWithResponse(
/**
* The operation to a url for file download.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -194,12 +181,12 @@ Response getWithResponse(
* @return url data for creating or accessing a blob file along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response generateDownloadUrlWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
+ Response generateDownloadUrlWithResponse(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
/**
* The operation to a url for file download.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -213,7 +200,7 @@ Response generateDownloadUrlWithResponse(
/**
* The operation to a url for tar file download.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -224,12 +211,12 @@ Response generateDownloadUrlWithResponse(
* @return url data for creating or accessing a blob file along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response generateFilesystemDownloadUrlWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
+ Response generateFilesystemDownloadUrlWithResponse(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
/**
* The operation to a url for tar file download.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param firmwareId The id of the firmware.
@@ -240,406 +227,4 @@ Response generateFilesystemDownloadUrlWithResponse(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
UrlTokenInner generateFilesystemDownloadUrl(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to get a scan summary.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summary result after scanning the firmware along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateSummaryWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to get a scan summary.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return summary result after scanning the firmware.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- FirmwareSummaryInner generateSummary(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all components result for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for components as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateComponentList(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all components result for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for components as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateComponentList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to get component details for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return component of a firmware along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateComponentDetailsWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to get component details for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return component of a firmware.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ComponentInner generateComponentDetails(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all binary hardening result for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for binary hardening as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateBinaryHardeningList(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all binary hardening result for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for binary hardening as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateBinaryHardeningList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to list the binary hardening summary percentages for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return binary hardening summary percentages along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateBinaryHardeningSummaryWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to list the binary hardening summary percentages for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return binary hardening summary percentages.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BinaryHardeningSummaryInner generateBinaryHardeningSummary(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to get binary hardening details for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return binary hardening of a firmware along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateBinaryHardeningDetailsWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to get binary hardening details for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return binary hardening of a firmware.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- BinaryHardeningInner generateBinaryHardeningDetails(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all password hashes for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return password hashes list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGeneratePasswordHashList(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all password hashes for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return password hashes list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGeneratePasswordHashList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to list all cve results for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for CVE as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCveList(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all cve results for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list result for CVE as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCveList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to provide a high level summary of the CVEs reported for the firmware image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cVE summary values along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateCveSummaryWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to provide a high level summary of the CVEs reported for the firmware image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cVE summary values.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CveSummaryInner generateCveSummary(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to provide a high level summary of the discovered cryptographic certificates reported for the
- * firmware image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cryptographic certificate summary values along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateCryptoCertificateSummaryWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to provide a high level summary of the discovered cryptographic certificates reported for the
- * firmware image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cryptographic certificate summary values.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CryptoCertificateSummaryInner generateCryptoCertificateSummary(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware
- * image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cryptographic key summary values along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response generateCryptoKeySummaryWithResponse(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to provide a high level summary of the discovered cryptographic keys reported for the firmware
- * image.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return cryptographic key summary values.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CryptoKeySummaryInner generateCryptoKeySummary(String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all crypto certificates for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return crypto certificates list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCryptoCertificateList(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all crypto certificates for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return crypto certificates list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCryptoCertificateList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
-
- /**
- * The operation to list all crypto keys for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return crypto keys list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCryptoKeyList(
- String resourceGroupName, String workspaceName, String firmwareId);
-
- /**
- * The operation to list all crypto keys for a firmware.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName The name of the firmware analysis workspace.
- * @param firmwareId The id of the firmware.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return crypto keys list as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listGenerateCryptoKeyList(
- String resourceGroupName, String workspaceName, String firmwareId, Context context);
}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/Fist.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/Fist.java
deleted file mode 100644
index dd7e8b60df71..000000000000
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/Fist.java
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.iotfirmwaredefense.fluent;
-
-import com.azure.core.http.HttpPipeline;
-import java.time.Duration;
-
-/** The interface for Fist class. */
-public interface Fist {
- /**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
- *
- * @return the endpoint value.
- */
- String getEndpoint();
-
- /**
- * Gets Api Version.
- *
- * @return the apiVersion value.
- */
- String getApiVersion();
-
- /**
- * Gets The HTTP pipeline to send requests through.
- *
- * @return the httpPipeline value.
- */
- HttpPipeline getHttpPipeline();
-
- /**
- * Gets The default poll interval for long-running operation.
- *
- * @return the defaultPollInterval value.
- */
- Duration getDefaultPollInterval();
-
- /**
- * Gets the FirmwaresClient object to access its operations.
- *
- * @return the FirmwaresClient object.
- */
- FirmwaresClient getFirmwares();
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/IoTFirmwareDefense.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/IoTFirmwareDefense.java
new file mode 100644
index 000000000000..8910eeb3e362
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/IoTFirmwareDefense.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for IoTFirmwareDefense class.
+ */
+public interface IoTFirmwareDefense {
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the BinaryHardeningsClient object to access its operations.
+ *
+ * @return the BinaryHardeningsClient object.
+ */
+ BinaryHardeningsClient getBinaryHardenings();
+
+ /**
+ * Gets the CryptoCertificatesClient object to access its operations.
+ *
+ * @return the CryptoCertificatesClient object.
+ */
+ CryptoCertificatesClient getCryptoCertificates();
+
+ /**
+ * Gets the CryptoKeysClient object to access its operations.
+ *
+ * @return the CryptoKeysClient object.
+ */
+ CryptoKeysClient getCryptoKeys();
+
+ /**
+ * Gets the CvesClient object to access its operations.
+ *
+ * @return the CvesClient object.
+ */
+ CvesClient getCves();
+
+ /**
+ * Gets the FirmwaresClient object to access its operations.
+ *
+ * @return the FirmwaresClient object.
+ */
+ FirmwaresClient getFirmwares();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the PasswordHashesClient object to access its operations.
+ *
+ * @return the PasswordHashesClient object.
+ */
+ PasswordHashesClient getPasswordHashes();
+
+ /**
+ * Gets the SbomComponentsClient object to access its operations.
+ *
+ * @return the SbomComponentsClient object.
+ */
+ SbomComponentsClient getSbomComponents();
+
+ /**
+ * Gets the SummariesClient object to access its operations.
+ *
+ * @return the SummariesClient object.
+ */
+ SummariesClient getSummaries();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/OperationsClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/OperationsClient.java
index a6f466c735d0..2c1ecd598b94 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/OperationsClient.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/OperationsClient.java
@@ -10,28 +10,30 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.OperationInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Lists the operations for this resource provider.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Lists the operations for this resource provider.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with {@link
- * PagedIterable}.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/PasswordHashesClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/PasswordHashesClient.java
new file mode 100644
index 000000000000..816f0abf61bf
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/PasswordHashesClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.PasswordHashResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in PasswordHashesClient.
+ */
+public interface PasswordHashesClient {
+ /**
+ * Lists password hash analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of password hash results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists password hash analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of password hash results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SbomComponentsClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SbomComponentsClient.java
new file mode 100644
index 000000000000..109ea4fc1b37
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SbomComponentsClient.java
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.SbomComponentResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in SbomComponentsClient.
+ */
+public interface SbomComponentsClient {
+ /**
+ * Lists SBOM analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of SBOM results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists SBOM analysis results of a firmware.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of SBOM results as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SummariesClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SummariesClient.java
new file mode 100644
index 000000000000..cb65fe78869a
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/SummariesClient.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.iotfirmwaredefense.fluent.models.SummaryResourceInner;
+import com.azure.resourcemanager.iotfirmwaredefense.models.SummaryName;
+
+/**
+ * An instance of this class provides access to all the operations defined in SummariesClient.
+ */
+public interface SummariesClient {
+ /**
+ * Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of analysis summaries as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId);
+
+ /**
+ * Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of analysis summaries as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByFirmware(String resourceGroupName, String workspaceName,
+ String firmwareId, Context context);
+
+ /**
+ * Get an analysis result summary of a firmware by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param summaryName The Firmware analysis summary name describing the type of summary.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an analysis result summary of a firmware by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String firmwareId,
+ SummaryName summaryName, Context context);
+
+ /**
+ * Get an analysis result summary of a firmware by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName The name of the firmware analysis workspace.
+ * @param firmwareId The id of the firmware.
+ * @param summaryName The Firmware analysis summary name describing the type of summary.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an analysis result summary of a firmware by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SummaryResourceInner get(String resourceGroupName, String workspaceName, String firmwareId,
+ SummaryName summaryName);
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/WorkspacesClient.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/WorkspacesClient.java
index ca7c6040a3d6..a69ea8da5bbb 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/WorkspacesClient.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/WorkspacesClient.java
@@ -14,11 +14,13 @@
import com.azure.resourcemanager.iotfirmwaredefense.models.GenerateUploadUrlRequest;
import com.azure.resourcemanager.iotfirmwaredefense.models.WorkspaceUpdateDefinition;
-/** An instance of this class provides access to all the operations defined in WorkspacesClient. */
+/**
+ * An instance of this class provides access to all the operations defined in WorkspacesClient.
+ */
public interface WorkspacesClient {
/**
* Lists all of the firmware analysis workspaces in the specified subscription.
- *
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return return a list of firmware analysis workspaces as paginated response with {@link PagedIterable}.
@@ -28,7 +30,7 @@ public interface WorkspacesClient {
/**
* Lists all of the firmware analysis workspaces in the specified subscription.
- *
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -40,7 +42,7 @@ public interface WorkspacesClient {
/**
* Lists all of the firmware analysis workspaces in the specified resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -52,7 +54,7 @@ public interface WorkspacesClient {
/**
* Lists all of the firmware analysis workspaces in the specified resource group.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -65,7 +67,7 @@ public interface WorkspacesClient {
/**
* The operation to create or update a firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param workspace Parameters when creating a firmware analysis workspace.
@@ -76,12 +78,12 @@ public interface WorkspacesClient {
* @return firmware analysis workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(
- String resourceGroupName, String workspaceName, WorkspaceInner workspace, Context context);
+ Response createWithResponse(String resourceGroupName, String workspaceName,
+ WorkspaceInner workspace, Context context);
/**
* The operation to create or update a firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param workspace Parameters when creating a firmware analysis workspace.
@@ -95,7 +97,7 @@ Response createWithResponse(
/**
* The operation to update a firmware analysis workspaces.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param workspace Parameters when updating a firmware analysis workspace.
@@ -106,12 +108,12 @@ Response createWithResponse(
* @return firmware analysis workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(
- String resourceGroupName, String workspaceName, WorkspaceUpdateDefinition workspace, Context context);
+ Response updateWithResponse(String resourceGroupName, String workspaceName,
+ WorkspaceUpdateDefinition workspace, Context context);
/**
* The operation to update a firmware analysis workspaces.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param workspace Parameters when updating a firmware analysis workspace.
@@ -125,7 +127,7 @@ Response updateWithResponse(
/**
* The operation to delete a firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param context The context to associate with this operation.
@@ -139,7 +141,7 @@ Response updateWithResponse(
/**
* The operation to delete a firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -151,7 +153,7 @@ Response updateWithResponse(
/**
* Get firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param context The context to associate with this operation.
@@ -161,12 +163,12 @@ Response updateWithResponse(
* @return firmware analysis workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String workspaceName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName,
+ Context context);
/**
* Get firmware analysis workspace.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -179,7 +181,7 @@ Response getByResourceGroupWithResponse(
/**
* The operation to get a url for file upload.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param generateUploadUrl Parameters when requesting a URL to upload firmware.
@@ -190,12 +192,12 @@ Response getByResourceGroupWithResponse(
* @return url data for creating or accessing a blob file along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response generateUploadUrlWithResponse(
- String resourceGroupName, String workspaceName, GenerateUploadUrlRequest generateUploadUrl, Context context);
+ Response generateUploadUrlWithResponse(String resourceGroupName, String workspaceName,
+ GenerateUploadUrlRequest generateUploadUrl, Context context);
/**
* The operation to get a url for file upload.
- *
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the firmware analysis workspace.
* @param generateUploadUrl Parameters when requesting a URL to upload firmware.
@@ -205,6 +207,6 @@ Response generateUploadUrlWithResponse(
* @return url data for creating or accessing a blob file.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- UrlTokenInner generateUploadUrl(
- String resourceGroupName, String workspaceName, GenerateUploadUrlRequest generateUploadUrl);
+ UrlTokenInner generateUploadUrl(String resourceGroupName, String workspaceName,
+ GenerateUploadUrlRequest generateUploadUrl);
}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningFeatures.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningFeatures.java
index fe437801507c..e9f07a37166f 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningFeatures.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningFeatures.java
@@ -5,153 +5,152 @@
package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.iotfirmwaredefense.models.CanaryFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.NxFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.PieFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.RelroFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.StrippedFlag;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Binary hardening features. */
+/**
+ * Binary hardening features.
+ */
@Fluent
public final class BinaryHardeningFeatures {
/*
- * NX flag.
+ * NX (no-execute) flag.
*/
@JsonProperty(value = "nx")
- private NxFlag nx;
+ private Boolean nx;
/*
- * PIE flag.
+ * PIE (position independent executable) flag.
*/
@JsonProperty(value = "pie")
- private PieFlag pie;
+ private Boolean pie;
/*
- * RELRO flag.
+ * RELRO (relocation read-only) flag.
*/
@JsonProperty(value = "relro")
- private RelroFlag relro;
+ private Boolean relro;
/*
- * Canary flag.
+ * Canary (stack canaries) flag.
*/
@JsonProperty(value = "canary")
- private CanaryFlag canary;
+ private Boolean canary;
/*
* Stripped flag.
*/
@JsonProperty(value = "stripped")
- private StrippedFlag stripped;
+ private Boolean stripped;
- /** Creates an instance of BinaryHardeningFeatures class. */
+ /**
+ * Creates an instance of BinaryHardeningFeatures class.
+ */
public BinaryHardeningFeatures() {
}
/**
- * Get the nx property: NX flag.
- *
+ * Get the nx property: NX (no-execute) flag.
+ *
* @return the nx value.
*/
- public NxFlag nx() {
+ public Boolean nx() {
return this.nx;
}
/**
- * Set the nx property: NX flag.
- *
+ * Set the nx property: NX (no-execute) flag.
+ *
* @param nx the nx value to set.
* @return the BinaryHardeningFeatures object itself.
*/
- public BinaryHardeningFeatures withNx(NxFlag nx) {
+ public BinaryHardeningFeatures withNx(Boolean nx) {
this.nx = nx;
return this;
}
/**
- * Get the pie property: PIE flag.
- *
+ * Get the pie property: PIE (position independent executable) flag.
+ *
* @return the pie value.
*/
- public PieFlag pie() {
+ public Boolean pie() {
return this.pie;
}
/**
- * Set the pie property: PIE flag.
- *
+ * Set the pie property: PIE (position independent executable) flag.
+ *
* @param pie the pie value to set.
* @return the BinaryHardeningFeatures object itself.
*/
- public BinaryHardeningFeatures withPie(PieFlag pie) {
+ public BinaryHardeningFeatures withPie(Boolean pie) {
this.pie = pie;
return this;
}
/**
- * Get the relro property: RELRO flag.
- *
+ * Get the relro property: RELRO (relocation read-only) flag.
+ *
* @return the relro value.
*/
- public RelroFlag relro() {
+ public Boolean relro() {
return this.relro;
}
/**
- * Set the relro property: RELRO flag.
- *
+ * Set the relro property: RELRO (relocation read-only) flag.
+ *
* @param relro the relro value to set.
* @return the BinaryHardeningFeatures object itself.
*/
- public BinaryHardeningFeatures withRelro(RelroFlag relro) {
+ public BinaryHardeningFeatures withRelro(Boolean relro) {
this.relro = relro;
return this;
}
/**
- * Get the canary property: Canary flag.
- *
+ * Get the canary property: Canary (stack canaries) flag.
+ *
* @return the canary value.
*/
- public CanaryFlag canary() {
+ public Boolean canary() {
return this.canary;
}
/**
- * Set the canary property: Canary flag.
- *
+ * Set the canary property: Canary (stack canaries) flag.
+ *
* @param canary the canary value to set.
* @return the BinaryHardeningFeatures object itself.
*/
- public BinaryHardeningFeatures withCanary(CanaryFlag canary) {
+ public BinaryHardeningFeatures withCanary(Boolean canary) {
this.canary = canary;
return this;
}
/**
* Get the stripped property: Stripped flag.
- *
+ *
* @return the stripped value.
*/
- public StrippedFlag stripped() {
+ public Boolean stripped() {
return this.stripped;
}
/**
* Set the stripped property: Stripped flag.
- *
+ *
* @param stripped the stripped value to set.
* @return the BinaryHardeningFeatures object itself.
*/
- public BinaryHardeningFeatures withStripped(StrippedFlag stripped) {
+ public BinaryHardeningFeatures withStripped(Boolean stripped) {
this.stripped = stripped;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResourceInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResourceInner.java
new file mode 100644
index 000000000000..443c1b36cedd
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResourceInner.java
@@ -0,0 +1,316 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * binary hardening analysis result resource.
+ */
+@Fluent
+public final class BinaryHardeningResourceInner extends ProxyResource {
+ /*
+ * The properties of a binary hardening result found within a firmware image
+ */
+ @JsonProperty(value = "properties")
+ private BinaryHardeningResult innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of BinaryHardeningResourceInner class.
+ */
+ public BinaryHardeningResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a binary hardening result found within a firmware image.
+ *
+ * @return the innerProperties value.
+ */
+ private BinaryHardeningResult innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the binaryHardeningId property: ID for the binary hardening result.
+ *
+ * @return the binaryHardeningId value.
+ */
+ public String binaryHardeningId() {
+ return this.innerProperties() == null ? null : this.innerProperties().binaryHardeningId();
+ }
+
+ /**
+ * Set the binaryHardeningId property: ID for the binary hardening result.
+ *
+ * @param binaryHardeningId the binaryHardeningId value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withBinaryHardeningId(String binaryHardeningId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withBinaryHardeningId(binaryHardeningId);
+ return this;
+ }
+
+ /**
+ * Get the architecture property: The architecture of the uploaded firmware.
+ *
+ * @return the architecture value.
+ */
+ public String architecture() {
+ return this.innerProperties() == null ? null : this.innerProperties().architecture();
+ }
+
+ /**
+ * Set the architecture property: The architecture of the uploaded firmware.
+ *
+ * @param architecture the architecture value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withArchitecture(String architecture) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withArchitecture(architecture);
+ return this;
+ }
+
+ /**
+ * Get the filePath property: The executable path.
+ *
+ * @return the filePath value.
+ */
+ public String filePath() {
+ return this.innerProperties() == null ? null : this.innerProperties().filePath();
+ }
+
+ /**
+ * Set the filePath property: The executable path.
+ *
+ * @param filePath the filePath value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withFilePath(String filePath) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withFilePath(filePath);
+ return this;
+ }
+
+ /**
+ * Get the classProperty property: The executable class to indicate 32 or 64 bit.
+ *
+ * @return the classProperty value.
+ */
+ public String classProperty() {
+ return this.innerProperties() == null ? null : this.innerProperties().classProperty();
+ }
+
+ /**
+ * Set the classProperty property: The executable class to indicate 32 or 64 bit.
+ *
+ * @param classProperty the classProperty value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withClassProperty(String classProperty) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withClassProperty(classProperty);
+ return this;
+ }
+
+ /**
+ * Get the runpath property: The runpath of the uploaded firmware.
+ *
+ * @return the runpath value.
+ */
+ public String runpath() {
+ return this.innerProperties() == null ? null : this.innerProperties().runpath();
+ }
+
+ /**
+ * Set the runpath property: The runpath of the uploaded firmware.
+ *
+ * @param runpath the runpath value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withRunpath(String runpath) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withRunpath(runpath);
+ return this;
+ }
+
+ /**
+ * Get the rpath property: The rpath of the uploaded firmware.
+ *
+ * @return the rpath value.
+ */
+ public String rpath() {
+ return this.innerProperties() == null ? null : this.innerProperties().rpath();
+ }
+
+ /**
+ * Set the rpath property: The rpath of the uploaded firmware.
+ *
+ * @param rpath the rpath value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withRpath(String rpath) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withRpath(rpath);
+ return this;
+ }
+
+ /**
+ * Get the nx property: NX (no-execute) flag.
+ *
+ * @return the nx value.
+ */
+ public Boolean nx() {
+ return this.innerProperties() == null ? null : this.innerProperties().nx();
+ }
+
+ /**
+ * Set the nx property: NX (no-execute) flag.
+ *
+ * @param nx the nx value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withNx(Boolean nx) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withNx(nx);
+ return this;
+ }
+
+ /**
+ * Get the pie property: PIE (position independent executable) flag.
+ *
+ * @return the pie value.
+ */
+ public Boolean pie() {
+ return this.innerProperties() == null ? null : this.innerProperties().pie();
+ }
+
+ /**
+ * Set the pie property: PIE (position independent executable) flag.
+ *
+ * @param pie the pie value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withPie(Boolean pie) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withPie(pie);
+ return this;
+ }
+
+ /**
+ * Get the relro property: RELRO (relocation read-only) flag.
+ *
+ * @return the relro value.
+ */
+ public Boolean relro() {
+ return this.innerProperties() == null ? null : this.innerProperties().relro();
+ }
+
+ /**
+ * Set the relro property: RELRO (relocation read-only) flag.
+ *
+ * @param relro the relro value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withRelro(Boolean relro) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withRelro(relro);
+ return this;
+ }
+
+ /**
+ * Get the canary property: Canary (stack canaries) flag.
+ *
+ * @return the canary value.
+ */
+ public Boolean canary() {
+ return this.innerProperties() == null ? null : this.innerProperties().canary();
+ }
+
+ /**
+ * Set the canary property: Canary (stack canaries) flag.
+ *
+ * @param canary the canary value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withCanary(Boolean canary) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withCanary(canary);
+ return this;
+ }
+
+ /**
+ * Get the stripped property: Stripped flag.
+ *
+ * @return the stripped value.
+ */
+ public Boolean stripped() {
+ return this.innerProperties() == null ? null : this.innerProperties().stripped();
+ }
+
+ /**
+ * Set the stripped property: Stripped flag.
+ *
+ * @param stripped the stripped value to set.
+ * @return the BinaryHardeningResourceInner object itself.
+ */
+ public BinaryHardeningResourceInner withStripped(Boolean stripped) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BinaryHardeningResult();
+ }
+ this.innerProperties().withStripped(stripped);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResult.java
similarity index 65%
rename from sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningInner.java
rename to sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResult.java
index cd64564164d0..dc31bef3f097 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningInner.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/BinaryHardeningResult.java
@@ -5,16 +5,13 @@
package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.iotfirmwaredefense.models.CanaryFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.NxFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.PieFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.RelroFlag;
-import com.azure.resourcemanager.iotfirmwaredefense.models.StrippedFlag;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Binary hardening of a firmware. */
+/**
+ * Binary hardening of a firmware.
+ */
@Fluent
-public final class BinaryHardeningInner {
+public final class BinaryHardeningResult {
/*
* ID for the binary hardening result.
*/
@@ -34,13 +31,13 @@ public final class BinaryHardeningInner {
private String architecture;
/*
- * path for binary hardening.
+ * The executable path.
*/
- @JsonProperty(value = "path")
- private String path;
+ @JsonProperty(value = "filePath")
+ private String filePath;
/*
- * class for binary hardening.
+ * The executable class to indicate 32 or 64 bit.
*/
@JsonProperty(value = "class")
private String classProperty;
@@ -57,13 +54,15 @@ public final class BinaryHardeningInner {
@JsonProperty(value = "rpath")
private String rpath;
- /** Creates an instance of BinaryHardeningInner class. */
- public BinaryHardeningInner() {
+ /**
+ * Creates an instance of BinaryHardeningResult class.
+ */
+ public BinaryHardeningResult() {
}
/**
* Get the binaryHardeningId property: ID for the binary hardening result.
- *
+ *
* @return the binaryHardeningId value.
*/
public String binaryHardeningId() {
@@ -72,18 +71,18 @@ public String binaryHardeningId() {
/**
* Set the binaryHardeningId property: ID for the binary hardening result.
- *
+ *
* @param binaryHardeningId the binaryHardeningId value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withBinaryHardeningId(String binaryHardeningId) {
+ public BinaryHardeningResult withBinaryHardeningId(String binaryHardeningId) {
this.binaryHardeningId = binaryHardeningId;
return this;
}
/**
* Get the innerFeatures property: Binary hardening features.
- *
+ *
* @return the innerFeatures value.
*/
private BinaryHardeningFeatures innerFeatures() {
@@ -92,7 +91,7 @@ private BinaryHardeningFeatures innerFeatures() {
/**
* Get the architecture property: The architecture of the uploaded firmware.
- *
+ *
* @return the architecture value.
*/
public String architecture() {
@@ -101,38 +100,38 @@ public String architecture() {
/**
* Set the architecture property: The architecture of the uploaded firmware.
- *
+ *
* @param architecture the architecture value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withArchitecture(String architecture) {
+ public BinaryHardeningResult withArchitecture(String architecture) {
this.architecture = architecture;
return this;
}
/**
- * Get the path property: path for binary hardening.
- *
- * @return the path value.
+ * Get the filePath property: The executable path.
+ *
+ * @return the filePath value.
*/
- public String path() {
- return this.path;
+ public String filePath() {
+ return this.filePath;
}
/**
- * Set the path property: path for binary hardening.
- *
- * @param path the path value to set.
- * @return the BinaryHardeningInner object itself.
+ * Set the filePath property: The executable path.
+ *
+ * @param filePath the filePath value to set.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withPath(String path) {
- this.path = path;
+ public BinaryHardeningResult withFilePath(String filePath) {
+ this.filePath = filePath;
return this;
}
/**
- * Get the classProperty property: class for binary hardening.
- *
+ * Get the classProperty property: The executable class to indicate 32 or 64 bit.
+ *
* @return the classProperty value.
*/
public String classProperty() {
@@ -140,19 +139,19 @@ public String classProperty() {
}
/**
- * Set the classProperty property: class for binary hardening.
- *
+ * Set the classProperty property: The executable class to indicate 32 or 64 bit.
+ *
* @param classProperty the classProperty value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withClassProperty(String classProperty) {
+ public BinaryHardeningResult withClassProperty(String classProperty) {
this.classProperty = classProperty;
return this;
}
/**
* Get the runpath property: The runpath of the uploaded firmware.
- *
+ *
* @return the runpath value.
*/
public String runpath() {
@@ -161,18 +160,18 @@ public String runpath() {
/**
* Set the runpath property: The runpath of the uploaded firmware.
- *
+ *
* @param runpath the runpath value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withRunpath(String runpath) {
+ public BinaryHardeningResult withRunpath(String runpath) {
this.runpath = runpath;
return this;
}
/**
* Get the rpath property: The rpath of the uploaded firmware.
- *
+ *
* @return the rpath value.
*/
public String rpath() {
@@ -181,31 +180,31 @@ public String rpath() {
/**
* Set the rpath property: The rpath of the uploaded firmware.
- *
+ *
* @param rpath the rpath value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withRpath(String rpath) {
+ public BinaryHardeningResult withRpath(String rpath) {
this.rpath = rpath;
return this;
}
/**
- * Get the nx property: NX flag.
- *
+ * Get the nx property: NX (no-execute) flag.
+ *
* @return the nx value.
*/
- public NxFlag nx() {
+ public Boolean nx() {
return this.innerFeatures() == null ? null : this.innerFeatures().nx();
}
/**
- * Set the nx property: NX flag.
- *
+ * Set the nx property: NX (no-execute) flag.
+ *
* @param nx the nx value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withNx(NxFlag nx) {
+ public BinaryHardeningResult withNx(Boolean nx) {
if (this.innerFeatures() == null) {
this.innerFeatures = new BinaryHardeningFeatures();
}
@@ -214,21 +213,21 @@ public BinaryHardeningInner withNx(NxFlag nx) {
}
/**
- * Get the pie property: PIE flag.
- *
+ * Get the pie property: PIE (position independent executable) flag.
+ *
* @return the pie value.
*/
- public PieFlag pie() {
+ public Boolean pie() {
return this.innerFeatures() == null ? null : this.innerFeatures().pie();
}
/**
- * Set the pie property: PIE flag.
- *
+ * Set the pie property: PIE (position independent executable) flag.
+ *
* @param pie the pie value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withPie(PieFlag pie) {
+ public BinaryHardeningResult withPie(Boolean pie) {
if (this.innerFeatures() == null) {
this.innerFeatures = new BinaryHardeningFeatures();
}
@@ -237,21 +236,21 @@ public BinaryHardeningInner withPie(PieFlag pie) {
}
/**
- * Get the relro property: RELRO flag.
- *
+ * Get the relro property: RELRO (relocation read-only) flag.
+ *
* @return the relro value.
*/
- public RelroFlag relro() {
+ public Boolean relro() {
return this.innerFeatures() == null ? null : this.innerFeatures().relro();
}
/**
- * Set the relro property: RELRO flag.
- *
+ * Set the relro property: RELRO (relocation read-only) flag.
+ *
* @param relro the relro value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withRelro(RelroFlag relro) {
+ public BinaryHardeningResult withRelro(Boolean relro) {
if (this.innerFeatures() == null) {
this.innerFeatures = new BinaryHardeningFeatures();
}
@@ -260,21 +259,21 @@ public BinaryHardeningInner withRelro(RelroFlag relro) {
}
/**
- * Get the canary property: Canary flag.
- *
+ * Get the canary property: Canary (stack canaries) flag.
+ *
* @return the canary value.
*/
- public CanaryFlag canary() {
+ public Boolean canary() {
return this.innerFeatures() == null ? null : this.innerFeatures().canary();
}
/**
- * Set the canary property: Canary flag.
- *
+ * Set the canary property: Canary (stack canaries) flag.
+ *
* @param canary the canary value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withCanary(CanaryFlag canary) {
+ public BinaryHardeningResult withCanary(Boolean canary) {
if (this.innerFeatures() == null) {
this.innerFeatures = new BinaryHardeningFeatures();
}
@@ -284,20 +283,20 @@ public BinaryHardeningInner withCanary(CanaryFlag canary) {
/**
* Get the stripped property: Stripped flag.
- *
+ *
* @return the stripped value.
*/
- public StrippedFlag stripped() {
+ public Boolean stripped() {
return this.innerFeatures() == null ? null : this.innerFeatures().stripped();
}
/**
* Set the stripped property: Stripped flag.
- *
+ *
* @param stripped the stripped value to set.
- * @return the BinaryHardeningInner object itself.
+ * @return the BinaryHardeningResult object itself.
*/
- public BinaryHardeningInner withStripped(StrippedFlag stripped) {
+ public BinaryHardeningResult withStripped(Boolean stripped) {
if (this.innerFeatures() == null) {
this.innerFeatures = new BinaryHardeningFeatures();
}
@@ -307,7 +306,7 @@ public BinaryHardeningInner withStripped(StrippedFlag stripped) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/ComponentInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/ComponentInner.java
deleted file mode 100644
index a489bcdc2363..000000000000
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/ComponentInner.java
+++ /dev/null
@@ -1,209 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsUpdateAvailable;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
-import java.util.List;
-
-/** Component of a firmware. */
-@Fluent
-public final class ComponentInner {
- /*
- * ID for the component.
- */
- @JsonProperty(value = "componentId")
- private String componentId;
-
- /*
- * Name for the component.
- */
- @JsonProperty(value = "componentName")
- private String componentName;
-
- /*
- * Version for the component.
- */
- @JsonProperty(value = "version")
- private String version;
-
- /*
- * License for the component.
- */
- @JsonProperty(value = "license")
- private String license;
-
- /*
- * Release date for the component.
- */
- @JsonProperty(value = "releaseDate")
- private OffsetDateTime releaseDate;
-
- /*
- * Paths of the component.
- */
- @JsonProperty(value = "paths")
- private List paths;
-
- /*
- * Flag if new update is available for the component.
- */
- @JsonProperty(value = "isUpdateAvailable")
- private IsUpdateAvailable isUpdateAvailable;
-
- /** Creates an instance of ComponentInner class. */
- public ComponentInner() {
- }
-
- /**
- * Get the componentId property: ID for the component.
- *
- * @return the componentId value.
- */
- public String componentId() {
- return this.componentId;
- }
-
- /**
- * Set the componentId property: ID for the component.
- *
- * @param componentId the componentId value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withComponentId(String componentId) {
- this.componentId = componentId;
- return this;
- }
-
- /**
- * Get the componentName property: Name for the component.
- *
- * @return the componentName value.
- */
- public String componentName() {
- return this.componentName;
- }
-
- /**
- * Set the componentName property: Name for the component.
- *
- * @param componentName the componentName value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withComponentName(String componentName) {
- this.componentName = componentName;
- return this;
- }
-
- /**
- * Get the version property: Version for the component.
- *
- * @return the version value.
- */
- public String version() {
- return this.version;
- }
-
- /**
- * Set the version property: Version for the component.
- *
- * @param version the version value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withVersion(String version) {
- this.version = version;
- return this;
- }
-
- /**
- * Get the license property: License for the component.
- *
- * @return the license value.
- */
- public String license() {
- return this.license;
- }
-
- /**
- * Set the license property: License for the component.
- *
- * @param license the license value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withLicense(String license) {
- this.license = license;
- return this;
- }
-
- /**
- * Get the releaseDate property: Release date for the component.
- *
- * @return the releaseDate value.
- */
- public OffsetDateTime releaseDate() {
- return this.releaseDate;
- }
-
- /**
- * Set the releaseDate property: Release date for the component.
- *
- * @param releaseDate the releaseDate value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withReleaseDate(OffsetDateTime releaseDate) {
- this.releaseDate = releaseDate;
- return this;
- }
-
- /**
- * Get the paths property: Paths of the component.
- *
- * @return the paths value.
- */
- public List paths() {
- return this.paths;
- }
-
- /**
- * Set the paths property: Paths of the component.
- *
- * @param paths the paths value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withPaths(List paths) {
- this.paths = paths;
- return this;
- }
-
- /**
- * Get the isUpdateAvailable property: Flag if new update is available for the component.
- *
- * @return the isUpdateAvailable value.
- */
- public IsUpdateAvailable isUpdateAvailable() {
- return this.isUpdateAvailable;
- }
-
- /**
- * Set the isUpdateAvailable property: Flag if new update is available for the component.
- *
- * @param isUpdateAvailable the isUpdateAvailable value to set.
- * @return the ComponentInner object itself.
- */
- public ComponentInner withIsUpdateAvailable(IsUpdateAvailable isUpdateAvailable) {
- this.isUpdateAvailable = isUpdateAvailable;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificate.java
similarity index 73%
rename from sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateInner.java
rename to sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificate.java
index 9d8783501c8f..996ccc9a5663 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateInner.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificate.java
@@ -6,20 +6,18 @@
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.iotfirmwaredefense.models.CryptoCertificateEntity;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsExpired;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsSelfSigned;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsShortKeySize;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsWeakSignature;
import com.azure.resourcemanager.iotfirmwaredefense.models.PairedKey;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
-/** Crypto certificate properties. */
+/**
+ * Crypto certificate properties.
+ */
@Fluent
-public final class CryptoCertificateInner {
+public final class CryptoCertificate {
/*
- * ID for the certificate.
+ * ID for the certificate result.
*/
@JsonProperty(value = "cryptoCertId")
private String cryptoCertId;
@@ -103,7 +101,7 @@ public final class CryptoCertificateInner {
private List usage;
/*
- * List of files paths for this certificate
+ * List of files where this certificate was found.
*/
@JsonProperty(value = "filePaths", access = JsonProperty.Access.WRITE_ONLY)
private List filePaths;
@@ -118,33 +116,35 @@ public final class CryptoCertificateInner {
* Indicates if the certificate is expired.
*/
@JsonProperty(value = "isExpired")
- private IsExpired isExpired;
+ private Boolean isExpired;
/*
- * Indicates if the certificate was self-signed.
+ * Indicates if the certificate is self-signed.
*/
@JsonProperty(value = "isSelfSigned")
- private IsSelfSigned isSelfSigned;
+ private Boolean isSelfSigned;
/*
* Indicates the signature algorithm used is insecure.
*/
@JsonProperty(value = "isWeakSignature")
- private IsWeakSignature isWeakSignature;
+ private Boolean isWeakSignature;
/*
* Indicates the certificate's key size is considered too small to be secure for the key algorithm.
*/
@JsonProperty(value = "isShortKeySize")
- private IsShortKeySize isShortKeySize;
+ private Boolean isShortKeySize;
- /** Creates an instance of CryptoCertificateInner class. */
- public CryptoCertificateInner() {
+ /**
+ * Creates an instance of CryptoCertificate class.
+ */
+ public CryptoCertificate() {
}
/**
- * Get the cryptoCertId property: ID for the certificate.
- *
+ * Get the cryptoCertId property: ID for the certificate result.
+ *
* @return the cryptoCertId value.
*/
public String cryptoCertId() {
@@ -152,19 +152,19 @@ public String cryptoCertId() {
}
/**
- * Set the cryptoCertId property: ID for the certificate.
- *
+ * Set the cryptoCertId property: ID for the certificate result.
+ *
* @param cryptoCertId the cryptoCertId value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withCryptoCertId(String cryptoCertId) {
+ public CryptoCertificate withCryptoCertId(String cryptoCertId) {
this.cryptoCertId = cryptoCertId;
return this;
}
/**
* Get the name property: Name of the certificate.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -173,18 +173,18 @@ public String name() {
/**
* Set the name property: Name of the certificate.
- *
+ *
* @param name the name value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withName(String name) {
+ public CryptoCertificate withName(String name) {
this.name = name;
return this;
}
/**
* Get the subject property: Subject information of the certificate.
- *
+ *
* @return the subject value.
*/
public CryptoCertificateEntity subject() {
@@ -193,18 +193,18 @@ public CryptoCertificateEntity subject() {
/**
* Set the subject property: Subject information of the certificate.
- *
+ *
* @param subject the subject value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withSubject(CryptoCertificateEntity subject) {
+ public CryptoCertificate withSubject(CryptoCertificateEntity subject) {
this.subject = subject;
return this;
}
/**
* Get the issuer property: Issuer information of the certificate.
- *
+ *
* @return the issuer value.
*/
public CryptoCertificateEntity issuer() {
@@ -213,18 +213,18 @@ public CryptoCertificateEntity issuer() {
/**
* Set the issuer property: Issuer information of the certificate.
- *
+ *
* @param issuer the issuer value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIssuer(CryptoCertificateEntity issuer) {
+ public CryptoCertificate withIssuer(CryptoCertificateEntity issuer) {
this.issuer = issuer;
return this;
}
/**
* Get the issuedDate property: Issue date for the certificate.
- *
+ *
* @return the issuedDate value.
*/
public OffsetDateTime issuedDate() {
@@ -233,18 +233,18 @@ public OffsetDateTime issuedDate() {
/**
* Set the issuedDate property: Issue date for the certificate.
- *
+ *
* @param issuedDate the issuedDate value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIssuedDate(OffsetDateTime issuedDate) {
+ public CryptoCertificate withIssuedDate(OffsetDateTime issuedDate) {
this.issuedDate = issuedDate;
return this;
}
/**
* Get the expirationDate property: Expiration date for the certificate.
- *
+ *
* @return the expirationDate value.
*/
public OffsetDateTime expirationDate() {
@@ -253,18 +253,18 @@ public OffsetDateTime expirationDate() {
/**
* Set the expirationDate property: Expiration date for the certificate.
- *
+ *
* @param expirationDate the expirationDate value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withExpirationDate(OffsetDateTime expirationDate) {
+ public CryptoCertificate withExpirationDate(OffsetDateTime expirationDate) {
this.expirationDate = expirationDate;
return this;
}
/**
* Get the role property: Role of the certificate (Root CA, etc).
- *
+ *
* @return the role value.
*/
public String role() {
@@ -273,18 +273,18 @@ public String role() {
/**
* Set the role property: Role of the certificate (Root CA, etc).
- *
+ *
* @param role the role value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withRole(String role) {
+ public CryptoCertificate withRole(String role) {
this.role = role;
return this;
}
/**
* Get the signatureAlgorithm property: The signature algorithm used in the certificate.
- *
+ *
* @return the signatureAlgorithm value.
*/
public String signatureAlgorithm() {
@@ -293,18 +293,18 @@ public String signatureAlgorithm() {
/**
* Set the signatureAlgorithm property: The signature algorithm used in the certificate.
- *
+ *
* @param signatureAlgorithm the signatureAlgorithm value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withSignatureAlgorithm(String signatureAlgorithm) {
+ public CryptoCertificate withSignatureAlgorithm(String signatureAlgorithm) {
this.signatureAlgorithm = signatureAlgorithm;
return this;
}
/**
* Get the keySize property: Size of the certificate's key in bits.
- *
+ *
* @return the keySize value.
*/
public Long keySize() {
@@ -313,18 +313,18 @@ public Long keySize() {
/**
* Set the keySize property: Size of the certificate's key in bits.
- *
+ *
* @param keySize the keySize value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withKeySize(Long keySize) {
+ public CryptoCertificate withKeySize(Long keySize) {
this.keySize = keySize;
return this;
}
/**
* Get the keyAlgorithm property: Key algorithm used in the certificate.
- *
+ *
* @return the keyAlgorithm value.
*/
public String keyAlgorithm() {
@@ -333,18 +333,18 @@ public String keyAlgorithm() {
/**
* Set the keyAlgorithm property: Key algorithm used in the certificate.
- *
+ *
* @param keyAlgorithm the keyAlgorithm value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withKeyAlgorithm(String keyAlgorithm) {
+ public CryptoCertificate withKeyAlgorithm(String keyAlgorithm) {
this.keyAlgorithm = keyAlgorithm;
return this;
}
/**
* Get the encoding property: Encoding used for the certificate.
- *
+ *
* @return the encoding value.
*/
public String encoding() {
@@ -353,18 +353,18 @@ public String encoding() {
/**
* Set the encoding property: Encoding used for the certificate.
- *
+ *
* @param encoding the encoding value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withEncoding(String encoding) {
+ public CryptoCertificate withEncoding(String encoding) {
this.encoding = encoding;
return this;
}
/**
* Get the serialNumber property: Serial number of the certificate.
- *
+ *
* @return the serialNumber value.
*/
public String serialNumber() {
@@ -373,18 +373,18 @@ public String serialNumber() {
/**
* Set the serialNumber property: Serial number of the certificate.
- *
+ *
* @param serialNumber the serialNumber value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withSerialNumber(String serialNumber) {
+ public CryptoCertificate withSerialNumber(String serialNumber) {
this.serialNumber = serialNumber;
return this;
}
/**
* Get the fingerprint property: Fingerprint of the certificate.
- *
+ *
* @return the fingerprint value.
*/
public String fingerprint() {
@@ -393,18 +393,18 @@ public String fingerprint() {
/**
* Set the fingerprint property: Fingerprint of the certificate.
- *
+ *
* @param fingerprint the fingerprint value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withFingerprint(String fingerprint) {
+ public CryptoCertificate withFingerprint(String fingerprint) {
this.fingerprint = fingerprint;
return this;
}
/**
* Get the usage property: List of functions the certificate can fulfill.
- *
+ *
* @return the usage value.
*/
public List usage() {
@@ -413,18 +413,18 @@ public List usage() {
/**
* Set the usage property: List of functions the certificate can fulfill.
- *
+ *
* @param usage the usage value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withUsage(List usage) {
+ public CryptoCertificate withUsage(List usage) {
this.usage = usage;
return this;
}
/**
- * Get the filePaths property: List of files paths for this certificate.
- *
+ * Get the filePaths property: List of files where this certificate was found.
+ *
* @return the filePaths value.
*/
public List filePaths() {
@@ -433,7 +433,7 @@ public List filePaths() {
/**
* Get the pairedKey property: A matching paired private key.
- *
+ *
* @return the pairedKey value.
*/
public PairedKey pairedKey() {
@@ -442,71 +442,71 @@ public PairedKey pairedKey() {
/**
* Set the pairedKey property: A matching paired private key.
- *
+ *
* @param pairedKey the pairedKey value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withPairedKey(PairedKey pairedKey) {
+ public CryptoCertificate withPairedKey(PairedKey pairedKey) {
this.pairedKey = pairedKey;
return this;
}
/**
* Get the isExpired property: Indicates if the certificate is expired.
- *
+ *
* @return the isExpired value.
*/
- public IsExpired isExpired() {
+ public Boolean isExpired() {
return this.isExpired;
}
/**
* Set the isExpired property: Indicates if the certificate is expired.
- *
+ *
* @param isExpired the isExpired value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIsExpired(IsExpired isExpired) {
+ public CryptoCertificate withIsExpired(Boolean isExpired) {
this.isExpired = isExpired;
return this;
}
/**
- * Get the isSelfSigned property: Indicates if the certificate was self-signed.
- *
+ * Get the isSelfSigned property: Indicates if the certificate is self-signed.
+ *
* @return the isSelfSigned value.
*/
- public IsSelfSigned isSelfSigned() {
+ public Boolean isSelfSigned() {
return this.isSelfSigned;
}
/**
- * Set the isSelfSigned property: Indicates if the certificate was self-signed.
- *
+ * Set the isSelfSigned property: Indicates if the certificate is self-signed.
+ *
* @param isSelfSigned the isSelfSigned value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIsSelfSigned(IsSelfSigned isSelfSigned) {
+ public CryptoCertificate withIsSelfSigned(Boolean isSelfSigned) {
this.isSelfSigned = isSelfSigned;
return this;
}
/**
* Get the isWeakSignature property: Indicates the signature algorithm used is insecure.
- *
+ *
* @return the isWeakSignature value.
*/
- public IsWeakSignature isWeakSignature() {
+ public Boolean isWeakSignature() {
return this.isWeakSignature;
}
/**
* Set the isWeakSignature property: Indicates the signature algorithm used is insecure.
- *
+ *
* @param isWeakSignature the isWeakSignature value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIsWeakSignature(IsWeakSignature isWeakSignature) {
+ public CryptoCertificate withIsWeakSignature(Boolean isWeakSignature) {
this.isWeakSignature = isWeakSignature;
return this;
}
@@ -514,28 +514,28 @@ public CryptoCertificateInner withIsWeakSignature(IsWeakSignature isWeakSignatur
/**
* Get the isShortKeySize property: Indicates the certificate's key size is considered too small to be secure for
* the key algorithm.
- *
+ *
* @return the isShortKeySize value.
*/
- public IsShortKeySize isShortKeySize() {
+ public Boolean isShortKeySize() {
return this.isShortKeySize;
}
/**
* Set the isShortKeySize property: Indicates the certificate's key size is considered too small to be secure for
* the key algorithm.
- *
+ *
* @param isShortKeySize the isShortKeySize value to set.
- * @return the CryptoCertificateInner object itself.
+ * @return the CryptoCertificate object itself.
*/
- public CryptoCertificateInner withIsShortKeySize(IsShortKeySize isShortKeySize) {
+ public CryptoCertificate withIsShortKeySize(Boolean isShortKeySize) {
this.isShortKeySize = isShortKeySize;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateResourceInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateResourceInner.java
new file mode 100644
index 000000000000..2b1d5af950e3
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoCertificateResourceInner.java
@@ -0,0 +1,515 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CryptoCertificateEntity;
+import com.azure.resourcemanager.iotfirmwaredefense.models.PairedKey;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/**
+ * Crypto certificate resource.
+ */
+@Fluent
+public final class CryptoCertificateResourceInner extends ProxyResource {
+ /*
+ * The properties of a crypto certificate found within a firmware image
+ */
+ @JsonProperty(value = "properties")
+ private CryptoCertificate innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of CryptoCertificateResourceInner class.
+ */
+ public CryptoCertificateResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a crypto certificate found within a firmware image.
+ *
+ * @return the innerProperties value.
+ */
+ private CryptoCertificate innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the cryptoCertId property: ID for the certificate result.
+ *
+ * @return the cryptoCertId value.
+ */
+ public String cryptoCertId() {
+ return this.innerProperties() == null ? null : this.innerProperties().cryptoCertId();
+ }
+
+ /**
+ * Set the cryptoCertId property: ID for the certificate result.
+ *
+ * @param cryptoCertId the cryptoCertId value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withCryptoCertId(String cryptoCertId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withCryptoCertId(cryptoCertId);
+ return this;
+ }
+
+ /**
+ * Get the name property: Name of the certificate.
+ *
+ * @return the name value.
+ */
+ public String namePropertiesName() {
+ return this.innerProperties() == null ? null : this.innerProperties().name();
+ }
+
+ /**
+ * Set the name property: Name of the certificate.
+ *
+ * @param name the name value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withNamePropertiesName(String name) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withName(name);
+ return this;
+ }
+
+ /**
+ * Get the subject property: Subject information of the certificate.
+ *
+ * @return the subject value.
+ */
+ public CryptoCertificateEntity subject() {
+ return this.innerProperties() == null ? null : this.innerProperties().subject();
+ }
+
+ /**
+ * Set the subject property: Subject information of the certificate.
+ *
+ * @param subject the subject value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withSubject(CryptoCertificateEntity subject) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withSubject(subject);
+ return this;
+ }
+
+ /**
+ * Get the issuer property: Issuer information of the certificate.
+ *
+ * @return the issuer value.
+ */
+ public CryptoCertificateEntity issuer() {
+ return this.innerProperties() == null ? null : this.innerProperties().issuer();
+ }
+
+ /**
+ * Set the issuer property: Issuer information of the certificate.
+ *
+ * @param issuer the issuer value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIssuer(CryptoCertificateEntity issuer) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIssuer(issuer);
+ return this;
+ }
+
+ /**
+ * Get the issuedDate property: Issue date for the certificate.
+ *
+ * @return the issuedDate value.
+ */
+ public OffsetDateTime issuedDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().issuedDate();
+ }
+
+ /**
+ * Set the issuedDate property: Issue date for the certificate.
+ *
+ * @param issuedDate the issuedDate value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIssuedDate(OffsetDateTime issuedDate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIssuedDate(issuedDate);
+ return this;
+ }
+
+ /**
+ * Get the expirationDate property: Expiration date for the certificate.
+ *
+ * @return the expirationDate value.
+ */
+ public OffsetDateTime expirationDate() {
+ return this.innerProperties() == null ? null : this.innerProperties().expirationDate();
+ }
+
+ /**
+ * Set the expirationDate property: Expiration date for the certificate.
+ *
+ * @param expirationDate the expirationDate value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withExpirationDate(OffsetDateTime expirationDate) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withExpirationDate(expirationDate);
+ return this;
+ }
+
+ /**
+ * Get the role property: Role of the certificate (Root CA, etc).
+ *
+ * @return the role value.
+ */
+ public String role() {
+ return this.innerProperties() == null ? null : this.innerProperties().role();
+ }
+
+ /**
+ * Set the role property: Role of the certificate (Root CA, etc).
+ *
+ * @param role the role value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withRole(String role) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withRole(role);
+ return this;
+ }
+
+ /**
+ * Get the signatureAlgorithm property: The signature algorithm used in the certificate.
+ *
+ * @return the signatureAlgorithm value.
+ */
+ public String signatureAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().signatureAlgorithm();
+ }
+
+ /**
+ * Set the signatureAlgorithm property: The signature algorithm used in the certificate.
+ *
+ * @param signatureAlgorithm the signatureAlgorithm value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withSignatureAlgorithm(String signatureAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withSignatureAlgorithm(signatureAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the keySize property: Size of the certificate's key in bits.
+ *
+ * @return the keySize value.
+ */
+ public Long keySize() {
+ return this.innerProperties() == null ? null : this.innerProperties().keySize();
+ }
+
+ /**
+ * Set the keySize property: Size of the certificate's key in bits.
+ *
+ * @param keySize the keySize value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withKeySize(Long keySize) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withKeySize(keySize);
+ return this;
+ }
+
+ /**
+ * Get the keyAlgorithm property: Key algorithm used in the certificate.
+ *
+ * @return the keyAlgorithm value.
+ */
+ public String keyAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyAlgorithm();
+ }
+
+ /**
+ * Set the keyAlgorithm property: Key algorithm used in the certificate.
+ *
+ * @param keyAlgorithm the keyAlgorithm value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withKeyAlgorithm(String keyAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withKeyAlgorithm(keyAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the encoding property: Encoding used for the certificate.
+ *
+ * @return the encoding value.
+ */
+ public String encoding() {
+ return this.innerProperties() == null ? null : this.innerProperties().encoding();
+ }
+
+ /**
+ * Set the encoding property: Encoding used for the certificate.
+ *
+ * @param encoding the encoding value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withEncoding(String encoding) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withEncoding(encoding);
+ return this;
+ }
+
+ /**
+ * Get the serialNumber property: Serial number of the certificate.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.innerProperties() == null ? null : this.innerProperties().serialNumber();
+ }
+
+ /**
+ * Set the serialNumber property: Serial number of the certificate.
+ *
+ * @param serialNumber the serialNumber value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withSerialNumber(String serialNumber) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withSerialNumber(serialNumber);
+ return this;
+ }
+
+ /**
+ * Get the fingerprint property: Fingerprint of the certificate.
+ *
+ * @return the fingerprint value.
+ */
+ public String fingerprint() {
+ return this.innerProperties() == null ? null : this.innerProperties().fingerprint();
+ }
+
+ /**
+ * Set the fingerprint property: Fingerprint of the certificate.
+ *
+ * @param fingerprint the fingerprint value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withFingerprint(String fingerprint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withFingerprint(fingerprint);
+ return this;
+ }
+
+ /**
+ * Get the usage property: List of functions the certificate can fulfill.
+ *
+ * @return the usage value.
+ */
+ public List usage() {
+ return this.innerProperties() == null ? null : this.innerProperties().usage();
+ }
+
+ /**
+ * Set the usage property: List of functions the certificate can fulfill.
+ *
+ * @param usage the usage value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withUsage(List usage) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withUsage(usage);
+ return this;
+ }
+
+ /**
+ * Get the filePaths property: List of files where this certificate was found.
+ *
+ * @return the filePaths value.
+ */
+ public List filePaths() {
+ return this.innerProperties() == null ? null : this.innerProperties().filePaths();
+ }
+
+ /**
+ * Get the pairedKey property: A matching paired private key.
+ *
+ * @return the pairedKey value.
+ */
+ public PairedKey pairedKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().pairedKey();
+ }
+
+ /**
+ * Set the pairedKey property: A matching paired private key.
+ *
+ * @param pairedKey the pairedKey value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withPairedKey(PairedKey pairedKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withPairedKey(pairedKey);
+ return this;
+ }
+
+ /**
+ * Get the isExpired property: Indicates if the certificate is expired.
+ *
+ * @return the isExpired value.
+ */
+ public Boolean isExpired() {
+ return this.innerProperties() == null ? null : this.innerProperties().isExpired();
+ }
+
+ /**
+ * Set the isExpired property: Indicates if the certificate is expired.
+ *
+ * @param isExpired the isExpired value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIsExpired(Boolean isExpired) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIsExpired(isExpired);
+ return this;
+ }
+
+ /**
+ * Get the isSelfSigned property: Indicates if the certificate is self-signed.
+ *
+ * @return the isSelfSigned value.
+ */
+ public Boolean isSelfSigned() {
+ return this.innerProperties() == null ? null : this.innerProperties().isSelfSigned();
+ }
+
+ /**
+ * Set the isSelfSigned property: Indicates if the certificate is self-signed.
+ *
+ * @param isSelfSigned the isSelfSigned value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIsSelfSigned(Boolean isSelfSigned) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIsSelfSigned(isSelfSigned);
+ return this;
+ }
+
+ /**
+ * Get the isWeakSignature property: Indicates the signature algorithm used is insecure.
+ *
+ * @return the isWeakSignature value.
+ */
+ public Boolean isWeakSignature() {
+ return this.innerProperties() == null ? null : this.innerProperties().isWeakSignature();
+ }
+
+ /**
+ * Set the isWeakSignature property: Indicates the signature algorithm used is insecure.
+ *
+ * @param isWeakSignature the isWeakSignature value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIsWeakSignature(Boolean isWeakSignature) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIsWeakSignature(isWeakSignature);
+ return this;
+ }
+
+ /**
+ * Get the isShortKeySize property: Indicates the certificate's key size is considered too small to be secure for
+ * the key algorithm.
+ *
+ * @return the isShortKeySize value.
+ */
+ public Boolean isShortKeySize() {
+ return this.innerProperties() == null ? null : this.innerProperties().isShortKeySize();
+ }
+
+ /**
+ * Set the isShortKeySize property: Indicates the certificate's key size is considered too small to be secure for
+ * the key algorithm.
+ *
+ * @param isShortKeySize the isShortKeySize value to set.
+ * @return the CryptoCertificateResourceInner object itself.
+ */
+ public CryptoCertificateResourceInner withIsShortKeySize(Boolean isShortKeySize) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoCertificate();
+ }
+ this.innerProperties().withIsShortKeySize(isShortKeySize);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKey.java
similarity index 75%
rename from sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyInner.java
rename to sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKey.java
index 63eebaee2a8b..c29fae1a42fd 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyInner.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKey.java
@@ -5,16 +5,17 @@
package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.resourcemanager.iotfirmwaredefense.models.IsShortKeySize;
import com.azure.resourcemanager.iotfirmwaredefense.models.PairedKey;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Crypto key properties. */
+/**
+ * Crypto key properties.
+ */
@Fluent
-public final class CryptoKeyInner {
+public final class CryptoKey {
/*
- * ID for the key.
+ * ID for the key result.
*/
@JsonProperty(value = "cryptoKeyId")
private String cryptoKeyId;
@@ -44,7 +45,7 @@ public final class CryptoKeyInner {
private List usage;
/*
- * List of files paths for this key.
+ * List of files where this key was found.
*/
@JsonProperty(value = "filePaths", access = JsonProperty.Access.WRITE_ONLY)
private List filePaths;
@@ -59,15 +60,17 @@ public final class CryptoKeyInner {
* Indicates the key size is considered too small to be secure for the algorithm.
*/
@JsonProperty(value = "isShortKeySize")
- private IsShortKeySize isShortKeySize;
+ private Boolean isShortKeySize;
- /** Creates an instance of CryptoKeyInner class. */
- public CryptoKeyInner() {
+ /**
+ * Creates an instance of CryptoKey class.
+ */
+ public CryptoKey() {
}
/**
- * Get the cryptoKeyId property: ID for the key.
- *
+ * Get the cryptoKeyId property: ID for the key result.
+ *
* @return the cryptoKeyId value.
*/
public String cryptoKeyId() {
@@ -75,19 +78,19 @@ public String cryptoKeyId() {
}
/**
- * Set the cryptoKeyId property: ID for the key.
- *
+ * Set the cryptoKeyId property: ID for the key result.
+ *
* @param cryptoKeyId the cryptoKeyId value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withCryptoKeyId(String cryptoKeyId) {
+ public CryptoKey withCryptoKeyId(String cryptoKeyId) {
this.cryptoKeyId = cryptoKeyId;
return this;
}
/**
* Get the keyType property: Type of the key (public or private).
- *
+ *
* @return the keyType value.
*/
public String keyType() {
@@ -96,18 +99,18 @@ public String keyType() {
/**
* Set the keyType property: Type of the key (public or private).
- *
+ *
* @param keyType the keyType value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withKeyType(String keyType) {
+ public CryptoKey withKeyType(String keyType) {
this.keyType = keyType;
return this;
}
/**
* Get the keySize property: Size of the key in bits.
- *
+ *
* @return the keySize value.
*/
public Long keySize() {
@@ -116,18 +119,18 @@ public Long keySize() {
/**
* Set the keySize property: Size of the key in bits.
- *
+ *
* @param keySize the keySize value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withKeySize(Long keySize) {
+ public CryptoKey withKeySize(Long keySize) {
this.keySize = keySize;
return this;
}
/**
* Get the keyAlgorithm property: Key algorithm name.
- *
+ *
* @return the keyAlgorithm value.
*/
public String keyAlgorithm() {
@@ -136,18 +139,18 @@ public String keyAlgorithm() {
/**
* Set the keyAlgorithm property: Key algorithm name.
- *
+ *
* @param keyAlgorithm the keyAlgorithm value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withKeyAlgorithm(String keyAlgorithm) {
+ public CryptoKey withKeyAlgorithm(String keyAlgorithm) {
this.keyAlgorithm = keyAlgorithm;
return this;
}
/**
* Get the usage property: Functions the key can fulfill.
- *
+ *
* @return the usage value.
*/
public List usage() {
@@ -156,18 +159,18 @@ public List usage() {
/**
* Set the usage property: Functions the key can fulfill.
- *
+ *
* @param usage the usage value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withUsage(List usage) {
+ public CryptoKey withUsage(List usage) {
this.usage = usage;
return this;
}
/**
- * Get the filePaths property: List of files paths for this key.
- *
+ * Get the filePaths property: List of files where this key was found.
+ *
* @return the filePaths value.
*/
public List filePaths() {
@@ -176,7 +179,7 @@ public List filePaths() {
/**
* Get the pairedKey property: A matching paired key or certificate.
- *
+ *
* @return the pairedKey value.
*/
public PairedKey pairedKey() {
@@ -185,38 +188,38 @@ public PairedKey pairedKey() {
/**
* Set the pairedKey property: A matching paired key or certificate.
- *
+ *
* @param pairedKey the pairedKey value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withPairedKey(PairedKey pairedKey) {
+ public CryptoKey withPairedKey(PairedKey pairedKey) {
this.pairedKey = pairedKey;
return this;
}
/**
* Get the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
- *
+ *
* @return the isShortKeySize value.
*/
- public IsShortKeySize isShortKeySize() {
+ public Boolean isShortKeySize() {
return this.isShortKeySize;
}
/**
* Set the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
- *
+ *
* @param isShortKeySize the isShortKeySize value to set.
- * @return the CryptoKeyInner object itself.
+ * @return the CryptoKey object itself.
*/
- public CryptoKeyInner withIsShortKeySize(IsShortKeySize isShortKeySize) {
+ public CryptoKey withIsShortKeySize(Boolean isShortKeySize) {
this.isShortKeySize = isShortKeySize;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyResourceInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyResourceInner.java
new file mode 100644
index 000000000000..723308e31045
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CryptoKeyResourceInner.java
@@ -0,0 +1,235 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.iotfirmwaredefense.models.PairedKey;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * Crypto key resource.
+ */
+@Fluent
+public final class CryptoKeyResourceInner extends ProxyResource {
+ /*
+ * The properties of a crypto key found within a firmware image
+ */
+ @JsonProperty(value = "properties")
+ private CryptoKey innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of CryptoKeyResourceInner class.
+ */
+ public CryptoKeyResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a crypto key found within a firmware image.
+ *
+ * @return the innerProperties value.
+ */
+ private CryptoKey innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the cryptoKeyId property: ID for the key result.
+ *
+ * @return the cryptoKeyId value.
+ */
+ public String cryptoKeyId() {
+ return this.innerProperties() == null ? null : this.innerProperties().cryptoKeyId();
+ }
+
+ /**
+ * Set the cryptoKeyId property: ID for the key result.
+ *
+ * @param cryptoKeyId the cryptoKeyId value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withCryptoKeyId(String cryptoKeyId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withCryptoKeyId(cryptoKeyId);
+ return this;
+ }
+
+ /**
+ * Get the keyType property: Type of the key (public or private).
+ *
+ * @return the keyType value.
+ */
+ public String keyType() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyType();
+ }
+
+ /**
+ * Set the keyType property: Type of the key (public or private).
+ *
+ * @param keyType the keyType value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withKeyType(String keyType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withKeyType(keyType);
+ return this;
+ }
+
+ /**
+ * Get the keySize property: Size of the key in bits.
+ *
+ * @return the keySize value.
+ */
+ public Long keySize() {
+ return this.innerProperties() == null ? null : this.innerProperties().keySize();
+ }
+
+ /**
+ * Set the keySize property: Size of the key in bits.
+ *
+ * @param keySize the keySize value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withKeySize(Long keySize) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withKeySize(keySize);
+ return this;
+ }
+
+ /**
+ * Get the keyAlgorithm property: Key algorithm name.
+ *
+ * @return the keyAlgorithm value.
+ */
+ public String keyAlgorithm() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyAlgorithm();
+ }
+
+ /**
+ * Set the keyAlgorithm property: Key algorithm name.
+ *
+ * @param keyAlgorithm the keyAlgorithm value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withKeyAlgorithm(String keyAlgorithm) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withKeyAlgorithm(keyAlgorithm);
+ return this;
+ }
+
+ /**
+ * Get the usage property: Functions the key can fulfill.
+ *
+ * @return the usage value.
+ */
+ public List usage() {
+ return this.innerProperties() == null ? null : this.innerProperties().usage();
+ }
+
+ /**
+ * Set the usage property: Functions the key can fulfill.
+ *
+ * @param usage the usage value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withUsage(List usage) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withUsage(usage);
+ return this;
+ }
+
+ /**
+ * Get the filePaths property: List of files where this key was found.
+ *
+ * @return the filePaths value.
+ */
+ public List filePaths() {
+ return this.innerProperties() == null ? null : this.innerProperties().filePaths();
+ }
+
+ /**
+ * Get the pairedKey property: A matching paired key or certificate.
+ *
+ * @return the pairedKey value.
+ */
+ public PairedKey pairedKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().pairedKey();
+ }
+
+ /**
+ * Set the pairedKey property: A matching paired key or certificate.
+ *
+ * @param pairedKey the pairedKey value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withPairedKey(PairedKey pairedKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withPairedKey(pairedKey);
+ return this;
+ }
+
+ /**
+ * Get the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
+ *
+ * @return the isShortKeySize value.
+ */
+ public Boolean isShortKeySize() {
+ return this.innerProperties() == null ? null : this.innerProperties().isShortKeySize();
+ }
+
+ /**
+ * Set the isShortKeySize property: Indicates the key size is considered too small to be secure for the algorithm.
+ *
+ * @param isShortKeySize the isShortKeySize value to set.
+ * @return the CryptoKeyResourceInner object itself.
+ */
+ public CryptoKeyResourceInner withIsShortKeySize(Boolean isShortKeySize) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CryptoKey();
+ }
+ this.innerProperties().withIsShortKeySize(isShortKeySize);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResourceInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResourceInner.java
new file mode 100644
index 000000000000..a062d632d7d7
--- /dev/null
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResourceInner.java
@@ -0,0 +1,284 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CveComponent;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CveLink;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/**
+ * CVE analysis result resource.
+ */
+@Fluent
+public final class CveResourceInner extends ProxyResource {
+ /*
+ * The properties of a CVE result found within a firmware image
+ */
+ @JsonProperty(value = "properties")
+ private CveResult innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Creates an instance of CveResourceInner class.
+ */
+ public CveResourceInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The properties of a CVE result found within a firmware image.
+ *
+ * @return the innerProperties value.
+ */
+ private CveResult innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the cveId property: ID of the CVE result.
+ *
+ * @return the cveId value.
+ */
+ public String cveId() {
+ return this.innerProperties() == null ? null : this.innerProperties().cveId();
+ }
+
+ /**
+ * Set the cveId property: ID of the CVE result.
+ *
+ * @param cveId the cveId value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withCveId(String cveId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withCveId(cveId);
+ return this;
+ }
+
+ /**
+ * Get the component property: The SBOM component for the CVE.
+ *
+ * @return the component value.
+ */
+ public CveComponent component() {
+ return this.innerProperties() == null ? null : this.innerProperties().component();
+ }
+
+ /**
+ * Set the component property: The SBOM component for the CVE.
+ *
+ * @param component the component value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withComponent(CveComponent component) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withComponent(component);
+ return this;
+ }
+
+ /**
+ * Get the severity property: Severity of the CVE.
+ *
+ * @return the severity value.
+ */
+ public String severity() {
+ return this.innerProperties() == null ? null : this.innerProperties().severity();
+ }
+
+ /**
+ * Set the severity property: Severity of the CVE.
+ *
+ * @param severity the severity value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withSeverity(String severity) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withSeverity(severity);
+ return this;
+ }
+
+ /**
+ * Get the name property: Name of the CVE.
+ *
+ * @return the name value.
+ */
+ public String namePropertiesName() {
+ return this.innerProperties() == null ? null : this.innerProperties().name();
+ }
+
+ /**
+ * Set the name property: Name of the CVE.
+ *
+ * @param name the name value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withNamePropertiesName(String name) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withName(name);
+ return this;
+ }
+
+ /**
+ * Get the cvssScore property: A single CVSS score to represent the CVE. If a V3 score is specified, then it will
+ * use the V3 score. Otherwise if the V2 score is specified it will be the V2 score.
+ *
+ * @return the cvssScore value.
+ */
+ public String cvssScore() {
+ return this.innerProperties() == null ? null : this.innerProperties().cvssScore();
+ }
+
+ /**
+ * Set the cvssScore property: A single CVSS score to represent the CVE. If a V3 score is specified, then it will
+ * use the V3 score. Otherwise if the V2 score is specified it will be the V2 score.
+ *
+ * @param cvssScore the cvssScore value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withCvssScore(String cvssScore) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withCvssScore(cvssScore);
+ return this;
+ }
+
+ /**
+ * Get the cvssVersion property: CVSS version of the CVE.
+ *
+ * @return the cvssVersion value.
+ */
+ public String cvssVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().cvssVersion();
+ }
+
+ /**
+ * Set the cvssVersion property: CVSS version of the CVE.
+ *
+ * @param cvssVersion the cvssVersion value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withCvssVersion(String cvssVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withCvssVersion(cvssVersion);
+ return this;
+ }
+
+ /**
+ * Get the cvssV2Score property: CVSS V2 score of the CVE.
+ *
+ * @return the cvssV2Score value.
+ */
+ public String cvssV2Score() {
+ return this.innerProperties() == null ? null : this.innerProperties().cvssV2Score();
+ }
+
+ /**
+ * Set the cvssV2Score property: CVSS V2 score of the CVE.
+ *
+ * @param cvssV2Score the cvssV2Score value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withCvssV2Score(String cvssV2Score) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withCvssV2Score(cvssV2Score);
+ return this;
+ }
+
+ /**
+ * Get the cvssV3Score property: CVSS V3 score of the CVE.
+ *
+ * @return the cvssV3Score value.
+ */
+ public String cvssV3Score() {
+ return this.innerProperties() == null ? null : this.innerProperties().cvssV3Score();
+ }
+
+ /**
+ * Set the cvssV3Score property: CVSS V3 score of the CVE.
+ *
+ * @param cvssV3Score the cvssV3Score value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withCvssV3Score(String cvssV3Score) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withCvssV3Score(cvssV3Score);
+ return this;
+ }
+
+ /**
+ * Get the links property: The list of reference links for the CVE.
+ *
+ * @return the links value.
+ */
+ public List links() {
+ return this.innerProperties() == null ? null : this.innerProperties().links();
+ }
+
+ /**
+ * Get the description property: The CVE description.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: The CVE description.
+ *
+ * @param description the description value to set.
+ * @return the CveResourceInner object itself.
+ */
+ public CveResourceInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CveResult();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResult.java
similarity index 54%
rename from sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveInner.java
rename to sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResult.java
index 37fe0eaf8be7..65e29e3421a0 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveInner.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveResult.java
@@ -5,94 +5,86 @@
package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.iotfirmwaredefense.models.CveComponent;
import com.azure.resourcemanager.iotfirmwaredefense.models.CveLink;
import com.fasterxml.jackson.annotation.JsonProperty;
-import java.time.OffsetDateTime;
import java.util.List;
-/** Known CVEs of a firmware. */
+/**
+ * Details of a CVE detected in firmware.
+ */
@Fluent
-public final class CveInner {
+public final class CveResult {
/*
- * ID of CVE
+ * ID of the CVE result.
*/
@JsonProperty(value = "cveId")
private String cveId;
/*
- * Component of CVE
+ * The SBOM component for the CVE.
*/
@JsonProperty(value = "component")
- private Object component;
+ private CveComponent component;
/*
- * Severity of CVE
+ * Severity of the CVE.
*/
@JsonProperty(value = "severity")
private String severity;
/*
- * Name of CVE
+ * Name of the CVE.
*/
@JsonProperty(value = "name")
private String name;
/*
* A single CVSS score to represent the CVE. If a V3 score is specified, then it will use the V3 score. Otherwise
- * if the V2 score is specified it will be the V2 score
+ * if the V2 score is specified it will be the V2 score.
*/
@JsonProperty(value = "cvssScore")
private String cvssScore;
/*
- * Cvss version of CVE
+ * CVSS version of the CVE.
*/
@JsonProperty(value = "cvssVersion")
private String cvssVersion;
/*
- * Cvss V2 score of CVE
+ * CVSS V2 score of the CVE.
*/
@JsonProperty(value = "cvssV2Score")
private String cvssV2Score;
/*
- * Cvss V3 score of CVE
+ * CVSS V3 score of the CVE.
*/
@JsonProperty(value = "cvssV3Score")
private String cvssV3Score;
/*
- * Publish date of CVE
- */
- @JsonProperty(value = "publishDate")
- private OffsetDateTime publishDate;
-
- /*
- * Updated date of CVE
- */
- @JsonProperty(value = "updatedDate")
- private OffsetDateTime updatedDate;
-
- /*
- * The list of CVE links.
+ * The list of reference links for the CVE.
*/
@JsonProperty(value = "links", access = JsonProperty.Access.WRITE_ONLY)
private List links;
/*
- * Description of CVE
+ * The CVE description.
*/
@JsonProperty(value = "description")
private String description;
- /** Creates an instance of CveInner class. */
- public CveInner() {
+ /**
+ * Creates an instance of CveResult class.
+ */
+ public CveResult() {
}
/**
- * Get the cveId property: ID of CVE.
- *
+ * Get the cveId property: ID of the CVE result.
+ *
* @return the cveId value.
*/
public String cveId() {
@@ -100,39 +92,39 @@ public String cveId() {
}
/**
- * Set the cveId property: ID of CVE.
- *
+ * Set the cveId property: ID of the CVE result.
+ *
* @param cveId the cveId value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withCveId(String cveId) {
+ public CveResult withCveId(String cveId) {
this.cveId = cveId;
return this;
}
/**
- * Get the component property: Component of CVE.
- *
+ * Get the component property: The SBOM component for the CVE.
+ *
* @return the component value.
*/
- public Object component() {
+ public CveComponent component() {
return this.component;
}
/**
- * Set the component property: Component of CVE.
- *
+ * Set the component property: The SBOM component for the CVE.
+ *
* @param component the component value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withComponent(Object component) {
+ public CveResult withComponent(CveComponent component) {
this.component = component;
return this;
}
/**
- * Get the severity property: Severity of CVE.
- *
+ * Get the severity property: Severity of the CVE.
+ *
* @return the severity value.
*/
public String severity() {
@@ -140,19 +132,19 @@ public String severity() {
}
/**
- * Set the severity property: Severity of CVE.
- *
+ * Set the severity property: Severity of the CVE.
+ *
* @param severity the severity value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withSeverity(String severity) {
+ public CveResult withSeverity(String severity) {
this.severity = severity;
return this;
}
/**
- * Get the name property: Name of CVE.
- *
+ * Get the name property: Name of the CVE.
+ *
* @return the name value.
*/
public String name() {
@@ -160,12 +152,12 @@ public String name() {
}
/**
- * Set the name property: Name of CVE.
- *
+ * Set the name property: Name of the CVE.
+ *
* @param name the name value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withName(String name) {
+ public CveResult withName(String name) {
this.name = name;
return this;
}
@@ -173,7 +165,7 @@ public CveInner withName(String name) {
/**
* Get the cvssScore property: A single CVSS score to represent the CVE. If a V3 score is specified, then it will
* use the V3 score. Otherwise if the V2 score is specified it will be the V2 score.
- *
+ *
* @return the cvssScore value.
*/
public String cvssScore() {
@@ -183,18 +175,18 @@ public String cvssScore() {
/**
* Set the cvssScore property: A single CVSS score to represent the CVE. If a V3 score is specified, then it will
* use the V3 score. Otherwise if the V2 score is specified it will be the V2 score.
- *
+ *
* @param cvssScore the cvssScore value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withCvssScore(String cvssScore) {
+ public CveResult withCvssScore(String cvssScore) {
this.cvssScore = cvssScore;
return this;
}
/**
- * Get the cvssVersion property: Cvss version of CVE.
- *
+ * Get the cvssVersion property: CVSS version of the CVE.
+ *
* @return the cvssVersion value.
*/
public String cvssVersion() {
@@ -202,19 +194,19 @@ public String cvssVersion() {
}
/**
- * Set the cvssVersion property: Cvss version of CVE.
- *
+ * Set the cvssVersion property: CVSS version of the CVE.
+ *
* @param cvssVersion the cvssVersion value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withCvssVersion(String cvssVersion) {
+ public CveResult withCvssVersion(String cvssVersion) {
this.cvssVersion = cvssVersion;
return this;
}
/**
- * Get the cvssV2Score property: Cvss V2 score of CVE.
- *
+ * Get the cvssV2Score property: CVSS V2 score of the CVE.
+ *
* @return the cvssV2Score value.
*/
public String cvssV2Score() {
@@ -222,19 +214,19 @@ public String cvssV2Score() {
}
/**
- * Set the cvssV2Score property: Cvss V2 score of CVE.
- *
+ * Set the cvssV2Score property: CVSS V2 score of the CVE.
+ *
* @param cvssV2Score the cvssV2Score value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withCvssV2Score(String cvssV2Score) {
+ public CveResult withCvssV2Score(String cvssV2Score) {
this.cvssV2Score = cvssV2Score;
return this;
}
/**
- * Get the cvssV3Score property: Cvss V3 score of CVE.
- *
+ * Get the cvssV3Score property: CVSS V3 score of the CVE.
+ *
* @return the cvssV3Score value.
*/
public String cvssV3Score() {
@@ -242,59 +234,19 @@ public String cvssV3Score() {
}
/**
- * Set the cvssV3Score property: Cvss V3 score of CVE.
- *
+ * Set the cvssV3Score property: CVSS V3 score of the CVE.
+ *
* @param cvssV3Score the cvssV3Score value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withCvssV3Score(String cvssV3Score) {
+ public CveResult withCvssV3Score(String cvssV3Score) {
this.cvssV3Score = cvssV3Score;
return this;
}
/**
- * Get the publishDate property: Publish date of CVE.
- *
- * @return the publishDate value.
- */
- public OffsetDateTime publishDate() {
- return this.publishDate;
- }
-
- /**
- * Set the publishDate property: Publish date of CVE.
- *
- * @param publishDate the publishDate value to set.
- * @return the CveInner object itself.
- */
- public CveInner withPublishDate(OffsetDateTime publishDate) {
- this.publishDate = publishDate;
- return this;
- }
-
- /**
- * Get the updatedDate property: Updated date of CVE.
- *
- * @return the updatedDate value.
- */
- public OffsetDateTime updatedDate() {
- return this.updatedDate;
- }
-
- /**
- * Set the updatedDate property: Updated date of CVE.
- *
- * @param updatedDate the updatedDate value to set.
- * @return the CveInner object itself.
- */
- public CveInner withUpdatedDate(OffsetDateTime updatedDate) {
- this.updatedDate = updatedDate;
- return this;
- }
-
- /**
- * Get the links property: The list of CVE links.
- *
+ * Get the links property: The list of reference links for the CVE.
+ *
* @return the links value.
*/
public List links() {
@@ -302,8 +254,8 @@ public List links() {
}
/**
- * Get the description property: Description of CVE.
- *
+ * Get the description property: The CVE description.
+ *
* @return the description value.
*/
public String description() {
@@ -311,22 +263,25 @@ public String description() {
}
/**
- * Set the description property: Description of CVE.
- *
+ * Set the description property: The CVE description.
+ *
* @param description the description value to set.
- * @return the CveInner object itself.
+ * @return the CveResult object itself.
*/
- public CveInner withDescription(String description) {
+ public CveResult withDescription(String description) {
this.description = description;
return this;
}
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (component() != null) {
+ component().validate();
+ }
if (links() != null) {
links().forEach(e -> e.validate());
}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveSummaryInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveSummaryInner.java
deleted file mode 100644
index 7b30c7deb57e..000000000000
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/CveSummaryInner.java
+++ /dev/null
@@ -1,180 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.iotfirmwaredefense.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** CVE summary values. */
-@Fluent
-public final class CveSummaryInner {
- /*
- * The total number of critical severity CVEs detected
- */
- @JsonProperty(value = "critical")
- private Long critical;
-
- /*
- * The total number of high severity CVEs detected
- */
- @JsonProperty(value = "high")
- private Long high;
-
- /*
- * The total number of medium severity CVEs detected
- */
- @JsonProperty(value = "medium")
- private Long medium;
-
- /*
- * The total number of low severity CVEs detected
- */
- @JsonProperty(value = "low")
- private Long low;
-
- /*
- * The total number of unknown severity CVEs detected
- */
- @JsonProperty(value = "unknown")
- private Long unknown;
-
- /*
- * The total number of undefined severity CVEs detected
- */
- @JsonProperty(value = "undefined")
- private Long undefined;
-
- /** Creates an instance of CveSummaryInner class. */
- public CveSummaryInner() {
- }
-
- /**
- * Get the critical property: The total number of critical severity CVEs detected.
- *
- * @return the critical value.
- */
- public Long critical() {
- return this.critical;
- }
-
- /**
- * Set the critical property: The total number of critical severity CVEs detected.
- *
- * @param critical the critical value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withCritical(Long critical) {
- this.critical = critical;
- return this;
- }
-
- /**
- * Get the high property: The total number of high severity CVEs detected.
- *
- * @return the high value.
- */
- public Long high() {
- return this.high;
- }
-
- /**
- * Set the high property: The total number of high severity CVEs detected.
- *
- * @param high the high value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withHigh(Long high) {
- this.high = high;
- return this;
- }
-
- /**
- * Get the medium property: The total number of medium severity CVEs detected.
- *
- * @return the medium value.
- */
- public Long medium() {
- return this.medium;
- }
-
- /**
- * Set the medium property: The total number of medium severity CVEs detected.
- *
- * @param medium the medium value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withMedium(Long medium) {
- this.medium = medium;
- return this;
- }
-
- /**
- * Get the low property: The total number of low severity CVEs detected.
- *
- * @return the low value.
- */
- public Long low() {
- return this.low;
- }
-
- /**
- * Set the low property: The total number of low severity CVEs detected.
- *
- * @param low the low value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withLow(Long low) {
- this.low = low;
- return this;
- }
-
- /**
- * Get the unknown property: The total number of unknown severity CVEs detected.
- *
- * @return the unknown value.
- */
- public Long unknown() {
- return this.unknown;
- }
-
- /**
- * Set the unknown property: The total number of unknown severity CVEs detected.
- *
- * @param unknown the unknown value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withUnknown(Long unknown) {
- this.unknown = unknown;
- return this;
- }
-
- /**
- * Get the undefined property: The total number of undefined severity CVEs detected.
- *
- * @return the undefined value.
- */
- public Long undefined() {
- return this.undefined;
- }
-
- /**
- * Set the undefined property: The total number of undefined severity CVEs detected.
- *
- * @param undefined the undefined value to set.
- * @return the CveSummaryInner object itself.
- */
- public CveSummaryInner withUndefined(Long undefined) {
- this.undefined = undefined;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-}
diff --git a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/FirmwareInner.java b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/FirmwareInner.java
index 7377f620d360..eea703ddf639 100644
--- a/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/FirmwareInner.java
+++ b/sdk/iotfirmwaredefense/azure-resourcemanager-iotfirmwaredefense/src/main/java/com/azure/resourcemanager/iotfirmwaredefense/fluent/models/FirmwareInner.java
@@ -9,10 +9,13 @@
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.iotfirmwaredefense.models.ProvisioningState;
import com.azure.resourcemanager.iotfirmwaredefense.models.Status;
+import com.azure.resourcemanager.iotfirmwaredefense.models.StatusMessage;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** Firmware definition. */
+/**
+ * Firmware definition.
+ */
@Fluent
public final class FirmwareInner extends ProxyResource {
/*
@@ -27,13 +30,15 @@ public final class FirmwareInner extends ProxyResource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of FirmwareInner class. */
+ /**
+ * Creates an instance of FirmwareInner class.
+ */
public FirmwareInner() {
}
/**
* Get the innerProperties property: The properties of a firmware.
- *
+ *
* @return the innerProperties value.
*/
private FirmwareProperties innerProperties() {
@@ -42,7 +47,7 @@ private FirmwareProperties innerProperties() {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
@@ -51,7 +56,7 @@ public SystemData systemData() {
/**
* Get the fileName property: File name for a firmware that user uploaded.
- *
+ *
* @return the fileName value.
*/
public String fileName() {
@@ -60,7 +65,7 @@ public String fileName() {
/**
* Set the fileName property: File name for a firmware that user uploaded.
- *
+ *
* @param fileName the fileName value to set.
* @return the FirmwareInner object itself.
*/
@@ -74,7 +79,7 @@ public FirmwareInner withFileName(String fileName) {
/**
* Get the vendor property: Firmware vendor.
- *
+ *
* @return the vendor value.
*/
public String vendor() {
@@ -83,7 +88,7 @@ public String vendor() {
/**
* Set the vendor property: Firmware vendor.
- *
+ *
* @param vendor the vendor value to set.
* @return the FirmwareInner object itself.
*/
@@ -97,7 +102,7 @@ public FirmwareInner withVendor(String vendor) {
/**
* Get the model property: Firmware model.
- *
+ *
* @return the model value.
*/
public String model() {
@@ -106,7 +111,7 @@ public String model() {
/**
* Set the model property: Firmware model.
- *
+ *
* @param model the model value to set.
* @return the FirmwareInner object itself.
*/
@@ -120,7 +125,7 @@ public FirmwareInner withModel(String model) {
/**
* Get the version property: Firmware version.
- *
+ *
* @return the version value.
*/
public String version() {
@@ -129,7 +134,7 @@ public String version() {
/**
* Set the version property: Firmware version.
- *
+ *
* @param version the version value to set.
* @return the FirmwareInner object itself.
*/
@@ -143,7 +148,7 @@ public FirmwareInner withVersion(String version) {
/**
* Get the description property: User-specified description of the firmware.
- *
+ *
* @return the description value.
*/
public String description() {
@@ -152,7 +157,7 @@ public String description() {
/**
* Set the description property: User-specified description of the firmware.
- *
+ *
* @param description the description value to set.
* @return the FirmwareInner object itself.
*/
@@ -166,7 +171,7 @@ public FirmwareInner withDescription(String description) {
/**
* Get the fileSize property: File size of the uploaded firmware image.
- *
+ *
* @return the fileSize value.
*/
public Long fileSize() {
@@ -175,7 +180,7 @@ public Long fileSize() {
/**
* Set the fileSize property: File size of the uploaded firmware image.
- *
+ *
* @param fileSize the fileSize value to set.
* @return the FirmwareInner object itself.
*/
@@ -189,7 +194,7 @@ public FirmwareInner withFileSize(Long fileSize) {
/**
* Get the status property: The status of firmware scan.
- *
+ *
* @return the status value.
*/
public Status status() {
@@ -198,7 +203,7 @@ public Status status() {
/**
* Set the status property: The status of firmware scan.
- *
+ *
* @param status the status value to set.
* @return the FirmwareInner object itself.
*/
@@ -212,20 +217,20 @@ public FirmwareInner withStatus(Status status) {
/**
* Get the statusMessages property: A list of errors or other messages generated during firmware analysis.
- *
+ *
* @return the statusMessages value.
*/
- public List