diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md b/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md
index 0ed4046c5a0ea..d86b1f5724014 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-02-03)
+- Azure Resource Manager DataBoxEdge client library for Java. This package contains Microsoft Azure SDK for DataBoxEdge Management SDK. Package tag package-2021-06-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-09)
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/README.md b/sdk/databoxedge/azure-resourcemanager-databoxedge/README.md
index 1fbf18e47484e..1a17e011c4441 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/README.md
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager DataBoxEdge client library for Java.
-This package contains Microsoft Azure SDK for DataBoxEdge Management SDK. Package tag package-2019-08. 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 DataBoxEdge Management SDK. Package tag package-2021-06-01. 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.resourcemanager
azure-resourcemanager-databoxedge
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/databoxedge/azure-resourcemanager-databoxedge/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/SAMPLE.md b/sdk/databoxedge/azure-resourcemanager-databoxedge/SAMPLE.md
new file mode 100644
index 0000000000000..1421d390c158e
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/SAMPLE.md
@@ -0,0 +1,2107 @@
+# Code snippets and samples
+
+
+## Addons
+
+- [CreateOrUpdate](#addons_createorupdate)
+- [Delete](#addons_delete)
+- [Get](#addons_get)
+- [ListByRole](#addons_listbyrole)
+
+## Alerts
+
+- [Get](#alerts_get)
+- [ListByDataBoxEdgeDevice](#alerts_listbydataboxedgedevice)
+
+## AvailableSkus
+
+- [List](#availableskus_list)
+
+## BandwidthSchedules
+
+- [CreateOrUpdate](#bandwidthschedules_createorupdate)
+- [Delete](#bandwidthschedules_delete)
+- [Get](#bandwidthschedules_get)
+- [ListByDataBoxEdgeDevice](#bandwidthschedules_listbydataboxedgedevice)
+
+## Containers
+
+- [CreateOrUpdate](#containers_createorupdate)
+- [Delete](#containers_delete)
+- [Get](#containers_get)
+- [ListByStorageAccount](#containers_listbystorageaccount)
+- [Refresh](#containers_refresh)
+
+## Devices
+
+- [CreateOrUpdate](#devices_createorupdate)
+- [CreateOrUpdateSecuritySettings](#devices_createorupdatesecuritysettings)
+- [Delete](#devices_delete)
+- [DownloadUpdates](#devices_downloadupdates)
+- [GenerateCertificate](#devices_generatecertificate)
+- [GetByResourceGroup](#devices_getbyresourcegroup)
+- [GetExtendedInformation](#devices_getextendedinformation)
+- [GetNetworkSettings](#devices_getnetworksettings)
+- [GetUpdateSummary](#devices_getupdatesummary)
+- [InstallUpdates](#devices_installupdates)
+- [List](#devices_list)
+- [ListByResourceGroup](#devices_listbyresourcegroup)
+- [ScanForUpdates](#devices_scanforupdates)
+- [Update](#devices_update)
+- [UpdateExtendedInformation](#devices_updateextendedinformation)
+- [UploadCertificate](#devices_uploadcertificate)
+
+## DiagnosticSettings
+
+- [GetDiagnosticProactiveLogCollectionSettings](#diagnosticsettings_getdiagnosticproactivelogcollectionsettings)
+- [GetDiagnosticRemoteSupportSettings](#diagnosticsettings_getdiagnosticremotesupportsettings)
+- [UpdateDiagnosticProactiveLogCollectionSettings](#diagnosticsettings_updatediagnosticproactivelogcollectionsettings)
+- [UpdateDiagnosticRemoteSupportSettings](#diagnosticsettings_updatediagnosticremotesupportsettings)
+
+## Jobs
+
+- [Get](#jobs_get)
+
+## MonitoringConfig
+
+- [CreateOrUpdate](#monitoringconfig_createorupdate)
+- [Delete](#monitoringconfig_delete)
+- [Get](#monitoringconfig_get)
+- [List](#monitoringconfig_list)
+
+## Nodes
+
+- [ListByDataBoxEdgeDevice](#nodes_listbydataboxedgedevice)
+
+## Operations
+
+- [List](#operations_list)
+
+## OperationsStatus
+
+- [Get](#operationsstatus_get)
+
+## Orders
+
+- [CreateOrUpdate](#orders_createorupdate)
+- [Delete](#orders_delete)
+- [Get](#orders_get)
+- [ListByDataBoxEdgeDevice](#orders_listbydataboxedgedevice)
+- [ListDCAccessCode](#orders_listdcaccesscode)
+
+## Roles
+
+- [CreateOrUpdate](#roles_createorupdate)
+- [Delete](#roles_delete)
+- [Get](#roles_get)
+- [ListByDataBoxEdgeDevice](#roles_listbydataboxedgedevice)
+
+## Shares
+
+- [CreateOrUpdate](#shares_createorupdate)
+- [Delete](#shares_delete)
+- [Get](#shares_get)
+- [ListByDataBoxEdgeDevice](#shares_listbydataboxedgedevice)
+- [Refresh](#shares_refresh)
+
+## StorageAccountCredentials
+
+- [CreateOrUpdate](#storageaccountcredentials_createorupdate)
+- [Delete](#storageaccountcredentials_delete)
+- [Get](#storageaccountcredentials_get)
+- [ListByDataBoxEdgeDevice](#storageaccountcredentials_listbydataboxedgedevice)
+
+## StorageAccounts
+
+- [CreateOrUpdate](#storageaccounts_createorupdate)
+- [Delete](#storageaccounts_delete)
+- [Get](#storageaccounts_get)
+- [ListByDataBoxEdgeDevice](#storageaccounts_listbydataboxedgedevice)
+
+## SupportPackages
+
+- [TriggerSupportPackage](#supportpackages_triggersupportpackage)
+
+## Triggers
+
+- [CreateOrUpdate](#triggers_createorupdate)
+- [Delete](#triggers_delete)
+- [Get](#triggers_get)
+- [ListByDataBoxEdgeDevice](#triggers_listbydataboxedgedevice)
+
+## Users
+
+- [CreateOrUpdate](#users_createorupdate)
+- [Delete](#users_delete)
+- [Get](#users_get)
+- [ListByDataBoxEdgeDevice](#users_listbydataboxedgedevice)
+### Addons_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.ArcAddon;
+
+/** Samples for Addons CreateOrUpdate. */
+public final class AddonsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/PutAddons.json
+ */
+ /**
+ * Sample code: PutAddOns.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void putAddOns(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .addons()
+ .createOrUpdate(
+ "testedgedevice",
+ "KubernetesRole",
+ "arcName",
+ "GroupForEdgeAutomation",
+ new ArcAddon()
+ .withSubscriptionId("4385cf00-2d3a-425a-832f-f4285b1c9dce")
+ .withResourceGroupName("GroupForEdgeAutomation")
+ .withResourceName("testedgedevice")
+ .withResourceLocation("EastUS"),
+ Context.NONE);
+ }
+}
+```
+
+### Addons_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Addons Delete. */
+public final class AddonsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DeleteAddons.json
+ */
+ /**
+ * Sample code: DeleteAddOns.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void deleteAddOns(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.addons().delete("testedgedevice", "KubernetesRole", "arcName", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Addons_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Addons Get. */
+public final class AddonsGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetAddons.json
+ */
+ /**
+ * Sample code: GetAddOns.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getAddOns(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .addons()
+ .getWithResponse("testedgedevice", "KubernetesRole", "arcName", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Addons_ListByRole
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Addons ListByRole. */
+public final class AddonsListByRoleSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/RoleListAddOns.json
+ */
+ /**
+ * Sample code: RoleListAddOns.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void roleListAddOns(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.addons().listByRole("testedgedevice", "IoTRole1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Alerts_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts Get. */
+public final class AlertsGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/AlertGet.json
+ */
+ /**
+ * Sample code: AlertGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void alertGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .alerts()
+ .getWithResponse(
+ "testedgedevice", "159a00c7-8543-4343-9435-263ac87df3bb", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Alerts_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Alerts ListByDataBoxEdgeDevice. */
+public final class AlertsListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/AlertGetAllInDevice.json
+ */
+ /**
+ * Sample code: AlertGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void alertGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.alerts().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### AvailableSkus_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for AvailableSkus List. */
+public final class AvailableSkusListSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/AvailableSkusList.json
+ */
+ /**
+ * Sample code: AvailableSkus.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void availableSkus(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.availableSkus().list(Context.NONE);
+ }
+}
+```
+
+### BandwidthSchedules_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.DayOfWeek;
+import java.util.Arrays;
+
+/** Samples for BandwidthSchedules CreateOrUpdate. */
+public final class BandwidthSchedulesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/BandwidthSchedulePut.json
+ */
+ /**
+ * Sample code: BandwidthSchedulePut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void bandwidthSchedulePut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .bandwidthSchedules()
+ .define("bandwidth-1")
+ .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
+ .withStart("0:0:0")
+ .withStop("13:59:0")
+ .withRateInMbps(100)
+ .withDays(Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.MONDAY))
+ .create();
+ }
+}
+```
+
+### BandwidthSchedules_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BandwidthSchedules Delete. */
+public final class BandwidthSchedulesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/BandwidthScheduleDelete.json
+ */
+ /**
+ * Sample code: BandwidthScheduleDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void bandwidthScheduleDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.bandwidthSchedules().delete("testedgedevice", "bandwidth-1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### BandwidthSchedules_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BandwidthSchedules Get. */
+public final class BandwidthSchedulesGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/BandwidthScheduleGet.json
+ */
+ /**
+ * Sample code: BandwidthScheduleGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void bandwidthScheduleGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .bandwidthSchedules()
+ .getWithResponse("testedgedevice", "bandwidth-1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### BandwidthSchedules_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for BandwidthSchedules ListByDataBoxEdgeDevice. */
+public final class BandwidthSchedulesListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/BandwidthScheduleGetAllInDevice.json
+ */
+ /**
+ * Sample code: BandwidthScheduleGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void bandwidthScheduleGetAllInDevice(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.bandwidthSchedules().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Containers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
+
+/** Samples for Containers CreateOrUpdate. */
+public final class ContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ContainerPut.json
+ */
+ /**
+ * Sample code: ContainerPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void containerPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .containers()
+ .define("blobcontainer1")
+ .withExistingStorageAccount("testedgedevice", "storageaccount1", "GroupForEdgeAutomation")
+ .withDataFormat(AzureContainerDataFormat.BLOCK_BLOB)
+ .create();
+ }
+}
+```
+
+### Containers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Containers Delete. */
+public final class ContainersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ContainerDelete.json
+ */
+ /**
+ * Sample code: ContainerDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void containerDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .containers()
+ .delete("testedgedevice", "storageaccount1", "blobcontainer1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Containers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Containers Get. */
+public final class ContainersGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ContainerGet.json
+ */
+ /**
+ * Sample code: ContainerGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void containerGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .containers()
+ .getWithResponse(
+ "testedgedevice", "storageaccount1", "blobcontainer1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Containers_ListByStorageAccount
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Containers ListByStorageAccount. */
+public final class ContainersListByStorageAccountSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ContainerListAllInDevice.json
+ */
+ /**
+ * Sample code: ContainerListAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void containerListAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .containers()
+ .listByStorageAccount("testedgedevice", "storageaccount1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Containers_Refresh
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Containers Refresh. */
+public final class ContainersRefreshSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ContainerRefresh.json
+ */
+ /**
+ * Sample code: ContainerRefresh.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void containerRefresh(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .containers()
+ .refresh("testedgedevice", "storageaccount1", "blobcontainer1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.DataResidency;
+import com.azure.resourcemanager.databoxedge.models.DataResidencyType;
+import com.azure.resourcemanager.databoxedge.models.Sku;
+import com.azure.resourcemanager.databoxedge.models.SkuName;
+import com.azure.resourcemanager.databoxedge.models.SkuTier;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for Devices CreateOrUpdate. */
+public final class DevicesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDevicePutWithDataResidency.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDevicePutWithDataResidency.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDevicePutWithDataResidency(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .devices()
+ .define("testedgedevice")
+ .withRegion("WUS")
+ .withExistingResourceGroup("GroupForEdgeAutomation")
+ .withTags(mapOf())
+ .withSku(new Sku().withName(SkuName.EDGE).withTier(SkuTier.STANDARD))
+ .withDataResidency(new DataResidency().withType(DataResidencyType.ZONE_REPLICATION))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDevicePut.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDevicePut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDevicePut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .devices()
+ .define("testedgedevice")
+ .withRegion("WUS")
+ .withExistingResourceGroup("GroupForEdgeAutomation")
+ .withTags(mapOf())
+ .withSku(new Sku().withName(SkuName.EDGE).withTier(SkuTier.STANDARD))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Devices_CreateOrUpdateSecuritySettings
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.EncryptionAlgorithm;
+import com.azure.resourcemanager.databoxedge.models.SecuritySettings;
+
+/** Samples for Devices CreateOrUpdateSecuritySettings. */
+public final class DevicesCreateOrUpdateSecuritySettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SecuritySettingsUpdatePost.json
+ */
+ /**
+ * Sample code: CreateOrUpdateSecuritySettings.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void createOrUpdateSecuritySettings(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .devices()
+ .createOrUpdateSecuritySettings(
+ "testedgedevice",
+ "AzureVM",
+ new SecuritySettings()
+ .withDeviceAdminPassword(
+ new AsymmetricEncryptedSecret()
+ .withValue("")
+ .withEncryptionCertThumbprint("")
+ .withEncryptionAlgorithm(EncryptionAlgorithm.AES256)),
+ Context.NONE);
+ }
+}
+```
+
+### Devices_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices Delete. */
+public final class DevicesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDeviceDelete.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDeviceDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDeviceDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().delete("GroupForEdgeAutomation", "testedgedevice", Context.NONE);
+ }
+}
+```
+
+### Devices_DownloadUpdates
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices DownloadUpdates. */
+public final class DevicesDownloadUpdatesSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DownloadUpdatesPost.json
+ */
+ /**
+ * Sample code: DownloadUpdatesPost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void downloadUpdatesPost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().downloadUpdates("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_GenerateCertificate
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices GenerateCertificate. */
+public final class DevicesGenerateCertificateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GenerateCertificate.json
+ */
+ /**
+ * Sample code: GenerateCertificate.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void generateCertificate(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().generateCertificateWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices GetByResourceGroup. */
+public final class DevicesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDeviceGetByName.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDeviceGetByName.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDeviceGetByName(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().getByResourceGroupWithResponse("GroupForEdgeAutomation", "testedgedevice", Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDeviceGetByNameWithDataResidency.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDeviceGetByNameWithDataResidency.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDeviceGetByNameWithDataResidency(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().getByResourceGroupWithResponse("GroupForEdgeAutomation", "testedgedevice", Context.NONE);
+ }
+}
+```
+
+### Devices_GetExtendedInformation
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices GetExtendedInformation. */
+public final class DevicesGetExtendedInformationSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ExtendedInfoPost.json
+ */
+ /**
+ * Sample code: ExtendedInfoPost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void extendedInfoPost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().getExtendedInformationWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_GetNetworkSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices GetNetworkSettings. */
+public final class DevicesGetNetworkSettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/NetworkSettingsGet.json
+ */
+ /**
+ * Sample code: NetworkSettingsGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void networkSettingsGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().getNetworkSettingsWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_GetUpdateSummary
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices GetUpdateSummary. */
+public final class DevicesGetUpdateSummarySamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UpdateSummaryGet.json
+ */
+ /**
+ * Sample code: UpdateSummaryGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void updateSummaryGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().getUpdateSummaryWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_InstallUpdates
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices InstallUpdates. */
+public final class DevicesInstallUpdatesSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/InstallUpdatesPost.json
+ */
+ /**
+ * Sample code: InstallUpdatesPost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void installUpdatesPost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().installUpdates("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices List. */
+public final class DevicesListSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDeviceGetBySubscription.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDeviceGetBySubscription.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDeviceGetBySubscription(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().list(null, Context.NONE);
+ }
+}
+```
+
+### Devices_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices ListByResourceGroup. */
+public final class DevicesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDeviceGetByResourceGroup.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDeviceGetByResourceGroup.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDeviceGetByResourceGroup(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().listByResourceGroup("GroupForEdgeAutomation", null, Context.NONE);
+ }
+}
+```
+
+### Devices_ScanForUpdates
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Devices ScanForUpdates. */
+public final class DevicesScanForUpdatesSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ScanForUpdatesPost.json
+ */
+ /**
+ * Sample code: ScanForUpdatesPost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void scanForUpdatesPost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.devices().scanForUpdates("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Devices_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDevice;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfilePatch;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfileSubscriptionPatch;
+
+/** Samples for Devices Update. */
+public final class DevicesUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DataBoxEdgeDevicePatch.json
+ */
+ /**
+ * Sample code: DataBoxEdgeDevicePatch.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void dataBoxEdgeDevicePatch(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ DataBoxEdgeDevice resource =
+ manager
+ .devices()
+ .getByResourceGroupWithResponse("GroupForEdgeAutomation", "testedgedevice", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withEdgeProfile(
+ new EdgeProfilePatch()
+ .withSubscription(
+ new EdgeProfileSubscriptionPatch()
+ .withId(
+ "/subscriptions/0d44739e-0563-474f-97e7-24a0cdb23b29/resourceGroups/rapvs-rg/providers/Microsoft.AzureStack/linkedSubscriptions/ca014ddc-5cf2-45f8-b390-e901e4a0ae87")))
+ .apply();
+ }
+}
+```
+
+### Devices_UpdateExtendedInformation
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfoPatch;
+
+/** Samples for Devices UpdateExtendedInformation. */
+public final class DevicesUpdateExtendedInformationSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetUpdateExtendedInfo.json
+ */
+ /**
+ * Sample code: GetUpdateExtendedInfo.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getUpdateExtendedInfo(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .devices()
+ .updateExtendedInformationWithResponse(
+ "testedgedevice", "GroupForEdgeAutomation", new DataBoxEdgeDeviceExtendedInfoPatch(), Context.NONE);
+ }
+}
+```
+
+### Devices_UploadCertificate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.UploadCertificateRequest;
+
+/** Samples for Devices UploadCertificate. */
+public final class DevicesUploadCertificateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UploadCertificatePost.json
+ */
+ /**
+ * Sample code: UploadCertificatePost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void uploadCertificatePost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .devices()
+ .uploadCertificateWithResponse(
+ "testedgedevice",
+ "GroupForEdgeAutomation",
+ new UploadCertificateRequest()
+ .withCertificate(
+ "MIIC9DCCAdygAwIBAgIQWJae7GNjiI9Mcv/gJyrOPTANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDDAdXaW5kb3dzMB4XDTE4MTEyNzAwMTA0NVoXDTIxMTEyODAwMTA0NVowEjEQMA4GA1UEAwwHV2luZG93czCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKxkRExqxf0qH1avnyORptIbRC2yQwqe3EIbJ2FPKr5jtAppGeX/dGKrFSnX+7/0HFr77aJHafdpEAtOiLyJ4zCAVs0obZCCIq4qJdmjYUTU0UXH/w/YzXfQA0d9Zh9AN+NJBX9xj05NzgsT24fkgsK2v6mWJQXT7YcWAsl5sEYPnx1e+MrupNyVSL/RUJmrS+etJSysHtFeWRhsUhVAs1DD5ExJvBLU3WH0IsojEvpXcjrutB5/MDQNrd/StGI6WovoSSPH7FyT9tgERx+q+Yg3YUGzfaIPCctlrRGehcdtzdNoKd0rsX62yCq0U6POoSfwe22NJu41oAUMd7e6R8cCAwEAAaNGMEQwEwYDVR0lBAwwCgYIKwYBBQUHAwIwHQYDVR0OBBYEFDd0VxnS3LnMIfwc7xW4b4IZWG5GMA4GA1UdDwEB/wQEAwIFIDANBgkqhkiG9w0BAQUFAAOCAQEAPQRby2u9celvtvL/DLEb5Vt3/tPStRQC5MyTD62L5RT/q8E6EMCXVZNkXF5WlWucLJi/18tY+9PNgP9xWLJh7kpSWlWdi9KPtwMqKDlEH8L2TnQdjimt9XuiCrTnoFy/1X2BGLY/rCaUJNSd15QCkz2xeW+Z+YSk2GwAc/A/4YfNpqSIMfNuPrT76o02VdD9WmJUA3fS/HY0sU9qgQRS/3F5/0EPS+HYQ0SvXCK9tggcCd4O050ytNBMJC9qMOJ7yE0iOrFfOJSCfDAuPhn/rHFh79Kn1moF+/CE+nc0/2RPiLC8r54/rt5dYyyxJDfXg0a3VrrX39W69WZGW5OXiw=="),
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettings_GetDiagnosticProactiveLogCollectionSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettings GetDiagnosticProactiveLogCollectionSettings. */
+public final class DiagnosticSettingsGetDiagnosticProactiveLogCollectionSettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetDiagnosticProactiveLogCollectionSettings.json
+ */
+ /**
+ * Sample code: GetDiagnosticProactiveLogCollectionSettings.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getDiagnosticProactiveLogCollectionSettings(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .diagnosticSettings()
+ .getDiagnosticProactiveLogCollectionSettingsWithResponse(
+ "testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettings_GetDiagnosticRemoteSupportSettings
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for DiagnosticSettings GetDiagnosticRemoteSupportSettings. */
+public final class DiagnosticSettingsGetDiagnosticRemoteSupportSettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetDiagnosticRemoteSupportSettings.json
+ */
+ /**
+ * Sample code: GetDiagnosticRemoteSupportSettings.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getDiagnosticRemoteSupportSettings(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .diagnosticSettings()
+ .getDiagnosticRemoteSupportSettingsWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettings_UpdateDiagnosticProactiveLogCollectionSettings
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticProactiveLogCollectionSettingsInner;
+import com.azure.resourcemanager.databoxedge.models.ProactiveDiagnosticsConsent;
+
+/** Samples for DiagnosticSettings UpdateDiagnosticProactiveLogCollectionSettings. */
+public final class DiagnosticSettingsUpdateDiagnosticProactiveLogCollectionSettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UpdateDiagnosticProactiveLogCollectionSettings.json
+ */
+ /**
+ * Sample code: UpdateDiagnosticProactiveLogCollectionSettings.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void updateDiagnosticProactiveLogCollectionSettings(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .diagnosticSettings()
+ .updateDiagnosticProactiveLogCollectionSettings(
+ "testedgedevice",
+ "GroupForEdgeAutomation",
+ new DiagnosticProactiveLogCollectionSettingsInner()
+ .withUserConsent(ProactiveDiagnosticsConsent.ENABLED),
+ Context.NONE);
+ }
+}
+```
+
+### DiagnosticSettings_UpdateDiagnosticRemoteSupportSettings
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticRemoteSupportSettingsInner;
+import com.azure.resourcemanager.databoxedge.models.AccessLevel;
+import com.azure.resourcemanager.databoxedge.models.RemoteApplicationType;
+import com.azure.resourcemanager.databoxedge.models.RemoteSupportSettings;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/** Samples for DiagnosticSettings UpdateDiagnosticRemoteSupportSettings. */
+public final class DiagnosticSettingsUpdateDiagnosticRemoteSupportSettingsSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UpdateDiagnosticRemoteSupportSettings.json
+ */
+ /**
+ * Sample code: UpdateDiagnosticRemoteSupportSettings.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void updateDiagnosticRemoteSupportSettings(
+ com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .diagnosticSettings()
+ .updateDiagnosticRemoteSupportSettings(
+ "testedgedevice",
+ "GroupForEdgeAutomation",
+ new DiagnosticRemoteSupportSettingsInner()
+ .withRemoteSupportSettingsList(
+ Arrays
+ .asList(
+ new RemoteSupportSettings()
+ .withRemoteApplicationType(RemoteApplicationType.POWERSHELL)
+ .withAccessLevel(AccessLevel.READ_WRITE)
+ .withExpirationTimestampInUtc(OffsetDateTime.parse("2021-07-07T00:00:00+00:00")))),
+ Context.NONE);
+ }
+}
+```
+
+### Jobs_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Jobs Get. */
+public final class JobsGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/JobsGet.json
+ */
+ /**
+ * Sample code: JobsGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void jobsGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .jobs()
+ .getWithResponse(
+ "testedgedevice", "159a00c7-8543-4343-9435-263ac87df3bb", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### MonitoringConfig_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.fluent.models.MonitoringMetricConfigurationInner;
+import com.azure.resourcemanager.databoxedge.models.MetricConfiguration;
+import com.azure.resourcemanager.databoxedge.models.MetricCounter;
+import com.azure.resourcemanager.databoxedge.models.MetricCounterSet;
+import java.util.Arrays;
+
+/** Samples for MonitoringConfig CreateOrUpdate. */
+public final class MonitoringConfigCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/PutMonitoringConfig.json
+ */
+ /**
+ * Sample code: PutMonitoringConfig.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void putMonitoringConfig(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .monitoringConfigs()
+ .createOrUpdate(
+ "testedgedevice",
+ "testrole",
+ "GroupForEdgeAutomation",
+ new MonitoringMetricConfigurationInner()
+ .withMetricConfigurations(
+ Arrays
+ .asList(
+ new MetricConfiguration()
+ .withResourceId("test")
+ .withMdmAccount("test")
+ .withMetricNameSpace("test")
+ .withCounterSets(
+ Arrays
+ .asList(
+ new MetricCounterSet()
+ .withCounters(
+ Arrays.asList(new MetricCounter().withName("test"))))))),
+ Context.NONE);
+ }
+}
+```
+
+### MonitoringConfig_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MonitoringConfig Delete. */
+public final class MonitoringConfigDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/DeleteMonitoringConfig.json
+ */
+ /**
+ * Sample code: DeleteMonitoringConfig.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void deleteMonitoringConfig(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.monitoringConfigs().delete("testedgedevice", "testrole", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### MonitoringConfig_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MonitoringConfig Get. */
+public final class MonitoringConfigGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetMonitoringConfig.json
+ */
+ /**
+ * Sample code: GetMonitoringConfig.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getMonitoringConfig(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .monitoringConfigs()
+ .getWithResponse("testedgedevice", "testrole", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### MonitoringConfig_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MonitoringConfig List. */
+public final class MonitoringConfigListSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ListMonitoringConfig.json
+ */
+ /**
+ * Sample code: ListMonitoringConfig.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void listMonitoringConfig(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.monitoringConfigs().list("testedgedevice", "testrole", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Nodes_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Nodes ListByDataBoxEdgeDevice. */
+public final class NodesListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/NodeGetAllInDevice.json
+ */
+ /**
+ * Sample code: NodesGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void nodesGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.nodes().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OperationsGet.json
+ */
+ /**
+ * Sample code: OperationsGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void operationsGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### OperationsStatus_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for OperationsStatus Get. */
+public final class OperationsStatusGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OperationsStatusGet.json
+ */
+ /**
+ * Sample code: OperationsStatusGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void operationsStatusGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .operationsStatus()
+ .getWithResponse(
+ "testedgedevice", "159a00c7-8543-4343-9435-263ac87df3bb", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Orders_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.fluent.models.OrderInner;
+import com.azure.resourcemanager.databoxedge.models.Address;
+import com.azure.resourcemanager.databoxedge.models.ContactDetails;
+import java.util.Arrays;
+
+/** Samples for Orders CreateOrUpdate. */
+public final class OrdersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OrderPut.json
+ */
+ /**
+ * Sample code: OrderPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void orderPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .orders()
+ .createOrUpdate(
+ "testedgedevice",
+ "GroupForEdgeAutomation",
+ new OrderInner()
+ .withContactInformation(
+ new ContactDetails()
+ .withContactPerson("John Mcclane")
+ .withCompanyName("Microsoft")
+ .withPhone("(800) 426-9400")
+ .withEmailList(Arrays.asList("john@microsoft.com")))
+ .withShippingAddress(
+ new Address()
+ .withAddressLine1("Microsoft Corporation")
+ .withAddressLine2("One Microsoft Way")
+ .withAddressLine3("Redmond")
+ .withPostalCode("98052")
+ .withCity("WA")
+ .withState("WA")
+ .withCountry("USA")),
+ Context.NONE);
+ }
+}
+```
+
+### Orders_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Orders Delete. */
+public final class OrdersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OrderDelete.json
+ */
+ /**
+ * Sample code: OrderDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void orderDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.orders().delete("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Orders_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Orders Get. */
+public final class OrdersGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OrderGet.json
+ */
+ /**
+ * Sample code: OrderGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void orderGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.orders().getWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Orders_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Orders ListByDataBoxEdgeDevice. */
+public final class OrdersListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/OrderGetAllInDevice.json
+ */
+ /**
+ * Sample code: OrderGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void orderGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.orders().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Orders_ListDCAccessCode
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Orders ListDCAccessCode. */
+public final class OrdersListDCAccessCodeSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/GetDCAccessCode.json
+ */
+ /**
+ * Sample code: GetDCAccessCode.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void getDCAccessCode(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.orders().listDCAccessCodeWithResponse("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Roles_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.Authentication;
+import com.azure.resourcemanager.databoxedge.models.EncryptionAlgorithm;
+import com.azure.resourcemanager.databoxedge.models.IoTDeviceInfo;
+import com.azure.resourcemanager.databoxedge.models.IoTRole;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.azure.resourcemanager.databoxedge.models.SymmetricKey;
+import java.util.Arrays;
+
+/** Samples for Roles CreateOrUpdate. */
+public final class RolesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/RolePut.json
+ */
+ /**
+ * Sample code: RolePut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void rolePut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .roles()
+ .createOrUpdate(
+ "testedgedevice",
+ "IoTRole1",
+ "GroupForEdgeAutomation",
+ new IoTRole()
+ .withHostPlatform(PlatformType.LINUX)
+ .withIoTDeviceDetails(
+ new IoTDeviceInfo()
+ .withDeviceId("iotdevice")
+ .withIoTHostHub("iothub.azure-devices.net")
+ .withAuthentication(
+ new Authentication()
+ .withSymmetricKey(
+ new SymmetricKey()
+ .withConnectionString(
+ new AsymmetricEncryptedSecret()
+ .withValue(
+ "Encrypted<>")
+ .withEncryptionCertThumbprint("348586569999244")
+ .withEncryptionAlgorithm(EncryptionAlgorithm.AES256)))))
+ .withIoTEdgeDeviceDetails(
+ new IoTDeviceInfo()
+ .withDeviceId("iotEdge")
+ .withIoTHostHub("iothub.azure-devices.net")
+ .withAuthentication(
+ new Authentication()
+ .withSymmetricKey(
+ new SymmetricKey()
+ .withConnectionString(
+ new AsymmetricEncryptedSecret()
+ .withValue(
+ "Encrypted<>")
+ .withEncryptionCertThumbprint("1245475856069999244")
+ .withEncryptionAlgorithm(EncryptionAlgorithm.AES256)))))
+ .withShareMappings(Arrays.asList())
+ .withRoleStatus(RoleStatus.ENABLED),
+ Context.NONE);
+ }
+}
+```
+
+### Roles_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Roles Delete. */
+public final class RolesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/RoleDelete.json
+ */
+ /**
+ * Sample code: RoleDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void roleDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.roles().delete("testedgedevice", "IoTRole1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Roles_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Roles Get. */
+public final class RolesGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/RoleGet.json
+ */
+ /**
+ * Sample code: RoleGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void roleGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.roles().getWithResponse("testedgedevice", "IoTRole1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Roles_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Roles ListByDataBoxEdgeDevice. */
+public final class RolesListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/RoleGetAllInDevice.json
+ */
+ /**
+ * Sample code: RoleGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void roleGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.roles().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Shares_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
+import com.azure.resourcemanager.databoxedge.models.AzureContainerInfo;
+import com.azure.resourcemanager.databoxedge.models.DataPolicy;
+import com.azure.resourcemanager.databoxedge.models.MonitoringStatus;
+import com.azure.resourcemanager.databoxedge.models.ShareAccessProtocol;
+import com.azure.resourcemanager.databoxedge.models.ShareAccessType;
+import com.azure.resourcemanager.databoxedge.models.ShareStatus;
+import com.azure.resourcemanager.databoxedge.models.UserAccessRight;
+import java.util.Arrays;
+
+/** Samples for Shares CreateOrUpdate. */
+public final class SharesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SharePut.json
+ */
+ /**
+ * Sample code: SharePut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void sharePut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .shares()
+ .define("smbshare")
+ .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
+ .withShareStatus(ShareStatus.fromString("Online"))
+ .withMonitoringStatus(MonitoringStatus.ENABLED)
+ .withAccessProtocol(ShareAccessProtocol.SMB)
+ .withDescription("")
+ .withAzureContainerInfo(
+ new AzureContainerInfo()
+ .withStorageAccountCredentialId(
+ "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/sac1")
+ .withContainerName("testContainerSMB")
+ .withDataFormat(AzureContainerDataFormat.BLOCK_BLOB))
+ .withUserAccessRights(
+ Arrays
+ .asList(
+ new UserAccessRight()
+ .withUserId(
+ "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/users/user2")
+ .withAccessType(ShareAccessType.CHANGE)))
+ .withDataPolicy(DataPolicy.CLOUD)
+ .create();
+ }
+}
+```
+
+### Shares_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Shares Delete. */
+public final class SharesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ShareDelete.json
+ */
+ /**
+ * Sample code: ShareDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void shareDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.shares().delete("testedgedevice", "smbshare", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Shares_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Shares Get. */
+public final class SharesGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ShareGet.json
+ */
+ /**
+ * Sample code: ShareGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void shareGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.shares().getWithResponse("testedgedevice", "smbshare", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Shares_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Shares ListByDataBoxEdgeDevice. */
+public final class SharesListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ShareGetAllInDevice.json
+ */
+ /**
+ * Sample code: ShareGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void shareGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.shares().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Shares_Refresh
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Shares Refresh. */
+public final class SharesRefreshSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/ShareRefreshPost.json
+ */
+ /**
+ * Sample code: ShareRefreshPost.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void shareRefreshPost(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.shares().refresh("testedgedevice", "smbshare", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccountCredentials_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.AccountType;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.EncryptionAlgorithm;
+import com.azure.resourcemanager.databoxedge.models.SslStatus;
+
+/** Samples for StorageAccountCredentials CreateOrUpdate. */
+public final class StorageAccountCredentialsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SACPut.json
+ */
+ /**
+ * Sample code: SACPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void sACPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .storageAccountCredentials()
+ .define("sac1")
+ .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
+ .withAlias("sac1")
+ .withSslStatus(SslStatus.DISABLED)
+ .withAccountType(AccountType.BLOB_STORAGE)
+ .withUsername("cisbvt")
+ .withAccountKey(
+ new AsymmetricEncryptedSecret()
+ .withValue(
+ "lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==")
+ .withEncryptionCertThumbprint("2A9D8D6BE51574B5461230AEF02F162C5F01AD31")
+ .withEncryptionAlgorithm(EncryptionAlgorithm.AES256))
+ .create();
+ }
+}
+```
+
+### StorageAccountCredentials_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccountCredentials Delete. */
+public final class StorageAccountCredentialsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SACDelete.json
+ */
+ /**
+ * Sample code: SACDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void sACDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.storageAccountCredentials().delete("testedgedevice", "sac1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccountCredentials_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccountCredentials Get. */
+public final class StorageAccountCredentialsGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SACGet.json
+ */
+ /**
+ * Sample code: SACGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void sACGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .storageAccountCredentials()
+ .getWithResponse("testedgedevice", "sac1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccountCredentials_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccountCredentials ListByDataBoxEdgeDevice. */
+public final class StorageAccountCredentialsListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/SACGetAllInDevice.json
+ */
+ /**
+ * Sample code: SACGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void sACGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .storageAccountCredentials()
+ .listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.DataPolicy;
+import com.azure.resourcemanager.databoxedge.models.StorageAccountStatus;
+
+/** Samples for StorageAccounts CreateOrUpdate. */
+public final class StorageAccountsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/StorageAccountPut.json
+ */
+ /**
+ * Sample code: StorageAccountPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void storageAccountPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .storageAccounts()
+ .define("blobstorageaccount1")
+ .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
+ .withDataPolicy(DataPolicy.CLOUD)
+ .withDescription("It's an awesome storage account")
+ .withStorageAccountStatus(StorageAccountStatus.OK)
+ .withStorageAccountCredentialId(
+ "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt")
+ .create();
+ }
+}
+```
+
+### StorageAccounts_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts Delete. */
+public final class StorageAccountsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/StorageAccountDelete.json
+ */
+ /**
+ * Sample code: StorageAccountDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void storageAccountDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.storageAccounts().delete("testedgedevice", "storageaccount1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts Get. */
+public final class StorageAccountsGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/StorageAccountGet.json
+ */
+ /**
+ * Sample code: StorageAccountGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void storageAccountGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .storageAccounts()
+ .getWithResponse("testedgedevice", "blobstorageaccount1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### StorageAccounts_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for StorageAccounts ListByDataBoxEdgeDevice. */
+public final class StorageAccountsListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/StorageAccountGetAllInDevice.json
+ */
+ /**
+ * Sample code: StorageAccountGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void storageAccountGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.storageAccounts().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### SupportPackages_TriggerSupportPackage
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.TriggerSupportPackageRequest;
+import java.time.OffsetDateTime;
+
+/** Samples for SupportPackages TriggerSupportPackage. */
+public final class SupportPackagesTriggerSupportPackageSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/TriggerSupportPackage.json
+ */
+ /**
+ * Sample code: TriggerSupportPackage.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void triggerSupportPackage(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .supportPackages()
+ .triggerSupportPackage(
+ "testedgedevice",
+ "GroupForEdgeAutomation",
+ new TriggerSupportPackageRequest()
+ .withMinimumTimestamp(OffsetDateTime.parse("2018-12-18T02:18:51.4270267Z"))
+ .withMaximumTimestamp(OffsetDateTime.parse("2018-12-18T02:19:51.4270267Z"))
+ .withInclude("DefaultWithDumps"),
+ Context.NONE);
+ }
+}
+```
+
+### Triggers_CreateOrUpdate
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.databoxedge.models.FileEventTrigger;
+import com.azure.resourcemanager.databoxedge.models.FileSourceInfo;
+import com.azure.resourcemanager.databoxedge.models.RoleSinkInfo;
+
+/** Samples for Triggers CreateOrUpdate. */
+public final class TriggersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/TriggerPut.json
+ */
+ /**
+ * Sample code: TriggerPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void triggerPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .triggers()
+ .createOrUpdate(
+ "testedgedevice",
+ "trigger1",
+ "GroupForEdgeAutomation",
+ new FileEventTrigger()
+ .withSourceInfo(
+ new FileSourceInfo()
+ .withShareId(
+ "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/shares/share1"))
+ .withSinkInfo(
+ new RoleSinkInfo()
+ .withRoleId(
+ "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/role1"))
+ .withCustomContextTag("CustomContextTags-1235346475"),
+ Context.NONE);
+ }
+}
+```
+
+### Triggers_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Triggers Delete. */
+public final class TriggersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/TriggerDelete.json
+ */
+ /**
+ * Sample code: TriggerDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void triggerDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.triggers().delete("testedgedevice", "trigger1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Triggers_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Triggers Get. */
+public final class TriggersGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/TriggerGet.json
+ */
+ /**
+ * Sample code: TriggerGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void triggerGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.triggers().getWithResponse("testedgedevice", "trigger1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Triggers_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Triggers ListByDataBoxEdgeDevice. */
+public final class TriggersListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/TriggerGetAllInDevice.json
+ */
+ /**
+ * Sample code: TriggerGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void triggerGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.triggers().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", null, Context.NONE);
+ }
+}
+```
+
+### Users_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.EncryptionAlgorithm;
+import com.azure.resourcemanager.databoxedge.models.UserType;
+
+/** Samples for Users CreateOrUpdate. */
+public final class UsersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UserPut.json
+ */
+ /**
+ * Sample code: UserPut.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void userPut(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager
+ .users()
+ .define("user1")
+ .withExistingDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation")
+ .withUserType(UserType.SHARE)
+ .withEncryptedPassword(
+ new AsymmetricEncryptedSecret()
+ .withValue("")
+ .withEncryptionCertThumbprint("blah")
+ .withEncryptionAlgorithm(EncryptionAlgorithm.NONE))
+ .create();
+ }
+}
+```
+
+### Users_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Users Delete. */
+public final class UsersDeleteSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UserDelete.json
+ */
+ /**
+ * Sample code: UserDelete.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void userDelete(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.users().delete("testedgedevice", "user1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Users_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Users Get. */
+public final class UsersGetSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UserGet.json
+ */
+ /**
+ * Sample code: UserGet.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void userGet(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.users().getWithResponse("testedgedevice", "user1", "GroupForEdgeAutomation", Context.NONE);
+ }
+}
+```
+
+### Users_ListByDataBoxEdgeDevice
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Users ListByDataBoxEdgeDevice. */
+public final class UsersListByDataBoxEdgeDeviceSamples {
+ /*
+ * x-ms-original-file: specification/databoxedge/resource-manager/Microsoft.DataBoxEdge/stable/2021-06-01/examples/UserGetAllInDevice.json
+ */
+ /**
+ * Sample code: UserGetAllInDevice.
+ *
+ * @param manager Entry point to DataBoxEdgeManager.
+ */
+ public static void userGetAllInDevice(com.azure.resourcemanager.databoxedge.DataBoxEdgeManager manager) {
+ manager.users().listByDataBoxEdgeDevice("testedgedevice", "GroupForEdgeAutomation", null, Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml b/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
index 44d795db29792..a703c69061987 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-databoxedge
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-databoxedge
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for DataBoxEdge Management
- This package contains Microsoft Azure SDK for DataBoxEdge Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2019-08.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for DataBoxEdge Management
+ This package contains Microsoft Azure SDK for DataBoxEdge Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2021-06-01.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.24.1
-
-
- com.azure
- azure-core-management
- 1.5.1
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.24.1
+
+
+ com.azure
+ azure-core-management
+ 1.5.1
+
+
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/DataBoxEdgeManager.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/DataBoxEdgeManager.java
index 0ddbb150ce2d0..47660df1b8f37 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/DataBoxEdgeManager.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/DataBoxEdgeManager.java
@@ -8,8 +8,8 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
@@ -17,41 +17,50 @@
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.fluent.DataBoxEdgeManagementClient;
+import com.azure.resourcemanager.databoxedge.implementation.AddonsImpl;
import com.azure.resourcemanager.databoxedge.implementation.AlertsImpl;
+import com.azure.resourcemanager.databoxedge.implementation.AvailableSkusImpl;
import com.azure.resourcemanager.databoxedge.implementation.BandwidthSchedulesImpl;
import com.azure.resourcemanager.databoxedge.implementation.ContainersImpl;
import com.azure.resourcemanager.databoxedge.implementation.DataBoxEdgeManagementClientBuilder;
import com.azure.resourcemanager.databoxedge.implementation.DevicesImpl;
+import com.azure.resourcemanager.databoxedge.implementation.DiagnosticSettingsImpl;
import com.azure.resourcemanager.databoxedge.implementation.JobsImpl;
+import com.azure.resourcemanager.databoxedge.implementation.MonitoringConfigsImpl;
import com.azure.resourcemanager.databoxedge.implementation.NodesImpl;
import com.azure.resourcemanager.databoxedge.implementation.OperationsImpl;
import com.azure.resourcemanager.databoxedge.implementation.OperationsStatusImpl;
import com.azure.resourcemanager.databoxedge.implementation.OrdersImpl;
import com.azure.resourcemanager.databoxedge.implementation.RolesImpl;
import com.azure.resourcemanager.databoxedge.implementation.SharesImpl;
-import com.azure.resourcemanager.databoxedge.implementation.SkusImpl;
import com.azure.resourcemanager.databoxedge.implementation.StorageAccountCredentialsImpl;
import com.azure.resourcemanager.databoxedge.implementation.StorageAccountsImpl;
+import com.azure.resourcemanager.databoxedge.implementation.SupportPackagesImpl;
import com.azure.resourcemanager.databoxedge.implementation.TriggersImpl;
import com.azure.resourcemanager.databoxedge.implementation.UsersImpl;
+import com.azure.resourcemanager.databoxedge.models.Addons;
import com.azure.resourcemanager.databoxedge.models.Alerts;
+import com.azure.resourcemanager.databoxedge.models.AvailableSkus;
import com.azure.resourcemanager.databoxedge.models.BandwidthSchedules;
import com.azure.resourcemanager.databoxedge.models.Containers;
import com.azure.resourcemanager.databoxedge.models.Devices;
+import com.azure.resourcemanager.databoxedge.models.DiagnosticSettings;
import com.azure.resourcemanager.databoxedge.models.Jobs;
+import com.azure.resourcemanager.databoxedge.models.MonitoringConfigs;
import com.azure.resourcemanager.databoxedge.models.Nodes;
import com.azure.resourcemanager.databoxedge.models.Operations;
import com.azure.resourcemanager.databoxedge.models.OperationsStatus;
import com.azure.resourcemanager.databoxedge.models.Orders;
import com.azure.resourcemanager.databoxedge.models.Roles;
import com.azure.resourcemanager.databoxedge.models.Shares;
-import com.azure.resourcemanager.databoxedge.models.Skus;
import com.azure.resourcemanager.databoxedge.models.StorageAccountCredentials;
import com.azure.resourcemanager.databoxedge.models.StorageAccounts;
+import com.azure.resourcemanager.databoxedge.models.SupportPackages;
import com.azure.resourcemanager.databoxedge.models.Triggers;
import com.azure.resourcemanager.databoxedge.models.Users;
import java.time.Duration;
@@ -59,17 +68,22 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to DataBoxEdgeManager. */
public final class DataBoxEdgeManager {
private Operations operations;
+ private AvailableSkus availableSkus;
+
private Devices devices;
private Alerts alerts;
private BandwidthSchedules bandwidthSchedules;
+ private DiagnosticSettings diagnosticSettings;
+
private Jobs jobs;
private Nodes nodes;
@@ -80,6 +94,10 @@ public final class DataBoxEdgeManager {
private Roles roles;
+ private Addons addons;
+
+ private MonitoringConfigs monitoringConfigs;
+
private Shares shares;
private StorageAccountCredentials storageAccountCredentials;
@@ -90,9 +108,9 @@ public final class DataBoxEdgeManager {
private Triggers triggers;
- private Users users;
+ private SupportPackages supportPackages;
- private Skus skus;
+ private Users users;
private final DataBoxEdgeManagementClient clientObject;
@@ -137,6 +155,7 @@ public static final class Configurable {
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
private Duration defaultPollInterval;
@@ -176,6 +195,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -232,20 +262,33 @@ public DataBoxEdgeManager authenticate(TokenCredential credential, AzureProfile
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
+ 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
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.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 =
@@ -265,6 +308,14 @@ public Operations operations() {
return operations;
}
+ /** @return Resource collection API of AvailableSkus. */
+ public AvailableSkus availableSkus() {
+ if (this.availableSkus == null) {
+ this.availableSkus = new AvailableSkusImpl(clientObject.getAvailableSkus(), this);
+ }
+ return availableSkus;
+ }
+
/** @return Resource collection API of Devices. */
public Devices devices() {
if (this.devices == null) {
@@ -289,6 +340,14 @@ public BandwidthSchedules bandwidthSchedules() {
return bandwidthSchedules;
}
+ /** @return Resource collection API of DiagnosticSettings. */
+ public DiagnosticSettings diagnosticSettings() {
+ if (this.diagnosticSettings == null) {
+ this.diagnosticSettings = new DiagnosticSettingsImpl(clientObject.getDiagnosticSettings(), this);
+ }
+ return diagnosticSettings;
+ }
+
/** @return Resource collection API of Jobs. */
public Jobs jobs() {
if (this.jobs == null) {
@@ -329,6 +388,22 @@ public Roles roles() {
return roles;
}
+ /** @return Resource collection API of Addons. */
+ public Addons addons() {
+ if (this.addons == null) {
+ this.addons = new AddonsImpl(clientObject.getAddons(), this);
+ }
+ return addons;
+ }
+
+ /** @return Resource collection API of MonitoringConfigs. */
+ public MonitoringConfigs monitoringConfigs() {
+ if (this.monitoringConfigs == null) {
+ this.monitoringConfigs = new MonitoringConfigsImpl(clientObject.getMonitoringConfigs(), this);
+ }
+ return monitoringConfigs;
+ }
+
/** @return Resource collection API of Shares. */
public Shares shares() {
if (this.shares == null) {
@@ -370,6 +445,14 @@ public Triggers triggers() {
return triggers;
}
+ /** @return Resource collection API of SupportPackages. */
+ public SupportPackages supportPackages() {
+ if (this.supportPackages == null) {
+ this.supportPackages = new SupportPackagesImpl(clientObject.getSupportPackages(), this);
+ }
+ return supportPackages;
+ }
+
/** @return Resource collection API of Users. */
public Users users() {
if (this.users == null) {
@@ -378,14 +461,6 @@ public Users users() {
return users;
}
- /** @return Resource collection API of Skus. */
- public Skus skus() {
- if (this.skus == null) {
- this.skus = new SkusImpl(clientObject.getSkus(), this);
- }
- return skus;
- }
-
/**
* @return Wrapped service client DataBoxEdgeManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AddonsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AddonsClient.java
new file mode 100644
index 0000000000000..51f901c07d56c
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AddonsClient.java
@@ -0,0 +1,221 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.models.AddonInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AddonsClient. */
+public interface AddonsClient {
+ /**
+ * Lists all the addons configured in the role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 collection of all the Role addon on the Azure Stack Edge device.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRole(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * Lists all the addons configured in the role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 collection of all the Role addon on the Azure Stack Edge device.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByRole(String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * Gets a specific addon by name.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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 specific addon by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddonInner get(String deviceName, String roleName, String addonName, String resourceGroupName);
+
+ /**
+ * Gets a specific addon by name.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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 specific addon by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @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 role Addon along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @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 role Addon along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AddonInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @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 role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddonInner createOrUpdate(
+ String deviceName, String roleName, String addonName, String resourceGroupName, AddonInner addon);
+
+ /**
+ * Create or update a addon.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @param addon The addon properties.
+ * @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 role Addon.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AddonInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String addonName,
+ String resourceGroupName,
+ AddonInner addon,
+ Context context);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String addonName, String resourceGroupName);
+
+ /**
+ * Deletes the addon on the device.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param addonName The addon name.
+ * @param resourceGroupName The resource group name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String addonName, String resourceGroupName, Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
index 334d594b50827..ea20423b84c44 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AlertsClient.java
@@ -64,7 +64,7 @@ public interface AlertsClient {
* @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 alert by name.
+ * @return an alert by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SkusClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AvailableSkusClient.java
similarity index 71%
rename from sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SkusClient.java
rename to sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AvailableSkusClient.java
index 73dc0b3417259..314c73577ffc6 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SkusClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/AvailableSkusClient.java
@@ -8,24 +8,23 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.databoxedge.fluent.models.ResourceTypeSkuInner;
+import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeSkuInner;
-/** An instance of this class provides access to all the operations defined in SkusClient. */
-public interface SkusClient {
+/** An instance of this class provides access to all the operations defined in AvailableSkusClient. */
+public interface AvailableSkusClient {
/**
- * List all the available Skus in the region and information related to them.
+ * List all the available Skus and information related to them.
*
* @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 SKU Information objects.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ PagedIterable list();
/**
- * List all the available Skus in the region and information related to them.
+ * List all the available Skus and information related to them.
*
- * @param filter Specify $filter='location eq <location>' to filter on location.
* @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.
@@ -33,5 +32,5 @@ public interface SkusClient {
* @return list of SKU Information objects.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String filter, Context context);
+ PagedIterable list(Context context);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
index bf68720bc8fec..9cf8b95792606 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/BandwidthSchedulesClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.BandwidthScheduleInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in BandwidthSchedulesClient. */
public interface BandwidthSchedulesClient {
@@ -67,7 +68,7 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 the properties of the specified bandwidth schedule.
+ * @return the properties of the specified bandwidth schedule along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -83,9 +84,9 @@ Response getWithResponse(
* @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 the bandwidth schedule details.
+ * @return the bandwidth schedule details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BandwidthScheduleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, BandwidthScheduleInner parameters);
@@ -100,9 +101,9 @@ SyncPoller, BandwidthScheduleInner> beginCrea
* @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 the bandwidth schedule details.
+ * @return the bandwidth schedule details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, BandwidthScheduleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, BandwidthScheduleInner parameters, Context context);
@@ -148,9 +149,9 @@ BandwidthScheduleInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -163,9 +164,9 @@ BandwidthScheduleInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
index 1122c177d346d..0464692f38b96 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/ContainersClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.ContainerInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in ContainersClient. */
public interface ContainersClient {
@@ -72,7 +73,7 @@ PagedIterable listByStorageAccount(
* @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 container by name.
+ * @return a container by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -89,9 +90,10 @@ Response getWithResponse(
* @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 represents a container on the Data Box Edge/Gateway device.
+ * @return represents a container on the Data Box Edge/Gateway device along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -111,9 +113,10 @@ SyncPoller, ContainerInner> beginCreateOrUpdate(
* @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 represents a container on the Data Box Edge/Gateway device.
+ * @return represents a container on the Data Box Edge/Gateway device along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ContainerInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -176,9 +179,9 @@ ContainerInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String containerName, String resourceGroupName);
@@ -193,9 +196,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
@@ -239,9 +242,9 @@ void delete(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String storageAccountName, String containerName, String resourceGroupName);
@@ -256,9 +259,9 @@ SyncPoller, Void> beginRefresh(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String storageAccountName, String containerName, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java
index d3ea0cb32538e..ea94df01e9838 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DataBoxEdgeManagementClient.java
@@ -51,6 +51,13 @@ public interface DataBoxEdgeManagementClient {
*/
OperationsClient getOperations();
+ /**
+ * Gets the AvailableSkusClient object to access its operations.
+ *
+ * @return the AvailableSkusClient object.
+ */
+ AvailableSkusClient getAvailableSkus();
+
/**
* Gets the DevicesClient object to access its operations.
*
@@ -72,6 +79,13 @@ public interface DataBoxEdgeManagementClient {
*/
BandwidthSchedulesClient getBandwidthSchedules();
+ /**
+ * Gets the DiagnosticSettingsClient object to access its operations.
+ *
+ * @return the DiagnosticSettingsClient object.
+ */
+ DiagnosticSettingsClient getDiagnosticSettings();
+
/**
* Gets the JobsClient object to access its operations.
*
@@ -107,6 +121,20 @@ public interface DataBoxEdgeManagementClient {
*/
RolesClient getRoles();
+ /**
+ * Gets the AddonsClient object to access its operations.
+ *
+ * @return the AddonsClient object.
+ */
+ AddonsClient getAddons();
+
+ /**
+ * Gets the MonitoringConfigsClient object to access its operations.
+ *
+ * @return the MonitoringConfigsClient object.
+ */
+ MonitoringConfigsClient getMonitoringConfigs();
+
/**
* Gets the SharesClient object to access its operations.
*
@@ -143,16 +171,16 @@ public interface DataBoxEdgeManagementClient {
TriggersClient getTriggers();
/**
- * Gets the UsersClient object to access its operations.
+ * Gets the SupportPackagesClient object to access its operations.
*
- * @return the UsersClient object.
+ * @return the SupportPackagesClient object.
*/
- UsersClient getUsers();
+ SupportPackagesClient getSupportPackages();
/**
- * Gets the SkusClient object to access its operations.
+ * Gets the UsersClient object to access its operations.
*
- * @return the SkusClient object.
+ * @return the UsersClient object.
*/
- SkusClient getSkus();
+ UsersClient getUsers();
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DevicesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DevicesClient.java
index 44aa91941334e..5fb0faadce926 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DevicesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DevicesClient.java
@@ -13,12 +13,15 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeDeviceExtendedInfoInner;
import com.azure.resourcemanager.databoxedge.fluent.models.DataBoxEdgeDeviceInner;
+import com.azure.resourcemanager.databoxedge.fluent.models.GenerateCertResponseInner;
import com.azure.resourcemanager.databoxedge.fluent.models.NetworkSettingsInner;
import com.azure.resourcemanager.databoxedge.fluent.models.UpdateSummaryInner;
import com.azure.resourcemanager.databoxedge.fluent.models.UploadCertificateResponseInner;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceExtendedInfoPatch;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDevicePatch;
import com.azure.resourcemanager.databoxedge.models.SecuritySettings;
import com.azure.resourcemanager.databoxedge.models.UploadCertificateRequest;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in DevicesClient. */
public interface DevicesClient {
@@ -95,43 +98,12 @@ public interface DevicesClient {
* @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 the properties of the Data Box Edge/Data Box Gateway device.
+ * @return the properties of the Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
String resourceGroupName, String deviceName, Context context);
- /**
- * Creates or updates a Data Box Edge/Data Box Gateway resource.
- *
- * @param deviceName The device name.
- * @param resourceGroupName The resource group name.
- * @param dataBoxEdgeDevice The resource object.
- * @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 the Data Box Edge/Gateway device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice);
-
- /**
- * Creates or updates a Data Box Edge/Data Box Gateway resource.
- *
- * @param deviceName The device name.
- * @param resourceGroupName The resource group name.
- * @param dataBoxEdgeDevice The resource object.
- * @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 the Data Box Edge/Gateway device.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- SyncPoller, DataBoxEdgeDeviceInner> beginCreateOrUpdate(
- String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context);
-
/**
* Creates or updates a Data Box Edge/Data Box Gateway resource.
*
@@ -157,10 +129,10 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @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 the Data Box Edge/Gateway device.
+ * @return the Data Box Edge/Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- DataBoxEdgeDeviceInner createOrUpdate(
+ Response createOrUpdateWithResponse(
String deviceName, String resourceGroupName, DataBoxEdgeDeviceInner dataBoxEdgeDevice, Context context);
/**
@@ -171,9 +143,9 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName);
/**
@@ -185,9 +157,9 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String deviceName, Context context);
/**
@@ -239,7 +211,7 @@ DataBoxEdgeDeviceInner createOrUpdate(
* @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 the Data Box Edge/Gateway device.
+ * @return the Data Box Edge/Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(
@@ -253,9 +225,9 @@ Response updateWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDownloadUpdates(String deviceName, String resourceGroupName);
/**
@@ -267,9 +239,9 @@ Response updateWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDownloadUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -299,20 +271,48 @@ SyncPoller, Void> beginDownloadUpdates(
void downloadUpdates(String deviceName, String resourceGroupName, Context context);
/**
- * Gets additional information for the specified Data Box Edge/Data Box Gateway device.
+ * Generates certificate for activation key.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
* @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 additional information for the specified Data Box Edge/Data Box Gateway device.
+ * @return used in activation key generation flow.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GenerateCertResponseInner generateCertificate(String deviceName, String resourceGroupName);
+
+ /**
+ * Generates certificate for activation key.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 used in activation key generation flow along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response generateCertificateWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * Gets additional information for the specified Azure Stack Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 additional information for the specified Azure Stack Edge/Data Box Gateway device.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DataBoxEdgeDeviceExtendedInfoInner getExtendedInformation(String deviceName, String resourceGroupName);
/**
- * Gets additional information for the specified Data Box Edge/Data Box Gateway device.
+ * Gets additional information for the specified Azure Stack Edge/Data Box Gateway device.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
@@ -320,7 +320,8 @@ SyncPoller, Void> beginDownloadUpdates(
* @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 additional information for the specified Data Box Edge/Data Box Gateway device.
+ * @return additional information for the specified Azure Stack Edge/Data Box Gateway device along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getExtendedInformationWithResponse(
@@ -334,9 +335,9 @@ Response getExtendedInformationWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginInstallUpdates(String deviceName, String resourceGroupName);
/**
@@ -348,9 +349,9 @@ Response getExtendedInformationWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginInstallUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -401,7 +402,7 @@ SyncPoller, Void> beginInstallUpdates(
* @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 the network settings of the specified Data Box Edge/Data Box Gateway device.
+ * @return the network settings of the specified Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getNetworkSettingsWithResponse(
@@ -415,9 +416,9 @@ Response getNetworkSettingsWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScanForUpdates(String deviceName, String resourceGroupName);
/**
@@ -429,9 +430,9 @@ Response getNetworkSettingsWithResponse(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginScanForUpdates(
String deviceName, String resourceGroupName, Context context);
@@ -469,9 +470,9 @@ SyncPoller, Void> beginScanForUpdates(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings);
@@ -485,9 +486,9 @@ SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings, Context context);
@@ -519,6 +520,38 @@ SyncPoller, Void> beginCreateOrUpdateSecuritySettings(
void createOrUpdateSecuritySettings(
String deviceName, String resourceGroupName, SecuritySettings securitySettings, Context context);
+ /**
+ * Gets additional information for the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param parameters The patch object.
+ * @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 additional information for the specified Data Box Edge/Data Box Gateway device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DataBoxEdgeDeviceExtendedInfoInner updateExtendedInformation(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters);
+
+ /**
+ * Gets additional information for the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param parameters The patch object.
+ * @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 additional information for the specified Data Box Edge/Data Box Gateway device along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateExtendedInformationWithResponse(
+ String deviceName, String resourceGroupName, DataBoxEdgeDeviceExtendedInfoPatch parameters, Context context);
+
/**
* Gets information about the availability of updates based on the last scan of the device. It also gets information
* about any ongoing download or install jobs on the device.
@@ -543,7 +576,8 @@ void createOrUpdateSecuritySettings(
* @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 information about the availability of updates based on the last scan of the device.
+ * @return information about the availability of updates based on the last scan of the device along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getUpdateSummaryWithResponse(
@@ -574,7 +608,7 @@ UploadCertificateResponseInner uploadCertificate(
* @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 the upload registration certificate response.
+ * @return the upload registration certificate response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response uploadCertificateWithResponse(
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DiagnosticSettingsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DiagnosticSettingsClient.java
new file mode 100644
index 0000000000000..37b9281a5b957
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/DiagnosticSettingsClient.java
@@ -0,0 +1,230 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticProactiveLogCollectionSettingsInner;
+import com.azure.resourcemanager.databoxedge.fluent.models.DiagnosticRemoteSupportSettingsInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in DiagnosticSettingsClient. */
+public interface DiagnosticSettingsClient {
+ /**
+ * Gets the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticProactiveLogCollectionSettingsInner getDiagnosticProactiveLogCollectionSettings(
+ String deviceName, String resourceGroupName);
+
+ /**
+ * Gets the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the proactive log collection settings of the specified Data Box Edge/Data Box Gateway device along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDiagnosticProactiveLogCollectionSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @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 the diagnostic proactive log collection settings of a device along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @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 the diagnostic proactive log collection settings of a device along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticProactiveLogCollectionSettingsInner>
+ beginUpdateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @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 the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings);
+
+ /**
+ * Updates the proactive log collection settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param proactiveLogCollectionSettings The proactive log collection settings.
+ * @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 the diagnostic proactive log collection settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticProactiveLogCollectionSettingsInner updateDiagnosticProactiveLogCollectionSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticProactiveLogCollectionSettingsInner proactiveLogCollectionSettings,
+ Context context);
+
+ /**
+ * Gets the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticRemoteSupportSettingsInner getDiagnosticRemoteSupportSettings(
+ String deviceName, String resourceGroupName);
+
+ /**
+ * Gets the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the diagnostic remote support settings of the specified Data Box Edge/Data Box Gateway device along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDiagnosticRemoteSupportSettingsWithResponse(
+ String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @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 the remote support settings of a device along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @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 the remote support settings of a device along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, DiagnosticRemoteSupportSettingsInner>
+ beginUpdateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @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 the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticRemoteSupportSettingsInner updateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings);
+
+ /**
+ * Updates the diagnostic remote support settings on a Data Box Edge/Data Box Gateway device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param diagnosticRemoteSupportSettings The diagnostic remote support settings.
+ * @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 the remote support settings of a device.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DiagnosticRemoteSupportSettingsInner updateDiagnosticRemoteSupportSettings(
+ String deviceName,
+ String resourceGroupName,
+ DiagnosticRemoteSupportSettingsInner diagnosticRemoteSupportSettings,
+ Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
index 640570ef6745d..d6fae67805537 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/JobsClient.java
@@ -36,7 +36,7 @@ public interface JobsClient {
* @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 the details of a specified job on a Data Box Edge/Data Box Gateway device.
+ * @return the details of a specified job on a Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/MonitoringConfigsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/MonitoringConfigsClient.java
new file mode 100644
index 0000000000000..603c794266458
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/MonitoringConfigsClient.java
@@ -0,0 +1,218 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.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.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.models.MonitoringMetricConfigurationInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in MonitoringConfigsClient. */
+public interface MonitoringConfigsClient {
+ /**
+ * Lists metric configurations in a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 collection of metric configurations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * Lists metric configurations in a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 collection of metric configurations.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * Gets a metric configuration of a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 metric configuration of a role.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringMetricConfigurationInner get(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * Gets a metric configuration of a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 metric configuration of a role along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @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 the metric setting details for the role along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoringMetricConfigurationInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @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 the metric setting details for the role along with {@link Response} on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MonitoringMetricConfigurationInner> beginCreateOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration,
+ Context context);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @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 the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringMetricConfigurationInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration);
+
+ /**
+ * Creates a new metric configuration or updates an existing one for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @param monitoringMetricConfiguration The metric configuration.
+ * @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 the metric setting details for the role.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MonitoringMetricConfigurationInner createOrUpdate(
+ String deviceName,
+ String roleName,
+ String resourceGroupName,
+ MonitoringMetricConfigurationInner monitoringMetricConfiguration,
+ Context context);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String deviceName, String roleName, String resourceGroupName, Context context);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String resourceGroupName);
+
+ /**
+ * deletes a new metric configuration for a role.
+ *
+ * @param deviceName The device name.
+ * @param roleName The role name.
+ * @param resourceGroupName The resource group name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String deviceName, String roleName, String resourceGroupName, Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
index 1cc20e96c6227..9a982f4a5785e 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OperationsStatusClient.java
@@ -36,7 +36,7 @@ public interface OperationsStatusClient {
* @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 the details of a specified job on a Data Box Edge/Data Box Gateway device.
+ * @return the details of a specified job on a Data Box Edge/Data Box Gateway device along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OrdersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OrdersClient.java
index 6f7bc753adbd0..6ea65757d154c 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OrdersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/OrdersClient.java
@@ -11,7 +11,9 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.fluent.models.DCAccessCodeInner;
import com.azure.resourcemanager.databoxedge.fluent.models.OrderInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in OrdersClient. */
public interface OrdersClient {
@@ -64,7 +66,7 @@ public interface OrdersClient {
* @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 specific order by name.
+ * @return a specific order by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String resourceGroupName, Context context);
@@ -78,9 +80,9 @@ public interface OrdersClient {
* @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 the order details.
+ * @return the order details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OrderInner> beginCreateOrUpdate(
String deviceName, String resourceGroupName, OrderInner order);
@@ -94,9 +96,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @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 the order details.
+ * @return the order details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OrderInner> beginCreateOrUpdate(
String deviceName, String resourceGroupName, OrderInner order, Context context);
@@ -137,9 +139,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String resourceGroupName);
/**
@@ -151,9 +153,9 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String resourceGroupName, Context context);
/**
@@ -180,4 +182,32 @@ SyncPoller, OrderInner> beginCreateOrUpdate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String deviceName, String resourceGroupName, Context context);
+
+ /**
+ * Gets the DCAccess Code.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the DCAccess Code.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DCAccessCodeInner listDCAccessCode(String deviceName, String resourceGroupName);
+
+ /**
+ * Gets the DCAccess Code.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @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 the DCAccess Code along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listDCAccessCodeWithResponse(
+ String deviceName, String resourceGroupName, Context context);
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
index cef88cc8ea6e4..58490fb158267 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/RolesClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.RoleInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in RolesClient. */
public interface RolesClient {
@@ -66,7 +67,7 @@ public interface RolesClient {
* @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 specific role by name.
+ * @return a specific role by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
@@ -81,9 +82,9 @@ public interface RolesClient {
* @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 compute role.
+ * @return compute role along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RoleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, RoleInner role);
@@ -98,9 +99,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @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 compute role.
+ * @return compute role along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, RoleInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, RoleInner role, Context context);
@@ -144,9 +145,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -159,9 +160,9 @@ SyncPoller, RoleInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
index e1a33e0771fc3..4a4cd2c103d9c 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SharesClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.ShareInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in SharesClient. */
public interface SharesClient {
@@ -66,7 +67,7 @@ public interface SharesClient {
* @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 share by name.
+ * @return a share by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
@@ -81,9 +82,10 @@ public interface SharesClient {
* @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 represents a share on the Data Box Edge/Gateway device.
+ * @return represents a share on the Data Box Edge/Gateway device along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ShareInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, ShareInner share);
@@ -98,9 +100,10 @@ SyncPoller, ShareInner> beginCreateOrUpdate(
* @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 represents a share on the Data Box Edge/Gateway device.
+ * @return represents a share on the Data Box Edge/Gateway device along with {@link Response} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ShareInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, ShareInner share, Context context);
@@ -145,9 +148,9 @@ ShareInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -160,9 +163,9 @@ ShareInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
@@ -202,9 +205,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(String deviceName, String name, String resourceGroupName);
/**
@@ -217,9 +220,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginRefresh(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
index 435bc27ffad7f..2229fe73bf9d6 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountCredentialsClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.StorageAccountCredentialInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in StorageAccountCredentialsClient. */
public interface StorageAccountCredentialsClient {
@@ -67,7 +68,7 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 the properties of the specified storage account credential.
+ * @return the properties of the specified storage account credential along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -83,9 +84,9 @@ Response getWithResponse(
* @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 the storage account credential.
+ * @return the storage account credential along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountCredentialInner> beginCreateOrUpdate(
String deviceName,
String name,
@@ -103,9 +104,9 @@ SyncPoller, StorageAccountCredentialIn
* @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 the storage account credential.
+ * @return the storage account credential along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountCredentialInner> beginCreateOrUpdate(
String deviceName,
String name,
@@ -162,9 +163,9 @@ StorageAccountCredentialInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -177,9 +178,9 @@ StorageAccountCredentialInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java
index 9badd639ba648..27393056e1666 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/StorageAccountsClient.java
@@ -12,11 +12,12 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.StorageAccountInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in StorageAccountsClient. */
public interface StorageAccountsClient {
/**
- * Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.
+ * Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
@@ -29,7 +30,7 @@ public interface StorageAccountsClient {
PagedIterable listByDataBoxEdgeDevice(String deviceName, String resourceGroupName);
/**
- * Lists all the storage accounts in a Data Box Edge/Data Box Gateway device.
+ * Lists all the StorageAccounts in a Data Box Edge/Data Box Gateway device.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
@@ -67,7 +68,7 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 StorageAccount by name.
+ * @return a StorageAccount by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -83,9 +84,10 @@ Response getWithResponse(
* @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 represents a Storage Account on the Data Box Edge/Gateway device.
+ * @return represents a Storage Account on the Data Box Edge/Gateway device along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountInner> beginCreateOrUpdate(
String deviceName, String storageAccountName, String resourceGroupName, StorageAccountInner storageAccount);
@@ -100,9 +102,10 @@ SyncPoller, StorageAccountInner> beginCreateOrUp
* @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 represents a Storage Account on the Data Box Edge/Gateway device.
+ * @return represents a Storage Account on the Data Box Edge/Gateway device along with {@link Response} on
+ * successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, StorageAccountInner> beginCreateOrUpdate(
String deviceName,
String storageAccountName,
@@ -156,9 +159,9 @@ StorageAccountInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String resourceGroupName);
@@ -172,9 +175,9 @@ SyncPoller, Void> beginDelete(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String storageAccountName, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java
new file mode 100644
index 0000000000000..61a64d41c85cb
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/SupportPackagesClient.java
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.databoxedge.models.TriggerSupportPackageRequest;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in SupportPackagesClient. */
+public interface SupportPackagesClient {
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerSupportPackage(
+ String deviceName, String resourceGroupName, TriggerSupportPackageRequest triggerSupportPackageRequest);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @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 the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTriggerSupportPackage(
+ String deviceName,
+ String resourceGroupName,
+ TriggerSupportPackageRequest triggerSupportPackageRequest,
+ Context context);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void triggerSupportPackage(
+ String deviceName, String resourceGroupName, TriggerSupportPackageRequest triggerSupportPackageRequest);
+
+ /**
+ * Triggers support package on the device.
+ *
+ * @param deviceName The device name.
+ * @param resourceGroupName The resource group name.
+ * @param triggerSupportPackageRequest The trigger support package request object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void triggerSupportPackage(
+ String deviceName,
+ String resourceGroupName,
+ TriggerSupportPackageRequest triggerSupportPackageRequest,
+ Context context);
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
index 7eb9230930692..277ab25413289 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/TriggersClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.TriggerInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in TriggersClient. */
public interface TriggersClient {
@@ -68,7 +69,7 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 specific trigger by name.
+ * @return a specific trigger by name along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
@@ -83,9 +84,9 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 trigger details.
+ * @return trigger details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, TriggerInner trigger);
@@ -100,9 +101,9 @@ SyncPoller, TriggerInner> beginCreateOrUpdate(
* @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 trigger details.
+ * @return trigger details along with {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, TriggerInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, TriggerInner trigger, Context context);
@@ -147,9 +148,9 @@ TriggerInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -162,9 +163,9 @@ TriggerInner createOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java
index 6fc2a24cfbdc3..37e03cb23f9bb 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/UsersClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.databoxedge.fluent.models.UserInner;
+import reactor.core.publisher.Mono;
/** An instance of this class provides access to all the operations defined in UsersClient. */
public interface UsersClient {
@@ -33,7 +34,7 @@ public interface UsersClient {
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
- * @param filter Specify $filter='UserType eq <type>' to filter on user type property.
+ * @param filter Specify $filter='Type eq <type>' to filter on user type property.
* @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.
@@ -68,7 +69,7 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 the properties of the specified user.
+ * @return the properties of the specified user along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String deviceName, String name, String resourceGroupName, Context context);
@@ -83,9 +84,10 @@ PagedIterable listByDataBoxEdgeDevice(
* @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 represents a user who has access to one or more shares on the Data Box Edge/Gateway device.
+ * @return represents a user who has access to one or more shares on the Data Box Edge/Gateway device along with
+ * {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, UserInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, UserInner user);
@@ -100,9 +102,10 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @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 represents a user who has access to one or more shares on the Data Box Edge/Gateway device.
+ * @return represents a user who has access to one or more shares on the Data Box Edge/Gateway device along with
+ * {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, UserInner> beginCreateOrUpdate(
String deviceName, String name, String resourceGroupName, UserInner user, Context context);
@@ -146,9 +149,9 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String deviceName, String name, String resourceGroupName);
/**
@@ -161,9 +164,9 @@ SyncPoller, UserInner> beginCreateOrUpdate(
* @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 the completion.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String deviceName, String name, String resourceGroupName, Context context);
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AddonInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AddonInner.java
new file mode 100644
index 0000000000000..f50c696381201
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AddonInner.java
@@ -0,0 +1,58 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ArcAddon;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.IoTAddon;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonSubTypes;
+import com.fasterxml.jackson.annotation.JsonTypeInfo;
+import com.fasterxml.jackson.annotation.JsonTypeName;
+
+/** Role Addon. */
+@JsonTypeInfo(
+ use = JsonTypeInfo.Id.NAME,
+ include = JsonTypeInfo.As.PROPERTY,
+ property = "kind",
+ defaultImpl = AddonInner.class)
+@JsonTypeName("Addon")
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "ArcForKubernetes", value = ArcAddon.class),
+ @JsonSubTypes.Type(name = "IotEdge", value = IoTAddon.class)
+})
+@Immutable
+public class AddonInner extends ArmBaseModel {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AddonInner.class);
+
+ /*
+ * Addon type
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the systemData property: Addon type.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java
index 1cf1a3fc5eccc..4c883578bc502 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.AlertErrorDetails;
import com.azure.resourcemanager.databoxedge.models.AlertSeverity;
@@ -16,52 +16,39 @@
import java.util.Map;
/** Alert on the data box edge/gateway device. */
-@JsonFlatten
@Immutable
-public class AlertInner extends ArmBaseModel {
+public final class AlertInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AlertInner.class);
/*
- * Alert title.
+ * Alert generated in the resource
*/
- @JsonProperty(value = "properties.title", access = JsonProperty.Access.WRITE_ONLY)
- private String title;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * Alert type.
+ * Properties of alert.
*/
- @JsonProperty(value = "properties.alertType", access = JsonProperty.Access.WRITE_ONLY)
- private String alertType;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertProperties innerProperties;
- /*
- * UTC time when the alert appeared.
- */
- @JsonProperty(value = "properties.appearedAtDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime appearedAtDateTime;
-
- /*
- * Alert recommendation.
- */
- @JsonProperty(value = "properties.recommendation", access = JsonProperty.Access.WRITE_ONLY)
- private String recommendation;
-
- /*
- * Severity of the alert.
- */
- @JsonProperty(value = "properties.severity", access = JsonProperty.Access.WRITE_ONLY)
- private AlertSeverity severity;
-
- /*
- * Error details of the alert.
+ /**
+ * Get the systemData property: Alert generated in the resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.errorDetails", access = JsonProperty.Access.WRITE_ONLY)
- private AlertErrorDetails errorDetails;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * Alert details.
+ /**
+ * Get the innerProperties property: Properties of alert.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.detailedInformation", access = JsonProperty.Access.WRITE_ONLY)
- private Map detailedInformation;
+ private AlertProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the title property: Alert title.
@@ -69,7 +56,7 @@ public class AlertInner extends ArmBaseModel {
* @return the title value.
*/
public String title() {
- return this.title;
+ return this.innerProperties() == null ? null : this.innerProperties().title();
}
/**
@@ -78,7 +65,7 @@ public String title() {
* @return the alertType value.
*/
public String alertType() {
- return this.alertType;
+ return this.innerProperties() == null ? null : this.innerProperties().alertType();
}
/**
@@ -87,7 +74,7 @@ public String alertType() {
* @return the appearedAtDateTime value.
*/
public OffsetDateTime appearedAtDateTime() {
- return this.appearedAtDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().appearedAtDateTime();
}
/**
@@ -96,7 +83,7 @@ public OffsetDateTime appearedAtDateTime() {
* @return the recommendation value.
*/
public String recommendation() {
- return this.recommendation;
+ return this.innerProperties() == null ? null : this.innerProperties().recommendation();
}
/**
@@ -105,7 +92,7 @@ public String recommendation() {
* @return the severity value.
*/
public AlertSeverity severity() {
- return this.severity;
+ return this.innerProperties() == null ? null : this.innerProperties().severity();
}
/**
@@ -114,7 +101,7 @@ public AlertSeverity severity() {
* @return the errorDetails value.
*/
public AlertErrorDetails errorDetails() {
- return this.errorDetails;
+ return this.innerProperties() == null ? null : this.innerProperties().errorDetails();
}
/**
@@ -123,7 +110,7 @@ public AlertErrorDetails errorDetails() {
* @return the detailedInformation value.
*/
public Map detailedInformation() {
- return this.detailedInformation;
+ return this.innerProperties() == null ? null : this.innerProperties().detailedInformation();
}
/**
@@ -134,8 +121,8 @@ public Map detailedInformation() {
@Override
public void validate() {
super.validate();
- if (errorDetails() != null) {
- errorDetails().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java
new file mode 100644
index 0000000000000..a1eaa4e0f6004
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/AlertProperties.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AlertErrorDetails;
+import com.azure.resourcemanager.databoxedge.models.AlertSeverity;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.Map;
+
+/** Properties of alert. */
+@Immutable
+public final class AlertProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(AlertProperties.class);
+
+ /*
+ * Alert title.
+ */
+ @JsonProperty(value = "title", access = JsonProperty.Access.WRITE_ONLY)
+ private String title;
+
+ /*
+ * Alert type.
+ */
+ @JsonProperty(value = "alertType", access = JsonProperty.Access.WRITE_ONLY)
+ private String alertType;
+
+ /*
+ * UTC time when the alert appeared.
+ */
+ @JsonProperty(value = "appearedAtDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime appearedAtDateTime;
+
+ /*
+ * Alert recommendation.
+ */
+ @JsonProperty(value = "recommendation", access = JsonProperty.Access.WRITE_ONLY)
+ private String recommendation;
+
+ /*
+ * Severity of the alert.
+ */
+ @JsonProperty(value = "severity", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertSeverity severity;
+
+ /*
+ * Error details of the alert.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private AlertErrorDetails errorDetails;
+
+ /*
+ * Alert details.
+ */
+ @JsonProperty(value = "detailedInformation", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map detailedInformation;
+
+ /**
+ * Get the title property: Alert title.
+ *
+ * @return the title value.
+ */
+ public String title() {
+ return this.title;
+ }
+
+ /**
+ * Get the alertType property: Alert type.
+ *
+ * @return the alertType value.
+ */
+ public String alertType() {
+ return this.alertType;
+ }
+
+ /**
+ * Get the appearedAtDateTime property: UTC time when the alert appeared.
+ *
+ * @return the appearedAtDateTime value.
+ */
+ public OffsetDateTime appearedAtDateTime() {
+ return this.appearedAtDateTime;
+ }
+
+ /**
+ * Get the recommendation property: Alert recommendation.
+ *
+ * @return the recommendation value.
+ */
+ public String recommendation() {
+ return this.recommendation;
+ }
+
+ /**
+ * Get the severity property: Severity of the alert.
+ *
+ * @return the severity value.
+ */
+ public AlertSeverity severity() {
+ return this.severity;
+ }
+
+ /**
+ * Get the errorDetails property: Error details of the alert.
+ *
+ * @return the errorDetails value.
+ */
+ public AlertErrorDetails errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Get the detailedInformation property: Alert details.
+ *
+ * @return the detailedInformation value.
+ */
+ public Map detailedInformation() {
+ return this.detailedInformation;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (errorDetails() != null) {
+ errorDetails().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java
new file mode 100644
index 0000000000000..7ea468ec51d6c
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ArcAddonProperties.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AddonState;
+import com.azure.resourcemanager.databoxedge.models.HostPlatformType;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Arc addon properties. */
+@Fluent
+public final class ArcAddonProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ArcAddonProperties.class);
+
+ /*
+ * Arc resource subscription Id
+ */
+ @JsonProperty(value = "subscriptionId", required = true)
+ private String subscriptionId;
+
+ /*
+ * Arc resource group name
+ */
+ @JsonProperty(value = "resourceGroupName", required = true)
+ private String resourceGroupName;
+
+ /*
+ * Arc resource Name
+ */
+ @JsonProperty(value = "resourceName", required = true)
+ private String resourceName;
+
+ /*
+ * Arc resource location
+ */
+ @JsonProperty(value = "resourceLocation", required = true)
+ private String resourceLocation;
+
+ /*
+ * Arc resource version
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * Host OS supported by the Arc addon.
+ */
+ @JsonProperty(value = "hostPlatform", access = JsonProperty.Access.WRITE_ONLY)
+ private PlatformType hostPlatform;
+
+ /*
+ * Platform where the runtime is hosted.
+ */
+ @JsonProperty(value = "hostPlatformType", access = JsonProperty.Access.WRITE_ONLY)
+ private HostPlatformType hostPlatformType;
+
+ /*
+ * Addon Provisioning State
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private AddonState provisioningState;
+
+ /**
+ * Get the subscriptionId property: Arc resource subscription Id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Arc resource subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /**
+ * Get the resourceGroupName property: Arc resource group name.
+ *
+ * @return the resourceGroupName value.
+ */
+ public String resourceGroupName() {
+ return this.resourceGroupName;
+ }
+
+ /**
+ * Set the resourceGroupName property: Arc resource group name.
+ *
+ * @param resourceGroupName the resourceGroupName value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceGroupName(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ /**
+ * Get the resourceName property: Arc resource Name.
+ *
+ * @return the resourceName value.
+ */
+ public String resourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * Set the resourceName property: Arc resource Name.
+ *
+ * @param resourceName the resourceName value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ return this;
+ }
+
+ /**
+ * Get the resourceLocation property: Arc resource location.
+ *
+ * @return the resourceLocation value.
+ */
+ public String resourceLocation() {
+ return this.resourceLocation;
+ }
+
+ /**
+ * Set the resourceLocation property: Arc resource location.
+ *
+ * @param resourceLocation the resourceLocation value to set.
+ * @return the ArcAddonProperties object itself.
+ */
+ public ArcAddonProperties withResourceLocation(String resourceLocation) {
+ this.resourceLocation = resourceLocation;
+ return this;
+ }
+
+ /**
+ * Get the version property: Arc resource version.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the hostPlatform property: Host OS supported by the Arc addon.
+ *
+ * @return the hostPlatform value.
+ */
+ public PlatformType hostPlatform() {
+ return this.hostPlatform;
+ }
+
+ /**
+ * Get the hostPlatformType property: Platform where the runtime is hosted.
+ *
+ * @return the hostPlatformType value.
+ */
+ public HostPlatformType hostPlatformType() {
+ return this.hostPlatformType;
+ }
+
+ /**
+ * Get the provisioningState property: Addon Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public AddonState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (subscriptionId() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property subscriptionId in model ArcAddonProperties"));
+ }
+ if (resourceGroupName() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property resourceGroupName in model ArcAddonProperties"));
+ }
+ if (resourceName() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property resourceName in model ArcAddonProperties"));
+ }
+ if (resourceLocation() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property resourceLocation in model ArcAddonProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java
index 3bd2fdf8f7c6e..6d144aaa46981 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.DayOfWeek;
@@ -14,34 +14,39 @@
import java.util.List;
/** The bandwidth schedule details. */
-@JsonFlatten
@Fluent
-public class BandwidthScheduleInner extends ArmBaseModel {
+public final class BandwidthScheduleInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(BandwidthScheduleInner.class);
/*
- * The start time of the schedule in UTC.
+ * Bandwidth object related to ASE resource
*/
- @JsonProperty(value = "properties.start", required = true)
- private String start;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * The stop time of the schedule in UTC.
+ * The properties of the bandwidth schedule.
*/
- @JsonProperty(value = "properties.stop", required = true)
- private String stop;
+ @JsonProperty(value = "properties", required = true)
+ private BandwidthScheduleProperties innerProperties = new BandwidthScheduleProperties();
- /*
- * The bandwidth rate in Mbps.
+ /**
+ * Get the systemData property: Bandwidth object related to ASE resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.rateInMbps", required = true)
- private int rateInMbps;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * The days of the week when this schedule is applicable.
+ /**
+ * Get the innerProperties property: The properties of the bandwidth schedule.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.days", required = true)
- private List days;
+ private BandwidthScheduleProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the start property: The start time of the schedule in UTC.
@@ -49,7 +54,7 @@ public class BandwidthScheduleInner extends ArmBaseModel {
* @return the start value.
*/
public String start() {
- return this.start;
+ return this.innerProperties() == null ? null : this.innerProperties().start();
}
/**
@@ -59,7 +64,10 @@ public String start() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withStart(String start) {
- this.start = start;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withStart(start);
return this;
}
@@ -69,7 +77,7 @@ public BandwidthScheduleInner withStart(String start) {
* @return the stop value.
*/
public String stop() {
- return this.stop;
+ return this.innerProperties() == null ? null : this.innerProperties().stop();
}
/**
@@ -79,7 +87,10 @@ public String stop() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withStop(String stop) {
- this.stop = stop;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withStop(stop);
return this;
}
@@ -89,7 +100,7 @@ public BandwidthScheduleInner withStop(String stop) {
* @return the rateInMbps value.
*/
public int rateInMbps() {
- return this.rateInMbps;
+ return this.innerProperties() == null ? 0 : this.innerProperties().rateInMbps();
}
/**
@@ -99,7 +110,10 @@ public int rateInMbps() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withRateInMbps(int rateInMbps) {
- this.rateInMbps = rateInMbps;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withRateInMbps(rateInMbps);
return this;
}
@@ -109,7 +123,7 @@ public BandwidthScheduleInner withRateInMbps(int rateInMbps) {
* @return the days value.
*/
public List days() {
- return this.days;
+ return this.innerProperties() == null ? null : this.innerProperties().days();
}
/**
@@ -119,7 +133,10 @@ public List days() {
* @return the BandwidthScheduleInner object itself.
*/
public BandwidthScheduleInner withDays(List days) {
- this.days = days;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new BandwidthScheduleProperties();
+ }
+ this.innerProperties().withDays(days);
return this;
}
@@ -131,20 +148,13 @@ public BandwidthScheduleInner withDays(List days) {
@Override
public void validate() {
super.validate();
- if (start() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property start in model BandwidthScheduleInner"));
- }
- if (stop() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property stop in model BandwidthScheduleInner"));
- }
- if (days() == null) {
+ if (innerProperties() == null) {
throw logger
.logExceptionAsError(
- new IllegalArgumentException("Missing required property days in model BandwidthScheduleInner"));
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model BandwidthScheduleInner"));
+ } else {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java
new file mode 100644
index 0000000000000..955337fa27354
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/BandwidthScheduleProperties.java
@@ -0,0 +1,148 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.DayOfWeek;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of the bandwidth schedule. */
+@Fluent
+public final class BandwidthScheduleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(BandwidthScheduleProperties.class);
+
+ /*
+ * The start time of the schedule in UTC.
+ */
+ @JsonProperty(value = "start", required = true)
+ private String start;
+
+ /*
+ * The stop time of the schedule in UTC.
+ */
+ @JsonProperty(value = "stop", required = true)
+ private String stop;
+
+ /*
+ * The bandwidth rate in Mbps.
+ */
+ @JsonProperty(value = "rateInMbps", required = true)
+ private int rateInMbps;
+
+ /*
+ * The days of the week when this schedule is applicable.
+ */
+ @JsonProperty(value = "days", required = true)
+ private List days;
+
+ /**
+ * Get the start property: The start time of the schedule in UTC.
+ *
+ * @return the start value.
+ */
+ public String start() {
+ return this.start;
+ }
+
+ /**
+ * Set the start property: The start time of the schedule in UTC.
+ *
+ * @param start the start value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withStart(String start) {
+ this.start = start;
+ return this;
+ }
+
+ /**
+ * Get the stop property: The stop time of the schedule in UTC.
+ *
+ * @return the stop value.
+ */
+ public String stop() {
+ return this.stop;
+ }
+
+ /**
+ * Set the stop property: The stop time of the schedule in UTC.
+ *
+ * @param stop the stop value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withStop(String stop) {
+ this.stop = stop;
+ return this;
+ }
+
+ /**
+ * Get the rateInMbps property: The bandwidth rate in Mbps.
+ *
+ * @return the rateInMbps value.
+ */
+ public int rateInMbps() {
+ return this.rateInMbps;
+ }
+
+ /**
+ * Set the rateInMbps property: The bandwidth rate in Mbps.
+ *
+ * @param rateInMbps the rateInMbps value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withRateInMbps(int rateInMbps) {
+ this.rateInMbps = rateInMbps;
+ return this;
+ }
+
+ /**
+ * Get the days property: The days of the week when this schedule is applicable.
+ *
+ * @return the days value.
+ */
+ public List days() {
+ return this.days;
+ }
+
+ /**
+ * Set the days property: The days of the week when this schedule is applicable.
+ *
+ * @param days the days value to set.
+ * @return the BandwidthScheduleProperties object itself.
+ */
+ public BandwidthScheduleProperties withDays(List days) {
+ this.days = days;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (start() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property start in model BandwidthScheduleProperties"));
+ }
+ if (stop() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property stop in model BandwidthScheduleProperties"));
+ }
+ if (days() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property days in model BandwidthScheduleProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java
new file mode 100644
index 0000000000000..3546a3c271973
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/CloudEdgeManagementRoleProperties.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** CloudEdgeManagement Role properties. */
+@Fluent
+public final class CloudEdgeManagementRoleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(CloudEdgeManagementRoleProperties.class);
+
+ /*
+ * Local Edge Management Status
+ */
+ @JsonProperty(value = "localManagementStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private RoleStatus localManagementStatus;
+
+ /*
+ * Edge Profile of the resource
+ */
+ @JsonProperty(value = "edgeProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private EdgeProfile edgeProfile;
+
+ /*
+ * Role status.
+ */
+ @JsonProperty(value = "roleStatus", required = true)
+ private RoleStatus roleStatus;
+
+ /**
+ * Get the localManagementStatus property: Local Edge Management Status.
+ *
+ * @return the localManagementStatus value.
+ */
+ public RoleStatus localManagementStatus() {
+ return this.localManagementStatus;
+ }
+
+ /**
+ * Get the edgeProfile property: Edge Profile of the resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Get the roleStatus property: Role status.
+ *
+ * @return the roleStatus value.
+ */
+ public RoleStatus roleStatus() {
+ return this.roleStatus;
+ }
+
+ /**
+ * Set the roleStatus property: Role status.
+ *
+ * @param roleStatus the roleStatus value to set.
+ * @return the CloudEdgeManagementRoleProperties object itself.
+ */
+ public CloudEdgeManagementRoleProperties withRoleStatus(RoleStatus roleStatus) {
+ this.roleStatus = roleStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ if (roleStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property roleStatus in model CloudEdgeManagementRoleProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java
index d4c2952aa00fd..c6728525b2f0f 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
@@ -16,34 +16,39 @@
import java.time.OffsetDateTime;
/** Represents a container on the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class ContainerInner extends ArmBaseModel {
+public final class ContainerInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerInner.class);
/*
- * Current status of the container.
+ * Container in DataBoxEdge Resource
*/
- @JsonProperty(value = "properties.containerStatus", access = JsonProperty.Access.WRITE_ONLY)
- private ContainerStatus containerStatus;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * DataFormat for Container
+ * The container properties.
*/
- @JsonProperty(value = "properties.dataFormat", required = true)
- private AzureContainerDataFormat dataFormat;
+ @JsonProperty(value = "properties", required = true)
+ private ContainerProperties innerProperties = new ContainerProperties();
- /*
- * Details of the refresh job on this container.
+ /**
+ * Get the systemData property: Container in DataBoxEdge Resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.refreshDetails", access = JsonProperty.Access.WRITE_ONLY)
- private RefreshDetails refreshDetails;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * The UTC time when container got created.
+ /**
+ * Get the innerProperties property: The container properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime createdDateTime;
+ private ContainerProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the containerStatus property: Current status of the container.
@@ -51,7 +56,7 @@ public class ContainerInner extends ArmBaseModel {
* @return the containerStatus value.
*/
public ContainerStatus containerStatus() {
- return this.containerStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().containerStatus();
}
/**
@@ -60,7 +65,7 @@ public ContainerStatus containerStatus() {
* @return the dataFormat value.
*/
public AzureContainerDataFormat dataFormat() {
- return this.dataFormat;
+ return this.innerProperties() == null ? null : this.innerProperties().dataFormat();
}
/**
@@ -70,7 +75,10 @@ public AzureContainerDataFormat dataFormat() {
* @return the ContainerInner object itself.
*/
public ContainerInner withDataFormat(AzureContainerDataFormat dataFormat) {
- this.dataFormat = dataFormat;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ContainerProperties();
+ }
+ this.innerProperties().withDataFormat(dataFormat);
return this;
}
@@ -80,7 +88,7 @@ public ContainerInner withDataFormat(AzureContainerDataFormat dataFormat) {
* @return the refreshDetails value.
*/
public RefreshDetails refreshDetails() {
- return this.refreshDetails;
+ return this.innerProperties() == null ? null : this.innerProperties().refreshDetails();
}
/**
@@ -89,7 +97,7 @@ public RefreshDetails refreshDetails() {
* @return the createdDateTime value.
*/
public OffsetDateTime createdDateTime() {
- return this.createdDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();
}
/**
@@ -100,13 +108,12 @@ public OffsetDateTime createdDateTime() {
@Override
public void validate() {
super.validate();
- if (dataFormat() == null) {
+ if (innerProperties() == null) {
throw logger
.logExceptionAsError(
- new IllegalArgumentException("Missing required property dataFormat in model ContainerInner"));
- }
- if (refreshDetails() != null) {
- refreshDetails().validate();
+ new IllegalArgumentException("Missing required property innerProperties in model ContainerInner"));
+ } else {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.java
new file mode 100644
index 0000000000000..8f084ac47736a
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ContainerProperties.java
@@ -0,0 +1,107 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AzureContainerDataFormat;
+import com.azure.resourcemanager.databoxedge.models.ContainerStatus;
+import com.azure.resourcemanager.databoxedge.models.RefreshDetails;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The container properties. */
+@Fluent
+public final class ContainerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ContainerProperties.class);
+
+ /*
+ * Current status of the container.
+ */
+ @JsonProperty(value = "containerStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private ContainerStatus containerStatus;
+
+ /*
+ * DataFormat for Container
+ */
+ @JsonProperty(value = "dataFormat", required = true)
+ private AzureContainerDataFormat dataFormat;
+
+ /*
+ * Details of the refresh job on this container.
+ */
+ @JsonProperty(value = "refreshDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private RefreshDetails refreshDetails;
+
+ /*
+ * The UTC time when container got created.
+ */
+ @JsonProperty(value = "createdDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime createdDateTime;
+
+ /**
+ * Get the containerStatus property: Current status of the container.
+ *
+ * @return the containerStatus value.
+ */
+ public ContainerStatus containerStatus() {
+ return this.containerStatus;
+ }
+
+ /**
+ * Get the dataFormat property: DataFormat for Container.
+ *
+ * @return the dataFormat value.
+ */
+ public AzureContainerDataFormat dataFormat() {
+ return this.dataFormat;
+ }
+
+ /**
+ * Set the dataFormat property: DataFormat for Container.
+ *
+ * @param dataFormat the dataFormat value to set.
+ * @return the ContainerProperties object itself.
+ */
+ public ContainerProperties withDataFormat(AzureContainerDataFormat dataFormat) {
+ this.dataFormat = dataFormat;
+ return this;
+ }
+
+ /**
+ * Get the refreshDetails property: Details of the refresh job on this container.
+ *
+ * @return the refreshDetails value.
+ */
+ public RefreshDetails refreshDetails() {
+ return this.refreshDetails;
+ }
+
+ /**
+ * Get the createdDateTime property: The UTC time when container got created.
+ *
+ * @return the createdDateTime value.
+ */
+ public OffsetDateTime createdDateTime() {
+ return this.createdDateTime;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dataFormat() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property dataFormat in model ContainerProperties"));
+ }
+ if (refreshDetails() != null) {
+ refreshDetails().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeInner.java
new file mode 100644
index 0000000000000..92f80a6868cfc
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeInner.java
@@ -0,0 +1,65 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** DC Access code in the case of Self Managed Shipping. */
+@Fluent
+public final class DCAccessCodeInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DCAccessCodeInner.class);
+
+ /*
+ * DCAccessCode properties.
+ */
+ @JsonProperty(value = "properties")
+ private DCAccessCodeProperties innerProperties;
+
+ /**
+ * Get the innerProperties property: DCAccessCode properties.
+ *
+ * @return the innerProperties value.
+ */
+ private DCAccessCodeProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @return the authCode value.
+ */
+ public String authCode() {
+ return this.innerProperties() == null ? null : this.innerProperties().authCode();
+ }
+
+ /**
+ * Set the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @param authCode the authCode value to set.
+ * @return the DCAccessCodeInner object itself.
+ */
+ public DCAccessCodeInner withAuthCode(String authCode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DCAccessCodeProperties();
+ }
+ this.innerProperties().withAuthCode(authCode);
+ 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/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java
new file mode 100644
index 0000000000000..07c5382a803b9
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DCAccessCodeProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** DCAccessCode Properties. */
+@Fluent
+public final class DCAccessCodeProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DCAccessCodeProperties.class);
+
+ /*
+ * DCAccess Code for the Self Managed shipment.
+ */
+ @JsonProperty(value = "authCode")
+ private String authCode;
+
+ /**
+ * Get the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @return the authCode value.
+ */
+ public String authCode() {
+ return this.authCode;
+ }
+
+ /**
+ * Set the authCode property: DCAccess Code for the Self Managed shipment.
+ *
+ * @param authCode the authCode value to set.
+ * @return the DCAccessCodeProperties object itself.
+ */
+ public DCAccessCodeProperties withAuthCode(String authCode) {
+ this.authCode = authCode;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
index e748fb08dbf44..1dd9344d425b2 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoInner.java
@@ -5,36 +5,33 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.KeyVaultSyncStatus;
+import com.azure.resourcemanager.databoxedge.models.Secret;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** The extended Info of the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
+public final class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceExtendedInfoInner.class);
/*
- * The digital signature of encrypted certificate.
+ * The extended info properties.
*/
- @JsonProperty(value = "properties.encryptionKeyThumbprint")
- private String encryptionKeyThumbprint;
+ @JsonProperty(value = "properties")
+ private DataBoxEdgeDeviceExtendedInfoProperties innerProperties;
- /*
- * The public part of the encryption certificate. Client uses this to
- * encrypt any secret.
- */
- @JsonProperty(value = "properties.encryptionKey")
- private String encryptionKey;
-
- /*
- * The Resource ID of the Resource.
+ /**
+ * Get the innerProperties property: The extended info properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.resourceKey", access = JsonProperty.Access.WRITE_ONLY)
- private String resourceKey;
+ private DataBoxEdgeDeviceExtendedInfoProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
@@ -42,7 +39,7 @@ public class DataBoxEdgeDeviceExtendedInfoInner extends ArmBaseModel {
* @return the encryptionKeyThumbprint value.
*/
public String encryptionKeyThumbprint() {
- return this.encryptionKeyThumbprint;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionKeyThumbprint();
}
/**
@@ -52,7 +49,10 @@ public String encryptionKeyThumbprint() {
* @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
*/
public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKeyThumbprint(String encryptionKeyThumbprint) {
- this.encryptionKeyThumbprint = encryptionKeyThumbprint;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withEncryptionKeyThumbprint(encryptionKeyThumbprint);
return this;
}
@@ -63,7 +63,7 @@ public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKeyThumbprint(String enc
* @return the encryptionKey value.
*/
public String encryptionKey() {
- return this.encryptionKey;
+ return this.innerProperties() == null ? null : this.innerProperties().encryptionKey();
}
/**
@@ -74,7 +74,10 @@ public String encryptionKey() {
* @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
*/
public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKey(String encryptionKey) {
- this.encryptionKey = encryptionKey;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withEncryptionKey(encryptionKey);
return this;
}
@@ -84,7 +87,131 @@ public DataBoxEdgeDeviceExtendedInfoInner withEncryptionKey(String encryptionKey
* @return the resourceKey value.
*/
public String resourceKey() {
- return this.resourceKey;
+ return this.innerProperties() == null ? null : this.innerProperties().resourceKey();
+ }
+
+ /**
+ * Get the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @return the clientSecretStoreId value.
+ */
+ public String clientSecretStoreId() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientSecretStoreId();
+ }
+
+ /**
+ * Set the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @param clientSecretStoreId the clientSecretStoreId value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withClientSecretStoreId(String clientSecretStoreId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withClientSecretStoreId(clientSecretStoreId);
+ return this;
+ }
+
+ /**
+ * Get the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @return the clientSecretStoreUrl value.
+ */
+ public String clientSecretStoreUrl() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientSecretStoreUrl();
+ }
+
+ /**
+ * Set the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @param clientSecretStoreUrl the clientSecretStoreUrl value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withClientSecretStoreUrl(String clientSecretStoreUrl) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withClientSecretStoreUrl(clientSecretStoreUrl);
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyName value.
+ */
+ public String channelIntegrityKeyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().channelIntegrityKeyName();
+ }
+
+ /**
+ * Set the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyName the channelIntegrityKeyName value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withChannelIntegrityKeyName(String channelIntegrityKeyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withChannelIntegrityKeyName(channelIntegrityKeyName);
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyVersion value.
+ */
+ public String channelIntegrityKeyVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().channelIntegrityKeyVersion();
+ }
+
+ /**
+ * Set the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyVersion the channelIntegrityKeyVersion value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withChannelIntegrityKeyVersion(String channelIntegrityKeyVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withChannelIntegrityKeyVersion(channelIntegrityKeyVersion);
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @return the keyVaultSyncStatus value.
+ */
+ public KeyVaultSyncStatus keyVaultSyncStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyVaultSyncStatus();
+ }
+
+ /**
+ * Set the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @param keyVaultSyncStatus the keyVaultSyncStatus value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoInner object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoInner withKeyVaultSyncStatus(KeyVaultSyncStatus keyVaultSyncStatus) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceExtendedInfoProperties();
+ }
+ this.innerProperties().withKeyVaultSyncStatus(keyVaultSyncStatus);
+ return this;
+ }
+
+ /**
+ * Get the deviceSecrets property: Device secrets, will be returned only with ODataFilter $expand=deviceSecrets.
+ *
+ * @return the deviceSecrets value.
+ */
+ public Map deviceSecrets() {
+ return this.innerProperties() == null ? null : this.innerProperties().deviceSecrets();
}
/**
@@ -95,5 +222,8 @@ public String resourceKey() {
@Override
public void validate() {
super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java
new file mode 100644
index 0000000000000..9ec99b054b1ca
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceExtendedInfoProperties.java
@@ -0,0 +1,255 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.KeyVaultSyncStatus;
+import com.azure.resourcemanager.databoxedge.models.Secret;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** The properties of the Data Box Edge/Gateway device extended info. */
+@Fluent
+public final class DataBoxEdgeDeviceExtendedInfoProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceExtendedInfoProperties.class);
+
+ /*
+ * The digital signature of encrypted certificate.
+ */
+ @JsonProperty(value = "encryptionKeyThumbprint")
+ private String encryptionKeyThumbprint;
+
+ /*
+ * The public part of the encryption certificate. Client uses this to
+ * encrypt any secret.
+ */
+ @JsonProperty(value = "encryptionKey")
+ private String encryptionKey;
+
+ /*
+ * The Resource ID of the Resource.
+ */
+ @JsonProperty(value = "resourceKey", access = JsonProperty.Access.WRITE_ONLY)
+ private String resourceKey;
+
+ /*
+ * The Key Vault ARM Id for client secrets
+ */
+ @JsonProperty(value = "clientSecretStoreId")
+ private String clientSecretStoreId;
+
+ /*
+ * The url to access the Client Key Vault
+ */
+ @JsonProperty(value = "clientSecretStoreUrl")
+ private String clientSecretStoreUrl;
+
+ /*
+ * The name of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "channelIntegrityKeyName")
+ private String channelIntegrityKeyName;
+
+ /*
+ * The version of Channel Integrity Key stored in the Client Key Vault
+ */
+ @JsonProperty(value = "channelIntegrityKeyVersion")
+ private String channelIntegrityKeyVersion;
+
+ /*
+ * Key vault sync status
+ */
+ @JsonProperty(value = "keyVaultSyncStatus")
+ private KeyVaultSyncStatus keyVaultSyncStatus;
+
+ /*
+ * Device secrets, will be returned only with ODataFilter
+ * $expand=deviceSecrets
+ */
+ @JsonProperty(value = "deviceSecrets", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map deviceSecrets;
+
+ /**
+ * Get the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
+ *
+ * @return the encryptionKeyThumbprint value.
+ */
+ public String encryptionKeyThumbprint() {
+ return this.encryptionKeyThumbprint;
+ }
+
+ /**
+ * Set the encryptionKeyThumbprint property: The digital signature of encrypted certificate.
+ *
+ * @param encryptionKeyThumbprint the encryptionKeyThumbprint value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withEncryptionKeyThumbprint(String encryptionKeyThumbprint) {
+ this.encryptionKeyThumbprint = encryptionKeyThumbprint;
+ return this;
+ }
+
+ /**
+ * Get the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
+ * secret.
+ *
+ * @return the encryptionKey value.
+ */
+ public String encryptionKey() {
+ return this.encryptionKey;
+ }
+
+ /**
+ * Set the encryptionKey property: The public part of the encryption certificate. Client uses this to encrypt any
+ * secret.
+ *
+ * @param encryptionKey the encryptionKey value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withEncryptionKey(String encryptionKey) {
+ this.encryptionKey = encryptionKey;
+ return this;
+ }
+
+ /**
+ * Get the resourceKey property: The Resource ID of the Resource.
+ *
+ * @return the resourceKey value.
+ */
+ public String resourceKey() {
+ return this.resourceKey;
+ }
+
+ /**
+ * Get the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @return the clientSecretStoreId value.
+ */
+ public String clientSecretStoreId() {
+ return this.clientSecretStoreId;
+ }
+
+ /**
+ * Set the clientSecretStoreId property: The Key Vault ARM Id for client secrets.
+ *
+ * @param clientSecretStoreId the clientSecretStoreId value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withClientSecretStoreId(String clientSecretStoreId) {
+ this.clientSecretStoreId = clientSecretStoreId;
+ return this;
+ }
+
+ /**
+ * Get the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @return the clientSecretStoreUrl value.
+ */
+ public String clientSecretStoreUrl() {
+ return this.clientSecretStoreUrl;
+ }
+
+ /**
+ * Set the clientSecretStoreUrl property: The url to access the Client Key Vault.
+ *
+ * @param clientSecretStoreUrl the clientSecretStoreUrl value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withClientSecretStoreUrl(String clientSecretStoreUrl) {
+ this.clientSecretStoreUrl = clientSecretStoreUrl;
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyName value.
+ */
+ public String channelIntegrityKeyName() {
+ return this.channelIntegrityKeyName;
+ }
+
+ /**
+ * Set the channelIntegrityKeyName property: The name of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyName the channelIntegrityKeyName value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withChannelIntegrityKeyName(String channelIntegrityKeyName) {
+ this.channelIntegrityKeyName = channelIntegrityKeyName;
+ return this;
+ }
+
+ /**
+ * Get the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @return the channelIntegrityKeyVersion value.
+ */
+ public String channelIntegrityKeyVersion() {
+ return this.channelIntegrityKeyVersion;
+ }
+
+ /**
+ * Set the channelIntegrityKeyVersion property: The version of Channel Integrity Key stored in the Client Key Vault.
+ *
+ * @param channelIntegrityKeyVersion the channelIntegrityKeyVersion value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withChannelIntegrityKeyVersion(String channelIntegrityKeyVersion) {
+ this.channelIntegrityKeyVersion = channelIntegrityKeyVersion;
+ return this;
+ }
+
+ /**
+ * Get the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @return the keyVaultSyncStatus value.
+ */
+ public KeyVaultSyncStatus keyVaultSyncStatus() {
+ return this.keyVaultSyncStatus;
+ }
+
+ /**
+ * Set the keyVaultSyncStatus property: Key vault sync status.
+ *
+ * @param keyVaultSyncStatus the keyVaultSyncStatus value to set.
+ * @return the DataBoxEdgeDeviceExtendedInfoProperties object itself.
+ */
+ public DataBoxEdgeDeviceExtendedInfoProperties withKeyVaultSyncStatus(KeyVaultSyncStatus keyVaultSyncStatus) {
+ this.keyVaultSyncStatus = keyVaultSyncStatus;
+ return this;
+ }
+
+ /**
+ * Get the deviceSecrets property: Device secrets, will be returned only with ODataFilter $expand=deviceSecrets.
+ *
+ * @return the deviceSecrets value.
+ */
+ public Map deviceSecrets() {
+ return this.deviceSecrets;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (deviceSecrets() != null) {
+ deviceSecrets()
+ .values()
+ .forEach(
+ e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
index 37f660791285d..8d7869f8c760e 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceInner.java
@@ -5,22 +5,27 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceKind;
import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceStatus;
+import com.azure.resourcemanager.databoxedge.models.DataResidency;
import com.azure.resourcemanager.databoxedge.models.DeviceType;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.ResourceIdentity;
+import com.azure.resourcemanager.databoxedge.models.ResourceMoveDetails;
import com.azure.resourcemanager.databoxedge.models.RoleTypes;
import com.azure.resourcemanager.databoxedge.models.Sku;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** The Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class DataBoxEdgeDeviceInner extends ArmBaseModel {
+public final class DataBoxEdgeDeviceInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceInner.class);
/*
@@ -38,6 +43,7 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
* view and group this device (across resource groups).
*/
@JsonProperty(value = "tags")
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map tags;
/*
@@ -53,88 +59,28 @@ public class DataBoxEdgeDeviceInner extends ArmBaseModel {
private String etag;
/*
- * The status of the Data Box Edge/Gateway device.
+ * Msi identity of the resource
*/
- @JsonProperty(value = "properties.dataBoxEdgeDeviceStatus")
- private DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus;
+ @JsonProperty(value = "identity")
+ private ResourceIdentity identity;
/*
- * The Serial Number of Data Box Edge/Gateway device.
+ * The kind of the device.
*/
- @JsonProperty(value = "properties.serialNumber", access = JsonProperty.Access.WRITE_ONLY)
- private String serialNumber;
+ @JsonProperty(value = "kind")
+ private DataBoxEdgeDeviceKind kind;
/*
- * The Description of the Data Box Edge/Gateway device.
+ * DataBoxEdge Resource
*/
- @JsonProperty(value = "properties.description")
- private String description;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * The description of the Data Box Edge/Gateway device model.
+ * The properties of the Data Box Edge/Gateway device.
*/
- @JsonProperty(value = "properties.modelDescription")
- private String modelDescription;
-
- /*
- * The type of the Data Box Edge/Gateway device.
- */
- @JsonProperty(value = "properties.deviceType", access = JsonProperty.Access.WRITE_ONLY)
- private DeviceType deviceType;
-
- /*
- * The Data Box Edge/Gateway device name.
- */
- @JsonProperty(value = "properties.friendlyName")
- private String friendlyName;
-
- /*
- * The Data Box Edge/Gateway device culture.
- */
- @JsonProperty(value = "properties.culture", access = JsonProperty.Access.WRITE_ONLY)
- private String culture;
-
- /*
- * The Data Box Edge/Gateway device model.
- */
- @JsonProperty(value = "properties.deviceModel", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceModel;
-
- /*
- * The Data Box Edge/Gateway device software version.
- */
- @JsonProperty(value = "properties.deviceSoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceSoftwareVersion;
-
- /*
- * The Data Box Edge/Gateway device local capacity in MB.
- */
- @JsonProperty(value = "properties.deviceLocalCapacity", access = JsonProperty.Access.WRITE_ONLY)
- private Long deviceLocalCapacity;
-
- /*
- * The Data Box Edge/Gateway device timezone.
- */
- @JsonProperty(value = "properties.timeZone", access = JsonProperty.Access.WRITE_ONLY)
- private String timeZone;
-
- /*
- * The device software version number of the device (eg: 1.2.18105.6).
- */
- @JsonProperty(value = "properties.deviceHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String deviceHcsVersion;
-
- /*
- * Type of compute roles configured.
- */
- @JsonProperty(value = "properties.configuredRoleTypes", access = JsonProperty.Access.WRITE_ONLY)
- private List configuredRoleTypes;
-
- /*
- * The number of nodes in the cluster.
- */
- @JsonProperty(value = "properties.nodeCount", access = JsonProperty.Access.WRITE_ONLY)
- private Integer nodeCount;
+ @JsonProperty(value = "properties")
+ private DataBoxEdgeDeviceProperties innerProperties;
/**
* Get the location property: The location of the device. This is a supported and registered Azure geographical
@@ -222,13 +168,80 @@ public DataBoxEdgeDeviceInner withEtag(String etag) {
return this;
}
+ /**
+ * Get the identity property: Msi identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public ResourceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Msi identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the DataBoxEdgeDeviceInner object itself.
+ */
+ public DataBoxEdgeDeviceInner withIdentity(ResourceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the kind property: The kind of the device.
+ *
+ * @return the kind value.
+ */
+ public DataBoxEdgeDeviceKind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: The kind of the device.
+ *
+ * @param kind the kind value to set.
+ * @return the DataBoxEdgeDeviceInner object itself.
+ */
+ public DataBoxEdgeDeviceInner withKind(DataBoxEdgeDeviceKind kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: DataBoxEdge Resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: The properties of the Data Box Edge/Gateway device.
+ *
+ * @return the innerProperties value.
+ */
+ private DataBoxEdgeDeviceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: DataBoxEdge Device Properties.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemDataPropertiesSystemData() {
+ return this.innerProperties() == null ? null : this.innerProperties().systemData();
+ }
+
/**
* Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
*
* @return the dataBoxEdgeDeviceStatus value.
*/
public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
- return this.dataBoxEdgeDeviceStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().dataBoxEdgeDeviceStatus();
}
/**
@@ -238,7 +251,10 @@ public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
* @return the DataBoxEdgeDeviceInner object itself.
*/
public DataBoxEdgeDeviceInner withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus) {
- this.dataBoxEdgeDeviceStatus = dataBoxEdgeDeviceStatus;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceProperties();
+ }
+ this.innerProperties().withDataBoxEdgeDeviceStatus(dataBoxEdgeDeviceStatus);
return this;
}
@@ -248,7 +264,7 @@ public DataBoxEdgeDeviceInner withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatu
* @return the serialNumber value.
*/
public String serialNumber() {
- return this.serialNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().serialNumber();
}
/**
@@ -257,18 +273,7 @@ public String serialNumber() {
* @return the description value.
*/
public String description() {
- return this.description;
- }
-
- /**
- * Set the description property: The Description of the Data Box Edge/Gateway device.
- *
- * @param description the description value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
- */
- public DataBoxEdgeDeviceInner withDescription(String description) {
- this.description = description;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -277,18 +282,7 @@ public DataBoxEdgeDeviceInner withDescription(String description) {
* @return the modelDescription value.
*/
public String modelDescription() {
- return this.modelDescription;
- }
-
- /**
- * Set the modelDescription property: The description of the Data Box Edge/Gateway device model.
- *
- * @param modelDescription the modelDescription value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
- */
- public DataBoxEdgeDeviceInner withModelDescription(String modelDescription) {
- this.modelDescription = modelDescription;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().modelDescription();
}
/**
@@ -297,7 +291,7 @@ public DataBoxEdgeDeviceInner withModelDescription(String modelDescription) {
* @return the deviceType value.
*/
public DeviceType deviceType() {
- return this.deviceType;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceType();
}
/**
@@ -306,18 +300,7 @@ public DeviceType deviceType() {
* @return the friendlyName value.
*/
public String friendlyName() {
- return this.friendlyName;
- }
-
- /**
- * Set the friendlyName property: The Data Box Edge/Gateway device name.
- *
- * @param friendlyName the friendlyName value to set.
- * @return the DataBoxEdgeDeviceInner object itself.
- */
- public DataBoxEdgeDeviceInner withFriendlyName(String friendlyName) {
- this.friendlyName = friendlyName;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
}
/**
@@ -326,7 +309,7 @@ public DataBoxEdgeDeviceInner withFriendlyName(String friendlyName) {
* @return the culture value.
*/
public String culture() {
- return this.culture;
+ return this.innerProperties() == null ? null : this.innerProperties().culture();
}
/**
@@ -335,7 +318,7 @@ public String culture() {
* @return the deviceModel value.
*/
public String deviceModel() {
- return this.deviceModel;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceModel();
}
/**
@@ -344,7 +327,7 @@ public String deviceModel() {
* @return the deviceSoftwareVersion value.
*/
public String deviceSoftwareVersion() {
- return this.deviceSoftwareVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceSoftwareVersion();
}
/**
@@ -353,7 +336,7 @@ public String deviceSoftwareVersion() {
* @return the deviceLocalCapacity value.
*/
public Long deviceLocalCapacity() {
- return this.deviceLocalCapacity;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceLocalCapacity();
}
/**
@@ -362,7 +345,7 @@ public Long deviceLocalCapacity() {
* @return the timeZone value.
*/
public String timeZone() {
- return this.timeZone;
+ return this.innerProperties() == null ? null : this.innerProperties().timeZone();
}
/**
@@ -371,7 +354,7 @@ public String timeZone() {
* @return the deviceHcsVersion value.
*/
public String deviceHcsVersion() {
- return this.deviceHcsVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceHcsVersion();
}
/**
@@ -380,7 +363,7 @@ public String deviceHcsVersion() {
* @return the configuredRoleTypes value.
*/
public List configuredRoleTypes() {
- return this.configuredRoleTypes;
+ return this.innerProperties() == null ? null : this.innerProperties().configuredRoleTypes();
}
/**
@@ -389,7 +372,48 @@ public List configuredRoleTypes() {
* @return the nodeCount value.
*/
public Integer nodeCount() {
- return this.nodeCount;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeCount();
+ }
+
+ /**
+ * Get the resourceMoveDetails property: The details of the move operation on this resource.
+ *
+ * @return the resourceMoveDetails value.
+ */
+ public ResourceMoveDetails resourceMoveDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().resourceMoveDetails();
+ }
+
+ /**
+ * Get the edgeProfile property: The details of Edge Profile for this resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().edgeProfile();
+ }
+
+ /**
+ * Get the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @return the dataResidency value.
+ */
+ public DataResidency dataResidency() {
+ return this.innerProperties() == null ? null : this.innerProperties().dataResidency();
+ }
+
+ /**
+ * Set the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @param dataResidency the dataResidency value to set.
+ * @return the DataBoxEdgeDeviceInner object itself.
+ */
+ public DataBoxEdgeDeviceInner withDataResidency(DataResidency dataResidency) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DataBoxEdgeDeviceProperties();
+ }
+ this.innerProperties().withDataResidency(dataResidency);
+ return this;
}
/**
@@ -408,5 +432,11 @@ public void validate() {
if (sku() != null) {
sku().validate();
}
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java
new file mode 100644
index 0000000000000..370a74986b6b4
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDeviceProperties.java
@@ -0,0 +1,333 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.DataBoxEdgeDeviceStatus;
+import com.azure.resourcemanager.databoxedge.models.DataResidency;
+import com.azure.resourcemanager.databoxedge.models.DeviceType;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfile;
+import com.azure.resourcemanager.databoxedge.models.ResourceMoveDetails;
+import com.azure.resourcemanager.databoxedge.models.RoleTypes;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of the Data Box Edge/Gateway device. */
+@Fluent
+public final class DataBoxEdgeDeviceProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDeviceProperties.class);
+
+ /*
+ * DataBoxEdge Device Properties
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The status of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "dataBoxEdgeDeviceStatus")
+ private DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus;
+
+ /*
+ * The Serial Number of Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "serialNumber", access = JsonProperty.Access.WRITE_ONLY)
+ private String serialNumber;
+
+ /*
+ * The Description of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
+ private String description;
+
+ /*
+ * The description of the Data Box Edge/Gateway device model.
+ */
+ @JsonProperty(value = "modelDescription", access = JsonProperty.Access.WRITE_ONLY)
+ private String modelDescription;
+
+ /*
+ * The type of the Data Box Edge/Gateway device.
+ */
+ @JsonProperty(value = "deviceType", access = JsonProperty.Access.WRITE_ONLY)
+ private DeviceType deviceType;
+
+ /*
+ * The Data Box Edge/Gateway device name.
+ */
+ @JsonProperty(value = "friendlyName", access = JsonProperty.Access.WRITE_ONLY)
+ private String friendlyName;
+
+ /*
+ * The Data Box Edge/Gateway device culture.
+ */
+ @JsonProperty(value = "culture", access = JsonProperty.Access.WRITE_ONLY)
+ private String culture;
+
+ /*
+ * The Data Box Edge/Gateway device model.
+ */
+ @JsonProperty(value = "deviceModel", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceModel;
+
+ /*
+ * The Data Box Edge/Gateway device software version.
+ */
+ @JsonProperty(value = "deviceSoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceSoftwareVersion;
+
+ /*
+ * The Data Box Edge/Gateway device local capacity in MB.
+ */
+ @JsonProperty(value = "deviceLocalCapacity", access = JsonProperty.Access.WRITE_ONLY)
+ private Long deviceLocalCapacity;
+
+ /*
+ * The Data Box Edge/Gateway device timezone.
+ */
+ @JsonProperty(value = "timeZone", access = JsonProperty.Access.WRITE_ONLY)
+ private String timeZone;
+
+ /*
+ * The device software version number of the device (eg: 1.2.18105.6).
+ */
+ @JsonProperty(value = "deviceHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String deviceHcsVersion;
+
+ /*
+ * Type of compute roles configured.
+ */
+ @JsonProperty(value = "configuredRoleTypes", access = JsonProperty.Access.WRITE_ONLY)
+ private List configuredRoleTypes;
+
+ /*
+ * The number of nodes in the cluster.
+ */
+ @JsonProperty(value = "nodeCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer nodeCount;
+
+ /*
+ * The details of the move operation on this resource.
+ */
+ @JsonProperty(value = "resourceMoveDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private ResourceMoveDetails resourceMoveDetails;
+
+ /*
+ * The details of Edge Profile for this resource
+ */
+ @JsonProperty(value = "edgeProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private EdgeProfile edgeProfile;
+
+ /*
+ * The details of data-residency related properties for this resource
+ */
+ @JsonProperty(value = "dataResidency")
+ private DataResidency dataResidency;
+
+ /**
+ * Get the systemData property: DataBoxEdge Device Properties.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
+ *
+ * @return the dataBoxEdgeDeviceStatus value.
+ */
+ public DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus() {
+ return this.dataBoxEdgeDeviceStatus;
+ }
+
+ /**
+ * Set the dataBoxEdgeDeviceStatus property: The status of the Data Box Edge/Gateway device.
+ *
+ * @param dataBoxEdgeDeviceStatus the dataBoxEdgeDeviceStatus value to set.
+ * @return the DataBoxEdgeDeviceProperties object itself.
+ */
+ public DataBoxEdgeDeviceProperties withDataBoxEdgeDeviceStatus(DataBoxEdgeDeviceStatus dataBoxEdgeDeviceStatus) {
+ this.dataBoxEdgeDeviceStatus = dataBoxEdgeDeviceStatus;
+ return this;
+ }
+
+ /**
+ * Get the serialNumber property: The Serial Number of Data Box Edge/Gateway device.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.serialNumber;
+ }
+
+ /**
+ * Get the description property: The Description of the Data Box Edge/Gateway device.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the modelDescription property: The description of the Data Box Edge/Gateway device model.
+ *
+ * @return the modelDescription value.
+ */
+ public String modelDescription() {
+ return this.modelDescription;
+ }
+
+ /**
+ * Get the deviceType property: The type of the Data Box Edge/Gateway device.
+ *
+ * @return the deviceType value.
+ */
+ public DeviceType deviceType() {
+ return this.deviceType;
+ }
+
+ /**
+ * Get the friendlyName property: The Data Box Edge/Gateway device name.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.friendlyName;
+ }
+
+ /**
+ * Get the culture property: The Data Box Edge/Gateway device culture.
+ *
+ * @return the culture value.
+ */
+ public String culture() {
+ return this.culture;
+ }
+
+ /**
+ * Get the deviceModel property: The Data Box Edge/Gateway device model.
+ *
+ * @return the deviceModel value.
+ */
+ public String deviceModel() {
+ return this.deviceModel;
+ }
+
+ /**
+ * Get the deviceSoftwareVersion property: The Data Box Edge/Gateway device software version.
+ *
+ * @return the deviceSoftwareVersion value.
+ */
+ public String deviceSoftwareVersion() {
+ return this.deviceSoftwareVersion;
+ }
+
+ /**
+ * Get the deviceLocalCapacity property: The Data Box Edge/Gateway device local capacity in MB.
+ *
+ * @return the deviceLocalCapacity value.
+ */
+ public Long deviceLocalCapacity() {
+ return this.deviceLocalCapacity;
+ }
+
+ /**
+ * Get the timeZone property: The Data Box Edge/Gateway device timezone.
+ *
+ * @return the timeZone value.
+ */
+ public String timeZone() {
+ return this.timeZone;
+ }
+
+ /**
+ * Get the deviceHcsVersion property: The device software version number of the device (eg: 1.2.18105.6).
+ *
+ * @return the deviceHcsVersion value.
+ */
+ public String deviceHcsVersion() {
+ return this.deviceHcsVersion;
+ }
+
+ /**
+ * Get the configuredRoleTypes property: Type of compute roles configured.
+ *
+ * @return the configuredRoleTypes value.
+ */
+ public List configuredRoleTypes() {
+ return this.configuredRoleTypes;
+ }
+
+ /**
+ * Get the nodeCount property: The number of nodes in the cluster.
+ *
+ * @return the nodeCount value.
+ */
+ public Integer nodeCount() {
+ return this.nodeCount;
+ }
+
+ /**
+ * Get the resourceMoveDetails property: The details of the move operation on this resource.
+ *
+ * @return the resourceMoveDetails value.
+ */
+ public ResourceMoveDetails resourceMoveDetails() {
+ return this.resourceMoveDetails;
+ }
+
+ /**
+ * Get the edgeProfile property: The details of Edge Profile for this resource.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfile edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Get the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @return the dataResidency value.
+ */
+ public DataResidency dataResidency() {
+ return this.dataResidency;
+ }
+
+ /**
+ * Set the dataResidency property: The details of data-residency related properties for this resource.
+ *
+ * @param dataResidency the dataResidency value to set.
+ * @return the DataBoxEdgeDeviceProperties object itself.
+ */
+ public DataBoxEdgeDeviceProperties withDataResidency(DataResidency dataResidency) {
+ this.dataResidency = dataResidency;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (resourceMoveDetails() != null) {
+ resourceMoveDetails().validate();
+ }
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ if (dataResidency() != null) {
+ dataResidency().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java
new file mode 100644
index 0000000000000..eed796a4e2427
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeDevicePropertiesPatch.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.EdgeProfilePatch;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The Data Box Edge/Gateway device properties patch. */
+@Fluent
+public final class DataBoxEdgeDevicePropertiesPatch {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeDevicePropertiesPatch.class);
+
+ /*
+ * Edge Profile property of the Data Box Edge/Gateway device
+ */
+ @JsonProperty(value = "edgeProfile")
+ private EdgeProfilePatch edgeProfile;
+
+ /**
+ * Get the edgeProfile property: Edge Profile property of the Data Box Edge/Gateway device.
+ *
+ * @return the edgeProfile value.
+ */
+ public EdgeProfilePatch edgeProfile() {
+ return this.edgeProfile;
+ }
+
+ /**
+ * Set the edgeProfile property: Edge Profile property of the Data Box Edge/Gateway device.
+ *
+ * @param edgeProfile the edgeProfile value to set.
+ * @return the DataBoxEdgeDevicePropertiesPatch object itself.
+ */
+ public DataBoxEdgeDevicePropertiesPatch withEdgeProfile(EdgeProfilePatch edgeProfile) {
+ this.edgeProfile = edgeProfile;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (edgeProfile() != null) {
+ edgeProfile().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ResourceTypeSkuInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeSkuInner.java
similarity index 54%
rename from sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ResourceTypeSkuInner.java
rename to sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeSkuInner.java
index 7cdc781fa7801..09fc5aaa45a13 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ResourceTypeSkuInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DataBoxEdgeSkuInner.java
@@ -6,64 +6,74 @@
import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ShipmentType;
+import com.azure.resourcemanager.databoxedge.models.SkuAvailability;
+import com.azure.resourcemanager.databoxedge.models.SkuCapability;
import com.azure.resourcemanager.databoxedge.models.SkuCost;
import com.azure.resourcemanager.databoxedge.models.SkuLocationInfo;
import com.azure.resourcemanager.databoxedge.models.SkuName;
-import com.azure.resourcemanager.databoxedge.models.SkuRestriction;
+import com.azure.resourcemanager.databoxedge.models.SkuSignupOption;
import com.azure.resourcemanager.databoxedge.models.SkuTier;
+import com.azure.resourcemanager.databoxedge.models.SkuVersion;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
-/** SkuInformation object. */
+/** The Sku information. */
@Immutable
-public final class ResourceTypeSkuInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceTypeSkuInner.class);
+public final class DataBoxEdgeSkuInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DataBoxEdgeSkuInner.class);
/*
- * The type of the resource
+ * The type of the resource.
*/
@JsonProperty(value = "resourceType", access = JsonProperty.Access.WRITE_ONLY)
private String resourceType;
/*
- * The Sku name
+ * The Sku name.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private SkuName name;
/*
- * The Sku kind
+ * The Sku kind.
*/
@JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
private String kind;
/*
- * The Sku tier
+ * The Sku tier.
*/
@JsonProperty(value = "tier", access = JsonProperty.Access.WRITE_ONLY)
private SkuTier tier;
/*
- * The Sku family
+ * The Sku kind.
+ */
+ @JsonProperty(value = "size", access = JsonProperty.Access.WRITE_ONLY)
+ private String size;
+
+ /*
+ * The Sku family.
*/
@JsonProperty(value = "family", access = JsonProperty.Access.WRITE_ONLY)
private String family;
/*
- * Availability of the SKU for the region
+ * Availability of the Sku for the region.
*/
@JsonProperty(value = "locations", access = JsonProperty.Access.WRITE_ONLY)
private List locations;
/*
- * The API versions in which SKU is available
+ * The API versions in which Sku is available.
*/
@JsonProperty(value = "apiVersions", access = JsonProperty.Access.WRITE_ONLY)
private List apiVersions;
/*
- * Availability of the SKU for the location/zone
+ * Availability of the Sku for the location/zone/site.
*/
@JsonProperty(value = "locationInfo", access = JsonProperty.Access.WRITE_ONLY)
private List locationInfo;
@@ -75,10 +85,34 @@ public final class ResourceTypeSkuInner {
private List costs;
/*
- * Restrictions of the SKU availability.
+ * Sku can be signed up by customer or not.
+ */
+ @JsonProperty(value = "signupOption", access = JsonProperty.Access.WRITE_ONLY)
+ private SkuSignupOption signupOption;
+
+ /*
+ * Availability of the Sku as preview/stable.
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private SkuVersion version;
+
+ /*
+ * Links to the next set of results
+ */
+ @JsonProperty(value = "availability", access = JsonProperty.Access.WRITE_ONLY)
+ private SkuAvailability availability;
+
+ /*
+ * List of Shipment Types supported by this SKU
+ */
+ @JsonProperty(value = "shipmentTypes", access = JsonProperty.Access.WRITE_ONLY)
+ private List shipmentTypes;
+
+ /*
+ * The capability info of the SKU.
*/
- @JsonProperty(value = "restrictions", access = JsonProperty.Access.WRITE_ONLY)
- private List restrictions;
+ @JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY)
+ private List capabilities;
/**
* Get the resourceType property: The type of the resource.
@@ -116,6 +150,15 @@ public SkuTier tier() {
return this.tier;
}
+ /**
+ * Get the size property: The Sku kind.
+ *
+ * @return the size value.
+ */
+ public String size() {
+ return this.size;
+ }
+
/**
* Get the family property: The Sku family.
*
@@ -126,7 +169,7 @@ public String family() {
}
/**
- * Get the locations property: Availability of the SKU for the region.
+ * Get the locations property: Availability of the Sku for the region.
*
* @return the locations value.
*/
@@ -135,7 +178,7 @@ public List locations() {
}
/**
- * Get the apiVersions property: The API versions in which SKU is available.
+ * Get the apiVersions property: The API versions in which Sku is available.
*
* @return the apiVersions value.
*/
@@ -144,7 +187,7 @@ public List apiVersions() {
}
/**
- * Get the locationInfo property: Availability of the SKU for the location/zone.
+ * Get the locationInfo property: Availability of the Sku for the location/zone/site.
*
* @return the locationInfo value.
*/
@@ -162,12 +205,48 @@ public List costs() {
}
/**
- * Get the restrictions property: Restrictions of the SKU availability.
+ * Get the signupOption property: Sku can be signed up by customer or not.
+ *
+ * @return the signupOption value.
+ */
+ public SkuSignupOption signupOption() {
+ return this.signupOption;
+ }
+
+ /**
+ * Get the version property: Availability of the Sku as preview/stable.
+ *
+ * @return the version value.
+ */
+ public SkuVersion version() {
+ return this.version;
+ }
+
+ /**
+ * Get the availability property: Links to the next set of results.
+ *
+ * @return the availability value.
+ */
+ public SkuAvailability availability() {
+ return this.availability;
+ }
+
+ /**
+ * Get the shipmentTypes property: List of Shipment Types supported by this SKU.
+ *
+ * @return the shipmentTypes value.
+ */
+ public List shipmentTypes() {
+ return this.shipmentTypes;
+ }
+
+ /**
+ * Get the capabilities property: The capability info of the SKU.
*
- * @return the restrictions value.
+ * @return the capabilities value.
*/
- public List restrictions() {
- return this.restrictions;
+ public List capabilities() {
+ return this.capabilities;
}
/**
@@ -182,8 +261,8 @@ public void validate() {
if (costs() != null) {
costs().forEach(e -> e.validate());
}
- if (restrictions() != null) {
- restrictions().forEach(e -> e.validate());
+ if (capabilities() != null) {
+ capabilities().forEach(e -> e.validate());
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticProactiveLogCollectionSettingsInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticProactiveLogCollectionSettingsInner.java
new file mode 100644
index 0000000000000..be7ff4b650256
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticProactiveLogCollectionSettingsInner.java
@@ -0,0 +1,92 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.ProactiveDiagnosticsConsent;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The diagnostic proactive log collection settings of a device. */
+@Fluent
+public final class DiagnosticProactiveLogCollectionSettingsInner extends ArmBaseModel {
+ @JsonIgnore
+ private final ClientLogger logger = new ClientLogger(DiagnosticProactiveLogCollectionSettingsInner.class);
+
+ /*
+ * DiagnosticProactiveLogCollectionSettings
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Properties of the diagnostic proactive log collection settings.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private ProactiveLogCollectionSettingsProperties innerProperties = new ProactiveLogCollectionSettingsProperties();
+
+ /**
+ * Get the systemData property: DiagnosticProactiveLogCollectionSettings.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the diagnostic proactive log collection settings.
+ *
+ * @return the innerProperties value.
+ */
+ private ProactiveLogCollectionSettingsProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the userConsent property: Proactive diagnostic collection consent flag.
+ *
+ * @return the userConsent value.
+ */
+ public ProactiveDiagnosticsConsent userConsent() {
+ return this.innerProperties() == null ? null : this.innerProperties().userConsent();
+ }
+
+ /**
+ * Set the userConsent property: Proactive diagnostic collection consent flag.
+ *
+ * @param userConsent the userConsent value to set.
+ * @return the DiagnosticProactiveLogCollectionSettingsInner object itself.
+ */
+ public DiagnosticProactiveLogCollectionSettingsInner withUserConsent(ProactiveDiagnosticsConsent userConsent) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ProactiveLogCollectionSettingsProperties();
+ }
+ this.innerProperties().withUserConsent(userConsent);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model"
+ + " DiagnosticProactiveLogCollectionSettingsInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsInner.java
new file mode 100644
index 0000000000000..bbd5ea8c77459
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsInner.java
@@ -0,0 +1,92 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.RemoteSupportSettings;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The remote support settings of a device. */
+@Fluent
+public final class DiagnosticRemoteSupportSettingsInner extends ArmBaseModel {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticRemoteSupportSettingsInner.class);
+
+ /*
+ * DiagnosticRemoteSupportSettings
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Properties of the remote support settings.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private DiagnosticRemoteSupportSettingsProperties innerProperties = new DiagnosticRemoteSupportSettingsProperties();
+
+ /**
+ * Get the systemData property: DiagnosticRemoteSupportSettings.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of the remote support settings.
+ *
+ * @return the innerProperties value.
+ */
+ private DiagnosticRemoteSupportSettingsProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the remoteSupportSettingsList property: Remote support settings list according to the RemoteApplicationType.
+ *
+ * @return the remoteSupportSettingsList value.
+ */
+ public List remoteSupportSettingsList() {
+ return this.innerProperties() == null ? null : this.innerProperties().remoteSupportSettingsList();
+ }
+
+ /**
+ * Set the remoteSupportSettingsList property: Remote support settings list according to the RemoteApplicationType.
+ *
+ * @param remoteSupportSettingsList the remoteSupportSettingsList value to set.
+ * @return the DiagnosticRemoteSupportSettingsInner object itself.
+ */
+ public DiagnosticRemoteSupportSettingsInner withRemoteSupportSettingsList(
+ List remoteSupportSettingsList) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new DiagnosticRemoteSupportSettingsProperties();
+ }
+ this.innerProperties().withRemoteSupportSettingsList(remoteSupportSettingsList);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model DiagnosticRemoteSupportSettingsInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsProperties.java
new file mode 100644
index 0000000000000..e77aff49f1c5e
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/DiagnosticRemoteSupportSettingsProperties.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.RemoteSupportSettings;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of remote support settings. */
+@Fluent
+public final class DiagnosticRemoteSupportSettingsProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(DiagnosticRemoteSupportSettingsProperties.class);
+
+ /*
+ * Remote support settings list according to the RemoteApplicationType
+ */
+ @JsonProperty(value = "remoteSupportSettingsList")
+ private List remoteSupportSettingsList;
+
+ /**
+ * Get the remoteSupportSettingsList property: Remote support settings list according to the RemoteApplicationType.
+ *
+ * @return the remoteSupportSettingsList value.
+ */
+ public List remoteSupportSettingsList() {
+ return this.remoteSupportSettingsList;
+ }
+
+ /**
+ * Set the remoteSupportSettingsList property: Remote support settings list according to the RemoteApplicationType.
+ *
+ * @param remoteSupportSettingsList the remoteSupportSettingsList value to set.
+ * @return the DiagnosticRemoteSupportSettingsProperties object itself.
+ */
+ public DiagnosticRemoteSupportSettingsProperties withRemoteSupportSettingsList(
+ List remoteSupportSettingsList) {
+ this.remoteSupportSettingsList = remoteSupportSettingsList;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (remoteSupportSettingsList() != null) {
+ remoteSupportSettingsList().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/FileTriggerProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/FileTriggerProperties.java
new file mode 100644
index 0000000000000..d99dbe56284d4
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/FileTriggerProperties.java
@@ -0,0 +1,126 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.FileSourceInfo;
+import com.azure.resourcemanager.databoxedge.models.RoleSinkInfo;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** File trigger properties. */
+@Fluent
+public final class FileTriggerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(FileTriggerProperties.class);
+
+ /*
+ * File event source details.
+ */
+ @JsonProperty(value = "sourceInfo", required = true)
+ private FileSourceInfo sourceInfo;
+
+ /*
+ * Role sink info.
+ */
+ @JsonProperty(value = "sinkInfo", required = true)
+ private RoleSinkInfo sinkInfo;
+
+ /*
+ * A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain
+ * specific IoT modules in the device, the tag can be the name or the image
+ * URL of the module.
+ */
+ @JsonProperty(value = "customContextTag")
+ private String customContextTag;
+
+ /**
+ * Get the sourceInfo property: File event source details.
+ *
+ * @return the sourceInfo value.
+ */
+ public FileSourceInfo sourceInfo() {
+ return this.sourceInfo;
+ }
+
+ /**
+ * Set the sourceInfo property: File event source details.
+ *
+ * @param sourceInfo the sourceInfo value to set.
+ * @return the FileTriggerProperties object itself.
+ */
+ public FileTriggerProperties withSourceInfo(FileSourceInfo sourceInfo) {
+ this.sourceInfo = sourceInfo;
+ return this;
+ }
+
+ /**
+ * Get the sinkInfo property: Role sink info.
+ *
+ * @return the sinkInfo value.
+ */
+ public RoleSinkInfo sinkInfo() {
+ return this.sinkInfo;
+ }
+
+ /**
+ * Set the sinkInfo property: Role sink info.
+ *
+ * @param sinkInfo the sinkInfo value to set.
+ * @return the FileTriggerProperties object itself.
+ */
+ public FileTriggerProperties withSinkInfo(RoleSinkInfo sinkInfo) {
+ this.sinkInfo = sinkInfo;
+ return this;
+ }
+
+ /**
+ * Get the customContextTag property: A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the
+ * tag can be the name or the image URL of the module.
+ *
+ * @return the customContextTag value.
+ */
+ public String customContextTag() {
+ return this.customContextTag;
+ }
+
+ /**
+ * Set the customContextTag property: A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the
+ * tag can be the name or the image URL of the module.
+ *
+ * @param customContextTag the customContextTag value to set.
+ * @return the FileTriggerProperties object itself.
+ */
+ public FileTriggerProperties withCustomContextTag(String customContextTag) {
+ this.customContextTag = customContextTag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sourceInfo() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sourceInfo in model FileTriggerProperties"));
+ } else {
+ sourceInfo().validate();
+ }
+ if (sinkInfo() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property sinkInfo in model FileTriggerProperties"));
+ } else {
+ sinkInfo().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/GenerateCertResponseInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/GenerateCertResponseInner.java
new file mode 100644
index 0000000000000..104677e036039
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/GenerateCertResponseInner.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Used in activation key generation flow. */
+@Fluent
+public final class GenerateCertResponseInner {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(GenerateCertResponseInner.class);
+
+ /*
+ * Gets or sets base64 encoded certificate raw data,
+ * this is the public part needed to be uploaded to cert vault
+ */
+ @JsonProperty(value = "publicKey")
+ private String publicKey;
+
+ /*
+ * Gets or sets base64 encoded private part of the certificate,
+ * needed to form the activation key
+ */
+ @JsonProperty(value = "privateKey")
+ private String privateKey;
+
+ /*
+ * Gets or sets expiry time in UTC
+ */
+ @JsonProperty(value = "expiryTimeInUTC")
+ private String expiryTimeInUtc;
+
+ /**
+ * Get the publicKey property: Gets or sets base64 encoded certificate raw data, this is the public part needed to
+ * be uploaded to cert vault.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.publicKey;
+ }
+
+ /**
+ * Set the publicKey property: Gets or sets base64 encoded certificate raw data, this is the public part needed to
+ * be uploaded to cert vault.
+ *
+ * @param publicKey the publicKey value to set.
+ * @return the GenerateCertResponseInner object itself.
+ */
+ public GenerateCertResponseInner withPublicKey(String publicKey) {
+ this.publicKey = publicKey;
+ return this;
+ }
+
+ /**
+ * Get the privateKey property: Gets or sets base64 encoded private part of the certificate, needed to form the
+ * activation key.
+ *
+ * @return the privateKey value.
+ */
+ public String privateKey() {
+ return this.privateKey;
+ }
+
+ /**
+ * Set the privateKey property: Gets or sets base64 encoded private part of the certificate, needed to form the
+ * activation key.
+ *
+ * @param privateKey the privateKey value to set.
+ * @return the GenerateCertResponseInner object itself.
+ */
+ public GenerateCertResponseInner withPrivateKey(String privateKey) {
+ this.privateKey = privateKey;
+ return this;
+ }
+
+ /**
+ * Get the expiryTimeInUtc property: Gets or sets expiry time in UTC.
+ *
+ * @return the expiryTimeInUtc value.
+ */
+ public String expiryTimeInUtc() {
+ return this.expiryTimeInUtc;
+ }
+
+ /**
+ * Set the expiryTimeInUtc property: Gets or sets expiry time in UTC.
+ *
+ * @param expiryTimeInUtc the expiryTimeInUtc value to set.
+ * @return the GenerateCertResponseInner object itself.
+ */
+ public GenerateCertResponseInner withExpiryTimeInUtc(String expiryTimeInUtc) {
+ this.expiryTimeInUtc = expiryTimeInUtc;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTAddonProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTAddonProperties.java
new file mode 100644
index 0000000000000..b5c9baf838160
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTAddonProperties.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AddonState;
+import com.azure.resourcemanager.databoxedge.models.HostPlatformType;
+import com.azure.resourcemanager.databoxedge.models.IoTDeviceInfo;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** IoT addon properties. */
+@Fluent
+public final class IoTAddonProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(IoTAddonProperties.class);
+
+ /*
+ * IoT device metadata to which appliance needs to be connected.
+ */
+ @JsonProperty(value = "ioTDeviceDetails", required = true)
+ private IoTDeviceInfo ioTDeviceDetails;
+
+ /*
+ * IoT edge device to which the IoT Addon needs to be configured.
+ */
+ @JsonProperty(value = "ioTEdgeDeviceDetails", required = true)
+ private IoTDeviceInfo ioTEdgeDeviceDetails;
+
+ /*
+ * Version of IoT running on the appliance.
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * Host OS supported by the IoT addon.
+ */
+ @JsonProperty(value = "hostPlatform", access = JsonProperty.Access.WRITE_ONLY)
+ private PlatformType hostPlatform;
+
+ /*
+ * Platform where the runtime is hosted.
+ */
+ @JsonProperty(value = "hostPlatformType", access = JsonProperty.Access.WRITE_ONLY)
+ private HostPlatformType hostPlatformType;
+
+ /*
+ * Addon Provisioning State
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private AddonState provisioningState;
+
+ /**
+ * Get the ioTDeviceDetails property: IoT device metadata to which appliance needs to be connected.
+ *
+ * @return the ioTDeviceDetails value.
+ */
+ public IoTDeviceInfo ioTDeviceDetails() {
+ return this.ioTDeviceDetails;
+ }
+
+ /**
+ * Set the ioTDeviceDetails property: IoT device metadata to which appliance needs to be connected.
+ *
+ * @param ioTDeviceDetails the ioTDeviceDetails value to set.
+ * @return the IoTAddonProperties object itself.
+ */
+ public IoTAddonProperties withIoTDeviceDetails(IoTDeviceInfo ioTDeviceDetails) {
+ this.ioTDeviceDetails = ioTDeviceDetails;
+ return this;
+ }
+
+ /**
+ * Get the ioTEdgeDeviceDetails property: IoT edge device to which the IoT Addon needs to be configured.
+ *
+ * @return the ioTEdgeDeviceDetails value.
+ */
+ public IoTDeviceInfo ioTEdgeDeviceDetails() {
+ return this.ioTEdgeDeviceDetails;
+ }
+
+ /**
+ * Set the ioTEdgeDeviceDetails property: IoT edge device to which the IoT Addon needs to be configured.
+ *
+ * @param ioTEdgeDeviceDetails the ioTEdgeDeviceDetails value to set.
+ * @return the IoTAddonProperties object itself.
+ */
+ public IoTAddonProperties withIoTEdgeDeviceDetails(IoTDeviceInfo ioTEdgeDeviceDetails) {
+ this.ioTEdgeDeviceDetails = ioTEdgeDeviceDetails;
+ return this;
+ }
+
+ /**
+ * Get the version property: Version of IoT running on the appliance.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the hostPlatform property: Host OS supported by the IoT addon.
+ *
+ * @return the hostPlatform value.
+ */
+ public PlatformType hostPlatform() {
+ return this.hostPlatform;
+ }
+
+ /**
+ * Get the hostPlatformType property: Platform where the runtime is hosted.
+ *
+ * @return the hostPlatformType value.
+ */
+ public HostPlatformType hostPlatformType() {
+ return this.hostPlatformType;
+ }
+
+ /**
+ * Get the provisioningState property: Addon Provisioning State.
+ *
+ * @return the provisioningState value.
+ */
+ public AddonState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ioTDeviceDetails() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property ioTDeviceDetails in model IoTAddonProperties"));
+ } else {
+ ioTDeviceDetails().validate();
+ }
+ if (ioTEdgeDeviceDetails() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property ioTEdgeDeviceDetails in model IoTAddonProperties"));
+ } else {
+ ioTEdgeDeviceDetails().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTRoleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTRoleProperties.java
new file mode 100644
index 0000000000000..77ec79b472949
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/IoTRoleProperties.java
@@ -0,0 +1,264 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ComputeResource;
+import com.azure.resourcemanager.databoxedge.models.HostPlatformType;
+import com.azure.resourcemanager.databoxedge.models.IoTDeviceInfo;
+import com.azure.resourcemanager.databoxedge.models.IoTEdgeAgentInfo;
+import com.azure.resourcemanager.databoxedge.models.MountPointMap;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** IoT role properties. */
+@Fluent
+public final class IoTRoleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(IoTRoleProperties.class);
+
+ /*
+ * Host OS supported by the IoT role.
+ */
+ @JsonProperty(value = "hostPlatform", required = true)
+ private PlatformType hostPlatform;
+
+ /*
+ * IoT device metadata to which data box edge device needs to be connected.
+ */
+ @JsonProperty(value = "ioTDeviceDetails", required = true)
+ private IoTDeviceInfo ioTDeviceDetails;
+
+ /*
+ * IoT edge device to which the IoT role needs to be configured.
+ */
+ @JsonProperty(value = "ioTEdgeDeviceDetails", required = true)
+ private IoTDeviceInfo ioTEdgeDeviceDetails;
+
+ /*
+ * Mount points of shares in role(s).
+ */
+ @JsonProperty(value = "shareMappings")
+ private List shareMappings;
+
+ /*
+ * Iot edge agent details to download the agent and bootstrap iot runtime.
+ */
+ @JsonProperty(value = "ioTEdgeAgentInfo")
+ private IoTEdgeAgentInfo ioTEdgeAgentInfo;
+
+ /*
+ * Platform where the Iot runtime is hosted.
+ */
+ @JsonProperty(value = "hostPlatformType", access = JsonProperty.Access.WRITE_ONLY)
+ private HostPlatformType hostPlatformType;
+
+ /*
+ * Resource allocation
+ */
+ @JsonProperty(value = "computeResource")
+ private ComputeResource computeResource;
+
+ /*
+ * Role status.
+ */
+ @JsonProperty(value = "roleStatus", required = true)
+ private RoleStatus roleStatus;
+
+ /**
+ * Get the hostPlatform property: Host OS supported by the IoT role.
+ *
+ * @return the hostPlatform value.
+ */
+ public PlatformType hostPlatform() {
+ return this.hostPlatform;
+ }
+
+ /**
+ * Set the hostPlatform property: Host OS supported by the IoT role.
+ *
+ * @param hostPlatform the hostPlatform value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withHostPlatform(PlatformType hostPlatform) {
+ this.hostPlatform = hostPlatform;
+ return this;
+ }
+
+ /**
+ * Get the ioTDeviceDetails property: IoT device metadata to which data box edge device needs to be connected.
+ *
+ * @return the ioTDeviceDetails value.
+ */
+ public IoTDeviceInfo ioTDeviceDetails() {
+ return this.ioTDeviceDetails;
+ }
+
+ /**
+ * Set the ioTDeviceDetails property: IoT device metadata to which data box edge device needs to be connected.
+ *
+ * @param ioTDeviceDetails the ioTDeviceDetails value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withIoTDeviceDetails(IoTDeviceInfo ioTDeviceDetails) {
+ this.ioTDeviceDetails = ioTDeviceDetails;
+ return this;
+ }
+
+ /**
+ * Get the ioTEdgeDeviceDetails property: IoT edge device to which the IoT role needs to be configured.
+ *
+ * @return the ioTEdgeDeviceDetails value.
+ */
+ public IoTDeviceInfo ioTEdgeDeviceDetails() {
+ return this.ioTEdgeDeviceDetails;
+ }
+
+ /**
+ * Set the ioTEdgeDeviceDetails property: IoT edge device to which the IoT role needs to be configured.
+ *
+ * @param ioTEdgeDeviceDetails the ioTEdgeDeviceDetails value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withIoTEdgeDeviceDetails(IoTDeviceInfo ioTEdgeDeviceDetails) {
+ this.ioTEdgeDeviceDetails = ioTEdgeDeviceDetails;
+ return this;
+ }
+
+ /**
+ * Get the shareMappings property: Mount points of shares in role(s).
+ *
+ * @return the shareMappings value.
+ */
+ public List shareMappings() {
+ return this.shareMappings;
+ }
+
+ /**
+ * Set the shareMappings property: Mount points of shares in role(s).
+ *
+ * @param shareMappings the shareMappings value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withShareMappings(List shareMappings) {
+ this.shareMappings = shareMappings;
+ return this;
+ }
+
+ /**
+ * Get the ioTEdgeAgentInfo property: Iot edge agent details to download the agent and bootstrap iot runtime.
+ *
+ * @return the ioTEdgeAgentInfo value.
+ */
+ public IoTEdgeAgentInfo ioTEdgeAgentInfo() {
+ return this.ioTEdgeAgentInfo;
+ }
+
+ /**
+ * Set the ioTEdgeAgentInfo property: Iot edge agent details to download the agent and bootstrap iot runtime.
+ *
+ * @param ioTEdgeAgentInfo the ioTEdgeAgentInfo value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withIoTEdgeAgentInfo(IoTEdgeAgentInfo ioTEdgeAgentInfo) {
+ this.ioTEdgeAgentInfo = ioTEdgeAgentInfo;
+ return this;
+ }
+
+ /**
+ * Get the hostPlatformType property: Platform where the Iot runtime is hosted.
+ *
+ * @return the hostPlatformType value.
+ */
+ public HostPlatformType hostPlatformType() {
+ return this.hostPlatformType;
+ }
+
+ /**
+ * Get the computeResource property: Resource allocation.
+ *
+ * @return the computeResource value.
+ */
+ public ComputeResource computeResource() {
+ return this.computeResource;
+ }
+
+ /**
+ * Set the computeResource property: Resource allocation.
+ *
+ * @param computeResource the computeResource value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withComputeResource(ComputeResource computeResource) {
+ this.computeResource = computeResource;
+ return this;
+ }
+
+ /**
+ * Get the roleStatus property: Role status.
+ *
+ * @return the roleStatus value.
+ */
+ public RoleStatus roleStatus() {
+ return this.roleStatus;
+ }
+
+ /**
+ * Set the roleStatus property: Role status.
+ *
+ * @param roleStatus the roleStatus value to set.
+ * @return the IoTRoleProperties object itself.
+ */
+ public IoTRoleProperties withRoleStatus(RoleStatus roleStatus) {
+ this.roleStatus = roleStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (hostPlatform() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property hostPlatform in model IoTRoleProperties"));
+ }
+ if (ioTDeviceDetails() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property ioTDeviceDetails in model IoTRoleProperties"));
+ } else {
+ ioTDeviceDetails().validate();
+ }
+ if (ioTEdgeDeviceDetails() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property ioTEdgeDeviceDetails in model IoTRoleProperties"));
+ } else {
+ ioTEdgeDeviceDetails().validate();
+ }
+ if (shareMappings() != null) {
+ shareMappings().forEach(e -> e.validate());
+ }
+ if (ioTEdgeAgentInfo() != null) {
+ ioTEdgeAgentInfo().validate();
+ }
+ if (computeResource() != null) {
+ computeResource().validate();
+ }
+ if (roleStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property roleStatus in model IoTRoleProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobInner.java
index b1714c488b56c..319f88f8f1967 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobInner.java
@@ -4,8 +4,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
-import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.annotation.Immutable;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.JobErrorDetails;
import com.azure.resourcemanager.databoxedge.models.JobStatus;
@@ -18,9 +17,8 @@
import java.time.OffsetDateTime;
/** A device job. */
-@JsonFlatten
-@Fluent
-public class JobInner {
+@Immutable
+public final class JobInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(JobInner.class);
/*
@@ -72,54 +70,10 @@ public class JobInner {
private JobErrorDetails error;
/*
- * The type of the job.
+ * The properties of the job.
*/
- @JsonProperty(value = "properties.jobType", access = JsonProperty.Access.WRITE_ONLY)
- private JobType jobType;
-
- /*
- * Current stage of the update operation.
- */
- @JsonProperty(value = "properties.currentStage", access = JsonProperty.Access.WRITE_ONLY)
- private UpdateOperationStage currentStage;
-
- /*
- * The download progress.
- */
- @JsonProperty(value = "properties.downloadProgress", access = JsonProperty.Access.WRITE_ONLY)
- private UpdateDownloadProgress downloadProgress;
-
- /*
- * The install progress.
- */
- @JsonProperty(value = "properties.installProgress", access = JsonProperty.Access.WRITE_ONLY)
- private UpdateInstallProgress installProgress;
-
- /*
- * Total number of errors encountered during the refresh process.
- */
- @JsonProperty(value = "properties.totalRefreshErrors", access = JsonProperty.Access.WRITE_ONLY)
- private Integer totalRefreshErrors;
-
- /*
- * Local share/remote container relative path to the error manifest file of
- * the refresh.
- */
- @JsonProperty(value = "properties.errorManifestFile", access = JsonProperty.Access.WRITE_ONLY)
- private String errorManifestFile;
-
- /*
- * ARM ID of the entity that was refreshed.
- */
- @JsonProperty(value = "properties.refreshedEntityId", access = JsonProperty.Access.WRITE_ONLY)
- private String refreshedEntityId;
-
- /*
- * If only subfolders need to be refreshed, then the subfolder path inside
- * the share or container. (The path is empty if there are no subfolders.)
- */
- @JsonProperty(value = "properties.folder")
- private String folder;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private JobProperties innerProperties;
/**
* Get the id property: The path ID that uniquely identifies the object.
@@ -193,13 +147,22 @@ public JobErrorDetails error() {
return this.error;
}
+ /**
+ * Get the innerProperties property: The properties of the job.
+ *
+ * @return the innerProperties value.
+ */
+ private JobProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the jobType property: The type of the job.
*
* @return the jobType value.
*/
public JobType jobType() {
- return this.jobType;
+ return this.innerProperties() == null ? null : this.innerProperties().jobType();
}
/**
@@ -208,7 +171,7 @@ public JobType jobType() {
* @return the currentStage value.
*/
public UpdateOperationStage currentStage() {
- return this.currentStage;
+ return this.innerProperties() == null ? null : this.innerProperties().currentStage();
}
/**
@@ -217,7 +180,7 @@ public UpdateOperationStage currentStage() {
* @return the downloadProgress value.
*/
public UpdateDownloadProgress downloadProgress() {
- return this.downloadProgress;
+ return this.innerProperties() == null ? null : this.innerProperties().downloadProgress();
}
/**
@@ -226,7 +189,7 @@ public UpdateDownloadProgress downloadProgress() {
* @return the installProgress value.
*/
public UpdateInstallProgress installProgress() {
- return this.installProgress;
+ return this.innerProperties() == null ? null : this.innerProperties().installProgress();
}
/**
@@ -235,7 +198,7 @@ public UpdateInstallProgress installProgress() {
* @return the totalRefreshErrors value.
*/
public Integer totalRefreshErrors() {
- return this.totalRefreshErrors;
+ return this.innerProperties() == null ? null : this.innerProperties().totalRefreshErrors();
}
/**
@@ -245,7 +208,7 @@ public Integer totalRefreshErrors() {
* @return the errorManifestFile value.
*/
public String errorManifestFile() {
- return this.errorManifestFile;
+ return this.innerProperties() == null ? null : this.innerProperties().errorManifestFile();
}
/**
@@ -254,7 +217,7 @@ public String errorManifestFile() {
* @return the refreshedEntityId value.
*/
public String refreshedEntityId() {
- return this.refreshedEntityId;
+ return this.innerProperties() == null ? null : this.innerProperties().refreshedEntityId();
}
/**
@@ -264,7 +227,7 @@ public String refreshedEntityId() {
* @return the folder value.
*/
public String folder() {
- return this.folder;
+ return this.innerProperties() == null ? null : this.innerProperties().folder();
}
/**
@@ -275,7 +238,10 @@ public String folder() {
* @return the JobInner object itself.
*/
public JobInner withFolder(String folder) {
- this.folder = folder;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new JobProperties();
+ }
+ this.innerProperties().withFolder(folder);
return this;
}
@@ -288,11 +254,8 @@ public void validate() {
if (error() != null) {
error().validate();
}
- if (downloadProgress() != null) {
- downloadProgress().validate();
- }
- if (installProgress() != null) {
- installProgress().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobProperties.java
new file mode 100644
index 0000000000000..8193e232e7393
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/JobProperties.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.JobType;
+import com.azure.resourcemanager.databoxedge.models.UpdateDownloadProgress;
+import com.azure.resourcemanager.databoxedge.models.UpdateInstallProgress;
+import com.azure.resourcemanager.databoxedge.models.UpdateOperationStage;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties for the job. */
+@Fluent
+public final class JobProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(JobProperties.class);
+
+ /*
+ * The type of the job.
+ */
+ @JsonProperty(value = "jobType", access = JsonProperty.Access.WRITE_ONLY)
+ private JobType jobType;
+
+ /*
+ * Current stage of the update operation.
+ */
+ @JsonProperty(value = "currentStage", access = JsonProperty.Access.WRITE_ONLY)
+ private UpdateOperationStage currentStage;
+
+ /*
+ * The download progress.
+ */
+ @JsonProperty(value = "downloadProgress", access = JsonProperty.Access.WRITE_ONLY)
+ private UpdateDownloadProgress downloadProgress;
+
+ /*
+ * The install progress.
+ */
+ @JsonProperty(value = "installProgress", access = JsonProperty.Access.WRITE_ONLY)
+ private UpdateInstallProgress installProgress;
+
+ /*
+ * Total number of errors encountered during the refresh process.
+ */
+ @JsonProperty(value = "totalRefreshErrors", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalRefreshErrors;
+
+ /*
+ * Local share/remote container relative path to the error manifest file of
+ * the refresh.
+ */
+ @JsonProperty(value = "errorManifestFile", access = JsonProperty.Access.WRITE_ONLY)
+ private String errorManifestFile;
+
+ /*
+ * ARM ID of the entity that was refreshed.
+ */
+ @JsonProperty(value = "refreshedEntityId", access = JsonProperty.Access.WRITE_ONLY)
+ private String refreshedEntityId;
+
+ /*
+ * If only subfolders need to be refreshed, then the subfolder path inside
+ * the share or container. (The path is empty if there are no subfolders.)
+ */
+ @JsonProperty(value = "folder")
+ private String folder;
+
+ /**
+ * Get the jobType property: The type of the job.
+ *
+ * @return the jobType value.
+ */
+ public JobType jobType() {
+ return this.jobType;
+ }
+
+ /**
+ * Get the currentStage property: Current stage of the update operation.
+ *
+ * @return the currentStage value.
+ */
+ public UpdateOperationStage currentStage() {
+ return this.currentStage;
+ }
+
+ /**
+ * Get the downloadProgress property: The download progress.
+ *
+ * @return the downloadProgress value.
+ */
+ public UpdateDownloadProgress downloadProgress() {
+ return this.downloadProgress;
+ }
+
+ /**
+ * Get the installProgress property: The install progress.
+ *
+ * @return the installProgress value.
+ */
+ public UpdateInstallProgress installProgress() {
+ return this.installProgress;
+ }
+
+ /**
+ * Get the totalRefreshErrors property: Total number of errors encountered during the refresh process.
+ *
+ * @return the totalRefreshErrors value.
+ */
+ public Integer totalRefreshErrors() {
+ return this.totalRefreshErrors;
+ }
+
+ /**
+ * Get the errorManifestFile property: Local share/remote container relative path to the error manifest file of the
+ * refresh.
+ *
+ * @return the errorManifestFile value.
+ */
+ public String errorManifestFile() {
+ return this.errorManifestFile;
+ }
+
+ /**
+ * Get the refreshedEntityId property: ARM ID of the entity that was refreshed.
+ *
+ * @return the refreshedEntityId value.
+ */
+ public String refreshedEntityId() {
+ return this.refreshedEntityId;
+ }
+
+ /**
+ * Get the folder property: If only subfolders need to be refreshed, then the subfolder path inside the share or
+ * container. (The path is empty if there are no subfolders.).
+ *
+ * @return the folder value.
+ */
+ public String folder() {
+ return this.folder;
+ }
+
+ /**
+ * Set the folder property: If only subfolders need to be refreshed, then the subfolder path inside the share or
+ * container. (The path is empty if there are no subfolders.).
+ *
+ * @param folder the folder value to set.
+ * @return the JobProperties object itself.
+ */
+ public JobProperties withFolder(String folder) {
+ this.folder = folder;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (downloadProgress() != null) {
+ downloadProgress().validate();
+ }
+ if (installProgress() != null) {
+ installProgress().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/KubernetesRoleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/KubernetesRoleProperties.java
new file mode 100644
index 0000000000000..0780dc28a7095
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/KubernetesRoleProperties.java
@@ -0,0 +1,192 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.HostPlatformType;
+import com.azure.resourcemanager.databoxedge.models.KubernetesClusterInfo;
+import com.azure.resourcemanager.databoxedge.models.KubernetesRoleResources;
+import com.azure.resourcemanager.databoxedge.models.KubernetesState;
+import com.azure.resourcemanager.databoxedge.models.PlatformType;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Kubernetes role properties. */
+@Fluent
+public final class KubernetesRoleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(KubernetesRoleProperties.class);
+
+ /*
+ * Host OS supported by the Kubernetes role.
+ */
+ @JsonProperty(value = "hostPlatform", required = true)
+ private PlatformType hostPlatform;
+
+ /*
+ * State of Kubernetes deployment
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private KubernetesState provisioningState;
+
+ /*
+ * Platform where the runtime is hosted.
+ */
+ @JsonProperty(value = "hostPlatformType", access = JsonProperty.Access.WRITE_ONLY)
+ private HostPlatformType hostPlatformType;
+
+ /*
+ * Kubernetes cluster configuration
+ */
+ @JsonProperty(value = "kubernetesClusterInfo", required = true)
+ private KubernetesClusterInfo kubernetesClusterInfo;
+
+ /*
+ * Kubernetes role resources
+ */
+ @JsonProperty(value = "kubernetesRoleResources", required = true)
+ private KubernetesRoleResources kubernetesRoleResources;
+
+ /*
+ * Role status.
+ */
+ @JsonProperty(value = "roleStatus", required = true)
+ private RoleStatus roleStatus;
+
+ /**
+ * Get the hostPlatform property: Host OS supported by the Kubernetes role.
+ *
+ * @return the hostPlatform value.
+ */
+ public PlatformType hostPlatform() {
+ return this.hostPlatform;
+ }
+
+ /**
+ * Set the hostPlatform property: Host OS supported by the Kubernetes role.
+ *
+ * @param hostPlatform the hostPlatform value to set.
+ * @return the KubernetesRoleProperties object itself.
+ */
+ public KubernetesRoleProperties withHostPlatform(PlatformType hostPlatform) {
+ this.hostPlatform = hostPlatform;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: State of Kubernetes deployment.
+ *
+ * @return the provisioningState value.
+ */
+ public KubernetesState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the hostPlatformType property: Platform where the runtime is hosted.
+ *
+ * @return the hostPlatformType value.
+ */
+ public HostPlatformType hostPlatformType() {
+ return this.hostPlatformType;
+ }
+
+ /**
+ * Get the kubernetesClusterInfo property: Kubernetes cluster configuration.
+ *
+ * @return the kubernetesClusterInfo value.
+ */
+ public KubernetesClusterInfo kubernetesClusterInfo() {
+ return this.kubernetesClusterInfo;
+ }
+
+ /**
+ * Set the kubernetesClusterInfo property: Kubernetes cluster configuration.
+ *
+ * @param kubernetesClusterInfo the kubernetesClusterInfo value to set.
+ * @return the KubernetesRoleProperties object itself.
+ */
+ public KubernetesRoleProperties withKubernetesClusterInfo(KubernetesClusterInfo kubernetesClusterInfo) {
+ this.kubernetesClusterInfo = kubernetesClusterInfo;
+ return this;
+ }
+
+ /**
+ * Get the kubernetesRoleResources property: Kubernetes role resources.
+ *
+ * @return the kubernetesRoleResources value.
+ */
+ public KubernetesRoleResources kubernetesRoleResources() {
+ return this.kubernetesRoleResources;
+ }
+
+ /**
+ * Set the kubernetesRoleResources property: Kubernetes role resources.
+ *
+ * @param kubernetesRoleResources the kubernetesRoleResources value to set.
+ * @return the KubernetesRoleProperties object itself.
+ */
+ public KubernetesRoleProperties withKubernetesRoleResources(KubernetesRoleResources kubernetesRoleResources) {
+ this.kubernetesRoleResources = kubernetesRoleResources;
+ return this;
+ }
+
+ /**
+ * Get the roleStatus property: Role status.
+ *
+ * @return the roleStatus value.
+ */
+ public RoleStatus roleStatus() {
+ return this.roleStatus;
+ }
+
+ /**
+ * Set the roleStatus property: Role status.
+ *
+ * @param roleStatus the roleStatus value to set.
+ * @return the KubernetesRoleProperties object itself.
+ */
+ public KubernetesRoleProperties withRoleStatus(RoleStatus roleStatus) {
+ this.roleStatus = roleStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (hostPlatform() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property hostPlatform in model KubernetesRoleProperties"));
+ }
+ if (kubernetesClusterInfo() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property kubernetesClusterInfo in model KubernetesRoleProperties"));
+ } else {
+ kubernetesClusterInfo().validate();
+ }
+ if (kubernetesRoleResources() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property kubernetesRoleResources in model KubernetesRoleProperties"));
+ } else {
+ kubernetesRoleResources().validate();
+ }
+ if (roleStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property roleStatus in model KubernetesRoleProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MecRoleProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MecRoleProperties.java
new file mode 100644
index 0000000000000..7354483c16429
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MecRoleProperties.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.RoleStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** MEC role properties. */
+@Fluent
+public final class MecRoleProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MecRoleProperties.class);
+
+ /*
+ * Activation key of the MEC.
+ */
+ @JsonProperty(value = "connectionString")
+ private AsymmetricEncryptedSecret connectionString;
+
+ /*
+ * Controller Endpoint.
+ */
+ @JsonProperty(value = "controllerEndpoint")
+ private String controllerEndpoint;
+
+ /*
+ * Unique Id of the Resource.
+ */
+ @JsonProperty(value = "resourceUniqueId")
+ private String resourceUniqueId;
+
+ /*
+ * Role status.
+ */
+ @JsonProperty(value = "roleStatus", required = true)
+ private RoleStatus roleStatus;
+
+ /**
+ * Get the connectionString property: Activation key of the MEC.
+ *
+ * @return the connectionString value.
+ */
+ public AsymmetricEncryptedSecret connectionString() {
+ return this.connectionString;
+ }
+
+ /**
+ * Set the connectionString property: Activation key of the MEC.
+ *
+ * @param connectionString the connectionString value to set.
+ * @return the MecRoleProperties object itself.
+ */
+ public MecRoleProperties withConnectionString(AsymmetricEncryptedSecret connectionString) {
+ this.connectionString = connectionString;
+ return this;
+ }
+
+ /**
+ * Get the controllerEndpoint property: Controller Endpoint.
+ *
+ * @return the controllerEndpoint value.
+ */
+ public String controllerEndpoint() {
+ return this.controllerEndpoint;
+ }
+
+ /**
+ * Set the controllerEndpoint property: Controller Endpoint.
+ *
+ * @param controllerEndpoint the controllerEndpoint value to set.
+ * @return the MecRoleProperties object itself.
+ */
+ public MecRoleProperties withControllerEndpoint(String controllerEndpoint) {
+ this.controllerEndpoint = controllerEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the resourceUniqueId property: Unique Id of the Resource.
+ *
+ * @return the resourceUniqueId value.
+ */
+ public String resourceUniqueId() {
+ return this.resourceUniqueId;
+ }
+
+ /**
+ * Set the resourceUniqueId property: Unique Id of the Resource.
+ *
+ * @param resourceUniqueId the resourceUniqueId value to set.
+ * @return the MecRoleProperties object itself.
+ */
+ public MecRoleProperties withResourceUniqueId(String resourceUniqueId) {
+ this.resourceUniqueId = resourceUniqueId;
+ return this;
+ }
+
+ /**
+ * Get the roleStatus property: Role status.
+ *
+ * @return the roleStatus value.
+ */
+ public RoleStatus roleStatus() {
+ return this.roleStatus;
+ }
+
+ /**
+ * Set the roleStatus property: Role status.
+ *
+ * @param roleStatus the roleStatus value to set.
+ * @return the MecRoleProperties object itself.
+ */
+ public MecRoleProperties withRoleStatus(RoleStatus roleStatus) {
+ this.roleStatus = roleStatus;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (connectionString() != null) {
+ connectionString().validate();
+ }
+ if (roleStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property roleStatus in model MecRoleProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationInner.java
new file mode 100644
index 0000000000000..de69e54b95626
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationInner.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.MetricConfiguration;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The metric setting details for the role. */
+@Fluent
+public final class MonitoringMetricConfigurationInner extends ArmBaseModel {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MonitoringMetricConfigurationInner.class);
+
+ /*
+ * MonitoringConfiguration on ASE device
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The metric setting properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private MonitoringMetricConfigurationProperties innerProperties = new MonitoringMetricConfigurationProperties();
+
+ /**
+ * Get the systemData property: MonitoringConfiguration on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: The metric setting properties.
+ *
+ * @return the innerProperties value.
+ */
+ private MonitoringMetricConfigurationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the metricConfigurations property: The metrics configuration details.
+ *
+ * @return the metricConfigurations value.
+ */
+ public List metricConfigurations() {
+ return this.innerProperties() == null ? null : this.innerProperties().metricConfigurations();
+ }
+
+ /**
+ * Set the metricConfigurations property: The metrics configuration details.
+ *
+ * @param metricConfigurations the metricConfigurations value to set.
+ * @return the MonitoringMetricConfigurationInner object itself.
+ */
+ public MonitoringMetricConfigurationInner withMetricConfigurations(List metricConfigurations) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MonitoringMetricConfigurationProperties();
+ }
+ this.innerProperties().withMetricConfigurations(metricConfigurations);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model MonitoringMetricConfigurationInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationProperties.java
new file mode 100644
index 0000000000000..878ea9a287ff0
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/MonitoringMetricConfigurationProperties.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.MetricConfiguration;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Metrics properties. */
+@Fluent
+public final class MonitoringMetricConfigurationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(MonitoringMetricConfigurationProperties.class);
+
+ /*
+ * The metrics configuration details
+ */
+ @JsonProperty(value = "metricConfigurations", required = true)
+ private List metricConfigurations;
+
+ /**
+ * Get the metricConfigurations property: The metrics configuration details.
+ *
+ * @return the metricConfigurations value.
+ */
+ public List metricConfigurations() {
+ return this.metricConfigurations;
+ }
+
+ /**
+ * Set the metricConfigurations property: The metrics configuration details.
+ *
+ * @param metricConfigurations the metricConfigurations value to set.
+ * @return the MonitoringMetricConfigurationProperties object itself.
+ */
+ public MonitoringMetricConfigurationProperties withMetricConfigurations(
+ List metricConfigurations) {
+ this.metricConfigurations = metricConfigurations;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (metricConfigurations() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property metricConfigurations in model"
+ + " MonitoringMetricConfigurationProperties"));
+ } else {
+ metricConfigurations().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsInner.java
index 3812339ecb2ab..7439db81e9c3b 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.NetworkAdapter;
@@ -14,16 +14,39 @@
import java.util.List;
/** The network settings of a device. */
-@JsonFlatten
@Immutable
-public class NetworkSettingsInner extends ArmBaseModel {
+public final class NetworkSettingsInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkSettingsInner.class);
/*
- * The network adapter list on the device.
+ * NetworkSettings on ASE device
*/
- @JsonProperty(value = "properties.networkAdapters", access = JsonProperty.Access.WRITE_ONLY)
- private List networkAdapters;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * The properties of network settings of a device.
+ */
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private NetworkSettingsProperties innerProperties;
+
+ /**
+ * Get the systemData property: NetworkSettings on ASE device.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the innerProperties property: The properties of network settings of a device.
+ *
+ * @return the innerProperties value.
+ */
+ private NetworkSettingsProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the networkAdapters property: The network adapter list on the device.
@@ -31,7 +54,7 @@ public class NetworkSettingsInner extends ArmBaseModel {
* @return the networkAdapters value.
*/
public List networkAdapters() {
- return this.networkAdapters;
+ return this.innerProperties() == null ? null : this.innerProperties().networkAdapters();
}
/**
@@ -42,8 +65,8 @@ public List networkAdapters() {
@Override
public void validate() {
super.validate();
- if (networkAdapters() != null) {
- networkAdapters().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsProperties.java
new file mode 100644
index 0000000000000..4ee4c3f2e27ec
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NetworkSettingsProperties.java
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.NetworkAdapter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of network settings. */
+@Immutable
+public final class NetworkSettingsProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(NetworkSettingsProperties.class);
+
+ /*
+ * The network adapter list on the device.
+ */
+ @JsonProperty(value = "networkAdapters", access = JsonProperty.Access.WRITE_ONLY)
+ private List networkAdapters;
+
+ /**
+ * Get the networkAdapters property: The network adapter list on the device.
+ *
+ * @return the networkAdapters value.
+ */
+ public List networkAdapters() {
+ return this.networkAdapters;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (networkAdapters() != null) {
+ networkAdapters().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeInner.java
index c294abf52db42..00e1a08ffc1e9 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.NodeStatus;
@@ -16,52 +15,24 @@
* Represents a single node in a Data box Edge/Gateway device Gateway devices, standalone Edge devices and a single node
* cluster Edge device will all have 1 node Multi-node Edge devices will have more than 1 nodes.
*/
-@JsonFlatten
@Immutable
-public class NodeInner extends ArmBaseModel {
+public final class NodeInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(NodeInner.class);
/*
- * The current status of the individual node
+ * The properties of the node
*/
- @JsonProperty(value = "properties.nodeStatus", access = JsonProperty.Access.WRITE_ONLY)
- private NodeStatus nodeStatus;
+ @JsonProperty(value = "properties", access = JsonProperty.Access.WRITE_ONLY)
+ private NodeProperties innerProperties;
- /*
- * Serial number of the Chassis
- */
- @JsonProperty(value = "properties.nodeChassisSerialNumber", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeChassisSerialNumber;
-
- /*
- * Serial number of the individual node
- */
- @JsonProperty(value = "properties.nodeSerialNumber", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeSerialNumber;
-
- /*
- * Display Name of the individual node
- */
- @JsonProperty(value = "properties.nodeDisplayName", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeDisplayName;
-
- /*
- * Friendly software version name that is currently installed on the node
- */
- @JsonProperty(value = "properties.nodeFriendlySoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeFriendlySoftwareVersion;
-
- /*
- * HCS version that is currently installed on the node
- */
- @JsonProperty(value = "properties.nodeHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeHcsVersion;
-
- /*
- * Guid instance id of the node
+ /**
+ * Get the innerProperties property: The properties of the node.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.nodeInstanceId", access = JsonProperty.Access.WRITE_ONLY)
- private String nodeInstanceId;
+ private NodeProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the nodeStatus property: The current status of the individual node.
@@ -69,7 +40,7 @@ public class NodeInner extends ArmBaseModel {
* @return the nodeStatus value.
*/
public NodeStatus nodeStatus() {
- return this.nodeStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeStatus();
}
/**
@@ -78,7 +49,7 @@ public NodeStatus nodeStatus() {
* @return the nodeChassisSerialNumber value.
*/
public String nodeChassisSerialNumber() {
- return this.nodeChassisSerialNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeChassisSerialNumber();
}
/**
@@ -87,7 +58,7 @@ public String nodeChassisSerialNumber() {
* @return the nodeSerialNumber value.
*/
public String nodeSerialNumber() {
- return this.nodeSerialNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeSerialNumber();
}
/**
@@ -96,7 +67,7 @@ public String nodeSerialNumber() {
* @return the nodeDisplayName value.
*/
public String nodeDisplayName() {
- return this.nodeDisplayName;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeDisplayName();
}
/**
@@ -106,7 +77,7 @@ public String nodeDisplayName() {
* @return the nodeFriendlySoftwareVersion value.
*/
public String nodeFriendlySoftwareVersion() {
- return this.nodeFriendlySoftwareVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeFriendlySoftwareVersion();
}
/**
@@ -115,7 +86,7 @@ public String nodeFriendlySoftwareVersion() {
* @return the nodeHcsVersion value.
*/
public String nodeHcsVersion() {
- return this.nodeHcsVersion;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeHcsVersion();
}
/**
@@ -124,7 +95,7 @@ public String nodeHcsVersion() {
* @return the nodeInstanceId value.
*/
public String nodeInstanceId() {
- return this.nodeInstanceId;
+ return this.innerProperties() == null ? null : this.innerProperties().nodeInstanceId();
}
/**
@@ -135,5 +106,8 @@ public String nodeInstanceId() {
@Override
public void validate() {
super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeProperties.java
new file mode 100644
index 0000000000000..3d0808f2b76e5
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/NodeProperties.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.NodeStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** This class represents the nodes in a highly available cluster. */
+@Immutable
+public final class NodeProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(NodeProperties.class);
+
+ /*
+ * The current status of the individual node
+ */
+ @JsonProperty(value = "nodeStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private NodeStatus nodeStatus;
+
+ /*
+ * Serial number of the Chassis
+ */
+ @JsonProperty(value = "nodeChassisSerialNumber", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeChassisSerialNumber;
+
+ /*
+ * Serial number of the individual node
+ */
+ @JsonProperty(value = "nodeSerialNumber", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeSerialNumber;
+
+ /*
+ * Display Name of the individual node
+ */
+ @JsonProperty(value = "nodeDisplayName", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeDisplayName;
+
+ /*
+ * Friendly software version name that is currently installed on the node
+ */
+ @JsonProperty(value = "nodeFriendlySoftwareVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeFriendlySoftwareVersion;
+
+ /*
+ * HCS version that is currently installed on the node
+ */
+ @JsonProperty(value = "nodeHcsVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeHcsVersion;
+
+ /*
+ * Guid instance id of the node
+ */
+ @JsonProperty(value = "nodeInstanceId", access = JsonProperty.Access.WRITE_ONLY)
+ private String nodeInstanceId;
+
+ /**
+ * Get the nodeStatus property: The current status of the individual node.
+ *
+ * @return the nodeStatus value.
+ */
+ public NodeStatus nodeStatus() {
+ return this.nodeStatus;
+ }
+
+ /**
+ * Get the nodeChassisSerialNumber property: Serial number of the Chassis.
+ *
+ * @return the nodeChassisSerialNumber value.
+ */
+ public String nodeChassisSerialNumber() {
+ return this.nodeChassisSerialNumber;
+ }
+
+ /**
+ * Get the nodeSerialNumber property: Serial number of the individual node.
+ *
+ * @return the nodeSerialNumber value.
+ */
+ public String nodeSerialNumber() {
+ return this.nodeSerialNumber;
+ }
+
+ /**
+ * Get the nodeDisplayName property: Display Name of the individual node.
+ *
+ * @return the nodeDisplayName value.
+ */
+ public String nodeDisplayName() {
+ return this.nodeDisplayName;
+ }
+
+ /**
+ * Get the nodeFriendlySoftwareVersion property: Friendly software version name that is currently installed on the
+ * node.
+ *
+ * @return the nodeFriendlySoftwareVersion value.
+ */
+ public String nodeFriendlySoftwareVersion() {
+ return this.nodeFriendlySoftwareVersion;
+ }
+
+ /**
+ * Get the nodeHcsVersion property: HCS version that is currently installed on the node.
+ *
+ * @return the nodeHcsVersion value.
+ */
+ public String nodeHcsVersion() {
+ return this.nodeHcsVersion;
+ }
+
+ /**
+ * Get the nodeInstanceId property: Guid instance id of the node.
+ *
+ * @return the nodeInstanceId value.
+ */
+ public String nodeInstanceId() {
+ return this.nodeInstanceId;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationInner.java
index e534c0cf2f7ae..ef688a94cfc2e 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationInner.java
@@ -5,7 +5,6 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.OperationDisplay;
import com.azure.resourcemanager.databoxedge.models.ServiceSpecification;
@@ -13,9 +12,8 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** Operations. */
-@JsonFlatten
@Fluent
-public class OperationInner {
+public final class OperationInner {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OperationInner.class);
/*
@@ -24,6 +22,12 @@ public class OperationInner {
@JsonProperty(value = "name")
private String name;
+ /*
+ * Is data action.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
/*
* Properties displayed for the operation.
*/
@@ -37,10 +41,10 @@ public class OperationInner {
private String origin;
/*
- * Service specification.
+ * Operation properties.
*/
- @JsonProperty(value = "properties.serviceSpecification")
- private ServiceSpecification serviceSpecification;
+ @JsonProperty(value = "properties")
+ private OperationProperties innerProperties;
/**
* Get the name property: Name of the operation.
@@ -62,6 +66,26 @@ public OperationInner withName(String name) {
return this;
}
+ /**
+ * Get the isDataAction property: Is data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Is data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
/**
* Get the display property: Properties displayed for the operation.
*
@@ -102,13 +126,22 @@ public OperationInner withOrigin(String origin) {
return this;
}
+ /**
+ * Get the innerProperties property: Operation properties.
+ *
+ * @return the innerProperties value.
+ */
+ private OperationProperties innerProperties() {
+ return this.innerProperties;
+ }
+
/**
* Get the serviceSpecification property: Service specification.
*
* @return the serviceSpecification value.
*/
public ServiceSpecification serviceSpecification() {
- return this.serviceSpecification;
+ return this.innerProperties() == null ? null : this.innerProperties().serviceSpecification();
}
/**
@@ -118,7 +151,10 @@ public ServiceSpecification serviceSpecification() {
* @return the OperationInner object itself.
*/
public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) {
- this.serviceSpecification = serviceSpecification;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new OperationProperties();
+ }
+ this.innerProperties().withServiceSpecification(serviceSpecification);
return this;
}
@@ -131,8 +167,8 @@ public void validate() {
if (display() != null) {
display().validate();
}
- if (serviceSpecification() != null) {
- serviceSpecification().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationProperties.java
new file mode 100644
index 0000000000000..7ed6ed262e8be
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OperationProperties.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ServiceSpecification;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Operation properties. */
+@Fluent
+public final class OperationProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationProperties.class);
+
+ /*
+ * Service specification.
+ */
+ @JsonProperty(value = "serviceSpecification")
+ private ServiceSpecification serviceSpecification;
+
+ /**
+ * Get the serviceSpecification property: Service specification.
+ *
+ * @return the serviceSpecification value.
+ */
+ public ServiceSpecification serviceSpecification() {
+ return this.serviceSpecification;
+ }
+
+ /**
+ * Set the serviceSpecification property: Service specification.
+ *
+ * @param serviceSpecification the serviceSpecification value to set.
+ * @return the OperationProperties object itself.
+ */
+ public OperationProperties withServiceSpecification(ServiceSpecification serviceSpecification) {
+ this.serviceSpecification = serviceSpecification;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceSpecification() != null) {
+ serviceSpecification().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderInner.java
index 34ff53e2c15fd..3e2b00b6e6b81 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderInner.java
@@ -5,66 +5,52 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.Address;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.ContactDetails;
import com.azure.resourcemanager.databoxedge.models.OrderStatus;
+import com.azure.resourcemanager.databoxedge.models.ShipmentType;
import com.azure.resourcemanager.databoxedge.models.TrackingInfo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The order details. */
-@JsonFlatten
@Fluent
-public class OrderInner extends ArmBaseModel {
+public final class OrderInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(OrderInner.class);
/*
- * The contact details.
+ * Order configured on ASE resource
*/
- @JsonProperty(value = "properties.contactInformation")
- private ContactDetails contactInformation;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * The shipping address.
+ * The order properties.
*/
- @JsonProperty(value = "properties.shippingAddress")
- private Address shippingAddress;
+ @JsonProperty(value = "properties")
+ private OrderProperties innerProperties;
- /*
- * Current status of the order.
- */
- @JsonProperty(value = "properties.currentStatus")
- private OrderStatus currentStatus;
-
- /*
- * List of status changes in the order.
- */
- @JsonProperty(value = "properties.orderHistory", access = JsonProperty.Access.WRITE_ONLY)
- private List orderHistory;
-
- /*
- * Serial number of the device.
- */
- @JsonProperty(value = "properties.serialNumber", access = JsonProperty.Access.WRITE_ONLY)
- private String serialNumber;
-
- /*
- * Tracking information for the package delivered to the customer whether
- * it has an original or a replacement device.
+ /**
+ * Get the systemData property: Order configured on ASE resource.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.deliveryTrackingInfo", access = JsonProperty.Access.WRITE_ONLY)
- private List deliveryTrackingInfo;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * Tracking information for the package returned from the customer whether
- * it has an original or a replacement device.
+ /**
+ * Get the innerProperties property: The order properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.returnTrackingInfo", access = JsonProperty.Access.WRITE_ONLY)
- private List returnTrackingInfo;
+ private OrderProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the contactInformation property: The contact details.
@@ -72,7 +58,7 @@ public class OrderInner extends ArmBaseModel {
* @return the contactInformation value.
*/
public ContactDetails contactInformation() {
- return this.contactInformation;
+ return this.innerProperties() == null ? null : this.innerProperties().contactInformation();
}
/**
@@ -82,7 +68,10 @@ public ContactDetails contactInformation() {
* @return the OrderInner object itself.
*/
public OrderInner withContactInformation(ContactDetails contactInformation) {
- this.contactInformation = contactInformation;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new OrderProperties();
+ }
+ this.innerProperties().withContactInformation(contactInformation);
return this;
}
@@ -92,7 +81,7 @@ public OrderInner withContactInformation(ContactDetails contactInformation) {
* @return the shippingAddress value.
*/
public Address shippingAddress() {
- return this.shippingAddress;
+ return this.innerProperties() == null ? null : this.innerProperties().shippingAddress();
}
/**
@@ -102,7 +91,10 @@ public Address shippingAddress() {
* @return the OrderInner object itself.
*/
public OrderInner withShippingAddress(Address shippingAddress) {
- this.shippingAddress = shippingAddress;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new OrderProperties();
+ }
+ this.innerProperties().withShippingAddress(shippingAddress);
return this;
}
@@ -112,18 +104,7 @@ public OrderInner withShippingAddress(Address shippingAddress) {
* @return the currentStatus value.
*/
public OrderStatus currentStatus() {
- return this.currentStatus;
- }
-
- /**
- * Set the currentStatus property: Current status of the order.
- *
- * @param currentStatus the currentStatus value to set.
- * @return the OrderInner object itself.
- */
- public OrderInner withCurrentStatus(OrderStatus currentStatus) {
- this.currentStatus = currentStatus;
- return this;
+ return this.innerProperties() == null ? null : this.innerProperties().currentStatus();
}
/**
@@ -132,7 +113,7 @@ public OrderInner withCurrentStatus(OrderStatus currentStatus) {
* @return the orderHistory value.
*/
public List orderHistory() {
- return this.orderHistory;
+ return this.innerProperties() == null ? null : this.innerProperties().orderHistory();
}
/**
@@ -141,7 +122,7 @@ public List orderHistory() {
* @return the serialNumber value.
*/
public String serialNumber() {
- return this.serialNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().serialNumber();
}
/**
@@ -151,7 +132,7 @@ public String serialNumber() {
* @return the deliveryTrackingInfo value.
*/
public List deliveryTrackingInfo() {
- return this.deliveryTrackingInfo;
+ return this.innerProperties() == null ? null : this.innerProperties().deliveryTrackingInfo();
}
/**
@@ -161,7 +142,30 @@ public List deliveryTrackingInfo() {
* @return the returnTrackingInfo value.
*/
public List returnTrackingInfo() {
- return this.returnTrackingInfo;
+ return this.innerProperties() == null ? null : this.innerProperties().returnTrackingInfo();
+ }
+
+ /**
+ * Get the shipmentType property: ShipmentType of the order.
+ *
+ * @return the shipmentType value.
+ */
+ public ShipmentType shipmentType() {
+ return this.innerProperties() == null ? null : this.innerProperties().shipmentType();
+ }
+
+ /**
+ * Set the shipmentType property: ShipmentType of the order.
+ *
+ * @param shipmentType the shipmentType value to set.
+ * @return the OrderInner object itself.
+ */
+ public OrderInner withShipmentType(ShipmentType shipmentType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new OrderProperties();
+ }
+ this.innerProperties().withShipmentType(shipmentType);
+ return this;
}
/**
@@ -172,23 +176,8 @@ public List returnTrackingInfo() {
@Override
public void validate() {
super.validate();
- if (contactInformation() != null) {
- contactInformation().validate();
- }
- if (shippingAddress() != null) {
- shippingAddress().validate();
- }
- if (currentStatus() != null) {
- currentStatus().validate();
- }
- if (orderHistory() != null) {
- orderHistory().forEach(e -> e.validate());
- }
- if (deliveryTrackingInfo() != null) {
- deliveryTrackingInfo().forEach(e -> e.validate());
- }
- if (returnTrackingInfo() != null) {
- returnTrackingInfo().forEach(e -> e.validate());
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderProperties.java
new file mode 100644
index 0000000000000..27bc316c558f8
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/OrderProperties.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.Address;
+import com.azure.resourcemanager.databoxedge.models.ContactDetails;
+import com.azure.resourcemanager.databoxedge.models.OrderStatus;
+import com.azure.resourcemanager.databoxedge.models.ShipmentType;
+import com.azure.resourcemanager.databoxedge.models.TrackingInfo;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Order properties. */
+@Fluent
+public final class OrderProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(OrderProperties.class);
+
+ /*
+ * The contact details.
+ */
+ @JsonProperty(value = "contactInformation", required = true)
+ private ContactDetails contactInformation;
+
+ /*
+ * The shipping address.
+ */
+ @JsonProperty(value = "shippingAddress")
+ private Address shippingAddress;
+
+ /*
+ * Current status of the order.
+ */
+ @JsonProperty(value = "currentStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private OrderStatus currentStatus;
+
+ /*
+ * List of status changes in the order.
+ */
+ @JsonProperty(value = "orderHistory", access = JsonProperty.Access.WRITE_ONLY)
+ private List orderHistory;
+
+ /*
+ * Serial number of the device.
+ */
+ @JsonProperty(value = "serialNumber", access = JsonProperty.Access.WRITE_ONLY)
+ private String serialNumber;
+
+ /*
+ * Tracking information for the package delivered to the customer whether
+ * it has an original or a replacement device.
+ */
+ @JsonProperty(value = "deliveryTrackingInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List deliveryTrackingInfo;
+
+ /*
+ * Tracking information for the package returned from the customer whether
+ * it has an original or a replacement device.
+ */
+ @JsonProperty(value = "returnTrackingInfo", access = JsonProperty.Access.WRITE_ONLY)
+ private List returnTrackingInfo;
+
+ /*
+ * ShipmentType of the order
+ */
+ @JsonProperty(value = "shipmentType")
+ private ShipmentType shipmentType;
+
+ /**
+ * Get the contactInformation property: The contact details.
+ *
+ * @return the contactInformation value.
+ */
+ public ContactDetails contactInformation() {
+ return this.contactInformation;
+ }
+
+ /**
+ * Set the contactInformation property: The contact details.
+ *
+ * @param contactInformation the contactInformation value to set.
+ * @return the OrderProperties object itself.
+ */
+ public OrderProperties withContactInformation(ContactDetails contactInformation) {
+ this.contactInformation = contactInformation;
+ return this;
+ }
+
+ /**
+ * Get the shippingAddress property: The shipping address.
+ *
+ * @return the shippingAddress value.
+ */
+ public Address shippingAddress() {
+ return this.shippingAddress;
+ }
+
+ /**
+ * Set the shippingAddress property: The shipping address.
+ *
+ * @param shippingAddress the shippingAddress value to set.
+ * @return the OrderProperties object itself.
+ */
+ public OrderProperties withShippingAddress(Address shippingAddress) {
+ this.shippingAddress = shippingAddress;
+ return this;
+ }
+
+ /**
+ * Get the currentStatus property: Current status of the order.
+ *
+ * @return the currentStatus value.
+ */
+ public OrderStatus currentStatus() {
+ return this.currentStatus;
+ }
+
+ /**
+ * Get the orderHistory property: List of status changes in the order.
+ *
+ * @return the orderHistory value.
+ */
+ public List orderHistory() {
+ return this.orderHistory;
+ }
+
+ /**
+ * Get the serialNumber property: Serial number of the device.
+ *
+ * @return the serialNumber value.
+ */
+ public String serialNumber() {
+ return this.serialNumber;
+ }
+
+ /**
+ * Get the deliveryTrackingInfo property: Tracking information for the package delivered to the customer whether it
+ * has an original or a replacement device.
+ *
+ * @return the deliveryTrackingInfo value.
+ */
+ public List deliveryTrackingInfo() {
+ return this.deliveryTrackingInfo;
+ }
+
+ /**
+ * Get the returnTrackingInfo property: Tracking information for the package returned from the customer whether it
+ * has an original or a replacement device.
+ *
+ * @return the returnTrackingInfo value.
+ */
+ public List returnTrackingInfo() {
+ return this.returnTrackingInfo;
+ }
+
+ /**
+ * Get the shipmentType property: ShipmentType of the order.
+ *
+ * @return the shipmentType value.
+ */
+ public ShipmentType shipmentType() {
+ return this.shipmentType;
+ }
+
+ /**
+ * Set the shipmentType property: ShipmentType of the order.
+ *
+ * @param shipmentType the shipmentType value to set.
+ * @return the OrderProperties object itself.
+ */
+ public OrderProperties withShipmentType(ShipmentType shipmentType) {
+ this.shipmentType = shipmentType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (contactInformation() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property contactInformation in model OrderProperties"));
+ } else {
+ contactInformation().validate();
+ }
+ if (shippingAddress() != null) {
+ shippingAddress().validate();
+ }
+ if (currentStatus() != null) {
+ currentStatus().validate();
+ }
+ if (orderHistory() != null) {
+ orderHistory().forEach(e -> e.validate());
+ }
+ if (deliveryTrackingInfo() != null) {
+ deliveryTrackingInfo().forEach(e -> e.validate());
+ }
+ if (returnTrackingInfo() != null) {
+ returnTrackingInfo().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/PeriodicTimerProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/PeriodicTimerProperties.java
new file mode 100644
index 0000000000000..38583f2a5dbe3
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/PeriodicTimerProperties.java
@@ -0,0 +1,127 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.PeriodicTimerSourceInfo;
+import com.azure.resourcemanager.databoxedge.models.RoleSinkInfo;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Periodic timer trigger properties. */
+@Fluent
+public final class PeriodicTimerProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(PeriodicTimerProperties.class);
+
+ /*
+ * Periodic timer details.
+ */
+ @JsonProperty(value = "sourceInfo", required = true)
+ private PeriodicTimerSourceInfo sourceInfo;
+
+ /*
+ * Role Sink information.
+ */
+ @JsonProperty(value = "sinkInfo", required = true)
+ private RoleSinkInfo sinkInfo;
+
+ /*
+ * A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain
+ * specific IoT modules in the device, the tag can be the name or the image
+ * URL of the module.
+ */
+ @JsonProperty(value = "customContextTag")
+ private String customContextTag;
+
+ /**
+ * Get the sourceInfo property: Periodic timer details.
+ *
+ * @return the sourceInfo value.
+ */
+ public PeriodicTimerSourceInfo sourceInfo() {
+ return this.sourceInfo;
+ }
+
+ /**
+ * Set the sourceInfo property: Periodic timer details.
+ *
+ * @param sourceInfo the sourceInfo value to set.
+ * @return the PeriodicTimerProperties object itself.
+ */
+ public PeriodicTimerProperties withSourceInfo(PeriodicTimerSourceInfo sourceInfo) {
+ this.sourceInfo = sourceInfo;
+ return this;
+ }
+
+ /**
+ * Get the sinkInfo property: Role Sink information.
+ *
+ * @return the sinkInfo value.
+ */
+ public RoleSinkInfo sinkInfo() {
+ return this.sinkInfo;
+ }
+
+ /**
+ * Set the sinkInfo property: Role Sink information.
+ *
+ * @param sinkInfo the sinkInfo value to set.
+ * @return the PeriodicTimerProperties object itself.
+ */
+ public PeriodicTimerProperties withSinkInfo(RoleSinkInfo sinkInfo) {
+ this.sinkInfo = sinkInfo;
+ return this;
+ }
+
+ /**
+ * Get the customContextTag property: A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the
+ * tag can be the name or the image URL of the module.
+ *
+ * @return the customContextTag value.
+ */
+ public String customContextTag() {
+ return this.customContextTag;
+ }
+
+ /**
+ * Set the customContextTag property: A custom context tag typically used to correlate the trigger against its
+ * usage. For example, if a periodic timer trigger is intended for certain specific IoT modules in the device, the
+ * tag can be the name or the image URL of the module.
+ *
+ * @param customContextTag the customContextTag value to set.
+ * @return the PeriodicTimerProperties object itself.
+ */
+ public PeriodicTimerProperties withCustomContextTag(String customContextTag) {
+ this.customContextTag = customContextTag;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sourceInfo() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sourceInfo in model PeriodicTimerProperties"));
+ } else {
+ sourceInfo().validate();
+ }
+ if (sinkInfo() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sinkInfo in model PeriodicTimerProperties"));
+ } else {
+ sinkInfo().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ProactiveLogCollectionSettingsProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ProactiveLogCollectionSettingsProperties.java
new file mode 100644
index 0000000000000..1ccc3d047a07c
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ProactiveLogCollectionSettingsProperties.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.ProactiveDiagnosticsConsent;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of proactive log collection settings. */
+@Fluent
+public final class ProactiveLogCollectionSettingsProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ProactiveLogCollectionSettingsProperties.class);
+
+ /*
+ * Proactive diagnostic collection consent flag
+ */
+ @JsonProperty(value = "userConsent", required = true)
+ private ProactiveDiagnosticsConsent userConsent;
+
+ /**
+ * Get the userConsent property: Proactive diagnostic collection consent flag.
+ *
+ * @return the userConsent value.
+ */
+ public ProactiveDiagnosticsConsent userConsent() {
+ return this.userConsent;
+ }
+
+ /**
+ * Set the userConsent property: Proactive diagnostic collection consent flag.
+ *
+ * @param userConsent the userConsent value to set.
+ * @return the ProactiveLogCollectionSettingsProperties object itself.
+ */
+ public ProactiveLogCollectionSettingsProperties withUserConsent(ProactiveDiagnosticsConsent userConsent) {
+ this.userConsent = userConsent;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (userConsent() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property userConsent in model ProactiveLogCollectionSettingsProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RawCertificateData.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RawCertificateData.java
new file mode 100644
index 0000000000000..9a3ec602f8e51
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RawCertificateData.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.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AuthenticationType;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Raw Certificate Data. */
+@Fluent
+public final class RawCertificateData {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(RawCertificateData.class);
+
+ /*
+ * The authentication type.
+ */
+ @JsonProperty(value = "authenticationType")
+ private AuthenticationType authenticationType;
+
+ /*
+ * The base64 encoded certificate raw data.
+ */
+ @JsonProperty(value = "certificate", required = true)
+ private String certificate;
+
+ /**
+ * Get the authenticationType property: The authentication type.
+ *
+ * @return the authenticationType value.
+ */
+ public AuthenticationType authenticationType() {
+ return this.authenticationType;
+ }
+
+ /**
+ * Set the authenticationType property: The authentication type.
+ *
+ * @param authenticationType the authenticationType value to set.
+ * @return the RawCertificateData object itself.
+ */
+ public RawCertificateData withAuthenticationType(AuthenticationType authenticationType) {
+ this.authenticationType = authenticationType;
+ return this;
+ }
+
+ /**
+ * Get the certificate property: The base64 encoded certificate raw data.
+ *
+ * @return the certificate value.
+ */
+ public String certificate() {
+ return this.certificate;
+ }
+
+ /**
+ * Set the certificate property: The base64 encoded certificate raw data.
+ *
+ * @param certificate the certificate value to set.
+ * @return the RawCertificateData object itself.
+ */
+ public RawCertificateData withCertificate(String certificate) {
+ this.certificate = certificate;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (certificate() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property certificate in model RawCertificateData"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RoleInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RoleInner.java
index 06f52481c0a6a..5ddb23e9d9a1c 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RoleInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/RoleInner.java
@@ -5,10 +5,15 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
+import com.azure.resourcemanager.databoxedge.models.CloudEdgeManagementRole;
import com.azure.resourcemanager.databoxedge.models.IoTRole;
+import com.azure.resourcemanager.databoxedge.models.KubernetesRole;
+import com.azure.resourcemanager.databoxedge.models.MecRole;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -20,11 +25,31 @@
property = "kind",
defaultImpl = RoleInner.class)
@JsonTypeName("Role")
-@JsonSubTypes({@JsonSubTypes.Type(name = "IOT", value = IoTRole.class)})
+@JsonSubTypes({
+ @JsonSubTypes.Type(name = "CloudEdgeManagement", value = CloudEdgeManagementRole.class),
+ @JsonSubTypes.Type(name = "IOT", value = IoTRole.class),
+ @JsonSubTypes.Type(name = "Kubernetes", value = KubernetesRole.class),
+ @JsonSubTypes.Type(name = "MEC", value = MecRole.class)
+})
@Immutable
public class RoleInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(RoleInner.class);
+ /*
+ * Role configured on ASE resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the systemData property: Role configured on ASE resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SecuritySettingsProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SecuritySettingsProperties.java
new file mode 100644
index 0000000000000..18620a062b6d7
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SecuritySettingsProperties.java
@@ -0,0 +1,66 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The properties of security settings. */
+@Fluent
+public final class SecuritySettingsProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SecuritySettingsProperties.class);
+
+ /*
+ * Device administrator password as an encrypted string (encrypted using
+ * RSA PKCS #1) is used to sign into the local web UI of the device. The
+ * Actual password should have at least 8 characters that are a combination
+ * of uppercase, lowercase, numeric, and special characters.
+ */
+ @JsonProperty(value = "deviceAdminPassword", required = true)
+ private AsymmetricEncryptedSecret deviceAdminPassword;
+
+ /**
+ * Get the deviceAdminPassword property: Device administrator password as an encrypted string (encrypted using RSA
+ * PKCS #1) is used to sign into the local web UI of the device. The Actual password should have at least 8
+ * characters that are a combination of uppercase, lowercase, numeric, and special characters.
+ *
+ * @return the deviceAdminPassword value.
+ */
+ public AsymmetricEncryptedSecret deviceAdminPassword() {
+ return this.deviceAdminPassword;
+ }
+
+ /**
+ * Set the deviceAdminPassword property: Device administrator password as an encrypted string (encrypted using RSA
+ * PKCS #1) is used to sign into the local web UI of the device. The Actual password should have at least 8
+ * characters that are a combination of uppercase, lowercase, numeric, and special characters.
+ *
+ * @param deviceAdminPassword the deviceAdminPassword value to set.
+ * @return the SecuritySettingsProperties object itself.
+ */
+ public SecuritySettingsProperties withDeviceAdminPassword(AsymmetricEncryptedSecret deviceAdminPassword) {
+ this.deviceAdminPassword = deviceAdminPassword;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (deviceAdminPassword() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property deviceAdminPassword in model SecuritySettingsProperties"));
+ } else {
+ deviceAdminPassword().validate();
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareInner.java
index 280d6bc637031..02887438266f2 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.AzureContainerInfo;
@@ -22,72 +22,39 @@
import java.util.List;
/** Represents a share on the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class ShareInner extends ArmBaseModel {
+public final class ShareInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ShareInner.class);
/*
- * Description for the share.
+ * Share on ASE device
*/
- @JsonProperty(value = "properties.description")
- private String description;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * Current status of the share.
+ * The share properties.
*/
- @JsonProperty(value = "properties.shareStatus", required = true)
- private ShareStatus shareStatus;
+ @JsonProperty(value = "properties", required = true)
+ private ShareProperties innerProperties = new ShareProperties();
- /*
- * Current monitoring status of the share.
- */
- @JsonProperty(value = "properties.monitoringStatus", required = true)
- private MonitoringStatus monitoringStatus;
-
- /*
- * Azure container mapping for the share.
- */
- @JsonProperty(value = "properties.azureContainerInfo")
- private AzureContainerInfo azureContainerInfo;
-
- /*
- * Access protocol to be used by the share.
- */
- @JsonProperty(value = "properties.accessProtocol", required = true)
- private ShareAccessProtocol accessProtocol;
-
- /*
- * Mapping of users and corresponding access rights on the share (required
- * for SMB protocol).
- */
- @JsonProperty(value = "properties.userAccessRights")
- private List userAccessRights;
-
- /*
- * List of IP addresses and corresponding access rights on the
- * share(required for NFS protocol).
- */
- @JsonProperty(value = "properties.clientAccessRights")
- private List clientAccessRights;
-
- /*
- * Details of the refresh job on this share.
- */
- @JsonProperty(value = "properties.refreshDetails")
- private RefreshDetails refreshDetails;
-
- /*
- * Share mount point to the role.
+ /**
+ * Get the systemData property: Share on ASE device.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.shareMappings", access = JsonProperty.Access.WRITE_ONLY)
- private List shareMappings;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * Data policy of the share.
+ /**
+ * Get the innerProperties property: The share properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.dataPolicy")
- private DataPolicy dataPolicy;
+ private ShareProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the description property: Description for the share.
@@ -95,7 +62,7 @@ public class ShareInner extends ArmBaseModel {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -105,7 +72,10 @@ public String description() {
* @return the ShareInner object itself.
*/
public ShareInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -115,7 +85,7 @@ public ShareInner withDescription(String description) {
* @return the shareStatus value.
*/
public ShareStatus shareStatus() {
- return this.shareStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().shareStatus();
}
/**
@@ -125,7 +95,10 @@ public ShareStatus shareStatus() {
* @return the ShareInner object itself.
*/
public ShareInner withShareStatus(ShareStatus shareStatus) {
- this.shareStatus = shareStatus;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withShareStatus(shareStatus);
return this;
}
@@ -135,7 +108,7 @@ public ShareInner withShareStatus(ShareStatus shareStatus) {
* @return the monitoringStatus value.
*/
public MonitoringStatus monitoringStatus() {
- return this.monitoringStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().monitoringStatus();
}
/**
@@ -145,7 +118,10 @@ public MonitoringStatus monitoringStatus() {
* @return the ShareInner object itself.
*/
public ShareInner withMonitoringStatus(MonitoringStatus monitoringStatus) {
- this.monitoringStatus = monitoringStatus;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withMonitoringStatus(monitoringStatus);
return this;
}
@@ -155,7 +131,7 @@ public ShareInner withMonitoringStatus(MonitoringStatus monitoringStatus) {
* @return the azureContainerInfo value.
*/
public AzureContainerInfo azureContainerInfo() {
- return this.azureContainerInfo;
+ return this.innerProperties() == null ? null : this.innerProperties().azureContainerInfo();
}
/**
@@ -165,7 +141,10 @@ public AzureContainerInfo azureContainerInfo() {
* @return the ShareInner object itself.
*/
public ShareInner withAzureContainerInfo(AzureContainerInfo azureContainerInfo) {
- this.azureContainerInfo = azureContainerInfo;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withAzureContainerInfo(azureContainerInfo);
return this;
}
@@ -175,7 +154,7 @@ public ShareInner withAzureContainerInfo(AzureContainerInfo azureContainerInfo)
* @return the accessProtocol value.
*/
public ShareAccessProtocol accessProtocol() {
- return this.accessProtocol;
+ return this.innerProperties() == null ? null : this.innerProperties().accessProtocol();
}
/**
@@ -185,7 +164,10 @@ public ShareAccessProtocol accessProtocol() {
* @return the ShareInner object itself.
*/
public ShareInner withAccessProtocol(ShareAccessProtocol accessProtocol) {
- this.accessProtocol = accessProtocol;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withAccessProtocol(accessProtocol);
return this;
}
@@ -196,7 +178,7 @@ public ShareInner withAccessProtocol(ShareAccessProtocol accessProtocol) {
* @return the userAccessRights value.
*/
public List userAccessRights() {
- return this.userAccessRights;
+ return this.innerProperties() == null ? null : this.innerProperties().userAccessRights();
}
/**
@@ -207,7 +189,10 @@ public List userAccessRights() {
* @return the ShareInner object itself.
*/
public ShareInner withUserAccessRights(List userAccessRights) {
- this.userAccessRights = userAccessRights;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withUserAccessRights(userAccessRights);
return this;
}
@@ -218,7 +203,7 @@ public ShareInner withUserAccessRights(List userAccessRights) {
* @return the clientAccessRights value.
*/
public List clientAccessRights() {
- return this.clientAccessRights;
+ return this.innerProperties() == null ? null : this.innerProperties().clientAccessRights();
}
/**
@@ -229,7 +214,10 @@ public List clientAccessRights() {
* @return the ShareInner object itself.
*/
public ShareInner withClientAccessRights(List clientAccessRights) {
- this.clientAccessRights = clientAccessRights;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withClientAccessRights(clientAccessRights);
return this;
}
@@ -239,7 +227,7 @@ public ShareInner withClientAccessRights(List clientAccessRig
* @return the refreshDetails value.
*/
public RefreshDetails refreshDetails() {
- return this.refreshDetails;
+ return this.innerProperties() == null ? null : this.innerProperties().refreshDetails();
}
/**
@@ -249,7 +237,10 @@ public RefreshDetails refreshDetails() {
* @return the ShareInner object itself.
*/
public ShareInner withRefreshDetails(RefreshDetails refreshDetails) {
- this.refreshDetails = refreshDetails;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withRefreshDetails(refreshDetails);
return this;
}
@@ -259,7 +250,7 @@ public ShareInner withRefreshDetails(RefreshDetails refreshDetails) {
* @return the shareMappings value.
*/
public List shareMappings() {
- return this.shareMappings;
+ return this.innerProperties() == null ? null : this.innerProperties().shareMappings();
}
/**
@@ -268,7 +259,7 @@ public List shareMappings() {
* @return the dataPolicy value.
*/
public DataPolicy dataPolicy() {
- return this.dataPolicy;
+ return this.innerProperties() == null ? null : this.innerProperties().dataPolicy();
}
/**
@@ -278,7 +269,10 @@ public DataPolicy dataPolicy() {
* @return the ShareInner object itself.
*/
public ShareInner withDataPolicy(DataPolicy dataPolicy) {
- this.dataPolicy = dataPolicy;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new ShareProperties();
+ }
+ this.innerProperties().withDataPolicy(dataPolicy);
return this;
}
@@ -290,35 +284,12 @@ public ShareInner withDataPolicy(DataPolicy dataPolicy) {
@Override
public void validate() {
super.validate();
- if (shareStatus() == null) {
+ if (innerProperties() == null) {
throw logger
.logExceptionAsError(
- new IllegalArgumentException("Missing required property shareStatus in model ShareInner"));
- }
- if (monitoringStatus() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property monitoringStatus in model ShareInner"));
- }
- if (azureContainerInfo() != null) {
- azureContainerInfo().validate();
- }
- if (accessProtocol() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException("Missing required property accessProtocol in model ShareInner"));
- }
- if (userAccessRights() != null) {
- userAccessRights().forEach(e -> e.validate());
- }
- if (clientAccessRights() != null) {
- clientAccessRights().forEach(e -> e.validate());
- }
- if (refreshDetails() != null) {
- refreshDetails().validate();
- }
- if (shareMappings() != null) {
- shareMappings().forEach(e -> e.validate());
+ new IllegalArgumentException("Missing required property innerProperties in model ShareInner"));
+ } else {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareProperties.java
new file mode 100644
index 0000000000000..a2ff51c64d0d4
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/ShareProperties.java
@@ -0,0 +1,320 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AzureContainerInfo;
+import com.azure.resourcemanager.databoxedge.models.ClientAccessRight;
+import com.azure.resourcemanager.databoxedge.models.DataPolicy;
+import com.azure.resourcemanager.databoxedge.models.MonitoringStatus;
+import com.azure.resourcemanager.databoxedge.models.MountPointMap;
+import com.azure.resourcemanager.databoxedge.models.RefreshDetails;
+import com.azure.resourcemanager.databoxedge.models.ShareAccessProtocol;
+import com.azure.resourcemanager.databoxedge.models.ShareStatus;
+import com.azure.resourcemanager.databoxedge.models.UserAccessRight;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The share properties. */
+@Fluent
+public final class ShareProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(ShareProperties.class);
+
+ /*
+ * Description for the share.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * Current status of the share.
+ */
+ @JsonProperty(value = "shareStatus", required = true)
+ private ShareStatus shareStatus;
+
+ /*
+ * Current monitoring status of the share.
+ */
+ @JsonProperty(value = "monitoringStatus", required = true)
+ private MonitoringStatus monitoringStatus;
+
+ /*
+ * Azure container mapping for the share.
+ */
+ @JsonProperty(value = "azureContainerInfo")
+ private AzureContainerInfo azureContainerInfo;
+
+ /*
+ * Access protocol to be used by the share.
+ */
+ @JsonProperty(value = "accessProtocol", required = true)
+ private ShareAccessProtocol accessProtocol;
+
+ /*
+ * Mapping of users and corresponding access rights on the share (required
+ * for SMB protocol).
+ */
+ @JsonProperty(value = "userAccessRights")
+ private List userAccessRights;
+
+ /*
+ * List of IP addresses and corresponding access rights on the
+ * share(required for NFS protocol).
+ */
+ @JsonProperty(value = "clientAccessRights")
+ private List clientAccessRights;
+
+ /*
+ * Details of the refresh job on this share.
+ */
+ @JsonProperty(value = "refreshDetails")
+ private RefreshDetails refreshDetails;
+
+ /*
+ * Share mount point to the role.
+ */
+ @JsonProperty(value = "shareMappings", access = JsonProperty.Access.WRITE_ONLY)
+ private List shareMappings;
+
+ /*
+ * Data policy of the share.
+ */
+ @JsonProperty(value = "dataPolicy")
+ private DataPolicy dataPolicy;
+
+ /**
+ * Get the description property: Description for the share.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description for the share.
+ *
+ * @param description the description value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the shareStatus property: Current status of the share.
+ *
+ * @return the shareStatus value.
+ */
+ public ShareStatus shareStatus() {
+ return this.shareStatus;
+ }
+
+ /**
+ * Set the shareStatus property: Current status of the share.
+ *
+ * @param shareStatus the shareStatus value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withShareStatus(ShareStatus shareStatus) {
+ this.shareStatus = shareStatus;
+ return this;
+ }
+
+ /**
+ * Get the monitoringStatus property: Current monitoring status of the share.
+ *
+ * @return the monitoringStatus value.
+ */
+ public MonitoringStatus monitoringStatus() {
+ return this.monitoringStatus;
+ }
+
+ /**
+ * Set the monitoringStatus property: Current monitoring status of the share.
+ *
+ * @param monitoringStatus the monitoringStatus value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withMonitoringStatus(MonitoringStatus monitoringStatus) {
+ this.monitoringStatus = monitoringStatus;
+ return this;
+ }
+
+ /**
+ * Get the azureContainerInfo property: Azure container mapping for the share.
+ *
+ * @return the azureContainerInfo value.
+ */
+ public AzureContainerInfo azureContainerInfo() {
+ return this.azureContainerInfo;
+ }
+
+ /**
+ * Set the azureContainerInfo property: Azure container mapping for the share.
+ *
+ * @param azureContainerInfo the azureContainerInfo value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withAzureContainerInfo(AzureContainerInfo azureContainerInfo) {
+ this.azureContainerInfo = azureContainerInfo;
+ return this;
+ }
+
+ /**
+ * Get the accessProtocol property: Access protocol to be used by the share.
+ *
+ * @return the accessProtocol value.
+ */
+ public ShareAccessProtocol accessProtocol() {
+ return this.accessProtocol;
+ }
+
+ /**
+ * Set the accessProtocol property: Access protocol to be used by the share.
+ *
+ * @param accessProtocol the accessProtocol value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withAccessProtocol(ShareAccessProtocol accessProtocol) {
+ this.accessProtocol = accessProtocol;
+ return this;
+ }
+
+ /**
+ * Get the userAccessRights property: Mapping of users and corresponding access rights on the share (required for
+ * SMB protocol).
+ *
+ * @return the userAccessRights value.
+ */
+ public List userAccessRights() {
+ return this.userAccessRights;
+ }
+
+ /**
+ * Set the userAccessRights property: Mapping of users and corresponding access rights on the share (required for
+ * SMB protocol).
+ *
+ * @param userAccessRights the userAccessRights value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withUserAccessRights(List userAccessRights) {
+ this.userAccessRights = userAccessRights;
+ return this;
+ }
+
+ /**
+ * Get the clientAccessRights property: List of IP addresses and corresponding access rights on the share(required
+ * for NFS protocol).
+ *
+ * @return the clientAccessRights value.
+ */
+ public List clientAccessRights() {
+ return this.clientAccessRights;
+ }
+
+ /**
+ * Set the clientAccessRights property: List of IP addresses and corresponding access rights on the share(required
+ * for NFS protocol).
+ *
+ * @param clientAccessRights the clientAccessRights value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withClientAccessRights(List clientAccessRights) {
+ this.clientAccessRights = clientAccessRights;
+ return this;
+ }
+
+ /**
+ * Get the refreshDetails property: Details of the refresh job on this share.
+ *
+ * @return the refreshDetails value.
+ */
+ public RefreshDetails refreshDetails() {
+ return this.refreshDetails;
+ }
+
+ /**
+ * Set the refreshDetails property: Details of the refresh job on this share.
+ *
+ * @param refreshDetails the refreshDetails value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withRefreshDetails(RefreshDetails refreshDetails) {
+ this.refreshDetails = refreshDetails;
+ return this;
+ }
+
+ /**
+ * Get the shareMappings property: Share mount point to the role.
+ *
+ * @return the shareMappings value.
+ */
+ public List shareMappings() {
+ return this.shareMappings;
+ }
+
+ /**
+ * Get the dataPolicy property: Data policy of the share.
+ *
+ * @return the dataPolicy value.
+ */
+ public DataPolicy dataPolicy() {
+ return this.dataPolicy;
+ }
+
+ /**
+ * Set the dataPolicy property: Data policy of the share.
+ *
+ * @param dataPolicy the dataPolicy value to set.
+ * @return the ShareProperties object itself.
+ */
+ public ShareProperties withDataPolicy(DataPolicy dataPolicy) {
+ this.dataPolicy = dataPolicy;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (shareStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property shareStatus in model ShareProperties"));
+ }
+ if (monitoringStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property monitoringStatus in model ShareProperties"));
+ }
+ if (azureContainerInfo() != null) {
+ azureContainerInfo().validate();
+ }
+ if (accessProtocol() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property accessProtocol in model ShareProperties"));
+ }
+ if (userAccessRights() != null) {
+ userAccessRights().forEach(e -> e.validate());
+ }
+ if (clientAccessRights() != null) {
+ clientAccessRights().forEach(e -> e.validate());
+ }
+ if (refreshDetails() != null) {
+ refreshDetails().validate();
+ }
+ if (shareMappings() != null) {
+ shareMappings().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialInner.java
index 734b0483e59f4..b975327f99ae1 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.AccountType;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
@@ -15,59 +15,39 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** The storage account credential. */
-@JsonFlatten
@Fluent
-public class StorageAccountCredentialInner extends ArmBaseModel {
+public final class StorageAccountCredentialInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountCredentialInner.class);
/*
- * Alias for the storage account.
+ * StorageAccountCredential object
*/
- @JsonProperty(value = "properties.alias", required = true)
- private String alias;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * Username for the storage account.
+ * The storage account credential properties.
*/
- @JsonProperty(value = "properties.userName")
- private String username;
+ @JsonProperty(value = "properties", required = true)
+ private StorageAccountCredentialProperties innerProperties = new StorageAccountCredentialProperties();
- /*
- * Encrypted storage key.
- */
- @JsonProperty(value = "properties.accountKey")
- private AsymmetricEncryptedSecret accountKey;
-
- /*
- * Connection string for the storage account. Use this string if username
- * and account key are not specified.
- */
- @JsonProperty(value = "properties.connectionString")
- private String connectionString;
-
- /*
- * Signifies whether SSL needs to be enabled or not.
- */
- @JsonProperty(value = "properties.sslStatus", required = true)
- private SslStatus sslStatus;
-
- /*
- * Blob end point for private clouds.
- */
- @JsonProperty(value = "properties.blobDomainName")
- private String blobDomainName;
-
- /*
- * Type of storage accessed on the storage account.
+ /**
+ * Get the systemData property: StorageAccountCredential object.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.accountType", required = true)
- private AccountType accountType;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * Id of the storage account.
+ /**
+ * Get the innerProperties property: The storage account credential properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.storageAccountId")
- private String storageAccountId;
+ private StorageAccountCredentialProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the alias property: Alias for the storage account.
@@ -75,7 +55,7 @@ public class StorageAccountCredentialInner extends ArmBaseModel {
* @return the alias value.
*/
public String alias() {
- return this.alias;
+ return this.innerProperties() == null ? null : this.innerProperties().alias();
}
/**
@@ -85,7 +65,10 @@ public String alias() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withAlias(String alias) {
- this.alias = alias;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withAlias(alias);
return this;
}
@@ -95,7 +78,7 @@ public StorageAccountCredentialInner withAlias(String alias) {
* @return the username value.
*/
public String username() {
- return this.username;
+ return this.innerProperties() == null ? null : this.innerProperties().username();
}
/**
@@ -105,7 +88,10 @@ public String username() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withUsername(String username) {
- this.username = username;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withUsername(username);
return this;
}
@@ -115,7 +101,7 @@ public StorageAccountCredentialInner withUsername(String username) {
* @return the accountKey value.
*/
public AsymmetricEncryptedSecret accountKey() {
- return this.accountKey;
+ return this.innerProperties() == null ? null : this.innerProperties().accountKey();
}
/**
@@ -125,7 +111,10 @@ public AsymmetricEncryptedSecret accountKey() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withAccountKey(AsymmetricEncryptedSecret accountKey) {
- this.accountKey = accountKey;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withAccountKey(accountKey);
return this;
}
@@ -136,7 +125,7 @@ public StorageAccountCredentialInner withAccountKey(AsymmetricEncryptedSecret ac
* @return the connectionString value.
*/
public String connectionString() {
- return this.connectionString;
+ return this.innerProperties() == null ? null : this.innerProperties().connectionString();
}
/**
@@ -147,7 +136,10 @@ public String connectionString() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withConnectionString(String connectionString) {
- this.connectionString = connectionString;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withConnectionString(connectionString);
return this;
}
@@ -157,7 +149,7 @@ public StorageAccountCredentialInner withConnectionString(String connectionStrin
* @return the sslStatus value.
*/
public SslStatus sslStatus() {
- return this.sslStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().sslStatus();
}
/**
@@ -167,7 +159,10 @@ public SslStatus sslStatus() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withSslStatus(SslStatus sslStatus) {
- this.sslStatus = sslStatus;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withSslStatus(sslStatus);
return this;
}
@@ -177,7 +172,7 @@ public StorageAccountCredentialInner withSslStatus(SslStatus sslStatus) {
* @return the blobDomainName value.
*/
public String blobDomainName() {
- return this.blobDomainName;
+ return this.innerProperties() == null ? null : this.innerProperties().blobDomainName();
}
/**
@@ -187,7 +182,10 @@ public String blobDomainName() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withBlobDomainName(String blobDomainName) {
- this.blobDomainName = blobDomainName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withBlobDomainName(blobDomainName);
return this;
}
@@ -197,7 +195,7 @@ public StorageAccountCredentialInner withBlobDomainName(String blobDomainName) {
* @return the accountType value.
*/
public AccountType accountType() {
- return this.accountType;
+ return this.innerProperties() == null ? null : this.innerProperties().accountType();
}
/**
@@ -207,7 +205,10 @@ public AccountType accountType() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withAccountType(AccountType accountType) {
- this.accountType = accountType;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withAccountType(accountType);
return this;
}
@@ -217,7 +218,7 @@ public StorageAccountCredentialInner withAccountType(AccountType accountType) {
* @return the storageAccountId value.
*/
public String storageAccountId() {
- return this.storageAccountId;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountId();
}
/**
@@ -227,7 +228,10 @@ public String storageAccountId() {
* @return the StorageAccountCredentialInner object itself.
*/
public StorageAccountCredentialInner withStorageAccountId(String storageAccountId) {
- this.storageAccountId = storageAccountId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountCredentialProperties();
+ }
+ this.innerProperties().withStorageAccountId(storageAccountId);
return this;
}
@@ -239,26 +243,13 @@ public StorageAccountCredentialInner withStorageAccountId(String storageAccountI
@Override
public void validate() {
super.validate();
- if (alias() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property alias in model StorageAccountCredentialInner"));
- }
- if (accountKey() != null) {
- accountKey().validate();
- }
- if (sslStatus() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property sslStatus in model StorageAccountCredentialInner"));
- }
- if (accountType() == null) {
+ if (innerProperties() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
- "Missing required property accountType in model StorageAccountCredentialInner"));
+ "Missing required property innerProperties in model StorageAccountCredentialInner"));
+ } else {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialProperties.java
new file mode 100644
index 0000000000000..cf3089f12afd6
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountCredentialProperties.java
@@ -0,0 +1,259 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.AccountType;
+import com.azure.resourcemanager.databoxedge.models.AsymmetricEncryptedSecret;
+import com.azure.resourcemanager.databoxedge.models.SslStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The storage account credential properties. */
+@Fluent
+public final class StorageAccountCredentialProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountCredentialProperties.class);
+
+ /*
+ * Alias for the storage account.
+ */
+ @JsonProperty(value = "alias", required = true)
+ private String alias;
+
+ /*
+ * Username for the storage account.
+ */
+ @JsonProperty(value = "userName")
+ private String username;
+
+ /*
+ * Encrypted storage key.
+ */
+ @JsonProperty(value = "accountKey")
+ private AsymmetricEncryptedSecret accountKey;
+
+ /*
+ * Connection string for the storage account. Use this string if username
+ * and account key are not specified.
+ */
+ @JsonProperty(value = "connectionString")
+ private String connectionString;
+
+ /*
+ * Signifies whether SSL needs to be enabled or not.
+ */
+ @JsonProperty(value = "sslStatus", required = true)
+ private SslStatus sslStatus;
+
+ /*
+ * Blob end point for private clouds.
+ */
+ @JsonProperty(value = "blobDomainName")
+ private String blobDomainName;
+
+ /*
+ * Type of storage accessed on the storage account.
+ */
+ @JsonProperty(value = "accountType", required = true)
+ private AccountType accountType;
+
+ /*
+ * Id of the storage account.
+ */
+ @JsonProperty(value = "storageAccountId")
+ private String storageAccountId;
+
+ /**
+ * Get the alias property: Alias for the storage account.
+ *
+ * @return the alias value.
+ */
+ public String alias() {
+ return this.alias;
+ }
+
+ /**
+ * Set the alias property: Alias for the storage account.
+ *
+ * @param alias the alias value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withAlias(String alias) {
+ this.alias = alias;
+ return this;
+ }
+
+ /**
+ * Get the username property: Username for the storage account.
+ *
+ * @return the username value.
+ */
+ public String username() {
+ return this.username;
+ }
+
+ /**
+ * Set the username property: Username for the storage account.
+ *
+ * @param username the username value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withUsername(String username) {
+ this.username = username;
+ return this;
+ }
+
+ /**
+ * Get the accountKey property: Encrypted storage key.
+ *
+ * @return the accountKey value.
+ */
+ public AsymmetricEncryptedSecret accountKey() {
+ return this.accountKey;
+ }
+
+ /**
+ * Set the accountKey property: Encrypted storage key.
+ *
+ * @param accountKey the accountKey value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withAccountKey(AsymmetricEncryptedSecret accountKey) {
+ this.accountKey = accountKey;
+ return this;
+ }
+
+ /**
+ * Get the connectionString property: Connection string for the storage account. Use this string if username and
+ * account key are not specified.
+ *
+ * @return the connectionString value.
+ */
+ public String connectionString() {
+ return this.connectionString;
+ }
+
+ /**
+ * Set the connectionString property: Connection string for the storage account. Use this string if username and
+ * account key are not specified.
+ *
+ * @param connectionString the connectionString value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withConnectionString(String connectionString) {
+ this.connectionString = connectionString;
+ return this;
+ }
+
+ /**
+ * Get the sslStatus property: Signifies whether SSL needs to be enabled or not.
+ *
+ * @return the sslStatus value.
+ */
+ public SslStatus sslStatus() {
+ return this.sslStatus;
+ }
+
+ /**
+ * Set the sslStatus property: Signifies whether SSL needs to be enabled or not.
+ *
+ * @param sslStatus the sslStatus value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withSslStatus(SslStatus sslStatus) {
+ this.sslStatus = sslStatus;
+ return this;
+ }
+
+ /**
+ * Get the blobDomainName property: Blob end point for private clouds.
+ *
+ * @return the blobDomainName value.
+ */
+ public String blobDomainName() {
+ return this.blobDomainName;
+ }
+
+ /**
+ * Set the blobDomainName property: Blob end point for private clouds.
+ *
+ * @param blobDomainName the blobDomainName value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withBlobDomainName(String blobDomainName) {
+ this.blobDomainName = blobDomainName;
+ return this;
+ }
+
+ /**
+ * Get the accountType property: Type of storage accessed on the storage account.
+ *
+ * @return the accountType value.
+ */
+ public AccountType accountType() {
+ return this.accountType;
+ }
+
+ /**
+ * Set the accountType property: Type of storage accessed on the storage account.
+ *
+ * @param accountType the accountType value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withAccountType(AccountType accountType) {
+ this.accountType = accountType;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountId property: Id of the storage account.
+ *
+ * @return the storageAccountId value.
+ */
+ public String storageAccountId() {
+ return this.storageAccountId;
+ }
+
+ /**
+ * Set the storageAccountId property: Id of the storage account.
+ *
+ * @param storageAccountId the storageAccountId value to set.
+ * @return the StorageAccountCredentialProperties object itself.
+ */
+ public StorageAccountCredentialProperties withStorageAccountId(String storageAccountId) {
+ this.storageAccountId = storageAccountId;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (alias() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property alias in model StorageAccountCredentialProperties"));
+ }
+ if (accountKey() != null) {
+ accountKey().validate();
+ }
+ if (sslStatus() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property sslStatus in model StorageAccountCredentialProperties"));
+ }
+ if (accountType() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property accountType in model StorageAccountCredentialProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountInner.java
index dabe5c653d0fa..20442b6dcf3a2 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountInner.java
@@ -5,7 +5,7 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.DataPolicy;
@@ -14,47 +14,39 @@
import com.fasterxml.jackson.annotation.JsonProperty;
/** Represents a Storage Account on the Data Box Edge/Gateway device. */
-@JsonFlatten
@Fluent
-public class StorageAccountInner extends ArmBaseModel {
+public final class StorageAccountInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountInner.class);
/*
- * Description for the storage Account.
+ * StorageAccount object on ASE device
*/
- @JsonProperty(value = "properties.description")
- private String description;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * Current status of the storage account
+ * The Storage Account properties.
*/
- @JsonProperty(value = "properties.storageAccountStatus")
- private StorageAccountStatus storageAccountStatus;
+ @JsonProperty(value = "properties", required = true)
+ private StorageAccountProperties innerProperties = new StorageAccountProperties();
- /*
- * Data policy of the storage Account.
- */
- @JsonProperty(value = "properties.dataPolicy")
- private DataPolicy dataPolicy;
-
- /*
- * Storage Account Credential Id
- */
- @JsonProperty(value = "properties.storageAccountCredentialId")
- private String storageAccountCredentialId;
-
- /*
- * BlobEndpoint of Storage Account
+ /**
+ * Get the systemData property: StorageAccount object on ASE device.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.blobEndpoint", access = JsonProperty.Access.WRITE_ONLY)
- private String blobEndpoint;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * The Container Count. Present only for Storage Accounts with DataPolicy
- * set to Cloud.
+ /**
+ * Get the innerProperties property: The Storage Account properties.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.containerCount", access = JsonProperty.Access.WRITE_ONLY)
- private Integer containerCount;
+ private StorageAccountProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the description property: Description for the storage Account.
@@ -62,7 +54,7 @@ public class StorageAccountInner extends ArmBaseModel {
* @return the description value.
*/
public String description() {
- return this.description;
+ return this.innerProperties() == null ? null : this.innerProperties().description();
}
/**
@@ -72,7 +64,10 @@ public String description() {
* @return the StorageAccountInner object itself.
*/
public StorageAccountInner withDescription(String description) {
- this.description = description;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountProperties();
+ }
+ this.innerProperties().withDescription(description);
return this;
}
@@ -82,7 +77,7 @@ public StorageAccountInner withDescription(String description) {
* @return the storageAccountStatus value.
*/
public StorageAccountStatus storageAccountStatus() {
- return this.storageAccountStatus;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountStatus();
}
/**
@@ -92,7 +87,10 @@ public StorageAccountStatus storageAccountStatus() {
* @return the StorageAccountInner object itself.
*/
public StorageAccountInner withStorageAccountStatus(StorageAccountStatus storageAccountStatus) {
- this.storageAccountStatus = storageAccountStatus;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountProperties();
+ }
+ this.innerProperties().withStorageAccountStatus(storageAccountStatus);
return this;
}
@@ -102,7 +100,7 @@ public StorageAccountInner withStorageAccountStatus(StorageAccountStatus storage
* @return the dataPolicy value.
*/
public DataPolicy dataPolicy() {
- return this.dataPolicy;
+ return this.innerProperties() == null ? null : this.innerProperties().dataPolicy();
}
/**
@@ -112,7 +110,10 @@ public DataPolicy dataPolicy() {
* @return the StorageAccountInner object itself.
*/
public StorageAccountInner withDataPolicy(DataPolicy dataPolicy) {
- this.dataPolicy = dataPolicy;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountProperties();
+ }
+ this.innerProperties().withDataPolicy(dataPolicy);
return this;
}
@@ -122,7 +123,7 @@ public StorageAccountInner withDataPolicy(DataPolicy dataPolicy) {
* @return the storageAccountCredentialId value.
*/
public String storageAccountCredentialId() {
- return this.storageAccountCredentialId;
+ return this.innerProperties() == null ? null : this.innerProperties().storageAccountCredentialId();
}
/**
@@ -132,7 +133,10 @@ public String storageAccountCredentialId() {
* @return the StorageAccountInner object itself.
*/
public StorageAccountInner withStorageAccountCredentialId(String storageAccountCredentialId) {
- this.storageAccountCredentialId = storageAccountCredentialId;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new StorageAccountProperties();
+ }
+ this.innerProperties().withStorageAccountCredentialId(storageAccountCredentialId);
return this;
}
@@ -142,7 +146,7 @@ public StorageAccountInner withStorageAccountCredentialId(String storageAccountC
* @return the blobEndpoint value.
*/
public String blobEndpoint() {
- return this.blobEndpoint;
+ return this.innerProperties() == null ? null : this.innerProperties().blobEndpoint();
}
/**
@@ -152,7 +156,7 @@ public String blobEndpoint() {
* @return the containerCount value.
*/
public Integer containerCount() {
- return this.containerCount;
+ return this.innerProperties() == null ? null : this.innerProperties().containerCount();
}
/**
@@ -163,5 +167,13 @@ public Integer containerCount() {
@Override
public void validate() {
super.validate();
+ if (innerProperties() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model StorageAccountInner"));
+ } else {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountProperties.java
new file mode 100644
index 0000000000000..2befc6ebeaae2
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/StorageAccountProperties.java
@@ -0,0 +1,168 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.DataPolicy;
+import com.azure.resourcemanager.databoxedge.models.StorageAccountStatus;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The storage account properties. */
+@Fluent
+public final class StorageAccountProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(StorageAccountProperties.class);
+
+ /*
+ * Description for the storage Account.
+ */
+ @JsonProperty(value = "description")
+ private String description;
+
+ /*
+ * Current status of the storage account
+ */
+ @JsonProperty(value = "storageAccountStatus")
+ private StorageAccountStatus storageAccountStatus;
+
+ /*
+ * Data policy of the storage Account.
+ */
+ @JsonProperty(value = "dataPolicy", required = true)
+ private DataPolicy dataPolicy;
+
+ /*
+ * Storage Account Credential Id
+ */
+ @JsonProperty(value = "storageAccountCredentialId")
+ private String storageAccountCredentialId;
+
+ /*
+ * BlobEndpoint of Storage Account
+ */
+ @JsonProperty(value = "blobEndpoint", access = JsonProperty.Access.WRITE_ONLY)
+ private String blobEndpoint;
+
+ /*
+ * The Container Count. Present only for Storage Accounts with DataPolicy
+ * set to Cloud.
+ */
+ @JsonProperty(value = "containerCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer containerCount;
+
+ /**
+ * Get the description property: Description for the storage Account.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Set the description property: Description for the storage Account.
+ *
+ * @param description the description value to set.
+ * @return the StorageAccountProperties object itself.
+ */
+ public StorageAccountProperties withDescription(String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountStatus property: Current status of the storage account.
+ *
+ * @return the storageAccountStatus value.
+ */
+ public StorageAccountStatus storageAccountStatus() {
+ return this.storageAccountStatus;
+ }
+
+ /**
+ * Set the storageAccountStatus property: Current status of the storage account.
+ *
+ * @param storageAccountStatus the storageAccountStatus value to set.
+ * @return the StorageAccountProperties object itself.
+ */
+ public StorageAccountProperties withStorageAccountStatus(StorageAccountStatus storageAccountStatus) {
+ this.storageAccountStatus = storageAccountStatus;
+ return this;
+ }
+
+ /**
+ * Get the dataPolicy property: Data policy of the storage Account.
+ *
+ * @return the dataPolicy value.
+ */
+ public DataPolicy dataPolicy() {
+ return this.dataPolicy;
+ }
+
+ /**
+ * Set the dataPolicy property: Data policy of the storage Account.
+ *
+ * @param dataPolicy the dataPolicy value to set.
+ * @return the StorageAccountProperties object itself.
+ */
+ public StorageAccountProperties withDataPolicy(DataPolicy dataPolicy) {
+ this.dataPolicy = dataPolicy;
+ return this;
+ }
+
+ /**
+ * Get the storageAccountCredentialId property: Storage Account Credential Id.
+ *
+ * @return the storageAccountCredentialId value.
+ */
+ public String storageAccountCredentialId() {
+ return this.storageAccountCredentialId;
+ }
+
+ /**
+ * Set the storageAccountCredentialId property: Storage Account Credential Id.
+ *
+ * @param storageAccountCredentialId the storageAccountCredentialId value to set.
+ * @return the StorageAccountProperties object itself.
+ */
+ public StorageAccountProperties withStorageAccountCredentialId(String storageAccountCredentialId) {
+ this.storageAccountCredentialId = storageAccountCredentialId;
+ return this;
+ }
+
+ /**
+ * Get the blobEndpoint property: BlobEndpoint of Storage Account.
+ *
+ * @return the blobEndpoint value.
+ */
+ public String blobEndpoint() {
+ return this.blobEndpoint;
+ }
+
+ /**
+ * Get the containerCount property: The Container Count. Present only for Storage Accounts with DataPolicy set to
+ * Cloud.
+ *
+ * @return the containerCount value.
+ */
+ public Integer containerCount() {
+ return this.containerCount;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (dataPolicy() == null) {
+ throw logger
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property dataPolicy in model StorageAccountProperties"));
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SubscriptionProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SubscriptionProperties.java
new file mode 100644
index 0000000000000..6e610a99fe05b
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SubscriptionProperties.java
@@ -0,0 +1,159 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.SubscriptionRegisteredFeatures;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The SubscriptionProperties model. */
+@Fluent
+public final class SubscriptionProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SubscriptionProperties.class);
+
+ /*
+ * The tenantId property.
+ */
+ @JsonProperty(value = "tenantId")
+ private String tenantId;
+
+ /*
+ * The locationPlacementId property.
+ */
+ @JsonProperty(value = "locationPlacementId")
+ private String locationPlacementId;
+
+ /*
+ * The quotaId property.
+ */
+ @JsonProperty(value = "quotaId")
+ private String quotaId;
+
+ /*
+ * The serializedDetails property.
+ */
+ @JsonProperty(value = "serializedDetails")
+ private String serializedDetails;
+
+ /*
+ * The registeredFeatures property.
+ */
+ @JsonProperty(value = "registeredFeatures")
+ private List registeredFeatures;
+
+ /**
+ * Get the tenantId property: The tenantId property.
+ *
+ * @return the tenantId value.
+ */
+ public String tenantId() {
+ return this.tenantId;
+ }
+
+ /**
+ * Set the tenantId property: The tenantId property.
+ *
+ * @param tenantId the tenantId value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withTenantId(String tenantId) {
+ this.tenantId = tenantId;
+ return this;
+ }
+
+ /**
+ * Get the locationPlacementId property: The locationPlacementId property.
+ *
+ * @return the locationPlacementId value.
+ */
+ public String locationPlacementId() {
+ return this.locationPlacementId;
+ }
+
+ /**
+ * Set the locationPlacementId property: The locationPlacementId property.
+ *
+ * @param locationPlacementId the locationPlacementId value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withLocationPlacementId(String locationPlacementId) {
+ this.locationPlacementId = locationPlacementId;
+ return this;
+ }
+
+ /**
+ * Get the quotaId property: The quotaId property.
+ *
+ * @return the quotaId value.
+ */
+ public String quotaId() {
+ return this.quotaId;
+ }
+
+ /**
+ * Set the quotaId property: The quotaId property.
+ *
+ * @param quotaId the quotaId value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withQuotaId(String quotaId) {
+ this.quotaId = quotaId;
+ return this;
+ }
+
+ /**
+ * Get the serializedDetails property: The serializedDetails property.
+ *
+ * @return the serializedDetails value.
+ */
+ public String serializedDetails() {
+ return this.serializedDetails;
+ }
+
+ /**
+ * Set the serializedDetails property: The serializedDetails property.
+ *
+ * @param serializedDetails the serializedDetails value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withSerializedDetails(String serializedDetails) {
+ this.serializedDetails = serializedDetails;
+ return this;
+ }
+
+ /**
+ * Get the registeredFeatures property: The registeredFeatures property.
+ *
+ * @return the registeredFeatures value.
+ */
+ public List registeredFeatures() {
+ return this.registeredFeatures;
+ }
+
+ /**
+ * Set the registeredFeatures property: The registeredFeatures property.
+ *
+ * @param registeredFeatures the registeredFeatures value to set.
+ * @return the SubscriptionProperties object itself.
+ */
+ public SubscriptionProperties withRegisteredFeatures(List registeredFeatures) {
+ this.registeredFeatures = registeredFeatures;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (registeredFeatures() != null) {
+ registeredFeatures().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SupportPackageRequestProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SupportPackageRequestProperties.java
new file mode 100644
index 0000000000000..4d7e9de2375ca
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/SupportPackageRequestProperties.java
@@ -0,0 +1,108 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The share properties. */
+@Fluent
+public final class SupportPackageRequestProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(SupportPackageRequestProperties.class);
+
+ /*
+ * Start of the timespan of the log collection
+ */
+ @JsonProperty(value = "minimumTimeStamp")
+ private OffsetDateTime minimumTimestamp;
+
+ /*
+ * MaximumTimeStamp until where logs need to be collected
+ */
+ @JsonProperty(value = "maximumTimeStamp")
+ private OffsetDateTime maximumTimestamp;
+
+ /*
+ * Type of files, which need to be included in the logs
+ * This will contain the type of logs
+ * (Default/DefaultWithDumps/None/All/DefaultWithArchived)
+ * or a comma separated list of log types that are required
+ */
+ @JsonProperty(value = "include")
+ private String include;
+
+ /**
+ * Get the minimumTimestamp property: Start of the timespan of the log collection.
+ *
+ * @return the minimumTimestamp value.
+ */
+ public OffsetDateTime minimumTimestamp() {
+ return this.minimumTimestamp;
+ }
+
+ /**
+ * Set the minimumTimestamp property: Start of the timespan of the log collection.
+ *
+ * @param minimumTimestamp the minimumTimestamp value to set.
+ * @return the SupportPackageRequestProperties object itself.
+ */
+ public SupportPackageRequestProperties withMinimumTimestamp(OffsetDateTime minimumTimestamp) {
+ this.minimumTimestamp = minimumTimestamp;
+ return this;
+ }
+
+ /**
+ * Get the maximumTimestamp property: MaximumTimeStamp until where logs need to be collected.
+ *
+ * @return the maximumTimestamp value.
+ */
+ public OffsetDateTime maximumTimestamp() {
+ return this.maximumTimestamp;
+ }
+
+ /**
+ * Set the maximumTimestamp property: MaximumTimeStamp until where logs need to be collected.
+ *
+ * @param maximumTimestamp the maximumTimestamp value to set.
+ * @return the SupportPackageRequestProperties object itself.
+ */
+ public SupportPackageRequestProperties withMaximumTimestamp(OffsetDateTime maximumTimestamp) {
+ this.maximumTimestamp = maximumTimestamp;
+ return this;
+ }
+
+ /**
+ * Get the include property: Type of files, which need to be included in the logs This will contain the type of logs
+ * (Default/DefaultWithDumps/None/All/DefaultWithArchived) or a comma separated list of log types that are required.
+ *
+ * @return the include value.
+ */
+ public String include() {
+ return this.include;
+ }
+
+ /**
+ * Set the include property: Type of files, which need to be included in the logs This will contain the type of logs
+ * (Default/DefaultWithDumps/None/All/DefaultWithArchived) or a comma separated list of log types that are required.
+ *
+ * @param include the include value to set.
+ * @return the SupportPackageRequestProperties object itself.
+ */
+ public SupportPackageRequestProperties withInclude(String include) {
+ this.include = include;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/TriggerInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/TriggerInner.java
index 6104763e1583c..21dd9ff3fc49a 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/TriggerInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/TriggerInner.java
@@ -5,11 +5,13 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Immutable;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.FileEventTrigger;
import com.azure.resourcemanager.databoxedge.models.PeriodicTimerEventTrigger;
import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -29,6 +31,21 @@
public class TriggerInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(TriggerInner.class);
+ /*
+ * Trigger in DataBoxEdge Resource
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the systemData property: Trigger in DataBoxEdge Resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryInner.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryInner.java
index b5be1f31758cf..841eb79c20a47 100644
--- a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryInner.java
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryInner.java
@@ -5,10 +5,12 @@
package com.azure.resourcemanager.databoxedge.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.annotation.JsonFlatten;
+import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.databoxedge.models.ArmBaseModel;
import com.azure.resourcemanager.databoxedge.models.InstallRebootBehavior;
+import com.azure.resourcemanager.databoxedge.models.JobStatus;
+import com.azure.resourcemanager.databoxedge.models.UpdateDetails;
import com.azure.resourcemanager.databoxedge.models.UpdateOperation;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -16,117 +18,39 @@
import java.util.List;
/** Details about ongoing updates and availability of updates on the device. */
-@JsonFlatten
@Fluent
-public class UpdateSummaryInner extends ArmBaseModel {
+public final class UpdateSummaryInner extends ArmBaseModel {
@JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateSummaryInner.class);
/*
- * The current version of the device in format: 1.2.17312.13.",
+ * UpdateSummary Result
*/
- @JsonProperty(value = "properties.deviceVersionNumber")
- private String deviceVersionNumber;
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
/*
- * The current version of the device in text format.
+ * The device update information summary.
*/
- @JsonProperty(value = "properties.friendlyDeviceVersionName")
- private String friendlyDeviceVersionName;
+ @JsonProperty(value = "properties")
+ private UpdateSummaryProperties innerProperties;
- /*
- * The last time when a scan was done on the device.
- */
- @JsonProperty(value = "properties.deviceLastScannedDateTime")
- private OffsetDateTime deviceLastScannedDateTime;
-
- /*
- * The time when the last scan job was completed (success/cancelled/failed)
- * on the appliance.
- */
- @JsonProperty(value = "properties.lastCompletedScanJobDateTime")
- private OffsetDateTime lastCompletedScanJobDateTime;
-
- /*
- * The time when the last Download job was completed
- * (success/cancelled/failed) on the appliance.
- */
- @JsonProperty(value = "properties.lastCompletedDownloadJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastCompletedDownloadJobDateTime;
-
- /*
- * The time when the last Install job was completed
- * (success/cancelled/failed) on the appliance.
- */
- @JsonProperty(value = "properties.lastCompletedInstallJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime lastCompletedInstallJobDateTime;
-
- /*
- * The number of updates available for the current device version as per
- * the last device scan.
- */
- @JsonProperty(value = "properties.totalNumberOfUpdatesAvailable", access = JsonProperty.Access.WRITE_ONLY)
- private Integer totalNumberOfUpdatesAvailable;
-
- /*
- * The total number of items pending download.
- */
- @JsonProperty(value = "properties.totalNumberOfUpdatesPendingDownload", access = JsonProperty.Access.WRITE_ONLY)
- private Integer totalNumberOfUpdatesPendingDownload;
-
- /*
- * The total number of items pending install.
- */
- @JsonProperty(value = "properties.totalNumberOfUpdatesPendingInstall", access = JsonProperty.Access.WRITE_ONLY)
- private Integer totalNumberOfUpdatesPendingInstall;
-
- /*
- * Indicates if updates are available and at least one of the updates needs
- * a reboot.
- */
- @JsonProperty(value = "properties.rebootBehavior", access = JsonProperty.Access.WRITE_ONLY)
- private InstallRebootBehavior rebootBehavior;
-
- /*
- * The current update operation.
- */
- @JsonProperty(value = "properties.ongoingUpdateOperation", access = JsonProperty.Access.WRITE_ONLY)
- private UpdateOperation ongoingUpdateOperation;
-
- /*
- * The job ID of the download job in progress.
- */
- @JsonProperty(value = "properties.inProgressDownloadJobId", access = JsonProperty.Access.WRITE_ONLY)
- private String inProgressDownloadJobId;
-
- /*
- * The job ID of the install job in progress.
- */
- @JsonProperty(value = "properties.inProgressInstallJobId", access = JsonProperty.Access.WRITE_ONLY)
- private String inProgressInstallJobId;
-
- /*
- * The time when the currently running download (if any) started.
- */
- @JsonProperty(value = "properties.inProgressDownloadJobStartedDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime inProgressDownloadJobStartedDateTime;
-
- /*
- * The time when the currently running install (if any) started.
- */
- @JsonProperty(value = "properties.inProgressInstallJobStartedDateTime", access = JsonProperty.Access.WRITE_ONLY)
- private OffsetDateTime inProgressInstallJobStartedDateTime;
-
- /*
- * The list of updates available for install.
+ /**
+ * Get the systemData property: UpdateSummary Result.
+ *
+ * @return the systemData value.
*/
- @JsonProperty(value = "properties.updateTitles", access = JsonProperty.Access.WRITE_ONLY)
- private List updateTitles;
+ public SystemData systemData() {
+ return this.systemData;
+ }
- /*
- * The total size of updates available for download in bytes.
+ /**
+ * Get the innerProperties property: The device update information summary.
+ *
+ * @return the innerProperties value.
*/
- @JsonProperty(value = "properties.totalUpdateSizeInBytes", access = JsonProperty.Access.WRITE_ONLY)
- private Double totalUpdateSizeInBytes;
+ private UpdateSummaryProperties innerProperties() {
+ return this.innerProperties;
+ }
/**
* Get the deviceVersionNumber property: The current version of the device in format: 1.2.17312.13.",.
@@ -134,7 +58,7 @@ public class UpdateSummaryInner extends ArmBaseModel {
* @return the deviceVersionNumber value.
*/
public String deviceVersionNumber() {
- return this.deviceVersionNumber;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceVersionNumber();
}
/**
@@ -144,7 +68,10 @@ public String deviceVersionNumber() {
* @return the UpdateSummaryInner object itself.
*/
public UpdateSummaryInner withDeviceVersionNumber(String deviceVersionNumber) {
- this.deviceVersionNumber = deviceVersionNumber;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withDeviceVersionNumber(deviceVersionNumber);
return this;
}
@@ -154,7 +81,7 @@ public UpdateSummaryInner withDeviceVersionNumber(String deviceVersionNumber) {
* @return the friendlyDeviceVersionName value.
*/
public String friendlyDeviceVersionName() {
- return this.friendlyDeviceVersionName;
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyDeviceVersionName();
}
/**
@@ -164,7 +91,10 @@ public String friendlyDeviceVersionName() {
* @return the UpdateSummaryInner object itself.
*/
public UpdateSummaryInner withFriendlyDeviceVersionName(String friendlyDeviceVersionName) {
- this.friendlyDeviceVersionName = friendlyDeviceVersionName;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withFriendlyDeviceVersionName(friendlyDeviceVersionName);
return this;
}
@@ -174,7 +104,7 @@ public UpdateSummaryInner withFriendlyDeviceVersionName(String friendlyDeviceVer
* @return the deviceLastScannedDateTime value.
*/
public OffsetDateTime deviceLastScannedDateTime() {
- return this.deviceLastScannedDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().deviceLastScannedDateTime();
}
/**
@@ -184,7 +114,10 @@ public OffsetDateTime deviceLastScannedDateTime() {
* @return the UpdateSummaryInner object itself.
*/
public UpdateSummaryInner withDeviceLastScannedDateTime(OffsetDateTime deviceLastScannedDateTime) {
- this.deviceLastScannedDateTime = deviceLastScannedDateTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withDeviceLastScannedDateTime(deviceLastScannedDateTime);
return this;
}
@@ -195,7 +128,7 @@ public UpdateSummaryInner withDeviceLastScannedDateTime(OffsetDateTime deviceLas
* @return the lastCompletedScanJobDateTime value.
*/
public OffsetDateTime lastCompletedScanJobDateTime() {
- return this.lastCompletedScanJobDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletedScanJobDateTime();
}
/**
@@ -206,7 +139,33 @@ public OffsetDateTime lastCompletedScanJobDateTime() {
* @return the UpdateSummaryInner object itself.
*/
public UpdateSummaryInner withLastCompletedScanJobDateTime(OffsetDateTime lastCompletedScanJobDateTime) {
- this.lastCompletedScanJobDateTime = lastCompletedScanJobDateTime;
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withLastCompletedScanJobDateTime(lastCompletedScanJobDateTime);
+ return this;
+ }
+
+ /**
+ * Get the lastSuccessfulScanJobTime property: Time when the last scan job is successfully completed.
+ *
+ * @return the lastSuccessfulScanJobTime value.
+ */
+ public OffsetDateTime lastSuccessfulScanJobTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastSuccessfulScanJobTime();
+ }
+
+ /**
+ * Set the lastSuccessfulScanJobTime property: Time when the last scan job is successfully completed.
+ *
+ * @param lastSuccessfulScanJobTime the lastSuccessfulScanJobTime value to set.
+ * @return the UpdateSummaryInner object itself.
+ */
+ public UpdateSummaryInner withLastSuccessfulScanJobTime(OffsetDateTime lastSuccessfulScanJobTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withLastSuccessfulScanJobTime(lastSuccessfulScanJobTime);
return this;
}
@@ -217,7 +176,51 @@ public UpdateSummaryInner withLastCompletedScanJobDateTime(OffsetDateTime lastCo
* @return the lastCompletedDownloadJobDateTime value.
*/
public OffsetDateTime lastCompletedDownloadJobDateTime() {
- return this.lastCompletedDownloadJobDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletedDownloadJobDateTime();
+ }
+
+ /**
+ * Get the lastCompletedDownloadJobId property: JobId of the last ran download job.(Can be
+ * success/cancelled/failed).
+ *
+ * @return the lastCompletedDownloadJobId value.
+ */
+ public String lastCompletedDownloadJobId() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletedDownloadJobId();
+ }
+
+ /**
+ * Get the lastDownloadJobStatus property: JobStatus of the last ran download job.
+ *
+ * @return the lastDownloadJobStatus value.
+ */
+ public JobStatus lastDownloadJobStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastDownloadJobStatus();
+ }
+
+ /**
+ * Get the lastSuccessfulInstallJobDateTime property: The time when the Last Install job was completed successfully
+ * on the appliance.
+ *
+ * @return the lastSuccessfulInstallJobDateTime value.
+ */
+ public OffsetDateTime lastSuccessfulInstallJobDateTime() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastSuccessfulInstallJobDateTime();
+ }
+
+ /**
+ * Set the lastSuccessfulInstallJobDateTime property: The time when the Last Install job was completed successfully
+ * on the appliance.
+ *
+ * @param lastSuccessfulInstallJobDateTime the lastSuccessfulInstallJobDateTime value to set.
+ * @return the UpdateSummaryInner object itself.
+ */
+ public UpdateSummaryInner withLastSuccessfulInstallJobDateTime(OffsetDateTime lastSuccessfulInstallJobDateTime) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new UpdateSummaryProperties();
+ }
+ this.innerProperties().withLastSuccessfulInstallJobDateTime(lastSuccessfulInstallJobDateTime);
+ return this;
}
/**
@@ -227,7 +230,25 @@ public OffsetDateTime lastCompletedDownloadJobDateTime() {
* @return the lastCompletedInstallJobDateTime value.
*/
public OffsetDateTime lastCompletedInstallJobDateTime() {
- return this.lastCompletedInstallJobDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletedInstallJobDateTime();
+ }
+
+ /**
+ * Get the lastCompletedInstallJobId property: JobId of the last ran install job.(Can be success/cancelled/failed).
+ *
+ * @return the lastCompletedInstallJobId value.
+ */
+ public String lastCompletedInstallJobId() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastCompletedInstallJobId();
+ }
+
+ /**
+ * Get the lastInstallJobStatus property: JobStatus of the last ran install job.
+ *
+ * @return the lastInstallJobStatus value.
+ */
+ public JobStatus lastInstallJobStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastInstallJobStatus();
}
/**
@@ -237,7 +258,7 @@ public OffsetDateTime lastCompletedInstallJobDateTime() {
* @return the totalNumberOfUpdatesAvailable value.
*/
public Integer totalNumberOfUpdatesAvailable() {
- return this.totalNumberOfUpdatesAvailable;
+ return this.innerProperties() == null ? null : this.innerProperties().totalNumberOfUpdatesAvailable();
}
/**
@@ -246,7 +267,7 @@ public Integer totalNumberOfUpdatesAvailable() {
* @return the totalNumberOfUpdatesPendingDownload value.
*/
public Integer totalNumberOfUpdatesPendingDownload() {
- return this.totalNumberOfUpdatesPendingDownload;
+ return this.innerProperties() == null ? null : this.innerProperties().totalNumberOfUpdatesPendingDownload();
}
/**
@@ -255,7 +276,7 @@ public Integer totalNumberOfUpdatesPendingDownload() {
* @return the totalNumberOfUpdatesPendingInstall value.
*/
public Integer totalNumberOfUpdatesPendingInstall() {
- return this.totalNumberOfUpdatesPendingInstall;
+ return this.innerProperties() == null ? null : this.innerProperties().totalNumberOfUpdatesPendingInstall();
}
/**
@@ -265,7 +286,7 @@ public Integer totalNumberOfUpdatesPendingInstall() {
* @return the rebootBehavior value.
*/
public InstallRebootBehavior rebootBehavior() {
- return this.rebootBehavior;
+ return this.innerProperties() == null ? null : this.innerProperties().rebootBehavior();
}
/**
@@ -274,7 +295,7 @@ public InstallRebootBehavior rebootBehavior() {
* @return the ongoingUpdateOperation value.
*/
public UpdateOperation ongoingUpdateOperation() {
- return this.ongoingUpdateOperation;
+ return this.innerProperties() == null ? null : this.innerProperties().ongoingUpdateOperation();
}
/**
@@ -283,7 +304,7 @@ public UpdateOperation ongoingUpdateOperation() {
* @return the inProgressDownloadJobId value.
*/
public String inProgressDownloadJobId() {
- return this.inProgressDownloadJobId;
+ return this.innerProperties() == null ? null : this.innerProperties().inProgressDownloadJobId();
}
/**
@@ -292,7 +313,7 @@ public String inProgressDownloadJobId() {
* @return the inProgressInstallJobId value.
*/
public String inProgressInstallJobId() {
- return this.inProgressInstallJobId;
+ return this.innerProperties() == null ? null : this.innerProperties().inProgressInstallJobId();
}
/**
@@ -302,7 +323,7 @@ public String inProgressInstallJobId() {
* @return the inProgressDownloadJobStartedDateTime value.
*/
public OffsetDateTime inProgressDownloadJobStartedDateTime() {
- return this.inProgressDownloadJobStartedDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().inProgressDownloadJobStartedDateTime();
}
/**
@@ -312,7 +333,7 @@ public OffsetDateTime inProgressDownloadJobStartedDateTime() {
* @return the inProgressInstallJobStartedDateTime value.
*/
public OffsetDateTime inProgressInstallJobStartedDateTime() {
- return this.inProgressInstallJobStartedDateTime;
+ return this.innerProperties() == null ? null : this.innerProperties().inProgressInstallJobStartedDateTime();
}
/**
@@ -321,7 +342,16 @@ public OffsetDateTime inProgressInstallJobStartedDateTime() {
* @return the updateTitles value.
*/
public List updateTitles() {
- return this.updateTitles;
+ return this.innerProperties() == null ? null : this.innerProperties().updateTitles();
+ }
+
+ /**
+ * Get the updates property: The list of updates available for install.
+ *
+ * @return the updates value.
+ */
+ public List updates() {
+ return this.innerProperties() == null ? null : this.innerProperties().updates();
}
/**
@@ -330,7 +360,16 @@ public List updateTitles() {
* @return the totalUpdateSizeInBytes value.
*/
public Double totalUpdateSizeInBytes() {
- return this.totalUpdateSizeInBytes;
+ return this.innerProperties() == null ? null : this.innerProperties().totalUpdateSizeInBytes();
+ }
+
+ /**
+ * Get the totalTimeInMinutes property: The total time in Minutes.
+ *
+ * @return the totalTimeInMinutes value.
+ */
+ public Integer totalTimeInMinutes() {
+ return this.innerProperties() == null ? null : this.innerProperties().totalTimeInMinutes();
}
/**
@@ -341,5 +380,8 @@ public Double totalUpdateSizeInBytes() {
@Override
public void validate() {
super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
}
}
diff --git a/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryProperties.java b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryProperties.java
new file mode 100644
index 0000000000000..d77accbb85f2d
--- /dev/null
+++ b/sdk/databoxedge/azure-resourcemanager-databoxedge/src/main/java/com/azure/resourcemanager/databoxedge/fluent/models/UpdateSummaryProperties.java
@@ -0,0 +1,492 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.databoxedge.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.databoxedge.models.InstallRebootBehavior;
+import com.azure.resourcemanager.databoxedge.models.JobStatus;
+import com.azure.resourcemanager.databoxedge.models.UpdateDetails;
+import com.azure.resourcemanager.databoxedge.models.UpdateOperation;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/** The device update information summary. */
+@Fluent
+public final class UpdateSummaryProperties {
+ @JsonIgnore private final ClientLogger logger = new ClientLogger(UpdateSummaryProperties.class);
+
+ /*
+ * The current version of the device in format: 1.2.17312.13.",
+ */
+ @JsonProperty(value = "deviceVersionNumber")
+ private String deviceVersionNumber;
+
+ /*
+ * The current version of the device in text format.
+ */
+ @JsonProperty(value = "friendlyDeviceVersionName")
+ private String friendlyDeviceVersionName;
+
+ /*
+ * The last time when a scan was done on the device.
+ */
+ @JsonProperty(value = "deviceLastScannedDateTime")
+ private OffsetDateTime deviceLastScannedDateTime;
+
+ /*
+ * The time when the last scan job was completed (success/cancelled/failed)
+ * on the appliance.
+ */
+ @JsonProperty(value = "lastCompletedScanJobDateTime")
+ private OffsetDateTime lastCompletedScanJobDateTime;
+
+ /*
+ * Time when the last scan job is successfully completed.
+ */
+ @JsonProperty(value = "lastSuccessfulScanJobTime")
+ private OffsetDateTime lastSuccessfulScanJobTime;
+
+ /*
+ * The time when the last Download job was completed
+ * (success/cancelled/failed) on the appliance.
+ */
+ @JsonProperty(value = "lastCompletedDownloadJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastCompletedDownloadJobDateTime;
+
+ /*
+ * JobId of the last ran download job.(Can be success/cancelled/failed)
+ */
+ @JsonProperty(value = "lastCompletedDownloadJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastCompletedDownloadJobId;
+
+ /*
+ * JobStatus of the last ran download job.
+ */
+ @JsonProperty(value = "lastDownloadJobStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private JobStatus lastDownloadJobStatus;
+
+ /*
+ * The time when the Last Install job was completed successfully on the
+ * appliance
+ */
+ @JsonProperty(value = "lastSuccessfulInstallJobDateTime")
+ private OffsetDateTime lastSuccessfulInstallJobDateTime;
+
+ /*
+ * The time when the last Install job was completed
+ * (success/cancelled/failed) on the appliance.
+ */
+ @JsonProperty(value = "lastCompletedInstallJobDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastCompletedInstallJobDateTime;
+
+ /*
+ * JobId of the last ran install job.(Can be success/cancelled/failed)
+ */
+ @JsonProperty(value = "lastCompletedInstallJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastCompletedInstallJobId;
+
+ /*
+ * JobStatus of the last ran install job.
+ */
+ @JsonProperty(value = "lastInstallJobStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private JobStatus lastInstallJobStatus;
+
+ /*
+ * The number of updates available for the current device version as per
+ * the last device scan.
+ */
+ @JsonProperty(value = "totalNumberOfUpdatesAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalNumberOfUpdatesAvailable;
+
+ /*
+ * The total number of items pending download.
+ */
+ @JsonProperty(value = "totalNumberOfUpdatesPendingDownload", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalNumberOfUpdatesPendingDownload;
+
+ /*
+ * The total number of items pending install.
+ */
+ @JsonProperty(value = "totalNumberOfUpdatesPendingInstall", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer totalNumberOfUpdatesPendingInstall;
+
+ /*
+ * Indicates if updates are available and at least one of the updates needs
+ * a reboot.
+ */
+ @JsonProperty(value = "rebootBehavior", access = JsonProperty.Access.WRITE_ONLY)
+ private InstallRebootBehavior rebootBehavior;
+
+ /*
+ * The current update operation.
+ */
+ @JsonProperty(value = "ongoingUpdateOperation", access = JsonProperty.Access.WRITE_ONLY)
+ private UpdateOperation ongoingUpdateOperation;
+
+ /*
+ * The job ID of the download job in progress.
+ */
+ @JsonProperty(value = "inProgressDownloadJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String inProgressDownloadJobId;
+
+ /*
+ * The job ID of the install job in progress.
+ */
+ @JsonProperty(value = "inProgressInstallJobId", access = JsonProperty.Access.WRITE_ONLY)
+ private String inProgressInstallJobId;
+
+ /*
+ * The time when the currently running download (if any) started.
+ */
+ @JsonProperty(value = "inProgressDownloadJobStartedDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime inProgressDownloadJobStartedDateTime;
+
+ /*
+ * The time when the currently running install (if any) started.
+ */
+ @JsonProperty(value = "inProgressInstallJobStartedDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime inProgressInstallJobStartedDateTime;
+
+ /*
+ * The list of updates available for install.
+ */
+ @JsonProperty(value = "updateTitles", access = JsonProperty.Access.WRITE_ONLY)
+ private List updateTitles;
+
+ /*
+ * The list of updates available for install.
+ */
+ @JsonProperty(value = "updates", access = JsonProperty.Access.WRITE_ONLY)
+ private List